:root {
  --ink: #172321;
  --muted: #697573;
  --paper: #f7f8f3;
  --card: #ffffff;
  --line: #dde2dc;
  --mint: #bbf3d2;
  --mint-deep: #80dba7;
  --accent: #1c5c49;
  --orange: #ff7a45;
  --shadow: 0 22px 60px rgba(31, 52, 46, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
button, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }

.ambient { display: none; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 35, 33, .1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 850; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #123e32; background: var(--mint); border-radius: 10px; font-size: 12px; }
.brand-mark svg { width: 22px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 650; }
nav a { opacity: .74; transition: opacity .2s; }
nav a:hover { opacity: 1; }
.header-status { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #35b672; box-shadow: 0 0 0 4px rgba(53,182,114,.12); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 68px 0 72px; text-align: center; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.eyebrow span { width: 24px; height: 2px; background: var(--mint-deep); }
h1 { margin: 18px 0 16px; font-size: clamp(46px, 5.7vw, 72px); line-height: 1.08; letter-spacing: -.055em; }
h1 em { color: var(--accent); font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.hero-copy { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17px; }

.parse-card { max-width: 800px; margin: 36px auto 24px; padding: 22px; text-align: left; border: 1px solid rgba(23,35,33,.08); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.parse-card > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 750; }
.input-shell { position: relative; min-height: 78px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 70px 14px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fafbf8; transition: border .2s, box-shadow .2s; }
.input-shell:focus-within { border-color: var(--mint-deep); box-shadow: 0 0 0 4px rgba(128,219,167,.14); }
.input-shell > svg { width: 21px; margin-top: 5px; color: var(--muted); }
textarea { width: 100%; flex: 1; resize: none; min-width: 0; min-height: 48px; border: 0; outline: 0; overflow: hidden; color: var(--ink); background: transparent; line-height: 1.55; }
textarea::placeholder { color: #a4adaa; }
.paste-button { position: absolute; top: 13px; right: 13px; padding: 6px 10px; border: 0; border-radius: 8px; color: var(--accent); background: #e8f8ef; cursor: pointer; font-size: 12px; font-weight: 750; }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.privacy-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.privacy-note svg { width: 17px; }
.primary-button { min-width: 150px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 13px; color: white; background: var(--ink); cursor: pointer; font-weight: 750; transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--accent); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .75; transform: none; }
.primary-button svg { width: 17px; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.primary-button.loading .spinner { display: block; }
.primary-button.loading > svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { min-height: 0; margin: 10px 0 0; color: #b43d2b; font-size: 13px; }

.quick-platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.quick-platforms > span { margin-right: 4px; }
.quick-platforms b { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: #53605d; background: rgba(255,255,255,.5); font-weight: 650; }

.result-card { max-width: 820px; margin: 28px auto; display: grid; grid-template-columns: minmax(240px, .82fr) 1.18fr; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.result-media { min-height: 300px; background: #e8ece7; }
.result-media img, .result-media video { width: 100%; height: 100%; min-height: 300px; display: block; object-fit: cover; }
.result-content { padding: 32px; align-self: center; }
.result-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; color: #17603f; background: #dbf7e7; font-size: 11px; font-weight: 800; }
.result-content h2 { margin: 14px 0 12px; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.author { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.action-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #f8faf7; cursor: pointer; font-size: 12px; font-weight: 750; }
.action-button.primary { color: white; border-color: var(--ink); background: var(--ink); }
.action-button:disabled { cursor: wait; opacity: .65; }

.gallery { max-width: 920px; margin: 52px auto 0; text-align: left; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 16px; background: #e7ece7; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item a { position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 9px; color: white; background: rgba(17,29,26,.76); backdrop-filter: blur(5px); font-size: 11px; font-weight: 700; }

.platform-section { padding: 78px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; text-align: left; }
.section-heading span { color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.section-heading h2, .api-copy h2 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; }
.section-heading.compact { margin-bottom: 20px; }
.section-heading.compact h2 { font-size: 28px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.platform-item { min-height: 100px; display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.58); }
.platform-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: #e4f5eb; font-weight: 850; }
.platform-item:nth-child(4n+2) .platform-icon { color: #8a491f; background: #ffebdc; }
.platform-item:nth-child(4n+3) .platform-icon { color: #344e85; background: #e4eafa; }
.platform-item strong { display: block; font-size: 14px; }
.platform-item small { color: var(--muted); font-size: 11px; }
.skeleton { height: 100px; border-radius: 15px; background: linear-gradient(90deg,#edf0eb,#f8faf7,#edf0eb); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.api-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; padding: 72px 58px; border-radius: 26px; background: #172421; color: white; }
.api-copy p { max-width: 390px; color: #aab8b4; font-size: 14px; }
.api-copy .section-kicker { color: var(--mint-deep); }
.api-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.api-links a { padding-bottom: 3px; border-bottom: 1px solid #586662; color: #dce7e3; font-size: 13px; }
.code-card { align-self: center; overflow: hidden; border: 1px solid #3d4e49; border-radius: 17px; background: #0f1917; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.code-tabs { height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 13px; border-bottom: 1px solid #2b3b37; }
.code-tabs button { padding: 7px 10px; border: 0; border-radius: 7px; color: #7f918c; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.code-tabs button.active { color: #172421; background: var(--mint); }
.code-tabs .copy-code { margin-left: auto; color: #b9c7c3; }
pre { min-height: 200px; margin: 0; padding: 24px; overflow: auto; color: #d5e2de; font: 12px/1.8 Consolas, monospace; white-space: pre-wrap; }
.endpoint { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid #2b3b37; color: #aab9b4; font-size: 12px; }
.endpoint span { color: var(--mint); font-size: 10px; font-weight: 850; }

.notice { display: flex; align-items: flex-start; gap: 18px; margin: 28px 0 88px; padding: 24px 28px; border: 1px solid #f0d2bd; border-radius: 16px; background: #fff7ef; }
.notice svg { width: 25px; flex: 0 0 auto; color: var(--orange); }
.notice strong { font-size: 14px; }
.notice p { margin: 3px 0 0; color: #7d7168; font-size: 12px; }

footer { min-height: 100px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); font-size: 17px; }
.footer-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; }
.footer-meta { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.footer-meta p { margin: 0; }
.icp-link { color: var(--muted); }
.icp-link:hover { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; color: white; background: #172421; box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s; font-size: 13px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { padding-top: 58px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .api-section { grid-template-columns: 1fr; gap: 38px; padding: 54px 40px; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 68px; }
  .header-status { font-size: 0; padding: 10px; }
  .status-dot { margin: 0; }
  .hero { padding: 46px 0 58px; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; }
  h1 { margin-top: 16px; font-size: clamp(36px, 11vw, 44px); line-height: 1.12; letter-spacing: -.045em; }
  h1 em { display: block; margin-top: 3px; font-size: .88em; }
  .hero-copy { font-size: 14px; }
  .parse-card { margin-top: 28px; padding: 16px; border-radius: 18px; }
  .input-shell { min-height: 94px; padding: 13px 60px 13px 12px; }
  .input-shell > svg { display: none; }
  .paste-button { top: 10px; right: 10px; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .privacy-note { max-width: none; }
  .primary-button { width: 100%; min-width: 0; }
  .quick-platforms { display: none; }
  .result-card { grid-template-columns: 1fr; }
  .result-media, .result-media img, .result-media video { min-height: 230px; max-height: 390px; }
  .result-content { padding: 24px; }
  .result-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .result-actions .action-button { width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
  .result-actions .action-button.primary { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-section { padding: 60px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading h2, .api-copy h2 { font-size: 28px; line-height: 1.25; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-item { min-height: 88px; padding: 13px; }
  .platform-icon { width: 36px; height: 36px; }
  .api-section { margin: 0 -14px; padding: 50px 22px; border-radius: 24px; }
  pre { padding: 18px; font-size: 11px; }
  .notice { margin-bottom: 60px; padding: 20px; }
  footer { flex-direction: column; justify-content: center; padding: 28px 0; text-align: center; }
}

@media (max-width: 360px) {
  .site-header, main, footer { width: calc(100% - 22px); }
  h1 { font-size: 34px; }
  .parse-card { padding: 13px; }
  .result-content { padding: 20px; }
  .api-section { margin: 0 -11px; padding: 42px 17px; }
  .code-tabs button { padding-inline: 7px; }
}
