/* =========================================================
   朝华 X · 创意生产力平台  —  官网正式版样式
   主色：黑 / 深灰 / 暖灰   点缀：荧光绿 / 橙 / 蓝
   风格：专业 · 高级 · 科技感 · 留白宽松 · 不密集
   内容由 data/*.json 驱动，样式集中在此文件维护
   ========================================================= */

:root {
  /* 主色 */
  --bg:            #0d0d0f;   /* 近黑背景 */
  --bg-soft:       #141417;   /* 区块背景 */
  --surface:       #1a1a1f;   /* 卡片表面 */
  --surface-2:     #212128;   /* 卡片表面（hover / 内层） */
  --border:        #2c2c33;   /* 描边 */
  --border-soft:   #232329;

  /* 文字（暖灰阶） */
  --text:          #ECEAE4;   /* 暖白主文字 */
  --text-dim:      #9b958c;   /* 暖灰次要文字 */
  --text-faint:    #6c6761;   /* 更弱的提示 */

  /* 点缀色 */
  --accent:        #b8f23d;   /* 荧光绿（主行动） */
  --accent-ink:    #0d0d0f;   /* 荧光绿上的文字 */
  --accent-orange: #ff8a3d;
  --accent-blue:   #4ea8ff;

  /* 间距节奏 —— 宽松，避免密集 */
  --gap:      24px;
  --gap-lg:   40px;
  --gap-xl:   72px;
  --radius:   14px;
  --radius-sm:10px;
  --maxw:     1180px;

  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===================== 导航 ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,15,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .5px;
}
.brand .x { color: var(--accent); }
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.brand img { height: 36px; display: block; }   /* LOGO：36px（28 × 1.3） */
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
}
.lang button {
  padding: 6px 12px;
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
}
.lang button:hover { color: var(--text); }
.lang button.active { background: var(--surface-2); color: var(--text); }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  width: 116px;
  white-space: nowrap;
  border-radius: 999px;            /* 胶囊状 */
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  background: transparent;
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c8ff5a; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-sm { padding: 7px 16px; font-size: 14px; width: 100px; }
.btn-block { width: 100%; max-width: 240px; }

/* ===================== 首屏 Hero ===================== */
.hero {
  padding: 69px 0 54px;
  background:
    radial-gradient(900px 320px at 78% -8%, rgba(184,242,61,0.10), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap-xl);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero .sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 460px;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 产品界面占位图（首屏右侧） */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.mock-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.mock-bar i:nth-child(1){ background:#ff5f57; }
.mock-bar i:nth-child(2){ background:#febc2e; }
.mock-bar i:nth-child(3){ background:#28c840; }
.mock-body {
  position: absolute; inset: 38px 0 0 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
  color: var(--text-faint);
  font-size: 14px;
}
.mock-body .ph-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--surface-2); display: grid; place-items: center;
  color: var(--accent); font-size: 26px;
}
.mock-tags { display:flex; gap:8px; flex-wrap:wrap; padding: 0 16px; justify-content: center; }
.mock-tags span {
  font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
}

/* ===================== 区块标题 ===================== */
.section { padding: var(--gap-xl) 0; }
.section-head { max-width: 680px; margin-bottom: var(--gap-lg); }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.3px; }
.section-head p { margin-top: 14px; color: var(--text-dim); font-size: 16px; }

/* 产品板块（首页 #products）外层背景：中灰，与深色首屏/页脚形成节奏对比 */
#products { background: #424242; }
#products .section-head h2 { color: var(--text); }
#products .section-head p { color: var(--text-dim); }

/* ===================== 产品横向卡片 ===================== */
.product {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--gap-lg);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 42px;
  min-height: 320px;
  margin-bottom: var(--gap);
  transition: border-color .2s ease, transform .2s ease;
}
.product:last-child { margin-bottom: 0; }
.product:hover { border-color: #3a3a44; transform: translateY(-2px); }
.product-media {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info .p-tag {
  display:inline-block; font-size: 12px; letter-spacing: 1px;
  color: var(--accent-blue); margin-bottom: 10px;
}
.product-info h3 { font-size: 22px; font-weight: 700; }
.product-info .desc { margin-top: 10px; color: var(--text-dim); font-size: 15px; max-width: 520px; }
.product-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===================== 工作流 ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step .num {
  font-size: 28px; font-weight: 800; color: var(--accent);
  letter-spacing: 1px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-top: 10px; }
.step p { margin-top: 10px; color: var(--text-dim); font-size: 14px; }

/* ===================== FAQ ===================== */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.faq-item h4 { font-size: 16px; font-weight: 700; }
.faq-item p { margin-top: 10px; color: var(--text-dim); font-size: 14px; }

/* ===================== 价格方案 ===================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent); }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan .price { font-size: 38px; font-weight: 800; margin-top: 14px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.plan .p-desc { margin-top: 10px; color: var(--text-dim); font-size: 14px; }
.plan ul { list-style: none; margin: 22px 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.plan .btn { margin-top: auto; }

/* ===================== 详情页 ===================== */
.detail-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border-soft); }
.detail-hero .back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  font-size: 14px; color: var(--text-dim);
  margin-bottom: 22px;
}
.detail-hero .back:hover { color: var(--text); }
.detail-hero h1 { font-size: 40px; font-weight: 800; }
.detail-hero .lead { margin-top: 14px; color: var(--text-dim); font-size: 18px; max-width: 620px; }
.detail-hero .target { margin-top: 12px; color: var(--text-faint); font-size: 14px; }
.detail-hero .cta { margin-top: 28px; display:flex; gap: 14px; flex-wrap: wrap; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: var(--gap-lg);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .f-no {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-2); color: var(--accent);
  display:grid; place-items:center; font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}
.feature h4 { font-size: 17px; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--text-dim); font-size: 14px; }

.detail-media {
  margin-top: var(--gap-lg);
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== 页脚 ===================== */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 48px 0 36px;
  margin-top: var(--gap-xl);
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--gap-lg); flex-wrap: wrap;
}
.footer .brand { margin-bottom: 12px; }
.footer .f-about { color: var(--text-dim); font-size: 14px; max-width: 320px; }
.footer .f-col h5 { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; font-weight: 600; }
.footer .f-col a { display:block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.footer .f-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: 13px;
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-dim); }

/* ===================== 响应式 ===================== */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .hero h1 { font-size: 38px; }
  .nav-links { display: none; }
  .product { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 45px 0 36px; }
  .hero h1 { font-size: 30px; }
  .footer-bottom { flex-direction: column; }
}
