/* ============================================================
   云南伟乾科技 · Blackmagic Design 授权经销展示站
   商务稳重风格 · 暗色专业版 (v2)
   ============================================================ */

:root {
  --bg:        #0d0e11;
  --bg-2:      #121317;
  --panel:     #16181d;
  --panel-2:   #1c1f25;
  --line:      #2a2d34;
  --line-2:    #353941;
  --red:       #ED1C24;
  --red-dk:    #c0141b;
  --text:      #e9eaed;
  --muted:     #9aa0a8;
  --muted-2:   #6b7178;
  --maxw:      1180px;
  --radius:    10px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --font:      "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei",
               "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,14,17,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-weight: 800; color: var(--red); font-size: 20px; line-height: 1;
  letter-spacing: -1px;
}
.brand-text { font-weight: 700; font-size: 18px; letter-spacing: .3px; color: #fff; }
.brand-text em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 5px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 15px; font-size: 15px; color: var(--muted);
  border-radius: 7px; transition: .18s;
}
.main-nav a:hover { color: #fff; background: var(--panel); }
.main-nav a.active { color: #fff; background: var(--panel-2); }
.nav-cta { background: var(--red) !important; color: #fff !important; font-weight: 600; }
.nav-cta:hover { background: var(--red-dk) !important; }
.nav-toggle {
  display: none; background: var(--panel); border: 1px solid var(--line);
  color: #fff; font-size: 19px; width: 42px; height: 38px; border-radius: 8px; cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 76vh; display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,15,.94) 0%, rgba(11,12,15,.78) 42%, rgba(11,12,15,.30) 100%),
    linear-gradient(0deg, rgba(11,12,15,.85), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 660px; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #fff; background: rgba(237,28,36,.9); padding: 5px 12px; border-radius: 4px;
  margin-bottom: 20px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; margin: 0 0 18px;
  font-weight: 800; letter-spacing: .3px;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead { font-size: 17px; color: #c7cacf; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border-radius: 8px; font-weight: 600; font-size: 15px; transition: .18s; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dk); }
.btn-ghost { border: 1px solid var(--line-2); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.05); }

/* ---------------- Sections ---------------- */
section { padding: 64px 0; }
.section-head { margin-bottom: 34px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 12px; background: transparent; color: var(--red); padding: 0; letter-spacing: 2px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 10px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

/* image card */
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { height: 158px; overflow: hidden; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .en { color: var(--red); font-size: 12px; letter-spacing: 1.2px; font-weight: 600; text-transform: uppercase; }
.card h3 { margin: 6px 0 8px; font-size: 18px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; flex: 1; }
.card .more { color: #fff; font-weight: 600; font-size: 14px; }
.card .more:hover { color: var(--red); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat {
  text-align: center; padding: 26px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel);
}
.stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.stat .num span { color: var(--red); }
.stat .lbl { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.callout {
  border-radius: var(--radius); padding: 38px 42px;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.callout h2 { margin: 0 0 6px; font-size: 24px; }
.callout p { margin: 0; color: var(--muted); }

/* ---------------- About ---------------- */
.about-hero { padding: 0; position: relative; min-height: 52vh; display: flex; align-items: center; overflow: hidden; }
.about-hero .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,15,.93), rgba(11,12,15,.55)); }
.about-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 40px; }
.about-hero h1 { font-size: clamp(30px,4vw,48px); font-weight: 800; margin: 0 0 14px; }
.about-hero p { color: #c7cacf; font-size: 17px; max-width: 680px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); color: #e3e5e8; padding: 8px 15px;
  border-radius: 30px; font-size: 13.5px; font-weight: 500; background: rgba(255,255,255,.03);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.timeline { border-left: 2px solid var(--line); padding-left: 24px; margin-left: 4px; }
.timeline .item { position: relative; padding: 0 0 26px; }
.timeline .item::before {
  content: ""; position: absolute; left: -31px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--red);
}
.timeline h4 { margin: 0 0 3px; font-size: 16.5px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.info-card, .form-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.info-card h3, .form-card h3 { margin: 0 0 16px; font-size: 19px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; }
.info-row .ic {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px;
  display: grid; place-items: center; background: var(--panel-2); color: var(--red); font-size: 17px;
}
.info-row .k { color: var(--muted); font-size: 12.5px; }
.info-row .v { color: #fff; font-size: 15.5px; font-weight: 600; }
.form-card label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: 11px 13px; margin-bottom: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
  color: #fff; font-family: inherit; font-size: 14.5px;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: none; border-color: var(--red); }
.form-card textarea { min-height: 100px; resize: vertical; }
.note { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------------- Media ---------------- */
.media-card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: .2s;
}
.media-card:hover { border-color: var(--red); transform: translateY(-3px); }
.media-card .tag {
  display: inline-block; font-size: 11.5px; letter-spacing: 1px; color: var(--red);
  border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.media-card h3 { margin: 0 0 8px; font-size: 19px; }
.media-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.media-card .go { color: #fff; font-weight: 600; font-size: 14px; }
.media-card .go:hover { color: var(--red); }
.cached-note {
  border: 1px solid var(--line-2); background: rgba(237,28,36,.05);
  border-radius: 10px; padding: 15px 18px; margin-bottom: 28px;
  color: #d7d9dc; font-size: 14px;
}
.cached-note b { color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 36px; border-top: 1px solid var(--line); background: #0a0b0d; padding: 50px 0 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand .brand-text { font-size: 19px; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-cols h4 { font-size: 13px; margin: 0 0 12px; color: #fff; letter-spacing: 1px; }
.footer-cols a { display: block; color: var(--muted); font-size: 13.5px; padding: 4px 0; transition: .18s; }
.footer-cols a:hover { color: var(--red); }
.footer-bottom { max-width: var(--maxw); margin: 28px auto 0; padding: 18px 22px 0; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12.5px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #0a0b0d; border-bottom: 1px solid var(--line); padding: 10px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .callout { padding: 28px; }
}
