/* ============ 基础与变量 ============ */
:root {
  --primary: #092f72;
  --primary-2: #6c5ce7;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e6e8ef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(9, 47, 114, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 顶部导航 ============ */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .5px;
}
.brand:hover { text-decoration: none; }

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  font-size: 15px;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-2); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px auto;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.hero p.sub {
  font-size: 16px;
  opacity: .92;
  margin: 0 0 26px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-primary { background: var(--primary-2); color: #fff; }

.hero-contact-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.qr-box {
  width: 168px;
  height: 168px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder {
  width: 100%; height: 100%;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}

.wechat-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  margin-top: 6px;
}
.wechat-line b { font-size: 17px; letter-spacing: .5px; }

/* ============ 通用区块 ============ */
.section { padding: 52px 0; }
.section-title {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--primary);
  text-align: center;
}
.section-desc {
  text-align: center;
  color: var(--muted);
  margin: 0 0 34px;
}

/* 特性卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #eef1ff;
  color: var(--primary-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* 优势 */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.advantage-card {
  background: var(--card);
  border-left: 4px solid var(--primary-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.advantage-card h3 { margin: 0 0 6px; font-size: 16px; }
.advantage-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============ 文章列表 ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* 缩略图
.article-card .cover {
  height: 170px;
  background: #eef1ff;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
 */
  /* 16：9缩略图开始 */
 .article-card .cover {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 比例（9÷16=0.5625） */
  background: #eef1ff;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
  overflow: hidden;
}
.article-card .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
 /* 16：9缩略图结束 */
.article-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card h3 { margin: 0 0 10px; font-size: 17px; }
.article-card h3 a { color: var(--text); }
.article-card .summary { color: var(--muted); font-size: 14px; margin: 0 0 14px; flex: 1; }
.article-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* 分页 */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.pager a, .pager span.cur {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}
.pager span.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager a:hover { border-color: var(--primary-2); text-decoration: none; }

/* ============ 文章详情 ============ */
.article-detail {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.article-detail h1 { font-size: 26px; margin: 0 0 14px; }
.article-detail .meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.article-content { font-size: 16px; }
.article-content p { margin: 0 0 16px; }
.article-content img { border-radius: 10px; margin: 10px 0; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 14px; }

/* ============ 联系区 / 页脚 ============ */
.contact {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 44px 0 90px;
}
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h2 { margin: 0 0 8px; font-size: 22px; color: var(--primary); }
.contact-card p { color: var(--muted); margin: 0 0 20px; }
.contact-card .qr-box { width: 188px; height: 188px; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 22px 16px;
  background: var(--bg);
}

/* 复制按钮 */
.copy-btn {
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.copy-btn:hover { opacity: .92; }

/* 提示浮层 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

/* ============ 移动端底部微信号条（仅手机显示） ============ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-bar .mb-info { min-width: 0; }
.mobile-bar .mb-label { font-size: 12px; color: var(--muted); }
.mobile-bar .mb-wechat { font-size: 15px; font-weight: 600; color: var(--primary); }
.mobile-bar .copy-btn { margin-top: 0; white-space: nowrap; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .feature-grid, .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 27px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 64px;
    background: var(--card);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 12px 20px; }

  .feature-grid, .advantage-grid, .article-list { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .hero { padding: 38px 0; }
  .hero h1 { font-size: 24px; }
  .article-detail { padding: 22px 18px; }
  .contact { padding-bottom: 110px; }
  .mobile-bar { display: flex; }
}
