/* ERSO 企业网站 - 全站样式（深色科技风，与配图同源） */
:root {
  --bg: #0B1220;
  --panel: #121C33;
  --panel2: #16233F;
  --line: rgba(59, 130, 246, 0.22);
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --text: #F1F5F9;
  --sub: #94A3B8;
  --dim: #64748B;
  --grad: linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: #D6EADB;
  backdrop-filter: none;
  border-bottom: 1px solid #B9D8BE;
}
.topbar .inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-chip {
  background: none; border: none; padding: 0;
  display: flex; align-items: center;
}
.brand .logo-chip img { height: 48px; width: auto; }
.brand .name { font-size: 18px; font-weight: bold; letter-spacing: 0.5px; color: #1A2E22; }
.brand .name em { font-style: normal; color: #15803D; }
nav.mainnav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav.mainnav a {
  color: #33513D; padding: 8px 14px; border-radius: 6px;
  font-size: 15px; transition: all 0.2s;
}
nav.mainnav a:hover { color: #14532D; background: rgba(21, 128, 61, 0.12); text-decoration: none; }
nav.mainnav a.active { color: #14532D; background: rgba(21, 128, 61, 0.16); box-shadow: inset 0 -2px 0 #15803D; }
nav.mainnav a.cta {
  background: var(--grad); color: #fff; font-weight: bold; margin-left: 8px;
}
nav.mainnav a.cta:hover { opacity: 0.88; }
.nav-toggle {
  display: none; margin-left: auto; background: #fff; color: #1A2E22;
  border: 1px solid #B9D8BE; border-radius: 6px; font-size: 20px;
  padding: 6px 14px; cursor: pointer;
}

/* ===== 首屏 Hero ===== */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(ellipse 800px 400px at 80% -10%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 700px 380px at 10% 110%, rgba(59, 130, 246, 0.14), transparent),
    var(--bg);
}
.hero .kicker {
  display: inline-block; font-size: 14px; color: var(--cyan);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
  margin-bottom: 20px; letter-spacing: 2px;
}
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .h1sub {
  font-size: 18px; line-height: 1.85; color: var(--text);
  max-width: 900px; margin: 0 0 18px; font-weight: normal;
}
.hero p.lead { font-size: 19px; color: var(--sub); max-width: 860px; }
.hero .actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 8px;
  font-size: 16px; font-weight: bold; cursor: pointer; border: none;
  transition: all 0.2s;
}
.btn.primary { background: var(--grad); color: #fff; }
.btn.primary:hover { opacity: 0.88; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); }
.btn.ghost:hover { background: rgba(34, 211, 238, 0.08); text-decoration: none; }

/* ===== 通用区块 ===== */
section.block { padding: 64px 0; }
section.block.alt { background: var(--panel); }
.sec-head { margin-bottom: 36px; }
.sec-head .bar {
  width: 46px; height: 5px; background: var(--grad); border-radius: 3px; margin-bottom: 14px;
}
.sec-head h2 { font-size: 32px; margin-bottom: 8px; }
.sec-head p { color: var(--sub); font-size: 17px; }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.card h3 { font-size: 20px; margin-bottom: 10px; color: #fff; }
.card p { color: var(--sub); font-size: 15px; }
.card .num {
  font-size: 14px; color: var(--cyan); font-weight: bold; letter-spacing: 1px;
  display: block; margin-bottom: 8px;
}

/* 数据条 */
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.stats .item { flex: 1; min-width: 180px; text-align: center; }
.stats .val {
  font-size: 40px; font-weight: bold;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .lbl { color: var(--sub); font-size: 14px; margin-top: 4px; }

/* ===== About 页：简介 / 发展历程 / 企业文化 / CTA ===== */
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.intro-cols p { color: var(--sub); font-size: 16.5px; line-height: 1.9; }
.intro-cols p + p { margin-top: 16px; }
.intro-cols .hl { color: var(--cyan); font-weight: bold; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: 0.5;
}
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}
.tl-year {
  font-size: 20px; font-weight: bold; letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tl-item h3 { font-size: 18px; color: #fff; margin: 6px 0 6px; }
.tl-item p { color: var(--sub); font-size: 15px; line-height: 1.75; }

.cta-band {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 16px;
  padding: 44px 40px; text-align: center;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: var(--sub); font-size: 16.5px; max-width: 720px; margin: 0 auto 26px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.note { color: var(--muted, #64748B); font-size: 13px; margin-top: 18px; }

/* ===== 产品与服务 ===== */
.prod-card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.4); }
.prod-card .pic { aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--panel); }
.prod-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.prod-card h3 { font-size: 20px; margin-bottom: 10px; }
.prod-card h3 .idx { color: var(--cyan); margin-right: 8px; }
.prod-card p { color: var(--sub); font-size: 15px; flex: 1; }
.prod-card .more {
  margin-top: 18px; align-self: flex-start;
  color: var(--cyan); font-weight: bold; font-size: 15px;
}
.prod-card .more::after { content: " →"; }

/* ===== 详细方案页 ===== */
.sol-section {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 14px;
  padding: 36px 40px; margin-bottom: 32px; scroll-margin-top: 90px;
}
.sol-section .tag {
  display: inline-block; font-size: 13px; color: var(--cyan);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; margin-bottom: 12px;
}
.sol-section h2 { font-size: 26px; margin-bottom: 6px; }
.sol-section .brief { color: var(--cyan); font-size: 16px; margin-bottom: 18px; font-weight: bold; }
.sol-section .detail { color: var(--sub); font-size: 16px; }
.sol-section .detail h4 { color: #fff; font-size: 17px; margin: 18px 0 8px; }
.sol-section .detail ul { margin: 8px 0 8px 22px; }
.sol-section .detail li { margin-bottom: 6px; }
.sol-section .pic { margin: 20px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
/* ★ 2026-10-16：详情图按容器宽等比缩放，配合 img 的 width/height 属性预留空间 ⇒ 图片加载不再改变版面高度（锚点定位不再跑偏） */
.sol-section .pic img { width: 100%; height: auto; display: block; }
.sol-contact {
  margin-top: 22px; padding: 16px 20px; border-radius: 10px;
  background: rgba(59, 130, 246, 0.08); border: 1px dashed var(--line);
  font-size: 15px; color: var(--sub);
}
.sol-contact b { color: var(--cyan); }
.sol-nav {
  position: sticky; top: 74px; z-index: 50;
  background: rgba(18, 28, 51, 0.95); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.sol-nav a {
  font-size: 13.5px; color: var(--sub); padding: 5px 12px; border-radius: 6px;
}
.sol-nav a:hover { background: var(--panel2); color: var(--cyan); text-decoration: none; }

/* ===== 新闻 ===== */
.news-item {
  display: flex; gap: 22px; background: var(--panel2);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  margin-bottom: 22px; cursor: pointer; transition: transform 0.2s;
}
.news-item:hover { transform: translateY(-3px); }
.news-item .pic { width: 240px; min-height: 160px; flex-shrink: 0; }
.news-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.news-item .body { padding: 18px 22px; flex: 1; }
.news-item h3 { font-size: 19px; margin-bottom: 8px; }
.news-item .meta { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.news-item .meta .src { color: var(--cyan); }
.news-item p { color: var(--sub); font-size: 14.5px; }
.badge {
  display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--cyan); margin-right: 8px;
}
.badge.reprint { color: #F59E0B; border-color: rgba(245, 158, 11, 0.4); }
.news-detail {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 14px;
  padding: 36px 40px;
}
.news-detail h2 { font-size: 26px; margin-bottom: 10px; }
.news-detail .meta { color: var(--dim); font-size: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.news-detail .content { color: var(--sub); font-size: 16px; white-space: pre-wrap; }
.news-detail .content p { margin-bottom: 14px; }

/* ===== 联系页 ===== */
.contact-hero { text-align: center; padding: 20px 0 10px; }
.qr-panel {
  display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 16px;
  padding: 44px 40px; margin-top: 30px;
}
.qr-panel .qr {
  background: #fff; padding: 14px; border-radius: 14px; width: 230px; flex-shrink: 0;
}
.qr-panel .qr img { width: 100%; }
.qr-panel .info { max-width: 560px; text-align: left; }
.qr-panel .info h3 { font-size: 22px; margin-bottom: 14px; }
.qr-panel .info p { color: var(--sub); margin-bottom: 10px; }
.qr-panel .info .link-box {
  margin-top: 16px; padding: 12px 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; word-break: break-all;
  font-size: 14px;
}
.contact-cards { margin-top: 36px; }

/* ===== 后台管理 ===== */
.admin-wrap { max-width: 960px; margin: 40px auto; padding: 0 24px; }
.login-box {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 14px;
  padding: 44px; max-width: 460px; margin: 60px auto; text-align: center;
}
.login-box input {
  width: 100%; padding: 12px 16px; margin: 18px 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: 16px;
}
.admin-panel { display: none; }
.admin-panel .tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-panel .tabs button {
  padding: 10px 22px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--sub); font-size: 15px; cursor: pointer;
}
.admin-panel .tabs button.on { background: var(--grad); color: #fff; border: none; font-weight: bold; }
.form-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.form-card label { display: block; font-size: 14px; color: var(--sub); margin: 14px 0 6px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: 10px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; color: var(--text);
  font-size: 15px; font-family: inherit;
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card .row { display: flex; gap: 40px; }
.admin-list .entry {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px;
}
.admin-list .entry .t { flex: 1; }
.admin-list .entry .t b { font-size: 15px; }
.admin-list .entry .t span { display: block; font-size: 13px; color: var(--dim); }
.admin-list .entry button {
  padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(239,68,68,0.5);
  background: transparent; color: #F87171; cursor: pointer; font-size: 13px;
}
.hint-ok { color: #34D399; font-size: 14px; margin-top: 12px; min-height: 20px; }

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  background: var(--panel); padding: 36px 0 28px;
}
footer .cols { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 24px; }
footer .col h4 { font-size: 15px; margin-bottom: 12px; color: #fff; }
footer .col a { display: block; color: var(--dim); font-size: 14px; padding: 3px 0; }
footer .copyright {
  border-top: 1px solid var(--line); padding-top: 18px;
  color: var(--dim); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* 响应式 */
@media (max-width: 900px) {
  .grid.c3 { grid-template-columns: 1fr; }
  .grid.c2 { grid-template-columns: 1fr; }
  .intro-cols { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 32px; }
  nav.mainnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #DFF3E3; flex-direction: column; padding: 12px 20px;
    border-bottom: 1px solid #B9D8BE; align-items: stretch;
  }
  nav.mainnav.open { display: flex; }
  .nav-toggle { display: block; }
  .news-item { flex-direction: column; }
  .news-item .pic { width: 100%; height: 180px; }
  .sol-section { padding: 26px 22px; }
  .sol-nav { position: static; }
}


/* ===== 首页案例区块（AI原生制造企业） ===== */
.case-summary, .case-pit {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 26px;
}
.case-pit { border-left-color: #e0a23c; }
.case-summary h3, .case-pit h3, .case-analysis h3 {
  font-size: 19px; margin-bottom: 12px; color: #fff;
}
.case-summary ul, .case-pit ul {
  list-style: none; padding: 0; margin: 0;
}
.case-summary li, .case-pit li {
  position: relative; padding-left: 20px;
  color: var(--sub); font-size: 15.5px; line-height: 1.9;
}
.case-summary li::before, .case-pit li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
}
.case-pit li::before { background: #e0a23c; }
.case-summary b, .case-pit b { color: #fff; font-weight: 600; }
.case-parts { margin-bottom: 26px; }
.case-parts .card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.case-parts .card li {
  position: relative; padding-left: 18px;
  color: var(--sub); font-size: 14.5px; line-height: 1.85;
  margin-bottom: 8px;
}
.case-parts .card li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.case-parts .card b { color: #fff; font-weight: 600; }
.case-analysis {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px 26px;
}
.case-analysis ol {
  margin: 0; padding-left: 22px;
}
.case-analysis li {
  color: var(--sub); font-size: 15.5px; line-height: 1.9;
  margin-bottom: 8px; padding-left: 4px;
}
.case-analysis li::marker {
  color: var(--blue); font-weight: 700;
}
@media (max-width: 860px) {
  .case-summary, .case-pit, .case-analysis { padding: 18px; }
}

.case-ico { margin-right: 8px; font-size: 20px; vertical-align: -2px; }

.copyright a { color: var(--sub); margin-left: 10px; }
.copyright a:hover { color: var(--cyan); }
