:root {
  --accent: #0f8c75;
  --accent-hover: #0b7563;
  --accent-soft: #e7f4f0;
  --accent-pale: #f0f8f5;
  --ink: #10211d;
  --ink-2: #43534e;
  --muted: #788680;
  --line: #dfe8e4;
  --line-strong: #cedbd6;
  --canvas: #f4f7f5;
  --surface: #ffffff;
  --surface-dark: #102823;
  --danger: #c64d3e;
  --shadow-card: 0 18px 50px rgba(17, 55, 46, .08), 0 3px 12px rgba(17, 55, 46, .04);
  --shadow-float: 0 28px 80px rgba(9, 37, 31, .2);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 140, 117, .22);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: 18px;
  left: -260px;
  background: radial-gradient(circle, rgba(118, 207, 183, .18), rgba(118, 207, 183, 0) 68%);
}

.ambient-two {
  top: 210px;
  right: -280px;
  background: radial-gradient(circle, rgba(109, 169, 148, .14), rgba(109, 169, 148, 0) 68%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(244, 247, 245, .84);
  backdrop-filter: blur(18px) saturate(150%);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(206, 219, 214, .75);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 30px rgba(21, 53, 45, .04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
}

.brand-symbol svg {
  width: 26px;
  height: 26px;
  fill: #eafff8;
}

.brand-symbol .brand-cut {
  fill: var(--ink);
}

.brand-name {
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-edition {
  margin-left: -3px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: 70px;
}

.main-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .18s ease, transform .18s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #d8e6e1;
  border-radius: 11px;
  background: #f7fbf9;
  color: var(--ink-2);
  cursor: default;
  font-size: 12px;
}

.points-pill svg {
  width: 16px;
  height: 16px;
  fill: #d59b2e;
}

.points-pill strong {
  color: var(--ink);
  font-size: 14px;
}

/* Buttons */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .08s ease, box-shadow .18s ease;
}

.button:active,
.btn:active {
  transform: translateY(1px);
}

.button:disabled,
.btn:disabled {
  cursor: wait;
  opacity: .65;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 13px;
}

.button-outline,
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .75);
  color: var(--ink);
}

.button-outline:hover,
.btn-ghost:hover {
  border-color: #adbfba;
  background: #fff;
}

.button-primary,
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 140, 117, .2);
}

.button-primary:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(15, 140, 117, .26);
}

.button-light {
  min-width: 138px;
  background: #f1fff9;
  color: #113c32;
}

.button-light:hover {
  background: #fff;
}

.button-block {
  width: 100%;
}

.btn-sm {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 11px;
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  padding: 86px 0 68px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  width: min(790px, 100%);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(15, 140, 117, .1);
}

.hero-copy h1 {
  margin-top: 20px;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 790;
  letter-spacing: -.065em;
  line-height: 1.02;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy > p {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.8;
}

.parser-card {
  width: min(980px, 100%);
  margin-top: 48px;
  padding: 26px;
  border: 1px solid rgba(208, 221, 216, .9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-card);
}

.parser-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.parser-heading > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.parser-title {
  font-size: 15px;
  font-weight: 750;
}

.parser-caption {
  color: var(--muted);
  font-size: 12px;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #558077;
  font-size: 12px;
  font-weight: 650;
}

.service-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28b48e;
  box-shadow: 0 0 0 4px rgba(40, 180, 142, .11);
}

.input-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8faf9;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.input-surface:focus-within {
  border-color: rgba(15, 140, 117, .65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 140, 117, .09);
}

.url-input {
  display: block;
  width: 100%;
  min-height: 108px;
  max-height: 180px;
  padding: 20px 120px 20px 20px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.url-input::placeholder {
  color: #9aa6a2;
}

.paste-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #dbe7e3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(18, 50, 42, .04);
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.paste-button:hover {
  border-color: #b9cec7;
  color: var(--accent-hover);
  background: var(--accent-pale);
}

.paste-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.parser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.parser-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.parser-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.parser-notes i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8fa49d;
}

