:root{
  --bg: #F5F5F7;
  --bg2: #FBFBFD;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --sub: #6E6E73;
  --muted: #86868B;
  --border: rgba(0,0,0,.08);
  --shadow: 0 20px 40px rgba(0,0,0,.08);
  --shadow2: 0 8px 20px rgba(0,0,0,.06);
  --accent: #0071E3;
  --accent2: #2997FF;
  --green: #34C759;
  --warn: #FF3B30;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --maxw: 1100px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a{ color:inherit; }

/* Nav */
.nav{
  position: fixed;
  top:0;
  left:0;
  right:0;
  height: 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 1000;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner{
  width: 100%;
  max-width: var(--maxw);
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  flex: 1;
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 14px;
}
.brand-badge{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #dfe7ff 35%, #9ad0ff 70%, #0071e3 100%);
  box-shadow: 0 6px 14px rgba(0,113,227,.22);
  border: 1px solid rgba(0,0,0,.06);
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 18px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(29,29,31,.86);
  white-space: nowrap;
}
.nav-links a{
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s ease;
}
.nav-links a:hover{ opacity: 1; }
.nav-cta{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content: flex-end;
  gap: 10px;
}

/* Layout */
.container{
  width:100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}
.spacer-top{ height: 52px; }
section{
  padding: 92px 0;
}
.section-head{
  text-align:center;
  max-width: 820px;
  margin: 0 auto 34px auto;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(29,29,31,.55);
  margin-bottom: 10px;
}
.h1{
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
  background: linear-gradient(135deg, #1D1D1F 0%, #3a3a3c 60%, #6b6b6f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h2{
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}
.lead{
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--sub);
  font-weight: 500;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn.primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,113,227,.18);
}
.btn.primary:hover{ transform: translateY(-1px); background: #0062c3; }
.btn.ghost{
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.08);
  color: rgba(29,29,31,.92);
}
.btn.ghost:hover{ transform: translateY(-1px); border-color: rgba(0,0,0,.14); box-shadow: 0 10px 20px rgba(0,0,0,.06); }

/* Cards / blocks */
.card{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.card.pad{
  padding: 26px;
}
.grid{
  display:grid;
  gap: 18px;
}
.grid.two{
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.grid.three{
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.grid.one{
  grid-template-columns: 1fr;
}
@media (max-width: 900px){
  .grid.two, .grid.three{ grid-template-columns: 1fr; }
  section{ padding: 72px 0; }
  .nav-links{ display:none; }
}

/* Hero */
.hero{
  padding: 92px 0 68px 0;
}
.hero-actions{
  margin-top: 26px;
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
}
.hero-surface{
  margin-top: 44px;
  width: 100%;
}
@media (max-width: 900px){
  .hero-surface{ width: 100%; }
}

/* Feature Grid */
.hero-features {
  width: 100%;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-item {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 48px;
  line-height: 1;
}
.feature-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feature-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

/* Hero Highlights */
.hero-highlights {
  margin-bottom: 24px;
}
.highlight {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.highlight-media {
  width: 100%;
  height: 180px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.highlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.8));
}
.mock-gif {
  font-size: 13px;
  font-weight: 700;
  color: rgba(29, 29, 31, 0.4);
  text-align: center;
  padding: 20px;
}
.highlight-info {
  padding: 20px;
  flex: 1;
}
.highlight-info h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.highlight-info p {
  margin: 0;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5;
  font-weight: 600;
}

.shot{
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 30% 20%, #fff 0%, #fbfbfd 45%, #f1f1f3 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
}
.shot::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(600px 260px at 20% 10%, rgba(41,151,255,.18), transparent 60%),
    radial-gradient(520px 240px at 90% 30%, rgba(191,90,242,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.55));
  pointer-events:none;
}
.shot-inner{
  position:absolute;
  inset: 0;
  padding: 22px;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
}
.shot-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.shot-dots{
  display:flex;
  gap: 8px;
  opacity: .9;
}
.dot{ width: 12px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.08); }
.dot.red{ background:#FF5F57; }
.dot.yellow{ background:#FEBC2E; }
.dot.green{ background:#28C840; }
.shot-label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(29,29,31,.66);
}
.placeholder{
  margin-top: 12px;
  flex: 1;
  border-radius: 20px;
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(255,255,255,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 24px;
  color: rgba(29,29,31,.55);
  font-weight: 600;
  line-height: 1.5;
}
.shot-foot{
  display:flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 12px;
  font-weight: 700;
  color: rgba(29,29,31,.78);
}
.pill strong{ color: rgba(29,29,31,.92); }

/* Name card */
.name-card{
  margin-top: 30px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 900px){
  .name-card{ grid-template-columns: 1fr; }
}
.logo-ph{
  min-height: 140px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(255,255,255,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 18px;
  color: rgba(29,29,31,.60);
  font-weight: 700;
  box-shadow: var(--shadow2);
}

/* Side hero cards */
.side-stack{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px){
  .side-stack{ grid-template-columns: 1fr; }
}
.mini{
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow2);
  padding: 18px;
  min-height: 200px;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
}
.mini-title{
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}
.mini-desc{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.stat-row{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stat{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.7);
  min-width: 120px;
}
.stat .k{ font-size: 11px; color: rgba(29,29,31,.55); font-weight: 800; letter-spacing: .02em;}
.stat .v{ margin-top: 4px; font-size: 18px; font-weight: 900; letter-spacing: -0.02em;}

/* Feature blocks */
.feature{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 26px;
  min-height: 320px;
  position: relative;
  overflow:hidden;
}
.feature .title{
  margin:0;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.feature .desc{
  margin: 0;
  color: var(--sub);
  font-weight: 600;
  line-height: 1.55;
  font-size: 14px;
  max-width: 520px;
}
.feature .list{
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 8px;
  color: rgba(29,29,31,.78);
  font-weight: 700;
  font-size: 13px;
}
.feature .list li::before{
  content: "✓";
  color: var(--green);
  margin-right: 10px;
  font-weight: 900;
}

.feature.dark{
  background: #0b0b0c;
  border-color: rgba(255,255,255,.10);
  color: #fff;
}
.feature.dark .desc{ color: rgba(255,255,255,.68); }
.feature.dark .list{ color: rgba(255,255,255,.82); }

.mock{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(255,255,255,.55);
  min-height: 170px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
  color: rgba(29,29,31,.55);
  font-weight: 700;
  text-align:center;
}
.feature.dark .mock{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
}

/* CTA pricing */
.pricing{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 26px;
}
@media (max-width: 900px){
  .pricing{ grid-template-columns: 1fr; }
}
.price{
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: 320px;
}
.price.featured{
  background: #1D1D1F;
  color: #fff;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.25);
  transform: translateY(-6px);
}
.price .name{ font-weight: 900; font-size: 18px; letter-spacing:-.02em; margin:0; }
.price .money{ font-weight: 900; font-size: 40px; letter-spacing:-.03em; margin:0; }
.price .sub{ color: var(--muted); font-weight: 700; font-size: 13px; margin:0; }
.price.featured .sub{ color: rgba(255,255,255,.66); }
.price ul{ margin: 6px 0 0 0; padding: 0; list-style:none; display:grid; gap: 10px; font-weight: 700; font-size: 13px; }
.price li{ color: rgba(29,29,31,.78); }
.price.featured li{ color: rgba(255,255,255,.82); }
.price li::before{ content:"✓"; margin-right: 10px; font-weight: 900; color: var(--green); }
.price .actions{ margin-top:auto; display:flex; gap: 10px; flex-wrap: wrap; }
.price.featured .btn.primary{ background: #fff; color: #111; box-shadow: none; }
.price.featured .btn.primary:hover{ background: rgba(255,255,255,.92); }

/* Footer */
footer{
  padding: 44px 0 60px 0;
  color: rgba(29,29,31,.60);
  font-size: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(245,245,247,.72);
}
.foot{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot small{
  display:block;
  line-height: 1.6;
  max-width: 860px;
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* Doc Layout (GitBook Style) */
.doc-layout{
  display: flex;
  min-height: calc(100vh - 52px);
  margin-top: 52px;
  background: #fff;
}
.doc-sidebar{
  width: 280px;
  background: #F5F7F9;
  border-right: 1px solid rgba(0,0,0,.06);
  padding: 24px 0;
  position: fixed;
  top: 52px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 10;
}
@media (max-width: 900px){
  .doc-sidebar{ display: none; }
}
.doc-menu{
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-menu li{
  margin-bottom: 4px;
}
.doc-group-title{
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .05em;
  margin-top: 16px;
}
.doc-link{
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  color: #3b454e;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .1s, color .1s;
}
.doc-link:hover{
  color: var(--accent);
  background: rgba(0,0,0,.03);
}
.doc-link.active{
  color: var(--accent);
  border-left-color: var(--accent);
  background: #fff;
  font-weight: 600;
}
.doc-content{
  flex: 1;
  margin-left: 280px;
  padding: 48px 64px;
  max-width: 960px;
}
@media (max-width: 900px){
  .doc-content{ margin-left: 0; padding: 24px; }
}

/* Doc Typography */
.doc-article h1{ font-size: 32px; margin-bottom: 24px; font-weight:800; letter-spacing:-.02em; }
.doc-article h2{ font-size: 24px; margin-top: 40px; margin-bottom: 16px; font-weight:700; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.doc-article h3{ font-size: 18px; margin-top: 24px; margin-bottom: 12px; font-weight:700; }
.doc-article p{ font-size: 16px; line-height: 1.7; color: #24292e; margin-bottom: 16px; }
.doc-article ul{ margin-bottom: 16px; padding-left: 20px; line-height: 1.7; color: #24292e; }
.doc-article code{ background: rgba(27,31,35,.05); padding: 2px 5px; border-radius: 4px; font-family: monospace; font-size: 90%; }
.doc-article pre{ background: #f6f8fa; padding: 16px; border-radius: 6px; overflow-x: auto; margin-bottom: 16px; }
.doc-article pre code{ background: transparent; padding: 0; font-size: 13px; color: #24292e; }
.doc-note{ background: #e1f5fe; border-left: 4px solid #039be5; padding: 16px; margin-bottom: 16px; border-radius: 0 4px 4px 0; color: #24292e; font-size: 15px; }

/* Nav Tabs */
.nav-tabs{
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.nav-tab{
  font-size: 14px;
  font-weight: 500;
  color: rgba(29,29,31,.65);
  cursor: pointer;
  padding: 16px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-tab:hover{ color: #1d1d1f; }
.nav-tab.active{
  color: #1d1d1f;
  font-weight: 600;
  border-bottom-color: #0071e3;
}

/* Page Toggle */
.page-section{ display: none; }
.page-section.active{ display: block; }

/* Doc Sections */
.doc-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}
.doc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.doc-section h2 {
  scroll-margin-top: 100px; /* 平滑滚动时留出空间 */
}

/* Feature Showcase - 标签切换 */
.feature-showcase {
  width: 100%;
}
.showcase-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  font-weight: 700;
  color: rgba(29,29,31,.65);
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}
.tab-btn:hover {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.14);
  color: #1d1d1f;
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,113,227,.2);
}
.showcase-panel {
  display: none;
}
.showcase-panel.active {
  display: flex;
  justify-content: center;
  animation: fadeIn .3s ease;
}
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}
.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  font-weight: bold;
}
.modal-overlay.active {
  display: flex;
}
  min-height: 700px; /* 增加高度以适应竖屏截图 */
}
.showcase-panel .placeholder {
  background-size: contain !important; /* 确保图片完整显示 */
  background-position: top center !important;
}

/* 功能模块面板 */
.feature-panel {
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
