/* ============================================================
   新疆昊桦能源有限公司 · 企业官网样式
   主题：深邃工业商务风 · 近黑墨蓝 + 金属铜金
   ============================================================ */

:root {
  --bg: #0a0f1c;          /* 主背景：近黑墨蓝 */
  --bg-2: #0d1424;        /* 次级区块背景 */
  --bg-3: #070b14;        /* 最深（数据带/页脚） */
  --panel: rgba(255,255,255,.035);   /* 卡片玻璃底 */
  --panel-h: rgba(201,162,75,.06);
  --gold: #c9a24b;        /* 铜金主色 */
  --gold-2: #e3c07d;      /* 亮金 */
  --gold-3: #a8842f;      /* 暗金 */
  --gold-soft: rgba(201,162,75,.14);
  --gold-line: rgba(201,162,75,.30);
  --ink: #eaf0f8;         /* 主文字 */
  --ink-2: #aab6c8;       /* 次文字 */
  --ink-3: #6f7e94;       /* 弱文字 */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.12);
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(0,0,0,.45);
  --shadow-gold: 0 16px 46px rgba(201,162,75,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .2px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,28,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand .logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  display: grid; place-items: center; color: #1a1305; font-size: 19px; font-weight: 900;
  box-shadow: 0 4px 14px rgba(201,162,75,.35);
}
.brand small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-3); letter-spacing: 2px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; }
.nav-links a { color: var(--ink-2); position: relative; padding: 8px 0; transition: color .25s var(--ease); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .5px;
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  cursor: pointer; border: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #1a1305;
  box-shadow: 0 8px 24px rgba(201,162,75,.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(201,162,75,.45); }
.btn-ghost { border: 1.5px solid var(--gold); color: var(--gold-2); background: transparent; }
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 460px at 82% -12%, rgba(201,162,75,.16), transparent 60%),
    radial-gradient(620px 420px at 10% 110%, rgba(40,70,120,.25), transparent 60%),
    linear-gradient(155deg, #0b1322 0%, #0a0f1c 60%);
  padding: 110px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,75,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,75,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(760px 420px at 72% 28%, #000, transparent);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: 52px; line-height: 1.16; color: var(--ink); letter-spacing: -.5px; font-weight: 800;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero p.lead { margin: 22px 0 34px; font-size: 17px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  background: linear-gradient(155deg, rgba(201,162,75,.10), rgba(10,15,28,.4));
  border: 1px solid var(--gold-line); border-radius: 22px; min-height: 340px;
  box-shadow: var(--shadow-gold); display: grid; place-items: center; text-align: center; padding: 34px;
  position: relative; overflow: hidden;
}
.hero-visual .ring {
  position: absolute; border: 1.5px dashed rgba(201,162,75,.35); border-radius: 50%;
  animation: spin 26s linear infinite;
}
.hero-visual .r1 { width: 280px; height: 280px; }
.hero-visual .r2 { width: 184px; height: 184px; animation-direction: reverse; border-style: solid; border-color: rgba(201,162,75,.18); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual .stat { position: relative; z-index: 1; }
.hero-visual .stat b { display: block; font-size: 44px; background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-visual .stat span { font-size: 14px; color: var(--ink-2); letter-spacing: 1px; }

/* ---------- 区块标题 ---------- */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.sec-head .eyebrow {
  color: var(--gold); font-weight: 700; letter-spacing: 4px; font-size: 12px; text-transform: uppercase;
  display: inline-block; position: relative; padding-bottom: 10px;
}
.sec-head .eyebrow::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 46px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sec-head h2 { font-size: 34px; color: var(--ink); margin: 16px 0 14px; font-weight: 800; letter-spacing: -.3px; }
.sec-head p { color: var(--ink-2); font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); transition: width .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-gold); border-color: var(--gold-line); background: var(--panel-h); }
.card:hover::before { width: 100%; }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-2); margin-bottom: 20px;
  border: 1px solid var(--gold-line);
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.card p { color: var(--ink-2); font-size: 15px; }

