/* =========================================================
   亚星企服 · 官网统一样式
   视觉方向：可信、专业、克制的商务蓝 + 暖灰
   窄屏优先，桌面端在 min-width 断点内增强
   ========================================================= */

/* ---------- 基础与重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0b2a4a;
  --blue-700: #13406b;
  --blue-600: #1c5a8f;
  --blue-500: #2468a6;
  --blue-100: #e6eef5;
  --blue-50:  #f3f7fb;
  --ink:     #1d2733;
  --ink-soft:#4a5868;
  --line:    #e2e7ec;
  --paper:   #ffffff;
  --paper-soft: #f6f8fa;
  --accent:  #d98a2b;
  --accent-deep: #b96f1d;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(11,42,74,.08);
  --shadow-lg: 0 18px 40px rgba(11,42,74,.14);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
ul { list-style: none; }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--paper-soft); }
.section--dark { background: var(--blue-900); color: #e9eef4; }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--blue-500);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 30px; line-height: 1.3; color: var(--blue-900); font-weight: 700; }
.section-head p { margin-top: 12px; color: var(--ink-soft); }
.section--dark .section-head h2 { color: #fff; }
.section--dark .eyebrow { color: #8fc1e8; }
.section--dark .section-head p { color: #b7c6d6; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(11,42,74,.05);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
  box-shadow: var(--shadow);
}
.brand-name { font-size: 20px; font-weight: 800; color: var(--blue-900); letter-spacing: .03em; }
.brand-name small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: .08em; margin-top: 1px; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  transition: all .2s ease;
}
.main-nav a:hover { color: var(--blue-600); background: var(--blue-50); }
.main-nav a.active { color: var(--blue-600); background: var(--blue-100); font-weight: 600; }
.nav-cta {
  padding: 9px 18px; border-radius: 8px;
  background: var(--accent); color: #fff !important;
  font-weight: 600; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--blue-900); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-900); color: #c3d1df; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #b7c6d6; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: 14px; line-height: 1.8; color: #9fb2c4; }
.footer-contact li { font-size: 14px; margin-bottom: 10px; color: #b7c6d6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13px; color: #8ba0b4; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 9px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: all .2s ease; text-align: center;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); color: #fff; }
.btn--blue { background: var(--blue-600); color: #fff; }
.btn--blue:hover { background: var(--blue-500); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-600); border: 1.5px solid var(--blue-500); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--white { background: #fff; color: var(--blue-900); }
.btn--white:hover { background: var(--blue-50); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../pic/hero.jpg");
  background-size: cover; background-position: center;
  opacity: .32;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 84px 0 100px;
  max-width: 760px;
}
.hero .eyebrow { color: #8fc1e8; }
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 800; margin: 6px 0 18px; }
.hero h1 .hl { color: #ffc97a; }
.hero p.lead { font-size: 17px; color: #dbe6f0; max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 820px; margin-top: 44px;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(4px);
}
.stat-card .num { font-size: 26px; font-weight: 800; color: #ffc97a; line-height: 1.2; }
.stat-card .label { font-size: 13px; color: #cfdce9; margin-top: 4px; }

/* ---------- 通用网格 ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: all .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px 22px; }
.card-body h3 { font-size: 18px; color: var(--blue-900); margin-bottom: 8px; line-height: 1.4; }
.card-body p { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.card-link { margin-top: 14px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 服务特性块 ---------- */
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center;
}
.feature h3 { font-size: 17px; color: var(--blue-900); margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 15px; font-weight: 800; color: #fff;
  background: var(--blue-600); width: 34px; height: 34px;
  border-radius: 8px; display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; color: var(--blue-900); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 新闻列表 ---------- */
.news-row {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); transition: all .25s ease;
}
.news-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.news-row .date { color: var(--blue-500); font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.news-row .tag { display: inline-block; font-size: 12px; color: var(--blue-600); background: var(--blue-50); border-radius: 20px; padding: 2px 12px; margin-right: 10px; }
.news-row h3 { font-size: 17px; color: var(--blue-900); }
.news-row p.summary { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 评价卡 ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); position: relative;
}
.quote .stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: 14.5px; color: var(--ink); line-height: 1.8; }
.quote .who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100);
  color: var(--blue-700); display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.quote .who strong { font-size: 15px; color: var(--blue-900); display: block; }
.quote .who span { font-size: 13px; color: var(--ink-soft); }

/* ---------- 页码 / 面包屑 ---------- */
.breadcrumb { font-size: 14px; color: var(--ink-soft); padding: 18px 0; }
.breadcrumb a { color: var(--blue-600); }
.breadcrumb span.sep { margin: 0 8px; color: #b9c3cd; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--blue-500); color: var(--blue-600); }
.pagination .cur { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* ---------- 页头横幅 (内页) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff; padding: 56px 0 44px;
}
.page-hero h1 { font-size: 34px; font-weight: 800; }
.page-hero p { color: #d0ddea; margin-top: 10px; max-width: 700px; font-size: 16px; }

/* ---------- 关于：图文区 ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: 28px; color: var(--blue-900); margin-bottom: 16px; line-height: 1.35; }
.split-body p { color: var(--ink-soft); margin-bottom: 14px; }
.split-body ul.checks { margin-top: 8px; }
.split-body ul.checks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.split-body ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

/* ---------- 时间轴 ---------- */
.timeline { position: relative; margin-left: 14px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--blue-100); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue-600);
}
.timeline-item h4 { font-size: 16px; color: var(--blue-900); }
.timeline-item h4 span { color: var(--blue-500); font-weight: 700; margin-right: 8px; font-size: 15px; }
.timeline-item p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--blue-900); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue-500);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ---------- 联系信息条 ---------- */
.contact-blocks { display: grid; grid-template-columns: 1fr; gap: 18px; }
.contact-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); text-align: center;
}
.contact-block .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin: 0 auto 14px; }
.contact-block h3 { font-size: 16px; color: var(--blue-900); margin-bottom: 6px; }
.contact-block p { font-size: 15px; color: var(--ink); }
.contact-block p.sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- CTA 区 ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: #d0ddea; max-width: 600px; margin: 0 auto 26px; }
.cta-band .btn { margin: 0 8px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead th { background: var(--blue-50); color: var(--blue-900); font-size: 14px; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
tbody td { padding: 12px 16px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--blue-50); }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-600); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue-500); }

/* ---------- 响应式（桌面增强） ---------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-blocks { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .news-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .news-row .text { flex: 1; }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .contact-blocks { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

/* ---------- 移动导航 ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero h1 { font-size: 30px; }
  .hero-inner { padding: 60px 0 72px; }
  .section-head h2 { font-size: 25px; }
  .page-hero h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
