:root {
  --ink: #3f4c54;
  --ink-deep: #2a3338;
  --paper: #f7f5f1;
  --paper-2: #efece6;
  --line: #d4d0c8;
  --accent: #3f4c54;
  --accent-hot: #c45c26;
  --muted: #6b7378;
  --white: #fff;
  --max: 1080px;
  --font-display: "IBM Plex Sans", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --font-body: "Noto Sans SC", "IBM Plex Sans", "Microsoft YaHei UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(247,245,241,.92), rgba(247,245,241,.97)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(63,76,84,.05) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(63,76,84,.05) 24px),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--ink-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent-hot); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247,245,241,.88);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand img { height: 36px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: .04em;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .92rem; color: var(--muted);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink); border-bottom-color: var(--accent-hot);
}
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--white) !important;
  border-bottom: none !important;
  padding: 8px 14px !important; border-radius: 2px;
  font-weight: 600; text-decoration: none;
}
.nav-cta:hover { background: var(--accent-hot); color: var(--white) !important; }

.hero {
  padding: clamp(48px, 10vw, 96px) 0 clamp(40px, 8vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 85% 10%, rgba(196,92,38,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 70%);
}
.hero-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink-deep);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 18em;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2; margin: 0 0 14px; font-weight: 650;
  max-width: 14em;
}
.hero .lead {
  margin: 0 0 28px; color: var(--muted); max-width: 34em; font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 2px; text-decoration: none;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent-hot); color: var(--white); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-hot); color: var(--accent-hot); }
.hero-panel {
  border: 1px solid var(--line); background: rgba(255,255,255,.72);
  padding: 20px 22px; min-height: 180px;
}
.hero-panel h2 { margin: 0 0 10px; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero-panel ul { margin: 0; padding-left: 1.1em; color: var(--ink-deep); }
.hero-panel li { margin: 6px 0; }

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 10px;
}
.section .sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

.feature-row {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  border-top: 2px solid var(--ink);
  padding: 16px 0 8px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* —— 首页主视觉 —— */
.page-home .site-header {
  border-bottom-color: transparent;
  background: rgba(247,245,241,.72);
}
/* 首页：去掉左上品牌 LOGO，导航靠右，整体上提 */
.page-home .nav { justify-content: space-between; padding: 8px 0; }
.page-home .site-header .wrap { width: min(100% - 32px, 1180px); }
.page-home .brand img { height: 46px; }
.page-home .brand-text { display: none; }
.page-home .hero-stage {
  padding-top: clamp(12px, 1.6vw, 20px);
}
.hero-stage {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 0 clamp(30px, 3.4vw, 48px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-stage-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 70% at 88% 40%, rgba(196,92,38,.16), transparent 65%),
    radial-gradient(40% 50% at 12% 80%, rgba(63,76,84,.06), transparent 70%),
    linear-gradient(105deg, rgba(247,245,241,.98) 0%, rgba(247,245,241,.55) 46%, transparent 68%);
  animation: heroWash 14s ease-in-out infinite alternate;
}
.hero-stage-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  width: min(100% - 32px, 1180px);
}
.hero-stage-copy { max-width: 34rem; }
.hero-title-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 8px;
}
.hero-slogan {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: #c0392b;
  animation: heroRise .68s .02s ease both;
}
.hero-stage .hero-name {
  font-size: clamp(2.2rem, 5.5vw, 3.1rem);
  margin: 0;
  animation: heroRise .7s .04s ease both;
}
.hero-stage .hero-tagline {
  max-width: none;
  margin: 0 0 4px;
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  line-height: 1.2;
  color: var(--muted);
  animation: heroRise .75s .08s ease both;
}
.hero-stage .lead {
  margin: 0 0 14px;
  max-width: 34em;
  font-size: .93rem;
  line-height: 1.62;
  animation: heroRise .8s .12s ease both;
}
.hero-stage .hero-actions {
  animation: heroRise .85s .16s ease both;
  margin: 0 0 16px;
}
.hero-meta {
  margin: 0;
  font-size: .82rem;
  line-height: 1.72;
  color: var(--muted);
  letter-spacing: .02em;
  animation: heroRise .9s .2s ease both;
}
.hero-terms a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-terms a:hover { color: var(--accent-hot); }
.hero-price {
  margin: 16px 0 0;
  max-width: 34rem;
  padding: 12px 14px;
  border: 1px solid rgba(196,92,38,.28);
  background: rgba(196,92,38,.06);
  animation: heroRise .95s .24s ease both;
}
.hero-price p {
  margin: 0 0 7px;
  font-size: .78rem;
  line-height: 1.56;
  color: var(--accent-hot);
  font-weight: 600;
}
.hero-price p:last-child { margin-bottom: 0; }
.hero-price strong { font-weight: 800; }
.hero-price-note {
  color: var(--muted) !important;
  font-weight: 400 !important;
  font-size: .78rem !important;
  margin-top: 9px !important;
}
.hero-price-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-price-note a:hover { color: var(--accent-hot); }
.hero-compat-now {
  color: var(--ink-deep);
  font-weight: 600;
}
.hero-compat-soon {
  color: var(--muted);
}
.hero-stage-visual {
  position: relative;
  justify-self: stretch;
  width: min(100%, 620px);
  margin-left: auto;
  animation: heroRise .9s .14s ease both;
}
.hero-carousel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(42,51,56,.08);
  overflow: hidden;
}
.hero-carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #ebe8e2;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transition:
    opacity .7s ease,
    transform .7s ease,
    visibility 0s linear .7s;
  pointer-events: none;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity .7s ease,
    transform .7s ease,
    visibility 0s;
  pointer-events: auto;
  z-index: 1;
}
.hero-carousel-slide.is-leave {
  opacity: 0;
  visibility: visible;
  transform: translateY(-8px) scale(1.01);
  transition: opacity .55s ease, transform .55s ease;
  z-index: 0;
}
.hero-carousel-slide img {
  width: 100%;
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: center top;
  background: #f3f1ec;
  display: block;
}
.hero-carousel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-deep);
  background: linear-gradient(180deg, rgba(255,255,255,.92), #fff);
  border-top: 1px solid var(--line);
}
.hero-carousel-progress {
  position: absolute;
  left: 0; right: 0; bottom: 36px;
  height: 2px;
  background: rgba(63,76,84,.08);
  z-index: 3;
  overflow: hidden;
}
.hero-carousel-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-hot);
  transform-origin: left center;
}
.hero-carousel.is-playing .hero-carousel-progress span {
  animation: heroProgress var(--hero-carousel-ms, 4200ms) linear forwards;
}
.hero-carousel-dots {
  position: absolute;
  right: 12px;
  bottom: 44px;
  z-index: 4;
  display: flex;
  gap: 6px;
}
.hero-carousel-dots button {
  width: 7px; height: 7px;
  padding: 0; border: 0; border-radius: 50%;
  background: rgba(63,76,84,.28);
  cursor: pointer;
}
.hero-carousel-dots button[aria-selected="true"] {
  background: var(--accent-hot);
  transform: scale(1.15);
}
.hero-carousel-dots button:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 14px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 10px;
  background: var(--accent-hot);
  animation: scrollTick 1.6s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--ink); }

