/* ============================================================
   彩云商业管理系统官网 · 主样式
   设计语言：深海军蓝 + 金色点缀，现代简约，分层景深
   ============================================================ */
:root {
  --navy-900: #070D1A;
  --navy-800: #0A1628;
  --navy-700: #0E1F3D;
  --navy-600: #152C55;
  --blue-500: #2B6DE2;
  --blue-400: #3B82F6;
  --gold-500: #D9A441;
  --gold-400: #E5C069;
  --gold-300: #F2D896;
  --ink-900: #0F1B2E;
  --ink-600: #44546F;
  --ink-400: #7C8AA5;
  --paper: #F6F8FC;
  --white: #FFFFFF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 24px 60px -16px rgba(7, 13, 26, .35);
  --shadow-md: 0 12px 32px -12px rgba(7, 13, 26, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.container-narrow { width: min(860px, 92%); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #2B1D05;
  box-shadow: 0 10px 30px -8px rgba(217, 164, 65, .55);
}
.btn-gold:hover { box-shadow: 0 14px 38px -8px rgba(217, 164, 65, .7); transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(43, 109, 226, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(43, 109, 226, .7); }
.btn-ghost {
  background: rgba(255, 255, 255, .06); color: #fff;
  border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-disabled {
  background: #E4E9F2; color: var(--ink-400); cursor: not-allowed;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(7, 13, 26, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s ease;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { flex: none; }
.brand-text { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.brand-text span { font-weight: 400; font-size: 13px; color: #9FB3D8; margin-left: 6px; }
.brand-text.light { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { color: #C9D6EE; font-size: 15px; font-weight: 500; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.btn-nav { padding: 9px 22px; font-size: 14px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-600), transparent 60%),
              radial-gradient(900px 500px at 10% 110%, #123055, transparent 55%),
              var(--navy-800);
  padding: 150px 0 70px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(120, 160, 255, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 160, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 480px at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 480px at 50% 30%, #000, transparent 75%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(229, 192, 105, .1); border: 1px solid rgba(229, 192, 105, .35);
  color: var(--gold-400); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.22;
  font-weight: 800; letter-spacing: .01em; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: #B9C7E2; font-size: clamp(15px, 1.4vw, 18px); margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; }
.hero-points li {
  position: relative; padding-left: 22px; color: #8FA3C7; font-size: 14px;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-300), var(--gold-500));
}
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero-glow {
  position: absolute; inset: auto -8% -14% -8%; height: 120px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(59, 130, 246, .35), transparent 70%);
  filter: blur(10px); z-index: -1;
}
.hero-stats {
  position: relative; margin-top: 64px; padding: 26px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.hero-stats .stat strong {
  display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  color: #fff; letter-spacing: .02em;
}
.hero-stats .stat span { color: #8FA3C7; font-size: 14px; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-flush { padding-top: 40px; }
.section-dark {
  background: radial-gradient(900px 420px at 85% 0%, var(--navy-600), transparent 55%), var(--navy-800);
  color: #fff;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(43, 109, 226, .1); color: var(--blue-500);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: 14px;
}
.section-dark .section-tag { background: rgba(229, 192, 105, .12); color: var(--gold-400); }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 12px; letter-spacing: .01em; }
.section-head p { color: var(--ink-600); font-size: 16px; }
.section-head.light p { color: #9FB3D8; }

/* ---------- 功能卡片 ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--white); border: 1px solid #E8EDF6; border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: rgba(217, 164, 65, .45);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-600));
  color: var(--gold-400); margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px -8px rgba(14,31,61,.5);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--ink-600); font-size: 15px; }

/* ---------- 界面预览 ---------- */
.showcase-tabs {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
}
.showcase-tab {
  padding: 10px 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: transparent; color: #B9C7E2; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.showcase-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.showcase-tab.active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-color: transparent; color: #2B1D05;
}
.showcase-panel { position: relative; max-width: 920px; margin: 0 auto; }
.showcase-item { display: none; text-align: center; }
.showcase-item.active { display: block; animation: fadeUp .45s ease both; }
.showcase-item img {
  border-radius: var(--radius-lg); margin: 0 auto;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12);
  max-height: 560px; object-fit: cover;
}
.showcase-item figcaption { margin-top: 18px; color: #9FB3D8; font-size: 15px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 下载卡片 ---------- */
.dl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px;
}
.dl-card {
  background: var(--white); border: 1px solid #E8EDF6; border-radius: var(--radius-lg);
  padding: 30px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dl-icon {
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-800));
  color: #fff; box-shadow: 0 10px 24px -10px rgba(14, 31, 61, .55);
}
.dl-icon svg { width: 32px; height: 32px; }
.dl-icon-apple { background: linear-gradient(145deg, #1F2937, #000); }
.dl-icon-android { background: linear-gradient(145deg, #0E5B43, #073d2c); color: #7CF2B8; }
.dl-card h3 { font-size: 18px; font-weight: 700; }
.dl-desc { color: var(--ink-400); font-size: 13.5px; min-height: 44px; }
.dl-meta { color: var(--ink-400); font-size: 13px; }
.dl-card .btn { margin-top: 6px; }
.dl-spec {
  list-style: none; width: 100%; margin: 8px 0 4px; font-size: 13.5px;
  border-top: 1px dashed #E3E9F4; padding-top: 12px;
}
.dl-spec li { display: flex; justify-content: space-between; padding: 4px 2px; color: var(--ink-400); }
.dl-spec strong { color: var(--ink-900); font-weight: 600; }

/* ---------- 下载页页头 / 公告 ---------- */
.page-hero {
  background: radial-gradient(800px 400px at 70% 0%, var(--navy-600), transparent 60%), var(--navy-800);
  color: #fff; padding: 150px 0 60px; text-align: center;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #9FB3D8; font-size: 17px; }
.notice-bar {
  margin-top: 24px; padding: 14px 20px; border-radius: var(--radius-md);
  background: #FFF8EA; border: 1px solid #F0DCA8; color: #8A6414;
  display: flex; align-items: center; gap: 10px; font-size: 15px;
}
.dl-grid-page { margin-top: 20px; }
.dl-grid-page .dl-card { padding: 36px 28px; }

/* ---------- 更新日志 ---------- */
.changelog-list { display: flex; flex-direction: column; gap: 16px; }
.changelog-item {
  background: var(--white); border: 1px solid #E8EDF6; border-radius: var(--radius-md);
  padding: 22px 26px;
}
.changelog-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.changelog-platform {
  background: rgba(43, 109, 226, .1); color: var(--blue-500);
  font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.changelog-head strong { font-size: 17px; }
.changelog-head time { color: var(--ink-400); font-size: 13.5px; margin-left: auto; }
.changelog-notes { margin-top: 10px; color: var(--ink-600); font-size: 14.5px; }
.empty-hint { text-align: center; color: var(--ink-400); padding: 30px 0; }

/* ---------- 页脚内折叠行业介绍（默认收起，正文保留在网页中供搜索引擎收录） ---------- */
.footer-fold { margin: 0; }
.footer-fold summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 0;
  color: #7C8AA5; font-size: 13.5px;
  transition: color .2s;
}
.footer-fold summary::-webkit-details-marker { display: none; }
.footer-fold summary:hover { color: #B7C5DD; }
.footer-fold summary:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 4px; border-radius: 4px; }
.footer-fold-title { font-weight: 400; }
.footer-fold-hint { font-size: 12.5px; color: #5E6E8E; margin-left: 4px; }
.footer-fold[open] .footer-fold-hint { display: none; }
.footer-fold .intro-body { padding: 6px 0 14px; }
.footer-fold .intro-body p {
  color: #7C8AA5; font-size: 13px; line-height: 1.85; margin-bottom: 8px;
}
.footer-fold .intro-body p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.section-faq { background: var(--paper); }
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid #E8EDF6; border-radius: var(--radius-md);
  padding: 0 24px; transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 34px 20px 0;
  font-size: 16.5px; font-weight: 700; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--gold-500); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 22px; color: var(--ink-600); font-size: 15px; }

/* ---------- 结尾 CTA ---------- */
.cta-final {
  background: radial-gradient(700px 320px at 50% 0%, var(--navy-600), transparent 60%), var(--navy-900);
  color: #fff; padding: 90px 0; text-align: center;
}
.cta-inner h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: #9FB3D8; margin-bottom: 32px; font-size: 17px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: #8FA3C7; padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; color: #8FA3C7; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-text { font-size: 14px; line-height: 2; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}
.footer-links a { color: #8FA3C7; }
.footer-links a:hover { color: var(--gold-400); }
.footer-links .sep { margin: 0 10px; opacity: .4; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 200px 0 140px; }
.notfound h1 { font-size: 80px; font-weight: 800; color: var(--navy-700); }
.notfound p { color: var(--ink-600); margin: 12px 0 28px; }

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 130px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 13, 26, .97); backdrop-filter: blur(16px);
    padding: 10px 5% 24px; border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .btn-nav { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  /* 手机端 4 个卖点排成 2 行 2 列，整齐美观 */
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-desc { min-height: 0; }
}
@media (max-width: 520px) {
  /* 手机竖屏下单列显示，卡片内容不拥挤 */
  .dl-grid { grid-template-columns: 1fr; }
  .dl-desc { min-height: 0; }
}
@media (max-width: 460px) {
  .dl-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* 减弱动画偏好（无障碍） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