.parse-button {
  flex: 0 0 auto;
  min-width: 150px;
  min-height: 50px;
}

.button-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(850px, 100%);
  margin-top: 38px;
}

.proof-strip > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
}

.proof-strip > div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -.03em;
}

.proof-strip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.section-heading h2,
.member-copy h2,
.guide-heading h2,
.faq-heading h2 {
  margin-top: 8px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.section-heading > p {
  max-width: 470px;
  padding-bottom: 5px;
  color: var(--ink-2);
  font-size: 14px;
}

.section-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

/* Result */
.result-wrap {
  position: relative;
  z-index: 2;
  padding-top: 12px;
  padding-bottom: 24px;
}

.result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  animation: rise .28s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-body {
  display: flex;
  gap: 32px;
  padding: 28px;
}

.media-col {
  width: 44%;
  max-width: 420px;
  flex-shrink: 0;
}

.media-video,
.media-cover {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #0c1714;
}

.media-video {
  max-height: 560px;
}

.media-cover {
  border: 1px solid var(--line);
}

.info-col {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 5px 4px 4px 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.badge {
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 750;
}

.badge.type {
  background: #eff3f1;
  color: var(--ink-2);
}

.result-title {
  max-width: 600px;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.55;
  word-break: break-word;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 14px;
}

.author img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #eef3f1;
  object-fit: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}

.img-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.img-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-grid a::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(11, 27, 23, .72);
  color: #fff;
  content: "保存";
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.state-box {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink-2);
  text-align: center;
}

.state-box.error {
  border-color: #ead4cf;
  background: #fffaf8;
}

.state-box .st-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 740;
}

.skeleton {
  height: 190px;
  border-radius: 18px;
  background: linear-gradient(90deg, #eef3f1 25%, #f8faf9 37%, #eef3f1 63%);
  background-size: 400% 100%;
  animation: shine 1.25s ease infinite;
}

@keyframes shine {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* Platforms */
#platforms {
  border-top: 1px solid rgba(210, 222, 217, .7);
  background: rgba(255, 255, 255, .5);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.platform-item {
  display: flex;
  align-items: center;
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.platform-item:hover {
  border-color: #bfd2cb;
  box-shadow: 0 12px 28px rgba(17, 55, 46, .06);
  transform: translateY(-2px);
}

.platform-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 16px;
  font-weight: 800;
}

.platform-item > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  margin-left: 13px;
}

.platform-item strong {
  font-size: 15px;
  font-weight: 720;
}

.platform-item small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-ok {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #d7e6e1;
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.platform-more {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
}

.platform-more span {
  margin-right: 8px;
  color: var(--muted);
}

.platform-more strong {
  margin-left: 8px;
  color: var(--accent-hover);
}

/* Member panel */
.member-section {
  padding-top: 36px;
  padding-bottom: 84px;
}

.member-section-top {
  padding-top: 34px;
  padding-bottom: 26px;
}

.member-section-top + .hero {
  padding-top: 48px;
}

.member-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  overflow: hidden;
  padding: 64px;
  border-radius: 32px;
  background: var(--surface-dark);
  color: #fff;
}

.member-panel::before {
  position: absolute;
  top: -170px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 190, 153, .25), rgba(35, 190, 153, 0) 67%);
  content: "";
  pointer-events: none;
}

.member-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.section-kicker-light {
  color: #71d3bb;
}

.member-copy h2 {
  margin-top: 14px;
  color: #f7fffc;
  font-size: clamp(34px, 4vw, 50px);
}

.member-copy p {
  max-width: 530px;
  margin-top: 19px;
  color: #adc3bc;
  font-size: 15px;
  line-height: 1.85;
}

.member-copy .button {
  margin-top: 30px;
}

.member-pass {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid rgba(218, 255, 245, .22);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  box-shadow: inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}

.pass-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.pass-top em {
  margin-left: auto;
  color: #75958b;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .16em;
}

.pass-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #dffbf2;
}

.pass-logo svg {
  width: 20px;
  height: 20px;
  fill: #133d33;
}

.pass-status {
  margin-top: 43px;
}