.eyebrow {
  margin: 0 0 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-hot);
}
.features-head {
  padding: 0 0 12px;
  text-align: left;
}
.features-head h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.5vw, 1.7rem); }
.features-sub {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.section-features {
  padding: 28px 0 36px;
}

/* 首页特色：两排 × 4 = 8 模块；大标题 + 三行亮点，无配图 */
.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}
.feature-card {
  margin: 0;
  padding: 14px 14px 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .15s ease, background .15s ease;
}
.feature-card:hover {
  border-color: rgba(196,92,38,.45);
  background: #fff;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
}
.feature-card h3 a {
  text-decoration: none;
  color: var(--ink-deep);
  border-bottom: 2px solid transparent;
}
.feature-card h3 a:hover {
  color: var(--accent-hot);
  border-bottom-color: var(--accent-hot);
}
.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-card li {
  position: relative;
  margin: 0;
  padding: 3px 0 3px 12px;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
}
.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 1px;
  background: var(--line);
}
.feature-card .hot {
  color: var(--accent-hot);
  font-weight: 700;
}

.text-link {
  font-weight: 600; text-decoration: none; color: var(--ink-deep);
  border-bottom: 1px solid var(--accent-hot); padding-bottom: 1px;
}
.text-link:hover { color: var(--accent-hot); }

.section-cta { padding-top: 12px; padding-bottom: 64px; }
.cta-band {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  align-items: center; justify-content: space-between;
  padding: 32px 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255,255,255,.75), rgba(239,236,230,.9));
}
.cta-band h2 { margin: 0 0 8px; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroWash {
  from { opacity: .88; }
  to { opacity: 1; }
}
@keyframes scrollTick {
  0%, 100% { transform: translate(-50%, 0); opacity: .35; }
  50% { transform: translate(-50%, 4px); opacity: 1; }
}
@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage-mark, .hero-stage .hero-name, .hero-stage .hero-tagline,
  .hero-stage .lead, .hero-stage .hero-actions, .hero-meta, .hero-price,
  .hero-stage-visual, .hero-stage-wash, .hero-scroll::after,
  .hero-carousel.is-playing .hero-carousel-progress span {
    animation: none !important; transition: none !important;
  }
  .hero-carousel-slide {
    transition: none !important;
    transform: none !important;
  }
}

.page-head {
  padding: 40px 0 24px; border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px;
}
.page-head p { margin: 0; color: var(--muted); max-width: 40em; }

.content { padding: 36px 0 64px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.05rem; }
.prose code {
  background: var(--paper-2); padding: 1px 6px; border-radius: 2px; font-size: .92em;
}

