/* roulang page: index */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #ff4d2e;
  --amber: #f59e0b;
  --teal: #0d9488;
  --dark-1: #0b1526;
  --dark-2: #101f36;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text-1: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e5eaf2;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(15,23,42,.06);
  --shadow-md: 0 8px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.12);
  --sidebar-w: 264px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
}

/* ===== App Shell 布局 ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--dark-1) 0%, var(--dark-2) 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  overflow-y: auto;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f8df9 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}

.brand-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .3px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  transition: background .25s, color .25s, transform .2s;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
}

.side-card {
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px;
}

.side-card-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-card-title i {
  color: var(--amber);
}

.side-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.side-card-item:last-child {
  border-bottom: none;
}

.side-card-item span {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ===== 移动端 Header ===== */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--dark-1);
  color: #fff;
  padding: 12px 20px;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.mobile-logo {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-cat {
  background: rgba(255,255,255,.1);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.sidebar-overlay {
  display: none;
}

/* ===== 容器与板块 ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 24px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-2);
  font-size: 16px;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
  transition: transform .25s, box-shadow .25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  transition: background .25s, transform .25s;
}

.btn-outline:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transition: transform .25s, box-shadow .25s;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,21,38,.93) 0%, rgba(11,21,38,.72) 45%, rgba(11,21,38,.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}

.hero-badge i {
  color: var(--amber);
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: .5px;
}

.hero-content .hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hs-item {
  display: flex;
  flex-direction: column;
}

.hs-item strong {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.hs-item span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

/* ===== 特性卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #eef4ff 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 分类入口 ===== */
.category-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  min-height: 260px;
  box-shadow: var(--shadow-md);
  transition: transform .3s, box-shadow .3s;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.cat-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11,21,38,.05) 0%, rgba(11,21,38,.85) 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
}

.cat-overlay h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cat-overlay p {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin-bottom: 12px;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  transition: gap .25s;
}

.cat-link:hover {
  gap: 10px;
}

/* ===== 最新资讯列表 ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  gap: 20px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--primary-light);
}

.post-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-3);
  line-height: 1.4;
  min-width: 44px;
}

.post-card-body {
  flex: 1;
  min-width: 0;
}

.post-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.post-cat {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.post-title-row h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}

.post-time i {
  margin-right: 4px;
}

.post-more {
  color: var(--primary);
  font-weight: 600;
}

.post-more i {
  transition: transform .2s;
}

.post-card:hover .post-more i {
  transform: translateX(3px);
}

.empty-tip {
  text-align: center;
  padding: 40px;
  color: var(--text-3);
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

/* ===== 热度排行 ===== */
.hot-rank {
  background: var(--dark-1);
  color: #fff;
}

.hot-rank .section-head h2 {
  color: #fff;
}

.hot-rank .section-head p {
  color: rgba(255,255,255,.6);
}

.hot-rank .section-tag {
  background: rgba(255,255,255,.12);
  color: var(--amber);
}

.rank-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px 20px;
  transition: background .25s;
}

.rank-item:hover {
  background: rgba(255,255,255,.1);
}

.rank-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--amber);
  min-width: 34px;
}

.rank-info {
  flex: 1;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rank-bar {
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
}

.rank-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 6px;
}

.rank-percent {
  min-width: 48px;
  text-align: right;
  font-weight: 700;
  color: var(--amber);
  font-size: 15px;
}

/* ===== 数据统计 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card i {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 12px;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--text-1);
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--text-2);
  font-size: 14px;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--card);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  color: var(--primary);
}

.faq-item p {
  padding: 0 22px 18px 48px;
  color: var(--text-2);
  font-size: 14px;
}

/* ===== CTA ===== */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(37,99,235,.4);
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -80px;
  right: -60px;
}

.cta-box h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.cta-box p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark-1);
  color: rgba(255,255,255,.7);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-desc {
  max-width: 520px;
  margin: 0 auto 20px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  transition: color .2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}

/* ===== 文章页 ===== */
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb i {
  font-size: 11px;
}

.article-head {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.article-head .article-cat {
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.article-head h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-head .article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-3);
  font-size: 13px;
}

.article-head .article-meta i {
  margin-right: 4px;
}

.article-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.article-content {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.9;
}

.article-content h2 {
  font-size: 22px;
  color: var(--text-1);
  margin: 28px 0 14px;
  font-weight: 700;
}

.article-content h3 {
  font-size: 18px;
  color: var(--text-1);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.article-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 6px;
}

.not-found {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.not-found h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.not-found p {
  color: var(--text-2);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 160px;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.related-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11,21,38,.05) 0%, rgba(11,21,38,.82) 100%);
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* ===== 分类页 ===== */
.category-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 60px 24px;
}