.pass-status > span {
  color: #7f9d94;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
}

.pass-status strong {
  display: block;
  margin-top: 5px;
  color: #f5fffb;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -.03em;
}

.pass-status p {
  margin-top: 2px;
  color: #8ca89f;
  font-size: 12px;
}

.pass-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.pass-steps span {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  border-top: 1px solid rgba(218, 255, 245, .12);
  color: #9cb5ad;
  font-size: 10px;
}

.pass-steps b {
  margin-bottom: 2px;
  color: #d9eee7;
  font-size: 11px;
}

/* Guide */
.guide-section {
  background: #fff;
}

.guide-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 110px;
}

.guide-heading p,
.faq-heading p {
  max-width: 400px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 14px;
}

.guide-list {
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.guide-list li:first-child {
  padding-top: 3px;
}

.guide-list li > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.guide-list strong {
  font-size: 17px;
  font-weight: 720;
}

.guide-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 100px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 21px 50px 21px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 690;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span,
.faq-list summary span::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink-2);
  content: "";
  transition: transform .2s ease;
}

.faq-list summary span::after {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: rotate(0);
}

.faq-list details p {
  max-width: 650px;
  padding: 0 46px 22px 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 100px;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-symbol {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #eafff8;
  font-size: 9px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 13px;
}

.footer-inner > span:last-child {
  justify-self: end;
}

/* Login modal */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(9, 26, 22, .58);
  backdrop-filter: blur(8px);
  animation: fade .18s ease both;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--shadow-float);
  animation: modal-in .22s ease both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 35px;
  height: 35px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f2f5f4;
  color: var(--ink-2);
  cursor: pointer;
}

.modal-close:hover {
  background: #e8efec;
}

.modal-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.modal-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
}

.modal-icon svg {
  width: 30px;
  height: 30px;
  fill: #dffff5;
}

.modal-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.modal-title {
  margin-top: 5px;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.03em;
}

.modal-desc {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.code-input-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 26px 0 20px;
}

.code-cell {
  width: 100%;
  min-width: 0;
  aspect-ratio: .86 / 1;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #f7f9f8;
  color: var(--ink);
  font-size: 22px;
  font-weight: 760;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.code-cell:focus {
  border-color: var(--accent);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 140, 117, .1);
}

