/* 未名电子 - 安博式版式 · 深蓝 + 橙 自有配色 */
:root {
  --navy-900: #081c33;
  --navy-800: #0d2b4e;
  --navy-700: #123a66;
  --navy-100: #eaf1f8;
  --accent: #ff7a1a;
  --accent-dark: #e56500;
  --accent-soft: #fff3e8;
  --text: #1f2d3d;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-alt: #f4f7fb;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(13, 43, 78, .08);
  --shadow-lg: 0 10px 34px rgba(13, 43, 78, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text); background: #fff;
  line-height: 1.65; font-size: 15px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius); font-weight: 600;
  transition: all .18s ease; white-space: nowrap;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--navy-800); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline::after { content: ' ›'; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-lg { padding: 13px 30px; font-size: 15.5px; }
.btn-sm { padding: 7px 18px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900; background: #fff;
  border-bottom: 1px solid var(--border); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; display: block; }
.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a {
  padding: 8px 14px; font-size: 14.5px; color: var(--text); position: relative; transition: .15s;
}
.main-nav a:hover { color: var(--accent-dark); }
.main-nav a.active { color: var(--navy-800); font-weight: 600; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 3px; border-radius: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  background: transparent; color: var(--text-muted); border: 0; padding: 4px 10px; font-size: 12px;
}
.lang-switch button.active { background: var(--navy-800); color: #fff; }
.lang-switch button:hover:not(.active) { background: var(--navy-100); }
.header-cta { padding: 9px 22px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/hero-bg.png') center/cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,28,51,.94) 0%, rgba(8,28,51,.78) 55%, rgba(13,43,78,.55) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 130px 20px 150px; max-width: 800px; }
.hero h1 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.35; font-weight: 700; letter-spacing: 1px; }
html[lang^="zh"] .hero h1 { white-space: nowrap; }
.hero-desc { margin-top: 22px; font-size: 16.5px; color: #c9d8e8; max-width: 620px; }
.hero-btns { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head-text { max-width: 720px; }
.section-title {
  font-size: 34px; color: var(--navy-800); font-weight: 700;
  padding-left: 16px; position: relative; line-height: 1.3;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 5px; border-radius: 3px; background: var(--accent);
}
.section-title.light { color: #fff; }
.section-title.center { padding-left: 0; text-align: center; }
.section-title.center::before { left: 50%; transform: translateX(-50%); }
.section-desc { margin-top: 14px; color: var(--text-muted); font-size: 15px; }
.section-desc.center { text-align: center; }
.section-head .btn { flex-shrink: 0; margin-bottom: 6px; }

/* ---------- 核心业务 ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--navy-800);
}
.sol-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sol-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,28,51,.9) 0%, rgba(8,28,51,.25) 45%, transparent 70%);
  transition: .3s;
}
.sol-card:hover img { transform: scale(1.06); }
.sol-card:hover::after {
  background: linear-gradient(to top, rgba(229,101,0,.92) 0%, rgba(255,122,26,.35) 55%, transparent 80%);
}
.sol-label {
  position: absolute; left: 22px; right: 22px; bottom: 46px; z-index: 1;
  color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .5px;
}
.sol-more {
  position: absolute; left: 22px; bottom: 18px; z-index: 1;
  color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: 1px;
  transition: .2s;
}
.sol-card:hover .sol-more { color: #fff; }

/* ---------- 数字条 ---------- */
.stats-strip { background: var(--navy-900); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 42px 20px; text-align: center; position: relative;
}
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 30%; bottom: 30%;
  width: 1px; background: rgba(255,255,255,.14);
}
.stat-num { font-size: 46px; font-weight: 700; color: #fff; line-height: 1.1; }
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label { margin-top: 8px; color: #b8c7d9; font-size: 14px; letter-spacing: 1px; }

/* ---------- 未名优势 ---------- */
.advantage {
  position: relative; background: var(--navy-800); color: #fff; overflow: hidden;
}
.advantage::before {
  content: ''; position: absolute; right: -180px; top: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,26,.16) 0%, transparent 65%);
}
.advantage::after {
  content: ''; position: absolute; left: -220px; bottom: -260px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 60%);
}
.adv-layout {
  position: relative; z-index: 1; display: flex; gap: 56px; align-items: center;
  padding: 84px 20px;
}
.adv-left { flex: 1; min-width: 0; }
.adv-tagline { margin-top: 14px; color: #b8c7d9; font-size: 15px; }
.adv-tabs { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.adv-tab {
  text-align: left; background: transparent; border: 0; color: #c9d8e8;
  padding: 15px 18px; font-size: 17px; font-weight: 600;
  border-left: 3px solid rgba(255,255,255,.18); transition: .2s;
}
.adv-tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.adv-tab.active {
  color: #fff; font-size: 19px; background: rgba(255,255,255,.07);
  border-left-color: var(--accent);
}
.adv-tab.active::after { content: ' ›'; color: var(--accent); }
.adv-tab-desc {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  color: #b8c7d9; font-size: 13.5px; font-weight: 400; line-height: 1.7;
}
.adv-tab.active .adv-tab-desc { max-height: 120px; margin-top: 8px; }
.adv-right { flex-shrink: 0; }
.adv-right img { width: 460px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); }

/* ---------- 行业版图 ---------- */
.ind-layout { display: flex; gap: 48px; align-items: stretch; }
.ind-img-wrap { flex-shrink: 0; }
.ind-img-wrap img { width: 470px; height: 100%; object-fit: cover; border-radius: var(--radius); }
.ind-tabs { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ind-tab {
  text-align: left; background: var(--bg-alt); border: 0; color: var(--text);
  padding: 16px 22px; font-size: 15.5px; font-weight: 600;
  border-left: 3px solid var(--border); transition: .2s;
}
.ind-tab:hover { color: var(--accent-dark); background: var(--accent-soft); }
.ind-tab.active {
  background: var(--accent); color: #fff; border-left-color: var(--accent-dark);
  padding-left: 28px;
}
.ind-tab.active::after { content: ' ›'; }

/* ---------- CTA 横幅 ---------- */
.cta-banner { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 64px 20px; flex-wrap: wrap; }
.cta-text h2 { font-size: 30px; letter-spacing: 1px; }
.cta-text p { margin-top: 10px; color: #b8c7d9; }

/* ---------- Footer ---------- */
.site-footer { background: #f5f7fa; border-top: 1px solid var(--border); text-align: center; }
.footer-inner { padding: 52px 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-info { font-size: 13.5px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-info .divider { color: var(--border); }
.footer-icons { display: flex; gap: 14px; }
.footer-icons a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.footer-icons a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.copyright { font-size: 12.5px; color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: 13.5px; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-right img { width: 380px; }
  .ind-img-wrap img { width: 380px; }
}
@media (max-width: 920px) {
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; z-index: 890;
    background: #fff; flex-direction: column; padding: 10px 20px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .main-nav a.active::after { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .adv-layout { flex-direction: column; gap: 36px; }
  .adv-right img { width: 100%; }
  .ind-layout { flex-direction: column; }
  .ind-img-wrap img { width: 100%; height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .section { padding: 60px 0; }
  .hero-inner { padding: 90px 20px 100px; }
}
@media (max-width: 560px) {
  .sol-grid { grid-template-columns: 1fr; }
  .hero h1 { white-space: normal; }
  .hero-btns .btn { width: 100%; }
  .section-title { font-size: 26px; }
  .stat-num { font-size: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 12px; }
  .cta-inner { padding: 44px 20px; }
  .cta-text h2 { font-size: 23px; }
}