/* ---------- 数据带 ---------- */
.stats { background: var(--bg-3); color: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .grid-4 { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats .num {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text;
  background-clip: text; color: transparent; letter-spacing: .5px;
}
.stats .lbl { color: var(--ink-2); font-size: 14px; margin-top: 6px; letter-spacing: .5px; }

/* ---------- 列表 / 时间线 ---------- */
.timeline { max-width: 860px; margin: 0 auto; }
.tl-item { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px dashed var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-date { flex: 0 0 120px; color: var(--gold); font-weight: 700; font-size: 14px; padding-top: 2px; letter-spacing: 1px; }
.tl-body h3 { font-size: 18px; color: var(--ink); margin-bottom: 7px; }
.tl-body p { color: var(--ink-2); font-size: 15px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-grid .pic {
  background:
    radial-gradient(circle at 30% 20%, rgba(201,162,75,.25), transparent 55%),
    linear-gradient(155deg, #0e1830, #0a0f1c);
  border: 1px solid var(--gold-line); border-radius: 20px; min-height: 380px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.about-grid .pic::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,162,75,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,75,.07) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.about-grid h2 { font-size: 31px; color: var(--ink); margin-bottom: 18px; font-weight: 800; }
.about-grid p { color: var(--ink-2); margin-bottom: 18px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ink); }
.feature-list li::before {
  content: "✓"; color: var(--gold-2); font-weight: 800; flex: 0 0 24px; height: 24px; width: 24px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; margin-top: 2px;
}

/* ---------- 表单 ---------- */
.form-card {
  max-width: 740px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 11px;
  font-size: 15px; font-family: inherit; transition: border-color .2s, background .2s;
  background: rgba(255,255,255,.04); color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: rgba(201,162,75,.05); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.form-ok { display: none; background: rgba(201,162,75,.10); color: var(--gold-2); border: 1px solid var(--gold-line); padding: 14px 16px; border-radius: 11px; margin-bottom: 18px; }

/* ---------- 联系方式块 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-item .ico {
  flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2);
  display: grid; place-items: center; font-size: 20px; border: 1px solid var(--gold-line);
}
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.info-item p { color: var(--ink-2); font-size: 15px; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background:
    radial-gradient(600px 240px at 50% -40%, rgba(201,162,75,.22), transparent 60%),
    linear-gradient(135deg, #0e1830, #0a0f1c);
  border: 1px solid var(--gold-line); color: var(--ink); border-radius: 20px;
  padding: 60px 44px; text-align: center; box-shadow: var(--shadow-gold);
}
.cta-banner h2 { font-size: 31px; margin-bottom: 14px; color: var(--ink); }
.cta-banner p { color: var(--ink-2); margin-bottom: 28px; font-size: 16px; }
.cta-banner .btn-ghost { border-color: var(--gold); color: var(--gold-2); }
.cta-banner .btn-ghost:hover { background: var(--gold-soft); }

/* ---------- 页脚（含备案号） ---------- */
.site-footer { background: var(--bg-3); color: var(--ink-2); padding: 60px 0 28px; font-size: 14px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.footer-top .brand { color: #fff; margin-bottom: 16px; }
.footer-top p { color: var(--ink-3); margin-bottom: 9px; }
.footer-col h4 { color: var(--gold-2); font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--ink-3); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.beian-links { grid-column: 1 / -1; margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.beian-links a { color: var(--ink-3); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 7px; transition: color .2s, border-color .2s; }
.beian-links a:hover { color: var(--gold-2); border-color: var(--gold-line); }
.beian-links img { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.footer-bottom { text-align: center; color: var(--ink-3); font-size: 13px; padding-top: 20px; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #1a1305; border: 0; cursor: pointer; font-size: 20px;
  box-shadow: 0 10px 28px rgba(201,162,75,.40); opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,15,28,.97); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links.open { max-height: 380px; }
  .nav-links a { padding: 15px 28px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .sec-head h2 { font-size: 27px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .tl-item { flex-direction: column; gap: 4px; }
}