.modal-foot {
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 100;
  max-width: min(420px, calc(100vw - 40px));
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(15, 32, 28, .94);
  color: #fff;
  box-shadow: 0 12px 34px rgba(10, 30, 25, .2);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(8px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.err {
  background: rgba(159, 52, 41, .96);
}

.toast.ok {
  background: rgba(13, 111, 91, .96);
}

/* Responsive */
@media (max-width: 940px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-panel {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 50px;
  }

  .guide-layout,
  .faq-layout {
    gap: 60px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 32px, 1160px);
  }

  .header-inner {
    height: 66px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-edition {
    display: none;
  }

  .points-pill span {
    display: none;
  }

  .hero {
    padding: 52px 0 52px;
  }

  .hero-copy h1 {
    margin-top: 16px;
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-copy > p {
    margin-top: 19px;
    font-size: 15px;
  }

  .parser-card {
    margin-top: 34px;
    padding: 18px;
    border-radius: 21px;
  }

  .parser-heading {
    align-items: flex-start;
  }

  .parser-heading > div {
    flex-direction: column;
    gap: 0;
  }

  .service-status {
    margin-top: 2px;
  }

  .url-input {
    min-height: 126px;
    padding: 16px 16px 56px;
    resize: none;
  }

  .paste-button {
    top: auto;
    right: 12px;
    bottom: 11px;
  }

  .parser-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .parser-notes {
    gap: 8px 14px;
  }

  .parse-button {
    width: 100%;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    margin-top: 32px;
  }

  .proof-strip > div:nth-child(2) {
    border-right: 0;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading > p {
    padding: 0;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-item {
    min-height: 82px;
  }

  .member-section {
    padding-top: 12px;
    padding-bottom: 70px;
  }

  .member-panel {
    width: 100%;
    padding: 42px 24px;
    border-radius: 0;
  }

  .member-copy h2 {
    font-size: 36px;
  }

  .member-pass {
    min-height: 285px;
  }

  .guide-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .result-body {
    flex-direction: column;
    gap: 22px;
    padding: 18px;
  }

  .media-col {
    width: 100%;
    max-width: none;
  }

  .media-video {
    max-height: 65vh;
  }

  .footer-inner {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }

  .modal {
    padding: 28px 20px 24px;
  }

  .modal-icon {
    width: 46px;
    height: 46px;
  }

  .code-input-row {
    gap: 6px;
  }

  .code-cell {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .header-actions {
    gap: 6px;
  }

  .button-small {
    padding-inline: 12px;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .proof-strip strong {
    font-size: 17px;
  }

  .modal-mask {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Light hero: reference-inspired composition in QingXiang colors */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 64px;
  border-bottom: 1px solid rgba(207, 221, 215, .72);
  background:
    radial-gradient(circle at 13% 20%, rgba(58, 186, 151, .09), transparent 26%),
    radial-gradient(circle at 88% 36%, rgba(112, 207, 180, .1), transparent 25%),
    linear-gradient(180deg, #f9fcfb 0%, #f3f8f6 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 30%, rgba(15, 140, 117, .25) 0 1.5px, transparent 2px),
    radial-gradient(circle at 21% 12%, rgba(15, 140, 117, .18) 0 1.5px, transparent 2px),
    radial-gradient(circle at 36% 45%, rgba(15, 140, 117, .18) 0 1px, transparent 2px),
    radial-gradient(circle at 61% 16%, rgba(15, 140, 117, .2) 0 1.5px, transparent 2px),
    radial-gradient(circle at 81% 25%, rgba(15, 140, 117, .16) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 52%, rgba(15, 140, 117, .2) 0 1.5px, transparent 2px);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  width: min(900px, 100%);
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 790;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.hero-copy h1 span {
  display: inline-block;
  margin-left: .18em;
  background: linear-gradient(100deg, #117d69 0%, #19a789 42%, #5bc5a7 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy > p {
  max-width: 680px;
  margin: 19px auto 0;
  color: #65736f;
  font-size: 16px;
  line-height: 1.8;
}

.hero-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 28px;
}

.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52615c;
  font-size: 13px;
  font-weight: 650;
}

.hero-benefits svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-benefits span:nth-child(2) svg {
  fill: var(--accent);
  stroke: none;
}

.parser-card {
  width: min(900px, 100%);
  margin-top: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d8e4e0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .74);
  color: #65736f;
  font-size: 12px;
  font-weight: 650;
}

.platform-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 16px rgba(15, 140, 117, .16);
}

.input-surface {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  overflow: visible;
  border: 1.5px solid #cdded8;
  border-radius: 17px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 45px rgba(24, 74, 61, .09);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-surface:focus-within {
  border-color: rgba(15, 140, 117, .76);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 140, 117, .08), 0 18px 46px rgba(24, 74, 61, .1);
}

.url-input {
  display: block;
  width: auto;
  min-width: 0;
  min-height: 52px;
  max-height: 132px;
  flex: 1;
  padding: 14px 16px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.url-input::placeholder {
  color: #9aa6a2;
}

.input-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.paste-button {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #63726d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.paste-button:hover {
  border-color: transparent;
  background: var(--accent-pale);
  color: var(--accent-hover);
}

.paste-button svg {
  width: 15px;
  height: 15px;
}

.parse-button {
  min-width: 144px;
  min-height: 52px;
  border-radius: 12px;
  background: linear-gradient(110deg, #18a589, #0d806b);
  box-shadow: 0 10px 24px rgba(15, 140, 117, .22);
}

.parse-button:hover {
  background: linear-gradient(110deg, #14977e, #0a715e);
}

.parser-notes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  color: #899590;
  font-size: 11px;
  font-weight: 550;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5e8178;
  font-size: 11px;
  font-weight: 650;
}

.service-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #29b68f;
  box-shadow: 0 0 0 4px rgba(41, 182, 143, .1);
}

@media (max-width: 760px) {
  .hero {
    padding: 46px 0 50px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 10.8vw, 52px);
    line-height: 1.16;
  }

  .hero-copy h1 span {
    display: block;
    margin: 2px 0 0;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-benefits {
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 22px;
  }

  .hero-benefits span {
    font-size: 12px;
  }

  .parser-card {
    margin-top: 28px;
  }

  .platform-tabs {
    gap: 6px;
  }

  .platform-tab {
    min-height: 28px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .input-surface {
    display: block;
    padding: 8px;
  }

  .url-input {
    width: 100%;
    min-height: 74px;
    padding: 13px 11px;
  }

  .input-actions {
    justify-content: flex-end;
  }

  .parse-button {
    flex: 1;
    min-width: 0;
  }

  .parser-notes {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-inline: 4px;
    text-align: left;
  }
}

/* Rich parse result */
.rich-result {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

.result-summary {
  padding: 30px 34px 25px;
}

.result-summary .badges {
  margin-bottom: 13px;
}

.result-summary .result-title {
  max-width: 900px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.55;
}

.result-author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.result-author img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #eef4f1;
  object-fit: cover;
}

.result-author > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.result-author strong {
  font-size: 14px;
}

.result-author span {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-media-section {
  padding: 24px 34px 30px;
  border-top: 1px solid var(--line);
  background: #f8faf9;
}

.result-media-stage {
  display: grid;
  overflow: hidden;
  min-height: 280px;
  place-items: center;
  border-radius: 18px;
  background: #091b17;
}

.result-media-stage .media-video {
  width: 100%;
  height: min(58vw, 610px);
  max-height: 610px;
  border-radius: 0;
  object-fit: contain;
}

.result-media-stage .media-cover {
  width: auto;
  max-width: 100%;
  max-height: 610px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.result-media-stage .img-grid {
  width: 100%;
  padding: 18px;
  background: #f2f6f4;
}

.result-media-section .actions {
  justify-content: center;
  margin-top: 14px;
  padding-top: 0;
}

.key-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 11px 12px 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.key-link > span {
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 750;
}

.key-link code {
  overflow: hidden;
  color: #6f7e79;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-link button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.result-data-section {
  padding: 28px 34px 32px;
  border-top: 1px solid var(--line);
}

.result-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 14px;
}

.result-section-heading:not(:first-child) {
  margin-top: 29px;
}

.result-section-heading h3 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.result-section-heading span {
  color: var(--muted);
  font-size: 10px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.meta-card {
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faf9;
}

.meta-card-wide {
  grid-column: span 2;
}

.meta-card span {
  color: var(--muted);
  font-size: 10px;
}

.meta-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 690;
  line-height: 1.45;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.stat-card {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.stat-card span {
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 9px;
  background: #f0f4f2;
  color: #64736e;
  font-size: 11px;
}

.tag-list span.primary {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quality-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faf9;
}

.quality-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.quality-card strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.quality-download {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 750;
}

.music-card {
  display: grid;
  grid-template-columns: auto minmax(120px, .65fr) minmax(240px, 1.5fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf9;
}

.music-card > img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
}

.music-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.music-copy strong,
.music-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-copy strong {
  font-size: 12px;
}

.music-copy span {
  color: var(--muted);
  font-size: 10px;
}

.music-card audio {
  width: 100%;
  min-width: 0;
  height: 36px;
}

@media (max-width: 760px) {
  .result-summary,
  .result-media-section,
  .result-data-section {
    padding: 22px 18px;
  }

  .result-media-stage {
    min-height: 210px;
    border-radius: 14px;
  }

  .result-media-stage .media-video {
    height: min(85vh, 560px);
  }

  .key-link {
    grid-template-columns: 1fr auto;
  }

  .key-link > span {
    grid-column: 1 / -1;
  }

  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meta-card-wide {
    grid-column: 1 / -1;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .music-card {
    grid-template-columns: auto 1fr auto;
  }

  .music-card audio {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
