/* ============================================================
   汇云卡盟平台 - 全站设计令牌 Design Tokens
   ============================================================ */
:root {
  /* 品牌渐变（随机生成的配色，仅用于 UI 渲染，不参与文案/SEO） */
  --brand-from: #4f46e5;
  --brand-to: #7c3aed;
  --brand-grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --brand-glow: 0 8px 30px rgba(124, 58, 237, 0.28);

  /* 基底 */
  --bg-base: #f6f7fb;
  --bg-banner: linear-gradient(160deg, #eef0ff 0%, #f6f7fb 60%, #eef7ff 100%);
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --bg-secondary: rgba(99, 102, 241, 0.06);

  /* 文字 */
  --text-primary: #1a1d2e;
  --text-body: #3f4459;
  --text-muted: #7c8099;
  --text-faint: #a0a4ba;
  --text-white: #ffffff;

  /* 状态/辅助 */
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --danger: #ef4444;
  --success: #10b981;

  /* 边框/分割 */
  --border: rgba(30, 32, 60, 0.08);
  --border-strong: rgba(99, 102, 241, 0.35);
  --divider-dash: rgba(99, 102, 241, 0.25);

  /* 阴影 */
  --shadow-sm: 0 2px 10px rgba(30, 32, 60, 0.06);
  --shadow-md: 0 8px 30px rgba(30, 32, 60, 0.10);
  --shadow-lg: 0 18px 50px rgba(30, 32, 60, 0.16);
  --shadow-hover: 0 22px 60px rgba(99, 102, 241, 0.22);

  /* 圆角 */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* 布局/动效 */
  --container: 1200px;
  --gap: 24px;
  --gap-lg: 40px;
  --nav-h: 42px;
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航 Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + 20px);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand-grad); color: #fff;
}
.logo-text {
  font-size: 19px; font-weight: 800; letter-spacing: 0.5px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main-nav ul { display: flex; gap: 30px; }
.nav-link {
  font-size: 15px; color: var(--text-body); font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--brand-grad); border-radius: 2px; transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* ===== Banner ===== */
.banner {
  position: relative; margin-top: calc(var(--nav-h) + 20px);
  min-height: 600px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg-banner);
}
.banner-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(124,58,237,0.10), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(79,70,229,0.10), transparent 45%);
}
.banner-inner { position: relative; text-align: center; padding: 60px 0; }
.brand-title {
  font-size: clamp(38px, 6vw, 64px); font-weight: 900; letter-spacing: 1px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(124,58,237,0.18);
  animation: fadeUp 0.9s var(--ease) both;
}
.banner-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--text-muted); font-weight: 300;
  line-height: 2; margin-top: 8px;
  animation: fadeUp 0.9s 0.15s var(--ease) both;
}
.search-box {
  margin: 32px auto 0; max-width: 560px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card-solid); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.9s 0.3s var(--ease) both;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within { border-color: var(--border-strong); box-shadow: var(--brand-glow); }