.category-hero .hero-bg {
  background-size: cover;
  background-position: center;
}

.category-hero .hero-bg::after {
  background: linear-gradient(90deg, rgba(11,21,38,.9) 0%, rgba(11,21,38,.65) 100%);
}

.category-hero .hero-content {
  max-width: 1180px;
}

.category-hero h1 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-hero p {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  max-width: 560px;
}

.category-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.guide-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.guide-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.guide-card-body {
  padding: 22px;
}

.guide-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-card-body p {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 12px;
}

.guide-card-body a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-card-body a i {
  transition: transform .2s;
}

.guide-card-body a:hover i {
  transform: translateX(3px);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-card:first-child {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    width: 280px;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0,0,0,.3);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 115;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .main-area {
    margin-left: 0;
  }

  .mobile-header {
    display: flex;
  }

  .section {
    padding: 56px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: 480px;
    padding: 60px 16px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hs-item strong {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .cat-card,
  .cat-card:first-child {
    grid-column: auto;
    min-height: 200px;
  }

  .post-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .post-num {
    font-size: 16px;
    min-width: 0;
  }

  .post-title-row h3 {
    font-size: 16px;
  }

  .hot-rank .rank-item {
    padding: 14px;
    gap: 12px;
  }

  .rank-num {
    font-size: 15px;
    min-width: 26px;
  }

  .rank-title {
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-card {
    padding: 24px 14px;
  }

  .stat-card strong {
    font-size: 22px;
  }

  .article-head,
  .article-body {
    padding: 24px 20px;
  }

  .article-head h1 {
    font-size: 24px;
  }

  .category-guide-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hs-item strong {
    font-size: 18px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-item {
    flex-wrap: wrap;
  }

  .rank-percent {
    min-width: auto;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .article-head .article-meta {
    flex-direction: column;
    gap: 6px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* roulang page: article */
:root {
    --primary: #e63946;
    --primary-dark: #c53030;
    --accent: #f97316;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(15, 23, 42, .06);
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-active: #ffffff;
    --transition: all .25s ease;
  }

  * { 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(--bg);
    color: var(--text);
    line-height: 1.7;
  }

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button, input, select, textarea { font: inherit; }

  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ===== Sidebar Layout ===== */
  .site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 100;
    transition: transform .3s ease;
  }

  .sidebar-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    padding: 12px 16px;
    display: block;
    letter-spacing: .5px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 24px;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--sidebar-text);
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
  }

  .nav-item i {
    width: 20px;
    text-align: center;
  }

  .nav-item:hover,
  .nav-item.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
  }

  /* ===== Main Wrap ===== */
  .main-wrap {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .page-content {
    flex: 1;
    padding: 40px 48px;
    max-width: 1200px;
    width: 100%;
  }

  /* ===== Mobile Topbar ===== */
  .mobile-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--sidebar-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 99;
  }

  .menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background .2s;
  }

  .menu-toggle:hover { background: rgba(255, 255, 255, .1); }
  .menu-toggle:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

  .mobile-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
  }

  /* ===== Breadcrumb ===== */
  .breadcrumb {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .breadcrumb a { color: var(--primary); transition: color .2s; }
  .breadcrumb a:hover { color: var(--primary-dark); }
  .breadcrumb .sep { color: var(--border); }

  /* ===== Article Header ===== */
  .article-header {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    border: 1px solid var(--border);
  }

  .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: .8rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.6;
  }

  .badge-category {
    background: var(--primary);
    color: #fff;
  }

  .badge-date {
    background: var(--bg);
    color: var(--text-muted);
  }

  .article-title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--text);
    letter-spacing: .5px;
  }

  .article-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.8;
  }

  /* ===== Article Body ===== */
  .article-body {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    overflow-wrap: break-word;
  }

  .article-body > *:first-child { margin-top: 0; }
  .article-body > *:last-child { margin-bottom: 0; }
  .article-body p { margin: 0 0 1.5em; font-size: 1.05rem; }
  .article-body h2, .article-body h3 { margin: 1.5em 0 .75em; line-height: 1.4; }
  .article-body img { border-radius: var(--radius); margin: 1.5em 0; height: auto; }
  .article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg);
    margin: 1.5em 0;
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted);
  }
  .article-body a { color: var(--primary); text-decoration: underline; }
  .article-body a:hover { color: var(--primary-dark); }
  .article-body ul, .article-body ol { margin: 0 0 1.5em 1.5em; padding-left: .5em; }
  .article-body li { margin-bottom: .5em; }

  .not-found {
    text-align: center;
    padding: 40px 20px;
  }

  .not-found h2 {
    font-size: 2rem;
    margin: 0 0 16px;
  }

  .not-found p {
    color: var(--text-muted);
    margin: 0 0 24px;
  }

  /* ===== Buttons ===== */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.6;
  }

  .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
  }

  .btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .btn-light {
    background: #fff;
    color: var(--primary);
  }

  .btn-light:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
  }

  /* ===== Related Section ===== */
  .related-section {
    margin-bottom: 40px;
  }

  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
  }

  .section-more {
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .section-more:hover { color: var(--primary-dark); }

  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .related-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    display: block;
  }

  .related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
  }

  .related-info h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text);
  }

  .related-info span {
    color: var(--text-muted);
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* ===== CTA ===== */
  .cta-section {
    background-image: url('/assets/images/backpic/back-1.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    padding: 60px 40px;
    margin-bottom: 40px;
    position: relative;
  }

  .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .85), rgba(30, 41, 59, .45));
    border-radius: var(--radius);
  }

  .cta-content {
    position: relative;
    color: #fff;
    z-index: 1;
  }

  .cta-content h2 {
    font-size: 2rem;
    margin: 0 0 12px;
    line-height: 1.3;
  }

  .cta-content p {
    font-size: 1.1rem;
    margin: 0 0 24px;
    opacity: .9;
    max-width: 600px;
  }

  /* ===== Footer ===== */
  .site-footer {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 48px 24px;
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
  }

  .footer-desc {
    margin: 0 0 16px;
    max-width: 600px;
    color: #94a3b8;
    font-size: .95rem;
    line-height: 1.7;
  }

  .footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: #94a3b8;
    transition: color .2s;
    font-weight: 500;
  }

  .footer-links a:hover { color: #fff; }

  .footer-copy {
    font-size: .85rem;
    color: #475569;
  }

  /* ===== Responsive ===== */
  @media (max-width: 1024px) {
    .site-sidebar {
      transform: translateX(-100%);
    }

    .site-sidebar.open {
      transform: translateX(0);
    }

    .main-wrap {
      margin-left: 0;
    }

    .mobile-topbar {
      display: flex;
    }

    .sidebar-overlay.show {
      display: block;
    }

    .page-content {
      padding: 32px 24px;
    }
  }

  @media (max-width: 768px) {
    .page-content {
      padding: 24px 20px;
    }

    .article-header,
    .article-body {
      padding: 24px;
    }

    .article-title {
      font-size: 1.75rem;
    }

    .article-desc {
      font-size: 1rem;
    }

    .cta-section {
      padding: 40px 24px;
    }

    .cta-content h2 {
      font-size: 1.5rem;
    }

    .related-grid {
      grid-template-columns: 1fr;
    }

    .breadcrumb {
      font-size: .8rem;
    }
  }

  @media (max-width: 520px) {
    .mobile-logo {
      font-size: 1rem;
    }

    .article-title {
      font-size: 1.5rem;
    }

    .section-head {
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-links {
      gap: 12px;
    }
  }

/* roulang page: category1 */
:root {
  --primary: #1a1a2e;
  --primary-light: #2d2d44;
  --accent: #e94560;
  --accent-hover: #d63850;
  --gold: #f5a623;
  --bg: #f5f6fa;
  --white: #ffffff;
  --text: #12141a;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --sidebar-w: 240px;
  --transition: all 0.3s ease;
  --space-section: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 30px;
  background: rgba(233, 69, 96, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-light);
  font-size: 15px;
}

/* App shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: linear-gradient(180deg, #141428 0%, var(--primary) 100%);
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  z-index: 1000;
  transition: transform 0.35s ease;
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

.brand-name {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.side-nav .nav-item i {
  font-size: 17px;
  width: 22px;
  text-align: center;
}

.side-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.side-nav .nav-item.active {
  background: rgba(233, 69, 96, 0.18);
  color: #fff;
  padding-left: 18px;
}

.side-nav .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.6;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--primary);
  z-index: 998;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.mobile-header .mobile-brand {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header .mobile-brand i {
  color: var(--accent);
  font-size: 18px;
}

.mobile-header .hamburger {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
}

.mobile-header .hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Category Hero */
.category-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-image: url('/assets/images/backpic/back-1.png');
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  overflow: hidden;
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.92) 0%, rgba(26, 26, 46, 0.72) 50%, rgba(233, 69, 96, 0.42) 100%);
}

