/* ===== 老域名雷达 前台样式 ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --wechat: #07c160;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f8fd;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
  --shadow-hover: 0 18px 40px rgba(30, 58, 138, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

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

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--primary-dark); }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: #374151; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--wechat); color: #fff !important; padding: 9px 18px;
  border-radius: 10px; font-weight: 600;
}
.nav-cta:hover { background: #06ad56; color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 12px; font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; min-height: 48px;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-wechat { background: var(--wechat); color: #fff; }
.btn-wechat:hover { background: #06ad56; color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: #eff4ff; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff; padding: 84px 0 92px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .tag {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 22px;
}
.hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 18px; font-weight: 800; }
.hero p { font-size: 18px; color: rgba(255,255,255,.88); margin-bottom: 32px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* 数据条 */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -48px; position: relative; z-index: 2; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow); }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: 31px; color: var(--primary-dark); margin-bottom: 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-tight { padding: 56px 0; }

/* ===== 卡片网格（等宽、自适应） ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); transition: all .25s; border: 1px solid rgba(229,231,235,.6);
  height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  background: linear-gradient(135deg, #eaf1ff, #dbe8ff);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* 流程 */
.step-card { text-align: center; position: relative; }
.step-no {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; font-size: 19px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14px; }

/* 人群 */
.persona { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); height: 100%; }
.persona h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.persona p { color: var(--muted); font-size: 14px; }

/* ===== 微信 CTA ===== */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 22px; padding: 52px 40px; color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 28px; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.88); margin-bottom: 22px; }
.cta-wechat-box { background: #fff; border-radius: 16px; padding: 26px; text-align: center; color: var(--ink); }
.cta-wechat-box .qr { width: 100%; max-width: 235px; margin: 0 auto 14px; border-radius: 12px; background: #f1f5fb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cta-wechat-box .qr img { width: 100%; height: auto; display: block; }
.cta-wechat-box .qr svg { width: 76px; height: 76px; padding: 22px; }
.cta-wechat-box .wx-id { font-size: 17px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.cta-wechat-box .wx-note { font-size: 13px; color: var(--muted); }
.placeholder-tip { color: #b45309; font-size: 13px; background: #fffbeb; padding: 8px 12px; border-radius: 8px; }

/* ===== 文章 ===== */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }

.article-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .25s; display: flex; flex-direction: column; height: 100%;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.article-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, #dbe8ff, #eaf1ff); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.article-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 12px; }
.article-card h3 { font-size: 17.5px; line-height: 1.5; margin-bottom: 10px; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--primary); }
.article-card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.article-card .more { margin-top: 14px; font-size: 14px; font-weight: 600; }

/* 文章列表（无封面紧凑行） */
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-row {
  background: var(--card); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.post-row h3 { font-size: 19px; margin-bottom: 8px; }
.post-row h3 a { color: var(--ink); }
.post-row h3 a:hover { color: var(--primary); }
.post-row .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-row .desc { color: var(--muted); font-size: 14.5px; }

/* 侧边栏 */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.widget h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; }
.widget li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: #374151; display: flex; justify-content: space-between; gap: 8px; }
.widget li a:hover { color: var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a {
  background: #eef4ff; color: var(--primary); padding: 6px 13px; border-radius: 999px; font-size: 13.5px;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; }

/* 文章详情排版 */
.article-detail { background: var(--card); border-radius: var(--radius); padding: 40px 42px; box-shadow: var(--shadow); }
.article-detail .article-head { margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-detail h1 { font-size: 30px; line-height: 1.4; margin-bottom: 16px; color: var(--ink); }
.article-detail .meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.article-content { font-size: 16px; color: #2d3748; }
.article-content h2 { font-size: 23px; margin: 32px 0 14px; color: var(--primary-dark); }
.article-content h3 { font-size: 19px; margin: 26px 0 12px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 12px; margin: 22px 0; }
.article-content blockquote {
  border-left: 4px solid var(--primary); background: #f3f7ff; padding: 14px 18px;
  border-radius: 0 10px 10px 0; color: #475569; margin-bottom: 18px;
}
.article-tags { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; }
.article-tags a { background: #eef4ff; color: var(--primary); padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.post-nav a { background: var(--card); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); font-size: 14px; color: #374151; }
.post-nav .next { text-align: right; }
.post-nav a:hover { color: var(--primary); }

/* 面包屑 */
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination .current {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--card); color: #374151; box-shadow: var(--shadow); font-size: 14.5px; font-weight: 500;
}
.pagination .current { background: var(--primary); color: #fff; }
.pagination a:hover { background: var(--primary); color: #fff; }

/* 内页页头 */
.page-hero { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 16px; }

/* ===== 页脚 ===== */
.site-footer { background: #0f1e3d; color: #c7d2e2; padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #a9b9d1; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { font-size: 14px; color: #a9b9d1; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; color: #8296b5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 8px 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-cta { margin: 8px 24px 14px; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 76px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 25px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .article-detail { padding: 28px 22px; }
  .article-detail h1 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}
