/* ========================================================================
   创星集团 · 响应式落地页样式
   设计 token 集中在 :root，便于整体换肤（改 --brand / --accent 即可）
   ======================================================================== */
:root {
  --brand: #1456b8;          /* 品牌主色：深蓝 */
  --brand-dark: #0a2a66;     /* 深蓝（导航/页脚底） */
  --accent: #ff7a18;         /* 强调色：橙（CTA/数字） */
  --ink: #1a2233;            /* 正文主色 */
  --ink-soft: #5a6478;       /* 次要文字 */
  --line: #e6e9f0;           /* 分隔线 */
  --bg: #ffffff;
  --bg-alt: #f5f8ff;        /* 浅蓝交替背景 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 86, 184, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 86, 184, 0.18);
  --maxw: 1180px;
  --gap: clamp(16px, 3vw, 28px);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* 锚点不被固定导航遮挡 */
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 24, .35);
}
.btn-primary:hover { background: #ff6a00; box-shadow: 0 12px 26px rgba(255, 122, 24, .45); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* 焦点可见性（a11y） */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: 10px;
  font-size: 20px; font-weight: 900;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; }
.brand-text small { font-size: 11px; color: var(--ink-soft); letter-spacing: 2px; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 6px 0; position: relative; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent); transition: width .2s ease;
}
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 9px 20px; }

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 3px; width: 24px; margin-inline: auto;
  background: var(--ink); border-radius: 3px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255,122,24,.35), transparent 60%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 110px);
}
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; margin: 0 0 18px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 900; letter-spacing: 1px; }
.hero-sub { font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,.9); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.stat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.stat-grid li {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
  backdrop-filter: blur(4px);
}
.stat-grid strong { display: block; font-size: clamp(28px, 4vw, 42px); color: var(--accent); font-weight: 900; }
.stat-grid span { font-size: 14px; color: rgba(255,255,255,.88); }

/* ---------- 通用区块 ---------- */
.section { padding-block: clamp(48px, 8vw, 92px); }
.section-alt { background: var(--bg-alt); }
.section-en { color: var(--accent); font-weight: 700; letter-spacing: 3px; font-size: 13px; margin: 0 0 6px; text-transform: uppercase; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.section-lead { color: var(--ink-soft); max-width: 60ch; margin: 0 0 28px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.about-media .about-card {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-content: center; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.about-card .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: grid; place-items: center;
  font-size: 22px; margin: 0 auto 12px;
}
.about-text p { margin: 0 0 14px; color: var(--ink); }

/* ---------- 专业服务 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 34px; }
.service-card h3 { font-size: 18px; margin: 12px 0 8px; }
.service-card p { color: var(--ink-soft); margin: 0; font-size: 14.5px; }

/* ---------- 合作模式 ---------- */
.model-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 24px;
}
.model-node {
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow);
}
.model-arrow { color: var(--accent); font-size: 22px; font-weight: 900; }
.model-desc { max-width: 70ch; margin-inline: auto; text-align: center; color: var(--ink-soft); }