.category-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  opacity: 0.6;
}

.category-hero h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.category-hero h1 span {
  color: var(--gold);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.stat-num {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 4px;
}

/* Category grid */
.category-grid-section {
  padding-top: var(--space-section);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .card-img img {
  transform: scale(1.06);
}

.card-img .card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26, 26, 46, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.card-img .card-badge.hot {
  background: rgba(233, 69, 96, 0.9);
}

.card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}

.card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-top: auto;
}

.card-meta .meta-info {
  font-size: 13px;
  color: var(--text-light);
}

.card-meta .btn-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
}

.card-meta .btn-text:hover {
  color: var(--accent-hover);
  gap: 4px;
}

/* News section */
.news-section {
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card .card-img {
  height: 180px;
}

.news-card .card-img .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.news-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-card .card-body {
  padding: 20px;
}

.news-card .card-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  font-size: 13px;
}

.news-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.tag-accent {
  background: rgba(233, 69, 96, 0.12);
  color: var(--accent);
}

.tag-gold {
  background: rgba(245, 166, 35, 0.15);
  color: #b9751a;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

/* Progress update bar */
.update-progress {
  margin-top: 4px;
}

.update-progress .progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.progress-bar {
  height: 6px;
  border-radius: 10px;
  background: #e8eaef;
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), #ff8a5c);
  width: 0;
  transition: width 1s ease;
}