.search-input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; color: var(--text-primary); }
.search-input::placeholder { color: var(--text-faint); }
.search-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.search-btn:hover { transform: scale(1.06); box-shadow: var(--shadow-hover); }
.topic-group {
  margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  animation: fadeUp 0.9s 0.45s var(--ease) both;
}
.topic-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  background: var(--bg-card-solid); border: 1.5px solid var(--border);
  font-size: 15px; color: var(--text-body);
  transition: all var(--transition);
}
.topic-btn:hover { border-color: var(--border-strong); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.topic-icon { font-size: 16px; }

/* ===== 通用 Section ===== */
.section { padding: 90px 0; position: relative; }
.section-head { text-align: center; margin-bottom: var(--gap-lg); }
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; color: var(--text-primary); }
.hl {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-en { font-size: 13px; color: var(--text-faint); letter-spacing: 3px; margin-top: 10px; text-transform: uppercase; }
.section-sub { font-size: 16px; color: var(--text-muted); margin-top: 12px; font-weight: 400; }
.title-bar { display: block; width: 64px; height: 4px; border-radius: 4px; margin: 18px auto 0; background: var(--brand-grad); }

/* ===== 网站简介 ===== */
.intro-box {
  background: var(--bg-card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 56px 48px; box-shadow: var(--shadow-md);
}
.intro-lead { font-size: 18px; line-height: 2; color: var(--text-body); margin-top: 8px; }
.brand-grad {
  font-weight: 800;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.notice-box {
  margin: 30px 0; padding: 22px 26px; border-radius: var(--radius-md);
  background: var(--bg-secondary); border-left: 4px solid var(--accent);
}
.notice-tag { font-weight: 700; color: var(--accent); font-size: 16px; }
.notice-text { color: var(--text-muted); margin-top: 6px; font-size: 16px; }
.intro-detail p { margin-bottom: 16px; font-size: 17px; line-height: 2; }
.divider-dash { border-top: 2px dashed var(--divider-dash); margin: 36px 0; }
.tri-advantage { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tri-item { text-align: center; padding: 24px 16px; border-radius: var(--radius-md); transition: all var(--transition); }
.tri-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--bg-secondary); }
.tri-icon { font-size: 40px; }
.tri-title { color: var(--accent); font-size: 19px; margin: 12px 0 8px; font-weight: 800; }
.tri-desc { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.intro-foot { margin-top: 30px; font-size: 16px; color: var(--text-body); line-height: 2; }

/* ===== 核心优势 ===== */
.section-adv { background: linear-gradient(160deg, #1a1a2e 0%, #23234a 55%, #1a1a2e 100%); overflow: hidden; }
.section-adv .section-title { color: #fff; }
.section-adv .section-sub { color: rgba(255,255,255,0.65); }
.particles { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.12), transparent 60%); pointer-events: none; }
.adv-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.adv-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 40px 28px; text-align: center;
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.adv-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.4); box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.adv-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 20px; font-size: 32px; color: #fff;
  background: var(--ic); box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.adv-title { color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.adv-desc { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.85; }

/* 核心优势图标渐变（调用全站品牌色板，按需轮换） */
.adv-ic-1 { --ic: linear-gradient(135deg, #6366f1, #8b5cf6); }
.adv-ic-2 { --ic: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.adv-ic-3 { --ic: linear-gradient(135deg, #10b981, #34d399); }
.adv-ic-4 { --ic: linear-gradient(135deg, #f59e0b, #fbbf24); }
.adv-ic-5 { --ic: linear-gradient(135deg, #ec4899, #f472b6); }
.adv-ic-6 { --ic: linear-gradient(135deg, #8b5cf6, #a78bfa); }


.thumb-grad-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.thumb-grad-2 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.thumb-grad-3 { background: linear-gradient(135deg, #10b981, #34d399); }
.thumb-grad-4 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.thumb-grad-5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.thumb-grad-6 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }


.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.video-card {
  background: var(--bg-card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.video-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.video-thumbnail {
  position: relative; height: 180px; display: flex; align-items: center; justify-content: center;
}
.thumb-cat { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #fff; background: rgba(0,0,0,0.35); padding: 5px 12px; border-radius: var(--radius-pill); }
.thumb-ic { font-size: 13px; }
.play-btn {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: grid; place-items: center; font-size: 20px; color: var(--accent);
  box-shadow: var(--shadow-md); transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover .play-btn { transform: scale(1.12); box-shadow: var(--shadow-hover); }
.video-duration { position: absolute; bottom: 12px; right: 12px; font-size: 12px; color: #fff; background: rgba(0,0,0,0.6); padding: 4px 10px; border-radius: 8px; }
.video-info { padding: 20px; }
.video-title { font-size: 17px; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.video-meta { display: flex; gap: 18px; margin: 12px 0; font-size: 13px; color: var(--text-muted); }
.tag-group { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-video, .tag { font-size: 12px; padding: 5px 13px; border-radius: var(--radius-pill); font-weight: 600; }
.tag-video { background: var(--brand-grad); color: #fff; }
.tag { background: var(--bg-secondary); color: var(--text-muted); }

/* ===== 相关资讯 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card {
  background: var(--bg-card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.news-date { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.news-title { font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-desc { font-size: 15px; color: var(--text-muted); line-height: 1.85; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: 16px; font-size: 14px; color: var(--text-faint); font-weight: 600; align-self: flex-start; transition: color var(--transition); }
.news-card:hover .news-more { color: var(--accent); }

/* ===== FAQ ===== */
.section-faq { background: var(--bg-banner); }
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-card {
  background: var(--bg-card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-card.open { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 26px;
  display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 800; color: var(--accent);
}
.faq-emoji { font-size: 24px; flex-shrink: 0; }
.faq-toggle { margin-left: auto; font-size: 22px; color: var(--text-faint); transition: transform var(--transition); }
.faq-card.open .faq-toggle { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease), padding 0.4s var(--ease); padding: 0 26px; }
.faq-card.open .faq-a { max-height: 600px; padding: 0 26px 26px; }
.faq-a ol { list-style: none; counter-reset: faq; display: flex; flex-direction: column; gap: 12px; }
.faq-a li { counter-increment: faq; padding-left: 34px; position: relative; font-size: 16px; line-height: 1.85; color: var(--text-body); }
.faq-a li::before { content: counter(faq); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; }

/* ===== 评论 ===== */
.comment-box {
  background: var(--bg-card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md);
}
.comment-form { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.form-input { border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 13px 22px; font-size: 15px; outline: none; background: #fff; color: var(--text-primary); transition: border-color var(--transition); }
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus { border-color: var(--border-strong); }
.form-textarea { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; font-size: 15px; outline: none; resize: vertical; background: #fff; color: var(--text-primary); font-family: inherit; transition: border-color var(--transition); }
.form-textarea::placeholder { color: var(--text-faint); }
.form-textarea:focus { border-color: var(--border-strong); }
.form-submit { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--brand-grad); color: #fff; font-weight: 700; padding: 12px 28px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ic-up { font-weight: 900; }
.comment-list { display: flex; flex-direction: column; gap: 16px; max-height: 900px; overflow-y: auto; padding-right: 8px; }
.comment-list::-webkit-scrollbar { width: 8px; }
.comment-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.cmt-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; background: var(--bg-card-solid); transition: transform var(--transition), box-shadow var(--transition); }
.cmt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cmt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cmt-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.cmt-name { font-weight: 700; color: var(--text-primary); font-size: 15px; }
.cmt-time { margin-left: auto; font-size: 12px; color: var(--text-faint); }
.cmt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cmt-tag { font-size: 11px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cmt-body { font-size: 15px; color: var(--text-body); line-height: 1.8; }
.cmt-actions { display: flex; align-items: center; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.cmt-actions .reply-btn { display: inline-flex; align-items: center; gap: 5px; transition: color var(--transition); }
.cmt-actions .reply-btn:hover { color: var(--accent); }
.cmt-actions .like { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.comment-tip { text-align: center; color: var(--text-faint); font-size: 14px; margin-top: 24px; }

/* ===== Footer ===== */
.site-footer { background: #14152a; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand .logo-text { font-size: 20px; -webkit-text-fill-color: #fff; }
.footer-desc { max-width: 620px; font-size: 14px; line-height: 1.8; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 14px; transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.4); max-width: 760px; line-height: 1.8; }

/* ===== 滚动进度条 ===== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand-grad); z-index: 2000; transition: width 0.1s linear; }

/* ===== 动画 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 响应式 ===== */
@media (max-width: 1199px) {
  .tri-advantage, .adv-grid, .video-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: calc(var(--nav-h) + 20px); left: 0; right: 0;
    background: #fff; padding: 20px; border-bottom: 1px solid var(--border);
    transform: translateY(-150%); transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .banner { min-height: 620px; }
  .intro-box, .comment-box { padding: 28px 20px; border-radius: var(--radius-md); }
  .tri-advantage, .adv-grid, .video-grid, .news-grid { grid-template-columns: 1fr; }
  .adv-card { padding: 30px 20px; }
  .search-box { padding: 6px 6px 6px 16px; }
  .topic-btn { padding: 9px 15px; font-size: 14px; }
  .faq-q { font-size: 16px; padding: 18px 20px; }
  .cmt-time { font-size: 11px; }
}
