/* ============================================================
   [企业名称] 企业品牌官网 — 样式表
   风格：商务专业（深蓝 + 金色点缀，克制留白）
   ============================================================ */

:root {
  --c-navy:      #0f2138;   /* 主色 深蓝 */
  --c-navy-2:    #16314f;
  --c-blue:      #1f5fae;   /* 强调蓝 */
  --c-gold:      #c8a24a;   /* 点缀金 */
  --c-ink:       #1c2530;   /* 正文 */
  --c-gray:      #5b6675;   /* 次要文字 */
  --c-line:      #e3e8ef;   /* 分割线 */
  --c-bg:        #ffffff;
  --c-bg-alt:    #f5f7fa;   /* 浅灰背景 */
  --c-bg-dark:   #0c1b2e;   /* 深色区块 */

  --shadow-sm: 0 2px 8px rgba(15, 33, 56, .06);
  --shadow-md: 0 12px 32px rgba(15, 33, 56, .10);

  --radius:   12px;
  --radius-sm: 8px;
  --max-width: 1180px;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all .25s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-gold); color: #2a2008; }
.btn-primary:hover { background: #b8913c; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--c-blue); border-color: var(--c-blue); }
.btn-outline:hover { background: var(--c-blue); color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 27, 46, .0);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.site-header.scrolled .brand { color: var(--c-navy); }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--c-gold); color: #2a2008; border-radius: 8px; font-size: 12px; font-weight: 800;
}
.brand-name { font-size: 18px; letter-spacing: .5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500; position: relative; }
.site-header.scrolled .nav-links a { color: var(--c-gray); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--c-gold); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--c-navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(31,95,174,.45), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(200,162,74,.18), transparent 55%),
    linear-gradient(135deg, var(--c-navy) 0%, var(--c-bg-dark) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 24px 80px; max-width: 880px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; font-size: 13px; letter-spacing: 1px; color: var(--c-gold); margin-bottom: 22px;
}
.hero-title { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.15; font-weight: 800; letter-spacing: .5px; }
.hero-subtitle { margin-top: 22px; font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.82); max-width: 620px; }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 40px;
  margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.15);
}
.stat-num { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--c-gold); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow { color: var(--c-gold); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-eyebrow.light { color: var(--c-gold); }
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: var(--c-navy); margin: 12px 0; line-height: 1.25; }
.section-title.light { color: #fff; }
.section-lead { color: var(--c-gray); font-size: 16px; }
.section-lead.center { text-align: center; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media-inner {
  aspect-ratio: 4/3; border-radius: var(--radius); background:
    linear-gradient(135deg, var(--c-navy), var(--c-blue));
  display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: 15px; letter-spacing: 1px;
  box-shadow: var(--shadow-md);
}
.about-content .section-title { text-align: left; }
.about-list { margin: 26px 0; display: grid; gap: 14px; }
.about-list li { padding-left: 18px; position: relative; color: var(--c-ink); }
.about-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--c-gold); border-radius: 50%; }
.about-list strong { color: var(--c-navy); margin-right: 6px; }

/* ---------- 核心业务卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  background: var(--c-bg-alt); color: var(--c-blue); border-radius: 12px; font-weight: 800; font-size: 18px;
  border: 1px solid var(--c-line);
}
.card h3 { font-size: 19px; color: var(--c-navy); margin-bottom: 10px; }
.card p { color: var(--c-gray); font-size: 15px; }

/* ---------- 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.adv-item { padding: 28px; border-left: 3px solid var(--c-gold); background: var(--c-bg-alt); border-radius: var(--radius-sm); }
.adv-item h3 { color: var(--c-navy); font-size: 20px; margin-bottom: 8px; }
.adv-item p { color: var(--c-gray); }

/* ---------- 客户案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; transition: box-shadow .25s ease; }
.case:hover { box-shadow: var(--shadow-md); }
.case-logo {
  height: 96px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--c-bg-alt); color: var(--c-gray); font-weight: 700; margin-bottom: 18px; border: 1px dashed var(--c-line);
}
.case h3 { color: var(--c-navy); font-size: 18px; margin-bottom: 8px; }
.case p { color: var(--c-gray); font-size: 15px; }

/* ---------- 新闻动态 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-date { color: var(--c-gold); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.news-item h3 { color: var(--c-navy); font-size: 18px; margin: 10px 0; line-height: 1.4; }
.news-item p { color: var(--c-gray); font-size: 15px; }
.news-link { display: inline-block; margin-top: 14px; color: var(--c-blue); font-weight: 600; font-size: 14px; }
.news-link:hover { color: var(--c-gold); }

/* ---------- 联系我们 ---------- */
.section-contact { background: linear-gradient(135deg, var(--c-navy), var(--c-bg-dark)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info .section-title, .contact-info .section-lead { text-align: left; }
.contact-list { margin-top: 28px; display: grid; gap: 16px; }
.contact-list li { padding-left: 0; color: rgba(255,255,255,.85); }
.contact-list span { display: block; color: var(--c-gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 2px; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--c-navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--c-ink); background: var(--c-bg-alt); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-blue); background: #fff; }
.field textarea { resize: vertical; }
.form-hint { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-hint.ok { color: #1a7f4b; }
.form-hint.err { color: #c0392b; }

/* ---------- 页脚 ---------- */
.site-footer { background: #08131f; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: var(--c-gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ---------- 滚动进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: 12px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s ease; border-top: 1px solid var(--c-line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--c-ink); padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .case-grid, .news-grid, .adv-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