/* Rank section */
.rank-section {
  background: linear-gradient(135deg, var(--primary) 0%, #101024 100%);
  position: relative;
  overflow: hidden;
}

.rank-section .section-head h2 {
  color: #fff;
}

.rank-section .section-head p {
  color: rgba(255, 255, 255, 0.5);
}

.rank-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 24px;
  transition: var(--transition);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(6px);
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.25);
  width: 36px;
  text-align: center;
  font-style: italic;
  flex-shrink: 0;
}

.rank-item:first-child .rank-num {
  color: var(--gold);
}

.rank-item:nth-child(2) .rank-num {
  color: #c0c0c0;
}

.rank-item:nth-child(3) .rank-num {
  color: #cd7f32;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-name .rank-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(233, 69, 96, 0.25);
  color: #ffb3c1;
  font-weight: 600;
}

.rank-bar {
  height: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  max-width: 480px;
}

.rank-bar .rank-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  width: 0;
  transition: width 1.2s ease;
}

.rank-value {
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
  min-width: 56px;
  text-align: right;
  flex-shrink: 0;
}

/* Knowledge section */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.knowledge-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.knowledge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.knowledge-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(245, 166, 35, 0.12));
  color: var(--accent);
}

.knowledge-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.knowledge-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.knowledge-card .btn-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.knowledge-card .btn-link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

/* Guide section */
.guide-section {
  background: var(--white);
}

.guide-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.guide-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.guide-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.guide-media .guide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 28px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.guide-content h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}

.guide-content h2 span {
  color: var(--accent);
}

.guide-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guide-list li i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(233, 69, 96, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 3px;
}

.guide-list li span {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question i {
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* CTA section */
.cta-section {
  padding: 60px 0;
  background-image: url('/assets/images/backpic/back-2.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 26, 46, 0.94), rgba(233, 69, 96, 0.7));
}

.cta-box {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-box h2 {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(233, 69, 96, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn .btn-icon {
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: #12121f;
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --space-section: 64px;
  }
  .category-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-media img {
    height: 340px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 48px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-header {
    display: flex;
  }
  .main-content {
    margin-left: 0;
    padding-top: 60px;
  }
  .category-hero {
    min-height: 340px;
  }
  .category-hero h1 {
    font-size: 34px;
  }
  .hero-desc {
    font-size: 14px;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-num {
    font-size: 22px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .category-grid,
  .news-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .category-card .card-img {
    height: 180px;
  }
  .rank-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }
  .rank-info {
    flex: 1 1 calc(100% - 54px);
  }
  .rank-value {
    min-width: auto;
  }
  .guide-content h2 {
    font-size: 24px;
  }
  .cta-box h2 {
    font-size: 26px;
  }
  .cta-box .btn {
    margin: 4px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  .category-hero {
    min-height: 300px;
  }
  .category-hero h1 {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .hero-stats {
    gap: 14px;
  }
  .stat-num {
    font-size: 18px;
  }
  .stat-label {
    font-size: 12px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .card-body h3 {
    font-size: 16px;
  }
  .card-body p {
    font-size: 13px;
  }
  .knowledge-card {
    padding: 22px 18px;
  }
  .rank-num {
    font-size: 20px;
    width: 28px;
  }
  .rank-name {
    font-size: 14px;
  }
  .rank-value {
    font-size: 15px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
  }
  .faq-answer {
    padding: 0 18px;
  }
  .faq-item.active .faq-answer {
    padding: 0 18px 16px;
  }
  .footer-links {
    gap: 18px;
  }
  .btn {
    padding: 11px 24px;
    font-size: 14px;
  }
}

/* Focus accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(233, 69, 96, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}
