/* ============================================================
   站群系统 前台样式（millsmath.com 红金主题 · PC + 手机自适应）
   ============================================================ */
:root {
  --c-primary: #e63946;
  --c-primary-2: #d62839;
  --c-accent: #f6a33c;
  --c-accent-2: #f39c12;
  --c-bg: #f6f7f8;
  --c-card: #ffffff;
  --c-text: #1f2430;
  --c-muted: #6b7280;
  --c-border: #f0e3e4;
  --grad-red: linear-gradient(135deg, #ff6b6b, #e63946 55%, #d62839);
  --grad-orange: linear-gradient(135deg, #ffd36e, #f6a33c 55%, #f39c12);
  --grad-hero: linear-gradient(160deg, #ff7a6b 0%, #f14b52 45%, #d62839 100%);
  --radius: 14px;
}

* { 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", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 14px; }

/* ============ 工具类（沿用示例） ============ */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 1rem; }
.gap-2 { gap: .5rem; }
.gap-1 { gap: .25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: .5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.rounded-xl { border-radius: .9rem; }
.text-white { color: #fff; }
.font-semibold { font-weight: 600; }
.text-lg { font-size: 1.125rem; }
.inline-block { display: inline-block; }
.no-underline { text-decoration: none; }
.mr-2 { margin-right: .5rem; }
.mr-1 { margin-right: .25rem; }
.transition { transition: all .2s ease; }

/* ============ 顶部公告条（红金） ============ */
.notice-bar {
  background: var(--grad-red);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 9px 14px;
  letter-spacing: .05em;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(180, 20, 40, .3);
}
.notice-bar i { animation: noticePulse 1.6s ease-in-out infinite; margin-right: 6px; }
@keyframes noticePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

/* ============ Hero（红色渐变） ============ */
.hero {
  background: var(--grad-hero);
  padding: 40px 0 34px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; left: -10%; width: 55%; height: 180%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -55%; right: -10%; width: 55%; height: 180%;
  background: radial-gradient(circle at 70% 70%, rgba(255,180,80,.35), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  font-weight: 800;
  margin: 0 0 .4rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 6px rgba(180,20,40,.35);
}
.hero-sub {
  color: #ffe9c9;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin: 0 auto 1.5rem;
  max-width: 640px;
  font-weight: 600;
}

/* 主导航 CTA 按钮：主按钮红渐变 / 副按钮橙渐变 */
.hero-nav { justify-content: center; margin-bottom: 20px; gap: .8rem; }
.hero-nav a {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 200px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.hero-nav a:active { transform: scale(.97); }
.btn-pdd {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230,57,70,.5), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-pdd:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230,57,70,.6); }
.btn-pdd::after {
  content: ''; position: absolute; top: -60%; left: -70%; width: 45%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-25deg); animation: btnShine 3.4s ease-in-out infinite; pointer-events: none;
}
@keyframes btnShine { 0%{left:-70%} 55%{left:135%} 100%{left:135%} }
.glass {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(243,156,18,.45), inset 0 1px 0 rgba(255,255,255,.4);
}
.glass:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(243,156,18,.55); }
.hover\:bg-white\/10:hover { background: rgba(255,255,255,.1); }

/* Hero 品牌 Logo */
.hero-logo { margin-bottom: 12px; }
.hero-logo img { width:64px; height:64px; border-radius:16px; box-shadow:0 6px 16px rgba(160,20,40,.35); display:inline-block; }

/* 特性标签（4个小卡片） */
.hero-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.hero-feat {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 120px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-feat b { display: block; font-size: 15px; }
.hero-feat span { font-size: 12px; opacity: .92; }

/* ============ 主内容 ============ */
.main-content { padding: 20px 14px 70px; }

/* 分区标题（红色竖条 + 图标） */
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.28rem; font-weight: 800;
  color: var(--c-primary);
  margin: 26px 0 16px;
  padding-left: 12px; border-left: 5px solid var(--c-primary);
}
.section-title i { color: var(--c-primary); }

/* 卡片 */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(230,57,70,.12); }
.card-body { padding: 18px 18px 14px; }
.card-title { font-size: 1.08rem; line-height: 1.5; margin: 0 0 .5rem; font-weight: 700; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--c-primary); }
.card-excerpt { color: var(--c-muted); font-size: .9rem; margin: 0 0 .8rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-meta { display:flex; flex-wrap:wrap; gap:.4rem 1rem; color:var(--c-muted); font-size:.8rem; border-top:1px dashed var(--c-border); padding-top:.6rem; }
.card-meta .kw { color: var(--c-primary); }

/* 文章网格 */
.home-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.empty { text-align:center; color:var(--c-muted); padding:50px 0; }
.empty i { font-size:2.2rem; display:block; margin-bottom:12px; opacity:.4; }

/* 今日实时动态（feed 行样式） */
.feed-list { background: var(--c-card); border:1px solid var(--c-border); border-radius: var(--radius); padding: 6px 0; overflow:hidden; }
.feed-row { display:flex; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--c-border); }
.feed-row:last-child { border-bottom:0; }
.feed-ic { width:36px; height:36px; border-radius:10px; background:#fdecee; color:var(--c-primary); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.feed-main { flex:1; min-width:0; }
.feed-user { font-size:13px; color:var(--c-muted); }
.feed-user b { color:var(--c-text); }
.feed-title { font-size:14px; color:var(--c-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.feed-status { font-size:12px; color:#16a34a; background:#eafaf0; padding:3px 9px; border-radius:999px; white-space:nowrap; font-weight:600; }
.feed-time { font-size:11px; color:#9ca3af; }

/* 分页 */
.pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:26px; }
.pagination .page { min-width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; padding:0 10px; background:#fff; border:1px solid var(--c-border); border-radius:10px; text-decoration:none; font-size:.9rem; }
.pagination .page:hover { border-color:var(--c-primary); color:var(--c-primary); }
.pagination .current { background:var(--grad-red); border-color:transparent; color:#fff; font-weight:700; }

/* ============ 文章页 ============ */
.breadcrumb { font-size:.85rem; color:var(--c-muted); margin:0 0 14px; }
.breadcrumb a { color:var(--c-primary); text-decoration:none; }
.article { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--radius); padding: clamp(1.1rem, 4vw, 2.4rem); margin-bottom:20px; }
.article-meta { display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; color:var(--c-muted); font-size:.85rem; padding-bottom:1rem; border-bottom:1px solid var(--c-border); margin-bottom:1.2rem; }
.article-content { font-size:1.03rem; line-height:1.95; word-break:break-word; }
.article-content h2 { margin:2rem 0 1rem; padding-left:.8rem; border-left:4px solid var(--c-primary); line-height:1.4; }
.article-content h3 { margin:1.5rem 0 .8rem; color:var(--c-primary); }
.article-content p { margin:0 0 1.1rem; }
.article-content a { color:var(--c-primary); }
.article-content img { border-radius:.8rem; margin:.5rem 0; }
.article-nav { display:flex; justify-content:space-between; gap:12px; margin-bottom:20px; font-size:.9rem; }
.article-nav a { background:#fff; border:1px solid var(--c-border); border-radius:10px; padding:10px 16px; text-decoration:none; color:var(--c-muted); max-width:48%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.article-nav a:hover { color:var(--c-primary); border-color:var(--c-primary); }
.related { margin-bottom:20px; }

/* 通用正文（落地页/活动页） */
.page-body { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--radius); padding: clamp(1.1rem,4vw,2.4rem); }
.page-body h2 { margin:1.6rem 0 1rem; padding-left:.8rem; border-left:4px solid var(--c-primary); }
.page-body p { margin:0 0 1.1rem; line-height:1.9; }
.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin:1.4rem 0; }
.feature-card { background:#fdf7f7; border:1px solid var(--c-border); border-radius:var(--radius); padding:1.3rem; }
.feature-card i { font-size:1.7rem; color:var(--c-primary); margin-bottom:.5rem; }
.feature-card h3 { margin:0 0 .4rem; font-size:1.05rem; }
.feature-card p { margin:0; color:var(--c-muted); font-size:.9rem; line-height:1.7; }
.cta-box { text-align:center; background:linear-gradient(135deg,#fdecee,#fef3e0); border:1px dashed var(--c-primary); border-radius:var(--radius); padding:1.8rem 1rem; margin:1.6rem 0; }

/* ============ 页脚（免责声明 + 版权） ============ */
.site-footer { background:#2b2b33; color:#8b8b94; padding:26px 0 92px; margin-top:10px; }
.footer-inner { text-align:center; }
.footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:.6rem 1.4rem; margin-bottom:12px; }
.footer-links a { color:#c9c9d2; text-decoration:none; font-size:.9rem; }
.footer-links a:hover { color:#fff; }
.footer-text { margin:0; font-size:.8rem; color:#6f6f7a; line-height:1.8; }

/* ============ 底部吸底 CTA（移动端双按钮） ============ */
.sticky-cta {
  position: fixed; left:0; right:0; bottom:0; z-index:100;
  display:flex; gap:10px; padding:11px 12px calc(11px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97);
  border-top:1px solid var(--c-border);
  box-shadow:0 -6px 18px rgba(0,0,0,.08);
}
.sticky-cta a {
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  border-radius:12px; padding:13px; font-weight:800; font-size:1rem; text-decoration:none; color:#fff;
}
.sticky-cta .sc-1 { background:var(--grad-red); box-shadow:0 5px 14px rgba(230,57,70,.4); }
.sticky-cta .sc-2 { background:var(--grad-orange); box-shadow:0 5px 14px rgba(243,156,18,.4); }

/* ============ 文章首图（SVG 占位图） ============ */
.card-cover { width:100%; height:auto; display:block; border-radius:0; border-bottom:1px solid var(--c-border); }
.article-cover { margin-bottom:1.2rem; }
.article-cover img { width:100%; height:auto; border-radius:12px; display:block; box-shadow:0 6px 18px rgba(0,0,0,.08); }

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
  .hero { padding: 32px 0 28px; }
  .home-grid { grid-template-columns: 1fr; }
  .hero-nav { gap: .6rem; }
  .hero-nav a { flex:1 1 0; min-width:0; }
  .hero-feat { min-width: calc(50% - 10px); }
  .section-title { font-size:1.15rem; }
}
