/* ============ 云启科技企业官网 · 公共样式 ============ */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;
  --ink: #1f2933;
  --ink-2: #4b5563;
  --ink-3: #8a94a6;
  --line: #e8ebf0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(31, 41, 51, 0.08);
  --shadow-sm: 0 2px 12px rgba(31, 41, 51, 0.06);
  --maxw: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.28); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 500; transition: .15s; }
.nav a:hover, .nav a.active { color: var(--brand); background: var(--brand-soft); }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero .inner { position: relative; z-index: 1; padding: 92px 0 100px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -.5px; }
.hero .sub { font-size: clamp(15px, 2vw, 19px); opacity: .92; max-width: 640px; margin: 18px auto 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 区块标题 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 10px 0; }
.section-head p { color: var(--ink-3); }

/* ---------- 关于 / 数据条 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about-grid .lead { font-size: 18px; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stat-card .num { font-size: 34px; font-weight: 800; color: var(--brand); }
.stat-card .label { color: var(--ink-3); font-size: 14px; }

/* ---------- 新闻卡片 ---------- */
.grid { display: grid; gap: 24px; }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: .22s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-soft), #eef2ff); display: grid; place-items: center; color: var(--brand); font-size: 30px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card .cat { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.card h3 { font-size: 17px; line-height: 1.4; }
.card .summary { color: var(--ink-3); font-size: 14px; flex: 1; }
.card .meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; }

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-info .item .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 18px; flex: none; }
.contact-info .item .k { font-size: 13px; color: var(--ink-3); }
.contact-info .item .v { font-weight: 600; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 54px 0 26px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.site-footer .brand .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #94a3b8; text-align: center; }

/* ---------- 新闻列表页 ---------- */
.page-hero { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; padding: 64px 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); }
.page-hero p { opacity: .9; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 34px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.search-box { display: flex; gap: 8px; margin-left: auto; }
.search-box input { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; min-width: 220px; font-family: inherit; }
.search-box input:focus { outline: none; border-color: var(--brand); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 文章详情 ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-head .cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 12px; border-radius: 999px; }
.article-head h1 { font-size: clamp(24px, 3.6vw, 34px); margin: 14px 0; }
.article-head .meta { color: var(--ink-3); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.article-body { font-size: 16.5px; color: #2b3440; margin-top: 24px; }
.article-body img { border-radius: 10px; margin: 18px 0; }
.article-body h2 { font-size: 24px; margin-top: 36px; }
.article-body h3 { font-size: 20px; margin-top: 28px; }
.article-body blockquote { border-left: 4px solid var(--brand); margin: 20px 0; padding: 8px 18px; background: var(--brand-soft); color: var(--ink-2); border-radius: 0 8px 8px 0; }
.sibling-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.sibling-nav a { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: .15s; }
.sibling-nav a:hover { border-color: var(--brand); background: var(--brand-soft); }
.sibling-nav .dir { font-size: 12px; color: var(--ink-3); }
.sibling-nav .tt { font-weight: 600; margin-top: 4px; }
.sibling-nav .next { text-align: right; }

/* ---------- 空状态 / 加载 ---------- */
.empty { text-align: center; color: var(--ink-3); padding: 60px 0; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: #111827; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .25s; z-index: 999; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .menu-toggle { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { flex: 1; min-width: 0; }
  .sibling-nav { grid-template-columns: 1fr; }
}
