/* =========================================================
   五一黑料 应援星辉社区 — 全站样式
   视觉：饭圈应援风 + 马卡龙色系
   主色 #FF8A80 应援粉 / 辅 #82B1FF 天空蓝 / 背景 #FFF8E1 暖米白
   ========================================================= */

:root {
  --color-primary: #FF8A80;      /* 应援粉 */
  --color-primary-deep: #F4685C;
  --color-secondary: #82B1FF;    /* 天空蓝 */
  --color-secondary-deep: #5C8DF6;
  --color-bg: #FFF8E1;           /* 暖米白 */
  --color-card: #FFFFFF;
  --color-text: #5D4037;         /* 正文 暖棕 */
  --color-text-soft: #8D7268;
  --color-line: #F3E3D7;
  --color-accent-yellow: #FFE6A7;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 26px rgba(255, 138, 128, 0.16);
  --shadow-card: 0 4px 18px rgba(93, 64, 55, 0.08);
  --maxw: 1180px;
  --font-cn: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-secondary-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- 顶部理智追星提示条 ---------- */
.alert-bar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 8px 14px;
  letter-spacing: .5px;
}
.alert-bar strong { font-weight: 700; }

/* ---------- 导航 ---------- */
.site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(93,64,55,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--color-text); }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand span b { color: var(--color-primary-deep); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--color-text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--color-primary-deep); }
.nav-cta {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-deep));
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.nav-toggle { display: none; font-size: 26px; background: none; border: none; color: var(--color-primary-deep); cursor: pointer; }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 10%, #FFE3DF 0, transparent 45%),
              radial-gradient(circle at 85% 20%, #DCEAFF 0, transparent 45%),
              var(--color-bg);
  padding: 48px 0 30px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.hero h1 {
  font-size: 40px;
  line-height: 1.3;
  color: var(--color-text);
  font-weight: 900;
  letter-spacing: 1px;
}
.hero h1 em { font-style: normal; color: var(--color-primary-deep); }
.hero .lead { margin-top: 16px; font-size: 17px; color: var(--color-text-soft); }
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-tags span {
  background: #fff; border: 1px solid var(--color-line);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--color-primary-deep); font-weight: 600;
}
.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  font-family: inherit; transition: transform .15s, box-shadow .2s;
}
.btn-primary { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-deep)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-secondary { background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-deep)); color: #fff; box-shadow: 0 8px 22px rgba(130,177,255,.3); }
.btn-ghost { background: #fff; color: var(--color-primary-deep); border: 2px solid var(--color-primary); }
.btn:hover { transform: translateY(-2px); }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* 数据条 */
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 26px; color: var(--color-primary-deep); }
.hero-stats small { color: var(--color-text-soft); font-size: 13px; }

/* ---------- 通用版块 ---------- */
.section { padding: 52px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; font-weight: 900; color: var(--color-text); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 99px; margin: 12px auto 0; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); }
.section-head p { margin-top: 12px; color: var(--color-text-soft); }
.section-alt { background: #fff; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--color-card); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-tag { align-self: flex-start; background: #FFEFE9; color: var(--color-primary-deep); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.card-tag.blue { background: #E7F0FF; color: var(--color-secondary-deep); }
.card h3 { font-size: 18px; color: var(--color-text); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--color-text-soft); flex: 1; }
.card-link { margin-top: 14px; font-weight: 700; color: var(--color-primary-deep); font-size: 14px; }
.card-link::after { content: " ❤"; }

/* 应援进度条组件 */
.support-meter { margin-top: 14px; }
.support-meter .meter-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-text-soft); margin-bottom: 6px; }
.meter-track { height: 14px; border-radius: 99px; background: #FCE9E5; overflow: hidden; }
.meter-fill {
  height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.meter-fill::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(120deg, rgba(255,255,255,.45) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.45) 75%, transparent 75%);
  background-size: 22px 22px; animation: meterFlow 1s linear infinite;
}
@keyframes meterFlow { from { background-position: 0 0; } to { background-position: 22px 0; } }

/* 模块导航卡（首页核心模块） */
.feature-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature-item {
  background: #fff; border-radius: var(--radius-md); padding: 22px 14px; text-align: center;
  box-shadow: var(--shadow-card); transition: transform .2s;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-ico { font-size: 30px; }
.feature-item h4 { margin: 10px 0 6px; font-size: 15px; color: var(--color-text); }
.feature-item p { font-size: 12.5px; color: var(--color-text-soft); }
.feature-item a { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; }

/* 签到日历 */
.checkin { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 14px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 10px; background: #FFF3EF; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--color-text-soft); cursor: pointer; transition: .2s; font-weight: 600;
}
.cal-cell.done { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; }
.cal-cell.today { box-shadow: 0 0 0 2px var(--color-primary); }
.cal-cell:hover { transform: scale(1.06); }
.checkin-actions { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.streak-badge { background: #FFE6A7; color: #A06A00; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 13px; }

/* 弹幕墙 */
.danmu-wall {
  position: relative; height: 220px; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FFE3DF, #DCEAFF);
}
.danmu {
  position: absolute; white-space: nowrap; background: rgba(255,255,255,.85);
  padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--color-primary-deep);
  box-shadow: var(--shadow-card); will-change: transform;
}
@keyframes danmuMove { from { transform: translateX(100%); } to { transform: translateX(-120%); } }

/* 交换卡片特色 */
.exchange-card .swap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-secondary-deep); font-weight: 700; }

