:root {
  --bg: #f5f1e8;
  --paper: rgba(255, 255, 255, 0.88);
  --paper-strong: #ffffff;
  --ink: #102a43;
  --muted: #486581;
  --teal: #0f4c5c;
  --teal-soft: #d8eef1;
  --sand: #fff2d8;
  --sky: #e8f2ff;
  --mint: #e5f7ef;
  --accent: #d97706;
  --accent-deep: #b45309;
  --line: rgba(16, 42, 67, 0.1);
  --shadow: 0 24px 60px rgba(16, 42, 67, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Segoe UI", sans-serif;
  --font-serif: "STZhongsong", "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(255, 215, 128, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(70, 160, 190, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf7f1 0%, #f0ece3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
  position: relative;
}

body[data-page="demo-lens"] .page-shell {
  width: min(1420px, calc(100vw - 24px));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 30%, #ffcc7a 0 24%, transparent 25%),
    linear-gradient(135deg, var(--teal) 0%, #1e707f 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a {
  position: relative;
}

.top-nav a.is-active,
.top-nav a:hover {
  color: var(--ink);
}

.top-nav a.is-active::after,
.top-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, #165f70 100%);
  box-shadow: 0 14px 30px rgba(15, 76, 92, 0.24);
}

.btn-secondary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--sand) 0%, #ffe8b7 100%);
  border-color: rgba(217, 119, 6, 0.15);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
}

.hero,
.library-hero,
.demo-header {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  margin-top: 28px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    linear-gradient(180deg, #fff, #fbfaf7);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.library-hero,
.demo-header {
  grid-template-columns: 1fr auto;
}

.hero::after,
.library-hero::after,
.demo-header::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 105, 0.22), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.24rem;
}

.hero-text,
.library-hero p,
.demo-header p {
  margin: 18px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  color: var(--muted);
}

.hero-points li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.hero-stage {
  min-height: 440px;
}

.stage-panel {
  position: relative;
  height: 100%;
  min-height: 440px;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 25%),
    linear-gradient(160deg, #123b48 0%, #0f4c5c 54%, #123b48 100%);
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 34px 34px;
}

.stage-axis {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 56%;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
}

.stage-lens {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 34px;
  height: 250px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(221, 248, 255, 0.86), rgba(126, 209, 225, 0.58));
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.stage-arrow {
  position: absolute;
  bottom: 44%;
  width: 10px;
  background: linear-gradient(180deg, #ffc766, #ff9f1c);
}

.stage-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 22px;
  height: 22px;
  border-top: 10px solid #ffc766;
  border-right: 10px solid #ffc766;
  transform: translateX(-50%) rotate(-45deg);
}

.stage-arrow-left {
  left: 20%;
  height: 145px;
}

.stage-arrow-right {
  left: 69%;
  height: 96px;
}

.stage-tag {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  color: #123b48;
  font-size: 0.86rem;
  font-weight: 700;
  background: #fff2d8;
  animation: drift 5s ease-in-out infinite;
}

