:root {
  --primary: #1668e3;
  --primary-dark: #0d4fb3;
  --accent: #07c160;
  --text: #1f2329;
  --text-sub: #5b6472;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e6eaf0;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(20, 40, 80, 0.08);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #4c8bf5);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 8px 18px; border-radius: 8px;
  font-size: 16px; color: var(--text-sub); transition: all .2s;
}
.nav-links a:hover { color: var(--primary); background: #f0f5ff; }
.nav-links a.active { color: var(--primary); background: #eaf1ff; font-weight: 600; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0d4fb3 0%, #1668e3 55%, #4c8bf5 100%);
  color: #fff; padding: 72px 0; text-align: center;
}
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 1px; }
.hero .sub { margin-top: 16px; font-size: 18px; opacity: .92; }
.hero .cta {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary); padding: 12px 28px;
  border-radius: 30px; font-size: 16px; font-weight: 600; transition: transform .2s;
}
.hero .cta:hover { transform: translateY(-2px); }

/* ===== 区块标题 ===== */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; font-weight: 700; }
.section-head .en { color: var(--text-sub); font-size: 14px; letter-spacing: 2px; margin-top: 6px; }

/* ===== 资讯卡片 ===== */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); cursor: pointer;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(20,40,80,.14); }
.news-thumb { height: 160px; background: linear-gradient(135deg, #eaf1ff, #dbe8ff); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 40px; }
.news-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-body .tag { font-size: 12px; color: var(--primary); margin-bottom: 8px; }
.news-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.news-body p { color: var(--text-sub); font-size: 14px; flex: 1; }
.news-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-sub); }
.news-foot .price { color: #e64a3b; font-weight: 700; }
.news-foot .free-tag { color: var(--accent); font-weight: 700; }

/* ===== 分页 ===== */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.pagination:empty { display: none; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.page-btn:hover:not(:disabled):not(.active) { color: var(--primary); border-color: var(--primary); background: #f0f5ff; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; cursor: default; }
.page-btn:disabled { color: #c2c8d2; background: #f7f9fc; cursor: not-allowed; }
.page-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== 页脚 ===== */
.footer { background: #1c2530; color: #aab3c0; padding: 48px 0 24px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer p, .footer a { font-size: 14px; color: #aab3c0; }
.footer a:hover { color: #fff; }
.footer .brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  text-align: center; font-size: 13px;
}
.footer .bottom p, .footer .bottom a { font-size: 13px; }
.footer .bottom .icp { margin-top: 6px; }
.footer .bottom .icp a { text-decoration: none; }

/* ===== 关于我们 ===== */
.about-hero { background: linear-gradient(135deg, #0d4fb3, #4c8bf5); color: #fff; padding: 60px 0; text-align: center; }
.about-hero h1 { font-size: 36px; font-weight: 800; }
.about-body { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; margin-top: -30px; }
.about-body h2 { font-size: 22px; margin: 28px 0 12px; color: var(--primary); }
.about-body h2:first-child { margin-top: 0; }
.about-body p { color: var(--text-sub); margin-bottom: 12px; }
.about-body ul { list-style: none; }
.about-body ul li { padding: 8px 0 8px 24px; position: relative; color: var(--text-sub); }
.about-body ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.about-body .scope { color: var(--text); font-size: 15px; line-height: 1.9; text-align: justify; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 16px; }
.contact-item { background: #f5f7fa; border-radius: 10px; padding: 20px; }
.contact-item .label { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; }
.contact-item .value { font-size: 17px; font-weight: 600; }
.contact-item--wide { grid-column: 1 / -1; }
.contact-item--wide .value { font-size: 15px; line-height: 1.7; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 360px;
  padding: 32px 28px; text-align: center; position: relative;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .close {
  position: absolute; top: 12px; right: 16px; font-size: 26px; color: #999;
  background: none; border: none; cursor: pointer; line-height: 1;
}
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal .modal-title-sub { color: var(--text-sub); font-size: 14px; margin-bottom: 18px; }
.modal .qr-box { width: 230px; margin: 0 auto 16px; }
.modal .qr-box img { width: 100%; height: auto; display: block; border-radius: 8px; }
.modal .price { font-size: 24px; font-weight: 800; color: #e64a3b; margin-bottom: 6px; }
.modal .hint { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* ===== 阅读弹窗 ===== */
.modal.read-modal { max-width: 640px; text-align: left; max-height: 82vh; display: flex; flex-direction: column; }
.read-head { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.read-head h3 { font-size: 22px; line-height: 1.4; margin-bottom: 8px; }
.read-meta { font-size: 13px; color: var(--text-sub); }
.read-body { overflow-y: auto; }
.read-body p { color: var(--text); font-size: 15px; line-height: 1.9; margin-bottom: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .news-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .about-hero h1 { font-size: 26px; }
  .about-body { padding: 28px 20px; }
  .nav-links a { padding: 8px 12px; font-size: 15px; }
  .contact-grid { grid-template-columns: 1fr; }
}