/* 点赞飘心 */
.like-btn { background: #fff; border: 1px solid var(--color-line); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-family: inherit; font-weight: 700; color: var(--color-primary-deep); position: relative; }
.float-heart { position: absolute; font-size: 18px; pointer-events: none; animation: floatUp 1s ease-out forwards; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0) scale(1);} to { opacity: 0; transform: translateY(-46px) scale(1.5);} }

/* ---------- 文章 / 内页正文 ---------- */
.page-hero { background: linear-gradient(135deg, #FFE3DF, #DCEAFF); padding: 44px 0; }
.page-hero h1 { font-size: 34px; font-weight: 900; color: var(--color-text); }
.page-hero p { margin-top: 10px; color: var(--color-text-soft); max-width: 720px; }
.breadcrumb { font-size: 13px; color: var(--color-text-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--color-text-soft); }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
.article { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); }
.article h2 { font-size: 23px; margin: 26px 0 12px; color: var(--color-text); border-left: 5px solid var(--color-primary); padding-left: 12px; }
.article h3 { font-size: 18px; margin: 20px 0 10px; color: var(--color-primary-deep); }
.article p { margin: 12px 0; }
.article ul, .article ol { margin: 12px 0 12px 22px; }
.article li { margin: 6px 0; }
.article img { border-radius: var(--radius-md); margin: 18px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article th, .article td { border: 1px solid var(--color-line); padding: 10px 12px; text-align: left; }
.article th { background: #FFF3EF; color: var(--color-primary-deep); }
blockquote { background: #FFF8E1; border-left: 5px solid var(--color-secondary); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; color: var(--color-text-soft); }

/* 侧栏 */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card); }
.widget h4 { font-size: 16px; margin-bottom: 12px; color: var(--color-text); }
.widget ul { list-style: none; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--color-line); font-size: 14px; }
.widget li:last-child { border-bottom: none; }

/* FAQ */
.faq-item { background: #fff; border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-card); margin-bottom: 14px; }
.faq-item h4 { color: var(--color-primary-deep); font-size: 16px; margin-bottom: 6px; }
.faq-item h4::before { content: "Q "; font-weight: 900; }
.faq-item p { color: var(--color-text-soft); font-size: 14.5px; }

/* 相关链接 */
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { background: #fff; border: 1px solid var(--color-line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* 资金公示表 */
.fund-table td:last-child, .fund-table th:last-child { text-align: right; }

/* 名单 */
.name-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.name-pills span { background: #FFF3EF; color: var(--color-primary-deep); padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* 评论盖楼 */
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--color-line); }
.comment .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); flex: none; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; }
.comment .floor { font-size: 12px; color: var(--color-text-soft); }
.comment .cname { font-weight: 700; color: var(--color-text); font-size: 14px; }
.comment .ctext { font-size: 14px; color: var(--color-text-soft); margin-top: 4px; }

/* ---------- 搜索页 ---------- */
.search-box { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.search-box input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--color-line); font-size: 16px; font-family: inherit; outline: none; }
.search-box input:focus { border-color: var(--color-primary); }
.search-results { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.result-item { background: #fff; border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-card); }
.result-item a { font-size: 17px; font-weight: 700; }
.result-item p { color: var(--color-text-soft); font-size: 14px; margin-top: 5px; }
.result-item .url { color: var(--color-secondary-deep); font-size: 12.5px; margin-top: 4px; }

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 60px 0; }
.err-wrap img { max-width: 460px; margin: 0 auto 20px; border-radius: var(--radius-lg); }
.err-wrap h1 { font-size: 60px; color: var(--color-primary-deep); }

/* ---------- 下载页 ---------- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #4E342E; color: #EEDFD7; padding: 44px 0 22px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-grid a { color: #EEDFD7; font-size: 14px; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--color-primary); }
.footer-brand p { font-size: 14px; color: #C9B5AB; margin-top: 12px; }
.footer-warn { background: rgba(255,138,128,.18); border: 1px solid rgba(255,138,128,.4); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: #FFD7D1; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px; text-align: center; font-size: 13px; color: #C9B5AB; }

/* ---------- 响应式断点 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 14px 18px; gap: 4px;
    box-shadow: var(--shadow-card);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--color-line); width: 100%; }
  .nav-toggle { display: block; }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .hero h1 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; }
}
