/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #6d3df5;
  --primary-dark: #5327d4;
  --primary-light: #f0ebff;
  --accent: #ff5c8a;
  --text: #241b3a;
  --text-light: #6b6280;
  --bg: #faf9fd;
  --card: #ffffff;
  --border: #e9e4f5;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(60, 30, 130, 0.08);
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ============ 头部 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--text); }
.logo span:first-child { font-size: 24px; }
.site-nav {
  order: 10; flex-basis: 100%;
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 4px 10px; justify-content: start; padding-top: 2px;
}
.site-nav a {
  padding: 7px 14px; border-radius: 999px; color: var(--text-light);
  font-size: 15px; font-weight: 500; transition: all .2s;
}
.site-nav a:hover { background: var(--primary-light); color: var(--primary); }
.site-nav a.active { background: var(--primary); color: #fff; }
.admin-link { font-size: 13px; color: var(--text-light); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.admin-link:hover { color: var(--primary); border-color: var(--primary); }
.tool-link { font-size: 13px; color: var(--text-light); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; background: var(--primary-light); }
.tool-link:hover { color: var(--primary); border-color: var(--primary); }
.header-inner > .tool-link { margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

@media (max-width: 760px) {
  .nav-toggle { display: block; order: 3; margin-left: auto; }
  .header-inner > .tool-link { margin-left: 0; }
  .admin-link { margin-left: auto; }
  .nav-toggle + .admin-link, .admin-link { margin-left: 0; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 16px 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
}

/* ============ 通用区块 ============ */
main { min-height: 70vh; padding: 34px 20px 60px; }
.section { margin-bottom: 44px; animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: .5px; }
.section-title::before { content: ""; display: inline-block; width: 6px; height: 22px; background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 4px; margin-right: 10px; vertical-align: -2px; }
.section-sub { color: var(--text-light); margin-bottom: 22px; font-size: 15px; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #6d3df5 0%, #8b5cf6 45%, #ff5c8a 100%);
  border-radius: 20px; color: #fff; padding: 56px 44px; text-align: center;
  box-shadow: 0 12px 40px rgba(109, 61, 245, 0.35);
}
.hero h1 { font-size: 34px; font-weight: 900; line-height: 1.35; margin-bottom: 10px; }
.hero .hero-sub { font-size: 16px; opacity: .92; font-weight: 600; margin-bottom: 12px; letter-spacing: 2px; }
.hero .hero-desc { font-size: 15.5px; opacity: .88; max-width: 640px; margin: 0 auto 26px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btns a {
  padding: 12px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s;
}
.hero-btns a:hover { transform: translateY(-2px); }
.hero-btns a:first-child { background: #fff; color: var(--primary-dark); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.hero-btns a:not(:first-child) { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
@media (max-width: 600px) { .hero { padding: 40px 22px; } .hero h1 { font-size: 25px; } }

/* ============ Stats ============ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: 34px; font-weight: 900; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13.5px; color: var(--text-light); margin-top: 6px; }

/* ============ Cards ============ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(60,30,130,.14); }
.card-icon { font-size: 34px; margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-light); }
.card .badge {
  position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}

/* ============ 文章 ============ */
.article {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 34px; box-shadow: var(--shadow);
}
.article h3 { font-size: 18.5px; margin: 22px 0 10px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article h3:first-child { margin-top: 0; }
.article p { margin-bottom: 14px; font-size: 15px; color: #3c3354; }
.article ul, .article ol { margin: 0 0 14px 22px; font-size: 15px; color: #3c3354; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--primary-dark); }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14px; }
.article th { background: var(--primary-light); color: var(--primary-dark); }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article tr:nth-child(even) td { background: #faf8ff; }
@media (max-width: 600px) { .article { padding: 22px 18px; } .article table { font-size: 12.5px; } .article th, .article td { padding: 7px 6px; } }

/* ============ 步骤 ============ */
.steps-list { display: flex; flex-direction: column; gap: 14px; }
.step-item {
  display: flex; gap: 18px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); align-items: flex-start;
}
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px;
}
.step-item h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 5px; }
.step-item p { font-size: 14px; color: var(--text-light); }

/* ============ 图片画廊 ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 175px; object-fit: cover; display: block; }
.media-placeholder {
  height: 175px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f3effc, #f3effc 12px, #ece5fb 12px, #ece5fb 24px);
  color: var(--text-light); font-size: 32px;
}
.media-placeholder small { font-size: 12px; margin-top: 6px; }
.gallery-item figcaption { padding: 11px 14px; font-size: 13.5px; color: var(--text-light); text-align: center; }

/* ============ 视频 ============ */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video-item { border-radius: var(--radius); overflow: hidden; background: #14101f; border: 1px solid var(--border); box-shadow: var(--shadow); }
.video-item video, .video-item iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.video-item .video-ph {
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #221a3d, #372a63); color: #cfc4f2; font-size: 44px;
}
.video-item .video-ph small { font-size: 12px; opacity: .7; margin-top: 6px; }
.video-item figcaption { padding: 11px 14px; font-size: 13.5px; color: #cfc4f2; background: #14101f; text-align: center; }

/* ============ 音频 ============ */
.audio-list { display: flex; flex-direction: column; gap: 12px; }
.audio-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow);
}
.audio-item .audio-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.audio-item .audio-head .audio-icon { font-size: 20px; }
.audio-item .audio-head strong { font-size: 15px; }
.audio-item .audio-head small { color: var(--text-light); font-size: 12.5px; }
.audio-item audio { width: 100%; }
.audio-empty { font-size: 12.5px; color: var(--text-light); background: var(--primary-light); border-radius: 8px; padding: 7px 12px; }

/* ============ 定价 ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.price-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--primary); position: relative; }
.price-card.featured::after {
  content: "推荐"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 14px; border-radius: 999px;
}
.price-name { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.price-num { font-size: 26px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.price-desc { font-size: 13px; color: var(--text-light); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.price-features { list-style: none; flex: 1; }
.price-features li { font-size: 14px; margin-bottom: 9px; padding-left: 24px; position: relative; color: #3c3354; }
.price-features li::before { content: "✓"; position: absolute; left: 4px; color: #22b573; font-weight: 900; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 20px; font-size: 15.5px; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--primary); font-weight: 900; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-light); }
.faq-item.open .faq-a { max-height: 400px; }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, #241b3a, #3d2a6e); border-radius: 20px;
  padding: 46px 36px; text-align: center; color: #fff; box-shadow: 0 12px 36px rgba(36,27,58,.35);
}
.cta h2 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.cta p { opacity: .85; font-size: 15px; margin-bottom: 24px; }
.cta .hero-btns a:first-child { background: var(--accent); color: #fff; }
.cta-contact { margin-top: 22px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 14px; opacity: .9; }
.cta-contact span { background: rgba(255,255,255,.1); padding: 7px 16px; border-radius: 999px; }

/* ============ 页脚 ============ */
.site-footer { background: #1a1430; color: #b6aee0; padding: 34px 0 26px; text-align: center; font-size: 14px; }
.footer-contact { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.footer-contact span { background: rgba(255,255,255,.08); padding: 5px 14px; border-radius: 999px; font-size: 13px; }
.footer-admin a { color: #8d7fd0; font-size: 12.5px; }

/* ============ 404 ============ */
.not-found { text-align: center; padding: 90px 20px; }
.not-found .big { font-size: 60px; margin-bottom: 12px; }