.tag-1 { top: 12%; left: 10%; }
.tag-2 { top: 18%; right: 12%; animation-delay: 0.8s; }
.tag-3 { bottom: 11%; right: 18%; animation-delay: 1.6s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.trust-strip > div {
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.trust-strip strong,
.pricing-label {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

.trust-strip span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.section {
  margin-top: 74px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 58rem;
}

.value-grid,
.sample-grid,
.library-columns,
.library-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sample-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.value-card,
.sample-card,
.preview-panel,
.pricing-card,
.library-card,
.demo-stage-card,
.control-panel,
.result-box,
.tip-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.value-card,
.preview-panel,
.library-card,
.control-panel {
  padding: 24px;
}

.value-card p,
.preview-panel li,
.sample-card p,
.pricing-features,
.library-card p,
.result-list,
.tip-box p {
  color: var(--muted);
  line-height: 1.7;
}

.value-card-mint { background: linear-gradient(180deg, var(--mint), rgba(255, 255, 255, 0.92)); }
.value-card-sand { background: linear-gradient(180deg, var(--sand), rgba(255, 255, 255, 0.92)); }
.value-card-sky { background: linear-gradient(180deg, var(--sky), rgba(255, 255, 255, 0.92)); }

.sample-card {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.sample-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  opacity: 0.35;
}

.sample-card-accent {
  color: #fff;
  background: linear-gradient(145deg, #0f4c5c 0%, #0f4c5c 55%, #14636f 100%);
}

.sample-card-accent::before { background: radial-gradient(circle, rgba(255, 206, 122, 0.8), transparent 70%); }

.sample-card-dark {
  color: #fff;
  background: linear-gradient(145deg, #13293d 0%, #1b4965 100%);
}

.sample-card-dark::before { background: radial-gradient(circle, rgba(84, 214, 255, 0.65), transparent 72%); }

.sample-card-plain {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
}

.sample-badge,
.card-chip,
.member-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.sample-badge,
.card-chip {
  width: fit-content;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sample-card-plain .sample-badge {
  color: var(--accent-deep);
  background: var(--sand);
  border-color: rgba(217, 119, 6, 0.1);
}

.showcase .library-preview {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
}

.chapter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.chapter-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--muted);
}

.library-columns {
  grid-template-columns: repeat(3, 1fr);
}

.preview-panel ul,
.pricing-features {
  margin: 14px 0 0;
  padding-left: 18px;
}

.preview-panel-strong {
  background: linear-gradient(180deg, var(--teal-soft), rgba(255, 255, 255, 0.9));
}

.pricing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 242, 216, 0.95), rgba(255, 255, 255, 0.95));
}

.pricing-price {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.pricing-price span {
  font-size: 1.2rem;
  color: var(--muted);
}

.library-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-top: 26px;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.control span,
.member-field span {
  font-size: 0.92rem;
  color: var(--muted);
}

.search-box input,
.member-field input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.search-box input:focus,
.member-field input:focus {
  border-color: rgba(15, 76, 92, 0.4);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.08);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  background: var(--teal);
  border-color: transparent;
}

.library-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.library-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.library-card.is-hidden {
  display: none;
}

.library-card:hover {
  transform: translateY(-2px);
}

.library-card-top,
.card-actions,
.preset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-chip {
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.card-chip-dark {
  color: #fff;
  background: var(--ink);
}

.card-topic {
  color: var(--muted);
  font-size: 0.9rem;
}

.library-card.is-locked {
  position: relative;
  overflow: hidden;
}

.library-card.is-locked::after {
  content: "会员内容";
  position: absolute;
  right: -44px;
  top: 22px;
  width: 150px;
  text-align: center;
  padding: 8px 0;
  transform: rotate(28deg);
  background: rgba(16, 42, 67, 0.88);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.member-pill {
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 320px;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.demo-stage-card {
  position: relative;
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
}

.demo-stage-card canvas {
  width: 100%;
  display: block;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfa, #f7f1e6);
}

.watermark-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(15, 76, 92, 0.12), transparent 15%),
    radial-gradient(circle at 80% 30%, rgba(217, 119, 6, 0.13), transparent 16%);
}

.watermark-grid::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: rgba(16, 42, 67, 0.55);
  transform: rotate(-16deg);
  letter-spacing: 0.16em;
}

.control-panel {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 102px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 230, 0.92));
}

.control {
  display: grid;
  gap: 10px;
}

.control input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.preset-row {
  flex-wrap: wrap;
}

.preset-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.result-box,
.tip-box {
  padding: 18px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.75);
}

.result-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.result-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.result-list dt {
  color: var(--muted);
}

.result-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.member-modal {
  width: min(560px, calc(100vw - 24px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: transparent;
}

.member-modal::backdrop {
  background: rgba(10, 18, 26, 0.45);
  backdrop-filter: blur(6px);
}

.member-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.member-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.member-field {
  display: grid;
  gap: 8px;
}

.member-hint {
  margin: 0;
  color: var(--muted);
}

.contact-hero {
  margin-top: 28px;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.contact-card p,
.contact-card li,
.contact-detail span {
  color: var(--muted);
  line-height: 1.7;
}

.contact-card-warn {
  background: linear-gradient(180deg, var(--sand), rgba(255, 255, 255, 0.92));
}

.contact-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.contact-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-detail strong {
  display: block;
  margin-top: 6px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 48px;
  padding: 22px 0 8px;
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .library-hero,
  .demo-header,
  .demo-layout,
  .pricing-card,
  .library-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .site-header {
    border-radius: 28px;
  }

  .value-grid,
  .sample-grid,
  .library-columns,
  .library-grid,
  .contact-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 18px, 1220px);
    padding-top: 10px;
  }

  .site-header,
  .hero,
  .library-hero,
  .demo-header,
  .showcase .library-preview,
  .pricing-card,
  .value-card,
  .sample-card,
  .preview-panel,
  .library-card,
  .demo-stage-card,
  .control-panel {
    padding: 18px;
  }

  h1 {
    font-size: 2.3rem;
  }

  .top-nav {
    gap: 14px;
    font-size: 0.88rem;
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