/* ---------- 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.adv-card {
  background: #fff; border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 24px 26px; box-shadow: var(--shadow);
}
.adv-card h3 { font-size: 19px; color: var(--brand-dark); }
.adv-card p { margin: 0; color: var(--ink-soft); }

/* ---------- 运营品类 ---------- */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-align: center; padding: 20px 8px; font-weight: 600; color: var(--ink);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cat-item:hover { background: var(--brand); color: #fff; transform: translateY(-4px); }

/* ---------- 分支机构 ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.branch-card {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--bg-alt));
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.branch-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20,86,184,.08), rgba(20,86,184,0));
}
.branch-card span { position: relative; font-weight: 700; color: var(--brand-dark); font-size: 17px; }
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- 运营案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-tag {
  align-self: flex-start; background: rgba(255,122,24,.12); color: var(--accent);
  font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.case-card h3 { font-size: 18px; }
.case-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.case-link { color: var(--brand); font-weight: 600; margin-top: 14px; }

/* ---------- 资质荣誉 ---------- */
.honor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.honor-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; text-align: center; font-weight: 600; color: var(--ink);
  font-size: 14.5px; transition: border-color .2s ease, transform .2s ease;
}
.honor-item:hover { border-color: var(--brand); transform: translateY(-4px); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.cta-inner { padding-block: clamp(48px, 8vw, 84px); text-align: center; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); }
.cta p { color: rgba(255,255,255,.9); margin: 0 0 26px; }
.contact-form {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  max-width: 640px; margin-inline: auto;
}
.field { flex: 1 1 200px; text-align: left; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: rgba(255,255,255,.85); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.95);
  font-size: 15px; color: var(--ink);
}
.contact-form .btn { align-self: flex-end; flex: 0 0 auto; }
.form-hint { flex-basis: 100%; min-height: 1.2em; margin: 4px 0 0; font-size: 14px; color: #ffe; }
.form-hint.error { color: #ffd2d2; }
.form-hint.ok { color: #d7ffd9; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); padding-block: 48px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 14px 0 0; max-width: 32ch; color: rgba(255,255,255,.7); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { padding-block: 18px; }
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .branch-card, .case-card, .cat-item, .honor-item { transition: none; }
}

/* ========================================================================
   响应式断点
   ======================================================================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .branch-grid { grid-template-columns: repeat(3, 1fr); }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* 移动端导航：默认隐藏，点击展开 */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px clamp(16px, 4vw, 32px) 22px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0; visibility: hidden;
    transition: transform .28s ease, opacity .2s ease, visibility .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .service-grid, .case-grid, .branch-grid, .news-grid { grid-template-columns: 1fr; }
  .honor-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .model-flow { gap: 8px; }
  .model-node { padding: 10px 14px; font-size: 14px; }
  .model-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
  .news-list-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   公司资讯（首页 + 列表页 + 详情页）
   ======================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 30, 80, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 30, 80, 0.12);
}
.news-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e9eef9 0%, #d6e0f4 100%);
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.news-card:hover .news-cover img { transform: scale(1.05); }
.news-cover-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), transparent 40%),
    linear-gradient(135deg, #b5c7ee 0%, #5a7ec0 50%, #2c4781 100%);
}
.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(20, 86, 184, 0.92);
  color: #fff;
  letter-spacing: .04em;
}
.news-tag-industry { background: rgba(255, 122, 24, 0.95); }
.news-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  color: #0a1a3a;
}
.news-body h3 a { color: inherit; text-decoration: none; }
.news-body h3 a:hover { color: #1456b8; }
.news-summary {
  margin: 0 0 14px;
  color: #58607a;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a93a6;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e6e9f0;
}
.news-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: #8a93a6;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #e6e9f0;
}
.news-more { text-align: center; margin-top: 32px; }
.news-more .btn { padding: 12px 28px; }

/* 列表页 */
.news-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 20px 80px;
}
.news-page-head { text-align: center; margin-bottom: 36px; }
.news-page-head .section-en { color: #1456b8; font-size: 13px; letter-spacing: .18em; margin: 0 0 6px; }
.news-page-head h1 { margin: 0 0 14px; font-size: 30px; color: #0a1a3a; }
.news-page-head p { color: #58607a; max-width: 600px; margin: 0 auto; }
.news-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}
.news-filter a {
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: #58607a;
  border: 1px solid #e6e9f0;
  background: #fff;
  transition: all .2s;
}
.news-filter a:hover { border-color: #1456b8; color: #1456b8; }
.news-filter a.active { background: #1456b8; color: #fff; border-color: #1456b8; }
.news-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 详情页 */
.news-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 20px 80px;
}
.news-detail .crumb {
  font-size: 13px;
  color: #8a93a6;
  margin-bottom: 20px;
}
.news-detail .crumb a { color: #1456b8; text-decoration: none; }
.news-detail h1 {
  font-size: 30px;
  line-height: 1.4;
  color: #0a1a3a;
  margin: 0 0 16px;
}
.news-detail .meta {
  display: flex;
  gap: 16px;
  color: #8a93a6;
  font-size: 13px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.news-detail .meta .cat {
  background: #eef2ff;
  color: #1456b8;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.news-detail .meta .cat.industry { background: #fff1e6; color: #c2410c; }
.news-cover-hero {
  aspect-ratio: 21 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #b5c7ee 0%, #5a7ec0 50%, #2c4781 100%);
}
.news-cover-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body {
  font-size: 16px;
  line-height: 1.85;
  color: #2a3046;
}
.news-body h2, .news-body h3 {
  color: #0a1a3a;
  margin: 1.6em 0 .6em;
  line-height: 1.4;
}
.news-body h2 { font-size: 22px; }
.news-body h3 { font-size: 18px; }
.news-body p { margin: 1em 0; }
.news-body ul, .news-body ol { padding-left: 1.4em; }
.news-body li { margin: .35em 0; }
.news-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.news-body a { color: #1456b8; }
.news-body blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  background: #f5f8ff;
  border-left: 4px solid #1456b8;
  color: #2a3046;
  border-radius: 6px;
}
.news-detail .back-link {
  display: inline-block;
  margin-top: 36px;
  color: #1456b8;
  text-decoration: none;
  font-weight: 600;
}
.news-detail .back-link:hover { text-decoration: underline; }
.news-not-found {
  max-width: 600px;
  margin: 0 auto;
  padding: 160px 20px 80px;
  text-align: center;
  color: #58607a;
}
.news-not-found h1 { color: #0a1a3a; }
.news-not-found .btn { margin-top: 16px; }
