/* 基础样式 */
:root {
  --brand: #667eea;
  --brand-2: #764ba2;
  --text: #2d3748;
  --muted: #718096;
  --bg: #f8f9ff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid #eef2f7;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 100px; border-radius: 8px; display: block; object-fit: contain; background: transparent; }
.brand-name { font-weight: 700; color: var(--text); }

.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--brand); }

.hero { padding: 72px 0; background: linear-gradient(135deg, #ffffff 0%, var(--bg) 100%); }
.hero h1 { font-size: 40px; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 24px; }
.cta { display: inline-block; padding: 12px 22px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 8px 24px rgba(102,126,234,.3); }
.cta:hover { transform: translateY(-1px); }

.section { padding: 56px 0; }
.section h2 { font-size: 28px; margin: 0 0 20px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid #eef2f7; border-radius: 14px; padding: 18px; background: #fff; }
.card h3 { margin: 8px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.footer { border-top: 1px solid #eef2f7; padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--brand); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #eef2f7; padding: 12px; text-align: left; }
.table th { background: #fafbff; }

.note { padding: 12px 14px; border-left: 3px solid var(--brand); background: #f3f6ff; border-radius: 8px; color: #445; }

@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 30px; } }

/* 追加：图文混排与装饰图片 */
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.hero-illustration { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* 追加：功能图标与头像样式 */
.feature-icon { width: 44px; height: 44px; display: block; }
.card .feature-icon { margin-bottom: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; box-shadow: 0 6px 14px rgba(0,0,0,.08); }

/* 追加：品牌Logo条幅 */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; opacity: .9; }
.logo-item { height: 28px; background: linear-gradient(180deg, #f3f6ff, #eef2ff); border: 1px solid #eef2f7; border-radius: 8px; }
@media (max-width: 900px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }

/* 追加：教程文档图片网格 */
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.doc-img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #eef2f7; box-shadow: 0 10px 24px rgba(0,0,0,.05); }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; } }

/* 追加：教程文档分屏与目录样式 */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.docs-nav { position: sticky; top: 80px; align-self: start; }
.docs-nav .nav-card { border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; background: #fff; }
.docs-nav a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 8px; font-size: 14px; }
.docs-nav a:hover { background: #f6f8ff; color: var(--brand); }
.docs-nav a.active { background: linear-gradient(135deg, #eef2ff, #f6f8ff); color: var(--brand); font-weight: 700; }
.docs-content { min-height: 300px; }
.doc-panel { display: none; }
.doc-panel.active { display: block; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; } }

/* 追加：轮播图样式 */
.carousel { position: relative; width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; }
.carousel-slide img { display: block; width: 100%; height: auto; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06); cursor: pointer; }
.carousel-dot.active { background: #fff; }

/* 追加：功能卡片美化 */
.feature-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .feature-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-cards { grid-template-columns: 1fr; } }
.feature-card {
  position: relative;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcff) padding-box,
              linear-gradient(135deg, rgba(102,126,234,.35), rgba(118,75,162,.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 32px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
}
.feature-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.35), rgba(255,255,255,0));
  mix-blend-mode: screen; opacity: .55;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.08); filter: saturate(108%); }
.feature-card h3 { margin: 6px 0 8px; font-size: 16px; }
.feature-card p { font-size: 14px; color: var(--muted); }
.feature-card .tag { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #f1f4ff; color: #5b6ad0; font-size: 12px; margin-bottom: 8px; }