.download-card, .change-card, .help-card {
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  padding: 22px 24px; margin: 0 0 16px;
}
.download-card h2, .change-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: .75rem; letter-spacing: .04em;
  border: 1px solid var(--line); padding: 2px 8px; margin-right: 6px; color: var(--muted);
}
.tag-new { border-color: var(--accent-hot); color: var(--accent-hot); }

.help-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start;
}
.help-side {
  position: sticky; top: 72px;
  max-height: calc(100vh - 88px); overflow-y: auto;
  border: 1px solid var(--line); background: rgba(255,255,255,.75); padding: 16px;
}
.help-side a {
  display: block; text-decoration: none; color: var(--muted);
  padding: 7px 8px; margin: 2px 0; border-left: 2px solid transparent;
}
.help-side a:hover, .help-side a.active { color: var(--ink); background: var(--paper-2); }
.help-side a.active { border-left-color: var(--accent-hot); }
.help-side .side-title { font-weight: 700; margin-bottom: 10px; }

.help-section { scroll-margin-top: 76px; }
.help-section + .help-section {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.prose h4 { margin-top: 1.2em; font-size: 1rem; font-weight: 600; }

/* —— 关于页：左右面板 + 文档内嵌 —— */
.about-pane { display: none; }
.about-pane.active { display: block; }
.about-frame {
  display: none; width: 100%; max-width: 720px; height: 0;
  border: 0; background: transparent; overflow: hidden;
}
.about-frame.active { display: block; }

/* —— 帮助页：常见问题内嵌腾讯文档 —— */
.faq-embed {
  border: 1px solid var(--line); background: #fff;
  margin: 0 0 16px; overflow: hidden;
}
.faq-embed-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .88rem;
}
.faq-embed-bar a { color: var(--accent-hot); text-decoration: none; white-space: nowrap; }
.faq-embed-bar a:hover { text-decoration: underline; }
.faq-frame {
  display: block; width: 100%; height: 720px;
  border: 0; background: #fff;
}

/* 嵌入 iframe 时隐藏站点外壳，文档只留正文 */
.embed-mode .site-header,
.embed-mode .site-footer { display: none !important; }
.embed-mode .page-head { padding: 0; border-bottom: 0; }
.embed-mode .page-head h1 { font-size: 1.15rem; margin: 0 0 10px; }
.embed-mode .page-head p { display: none; }
.embed-mode .content { padding: 2px 0 8px; }
.embed-mode { overflow-x: hidden; }
.embed-mode .prose { max-width: none; }
.embed-mode::-webkit-scrollbar { width: 0; height: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px; color: var(--muted); font-size: .88rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
.footer-grid a { color: var(--muted); margin-right: 12px; text-decoration: none; }
.footer-grid a:hover { color: var(--accent-hot); }
.footer-icp { margin-left: 10px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.footer-icp:hover { color: var(--accent-hot); }

.steps { padding-left: 1.2em; }
.steps li { margin: 8px 0; }
.tip {
  border-left: 3px solid var(--accent-hot);
  background: rgba(196,92,38,.08);
  padding: 10px 14px; margin: 16px 0;
}

.field-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0 20px; }
.field-table th, .field-table td {
  border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
}
.field-table th { background: var(--paper-2); width: 28%; font-weight: 600; }
.shot-box {
  border: 1px solid var(--line); background: #fff; margin: 16px 0 24px; overflow: hidden;
}
.shot-box img { width: 100%; display: block; background: #f0eeea; min-height: 120px; object-fit: contain; }
.shot-box .cap {
  padding: 8px 12px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line);
}
.dlg {
  border: 1px solid #8a9196; background: #f0f0f0; max-width: 520px; margin: 12px 0 8px;
  font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.dlg-title {
  background: linear-gradient(180deg, #fff, #e8e8e8);
  border-bottom: 1px solid #c0c0c0; padding: 6px 10px; font-weight: 600;
}
.dlg-body { background: #f5f5f5; padding: 12px 14px; }
.dlg-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.dlg-list {
  border: 1px solid #aaa; background: #fff; height: 120px; margin: 8px 0; padding: 6px; color: #555;
}
.dlg-btn {
  display: inline-block; border: 1px solid #8a8a8a; background: #e6e6e6;
  padding: 4px 14px; margin-left: 6px; border-radius: 2px;
}
.dlg-btn.primary { background: #3f4c54; color: #fff; border-color: #2a3338; }
.dlg-actions { text-align: right; margin-top: 14px; }

@media (max-width: 860px) {
  .hero-grid, .feature-row, .help-layout,
  .hero-stage-grid { grid-template-columns: 1fr; }
  .feature-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stage {
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .hero-stage-visual {
    width: min(100%, 100%);
    margin: 8px 0 0;
  }
  .hero-scroll { display: none; }
  .help-side { position: static; max-height: none; }
  .brand-text { display: none; }
  .cta-band { align-items: flex-start; }
}

@media (max-width: 520px) {
  .feature-card-grid { grid-template-columns: 1fr; }
  .hero-stage {
    padding-top: 16px;
    padding-bottom: 20px;
  }
  .faq-frame { height: 560px; }
}
