/* ===== 设计变量 · 科技蓝主题 ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --grad: linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #06b6d4 100%);
  --bg: #ffffff;
  --bg-alt: #f6f9ff;
  --text: #0f172a;
  --text-muted: #5b6b85;
  --border: #e6ecf5;
  --shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  --radius: 16px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(37,99,235,.28); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--lg { padding: 15px 34px; font-size: 16px; }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,.08); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; }
.nav__logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 800;
}
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav__menu a:hover { color: var(--primary); }
.nav__cta { color: #fff !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(6,182,212,.25), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(37,99,235,.30), transparent 60%),
    linear-gradient(160deg, #0b1f4d 0%, #102a6b 45%, #0e3a78 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 90px; }
.hero__content { max-width: 880px; color: #fff; }
.hero__tag {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 14px; letter-spacing: .5px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(34px, 6vw, 62px); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.hero__subtitle { margin: 24px 0 34px; font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,.86); max-width: 720px; }
.hero__subtitle strong { color: #7fe7ff; font-weight: 700; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-size: 46px; font-weight: 800; color: #fff; line-height: 1; }
.stat__plus { display: none; }
.stat p { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 8px; }
.hero__stats .stat { position: relative; }
.hero__stats .stat p { margin-top: 6px; }
.stat__num + .stat__plus { display: inline; }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 16px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ===== 信任条 ===== */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust__inner { display: flex; align-items: center; gap: 24px; padding: 20px 24px; flex-wrap: wrap; }
.trust__inner > span { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.trust__logos { display: flex; gap: 28px; flex-wrap: wrap; }
.trust__logos span { color: #34466b; font-weight: 600; font-size: 15px; opacity: .8; }

/* ===== 通用 section ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.section__title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 12px 0 14px; letter-spacing: -.5px; }
.section__desc { color: var(--text-muted); font-size: 16px; }

/* ===== 业务卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 20px;
}
.card__icon--geo { background: linear-gradient(135deg, #1e40af, #2563eb); }
.card__icon--tk { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.card__icon--sv { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.card__icon--ad { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card__text { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card__list li { position: relative; padding-left: 24px; font-size: 14px; color: #2d3b55; }
.card__list li::before { content: "▹"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ===== 服务流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; position: relative; }
.step__num { font-size: 38px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h4 { font-size: 18px; margin: 10px 0 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ===== 案例 ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case__top { margin-bottom: 16px; }
.case__tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(37,99,235,.1); color: var(--primary); font-size: 13px; font-weight: 700; }
.case h4 { font-size: 18px; margin-bottom: 14px; }
.case__metric { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.case__metric b { font-size: 24px; color: var(--primary); }
.case__desc { color: var(--text-muted); font-size: 14px; }

/* ===== 关于我们 ===== */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about__text p { color: var(--text-muted); margin: 16px 0; font-size: 16px; }
.about__points { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.point { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.point span { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; }
.about__panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.about__panel h4 { font-size: 18px; margin-bottom: 22px; }
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar span { font-size: 14px; color: #2d3b55; font-weight: 600; }
.bar i { display: block; height: 10px; border-radius: 999px; background: var(--grad); width: var(--w); margin-top: 8px; }

/* ===== 客户评价 ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.review blockquote { font-size: 16px; color: var(--text); line-height: 1.7; position: relative; }
.review blockquote::before { content: "“"; font-size: 48px; color: rgba(37,99,235,.18); position: absolute; top: -18px; left: -6px; }
.review figcaption { margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.review figcaption b { color: var(--primary); }

/* ===== 联系我们 ===== */
.section--contact { background: linear-gradient(160deg, #0b1f4d, #103a82); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact .section__eyebrow { color: #7fe7ff; }
.contact .section__title { color: #fff; }
.contact__lead { color: rgba(255,255,255,.82); margin: 14px 0 26px; font-size: 16px; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact__list span { font-size: 18px; }
.contact__form { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 30px; backdrop-filter: blur(6px); }
.field { margin-bottom: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06); color: #fff; font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.55); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7fe7ff; }
.field select option { color: #0f172a; }
.contact__hint { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 12px; text-align: center; }

/* ===== 页脚 ===== */
.footer { background: #07163a; color: rgba(255,255,255,.8); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; padding: 40px 24px; flex-wrap: wrap; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { color: #fff; font-size: 16px; }
.footer__brand p { font-size: 13px; color: rgba(255,255,255,.6); }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer__nav a:hover { color: #7fe7ff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.55); text-align: center; }

/* ===== 入场动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .cards, .cases, .reviews, .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .nav__menu {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 24px;
  }
  .nav__menu.open { max-height: 360px; padding: 12px 24px 20px; }
  .nav__menu a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 12px; text-align: center; }
  .nav__toggle { display: flex; }
  .cards, .cases, .reviews, .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .stat__num { font-size: 38px; }
  .section { padding: 64px 0; }
}

/* ===== 资讯动态 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.news-card__tag { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: rgba(37,99,235,.1); color: var(--primary); font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.news-card__title { font-size: 18px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.news-card__date { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.news-card__excerpt { color: var(--text-muted); font-size: 14px; flex: 1; }
.news-card__more { margin-top: 16px; color: var(--primary); font-weight: 600; font-size: 14px; }
.news-loading { color: var(--text-muted); }
.news-more { text-align: center; margin-top: 36px; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7,22,58,.55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 2; max-width: 720px; margin: 8vh auto; background: #fff;
  border-radius: 18px; padding: 38px 40px; max-height: 84vh; overflow-y: auto;
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal__close { position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; border: none; background: #f1f5f9; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: #475569; }
.modal__close:hover { background: #e2e8f0; }
.modal__tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(37,99,235,.1); color: var(--primary); font-size: 12px; font-weight: 700; }
.modal__title { font-size: 24px; font-weight: 800; margin: 14px 0 8px; line-height: 1.4; }
.modal__date { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.modal__body { color: #2d3b55; font-size: 16px; line-height: 1.85; white-space: pre-wrap; }

/* ===== 后台管理页 ===== */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-wrap h1 { font-size: 26px; margin-bottom: 6px; }
.admin-sub { color: var(--text-muted); margin-bottom: 28px; }
.admin-login { max-width: 360px; margin: 12vh auto; text-align: center; }
.admin-login .field input { border: 1px solid var(--border); background: #fff; color: var(--text); }
.admin-login .field input::placeholder { color: #94a3b8; }
.admin-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.admin-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-form h3 { margin-bottom: 16px; font-size: 18px; }
.admin-form label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 12px 0 6px; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--text); outline: none;
}
.admin-form input:focus, .admin-form textarea:focus { border-color: var(--primary); }
.admin-form textarea { resize: vertical; min-height: 120px; }
.admin-row { display: flex; gap: 12px; }
.admin-row > div { flex: 1; }
.admin-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-list h3 { margin-bottom: 16px; font-size: 18px; }
.admin-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.admin-item:last-child { border-bottom: none; }
.admin-item__info { min-width: 0; }
.admin-item__title { font-weight: 600; font-size: 15px; }
.admin-item__meta { color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.admin-item__actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn--mini { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn--danger { background: #fee2e2; color: #dc2626; }
.btn--danger:hover { background: #fecaca; }
.admin-empty { color: var(--text-muted); font-size: 14px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .3s; z-index: 300; }
.admin-toast.show { opacity: 1; }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-panel { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .news-grid { grid-template-columns: 1fr; }
}
