/* =========================================================
   亚星 · AI 算力官网 全局样式
   主题：深海军蓝 + 青蓝科技强调色，克制专业
   ========================================================= */
:root {
  --ink: #0c1e2e;          /* 深海军蓝（页面基底） */
  --ink-2: #133246;        /* 次深蓝 */
  --ink-3: #1c3f56;        /* 更深一层的模块底 */
  --cyan: #21b8cf;         /* 青蓝强调色 */
  --cyan-soft: #dff3f6;    /* 青蓝浅底 */
  --bg: #f5f7f8;           /* 内容区浅灰蓝底 */
  --card: #ffffff;
  --text: #2b3a45;         /* 正文主色 */
  --muted: #66757f;        /* 次级文字 */
  --line: #e3e9ed;         /* 分隔线 */
  --amber: #d08b3a;        /* 少量暖色点缀（资质/徽章） */
  --shadow: 0 1px 2px rgba(12,30,46,.06), 0 6px 18px rgba(12,30,46,.06);
  --radius: 10px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
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 22px; }

/* ============ 顶部导航 ============ */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), #0f9bb8);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
}
.brand-name { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: #9fb2c0; letter-spacing: .12em; margin-top: -2px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: #c6d3dd; font-size: 15px; padding: 8px 13px; border-radius: 6px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; background: var(--cyan); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 6px; color: #fff;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ============ 通用按钮 ============ */
.btn {
  display: inline-block; padding: 11px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .18s;
}
.btn-cyan { background: var(--cyan); color: #06303a; }
.btn-cyan:hover { background: #1aaec6; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(33,184,207,.35); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-ghost { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-ghost:hover { background: var(--cyan-soft); }

/* ============ Hero ============ */
.hero {
  background: var(--ink);
  background-image: linear-gradient(180deg, rgba(12,30,46,.82), rgba(12,30,46,.9)), url("../pic/hero.jpg");
  background-size: cover; background-position: center;
  color: #fff; padding: 88px 0 96px; position: relative; overflow: hidden;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .16em; color: var(--cyan);
  border: 1px solid rgba(33,184,207,.4); padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.2; font-weight: 800; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.lead { font-size: 17px; color: #d3dee6; max-width: 680px; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 54px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 30px;
}
.stat b { font-size: clamp(24px, 3.4vw, 34px); color: #fff; font-weight: 800; }
.stat b i { font-style: normal; color: var(--cyan); }
.stat span { font-size: 13px; color: #9fb2c0; display: block; margin-top: 4px; }

/* ============ 区块通用 ============ */
.section { padding: 70px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow { font-size: 13px; color: var(--cyan); letter-spacing: .14em; font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); line-height: 1.25; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ============ 卡片栅格 ============ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe6eb; }
.card .ico {
  width: 46px; height: 46px; border-radius: 10px; background: var(--cyan-soft); color: #0e8fa6;
  display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--cyan); font-weight: 600; }

/* ============ 图文板块 ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.rev .split-img { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 340px; object-fit: cover; }
.split-text h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); line-height: 1.3; margin-bottom: 16px; }
.split-text p { color: var(--muted); margin-bottom: 12px; }
.feature-list { margin-top: 16px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 15px; color: var(--text); }
.feature-list li::before { content: ""; flex: 0 0 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--cyan); opacity: .85; }

/* ============ 数字/指标区 ============ */
.blue-band { background: var(--ink); color: #fff; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.metric-row .metric b { font-size: clamp(26px, 3.6vw, 40px); color: #fff; font-weight: 800; }
.metric-row .metric b i { font-style: normal; color: var(--cyan); }
.metric-row .metric span { display: block; margin-top: 6px; font-size: 14px; color: #a9bcc9; }

/* ============ 时间轴 ============ */
.timeline { display: grid; grid-template-columns: 96px 1fr; row-gap: 0; }
.tl-item { display: contents; }
.tl-time { padding: 20px 18px 20px 0; text-align: right; font-weight: 700; color: var(--cyan); font-size: 15px; }
.tl-body { border-left: 1px solid var(--line); padding: 20px 0 20px 28px; position: relative; }
.tl-body::before { content: ""; position: absolute; left: -5px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.tl-body h4 { font-size: 17px; color: var(--ink); }
.tl-body p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* ============ 案例 ============ */
.case-card { padding: 0; overflow: hidden; }
.case-card img { width: 100%; height: 190px; object-fit: cover; }
.case-body { padding: 20px 24px 24px; }
.case-body .tag { display: inline-block; font-size: 12px; color: var(--cyan); background: var(--cyan-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.case-body h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--muted); }
.case-meta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }

/* ============ 客户评价 ============ */
.quote-card { display: flex; flex-direction: column; }
.quote-card .who { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink-2); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex: 0 0 auto;
}
.quote-card blockquote { font-size: 15px; color: var(--text); }
.quote-card .who b { font-size: 15px; color: var(--ink); display: block; }
.quote-card .who span { font-size: 13px; color: var(--muted); }

/* ============ 新闻列表 ============ */
.news-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.news-item {
  display: flex; gap: 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-item img { width: 220px; height: 150px; object-fit: cover; flex: 0 0 auto; }
.news-body { padding: 18px 20px; }
.news-body .date { font-size: 12.5px; color: var(--cyan); font-weight: 700; }
.news-body h3 { font-size: 17px; color: var(--ink); margin: 6px 0; line-height: 1.4; }
.news-body p { font-size: 14px; color: var(--muted); }
.news-item.plain { display: block; }
.news-item.plain .news-body { padding: 20px 24px; }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 34px; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.info-list .k { font-size: 13px; color: var(--cyan); font-weight: 700; flex: 0 0 84px; }
.info-list .v { font-size: 15px; color: var(--text); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text); margin-bottom: 16px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(33,184,207,.15); }
.form .note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--ink); color: #b8c7d2; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { display: block; color: #9fb2c0; font-size: 14px; margin-bottom: 9px; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand p { font-size: 14px; color: #9fb2c0; margin-top: 12px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 13px; color: #7e919d; }

/* ============ 页内横幅（内页顶部） ============ */
.page-hero {
  background: var(--ink); padding: 54px 0; color: #fff;
  background-image: linear-gradient(180deg, rgba(12,30,46,.85), rgba(12,30,46,.94)), url("../pic/hero.jpg");
  background-size: cover; background-position: center 30%;
}
.page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.page-hero .crumbs { font-size: 13px; color: #9fb2c0; margin-bottom: 10px; }
.page-hero .crumbs span { color: var(--cyan); }

/* ============ 其它 ============ */
.tag-line { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-line span { font-size: 13px; background: #eef3f5; color: var(--text); padding: 5px 12px; border-radius: 999px; }
.divider { height: 1px; background: var(--line); margin: 6px 0 22px; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.rev .split-img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .news-row { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-item img { width: 100%; height: 190px; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--ink); padding: 12px 18px 18px; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 64px 0 72px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-time { padding-right: 10px; font-size: 13px; }
}
