/* roulang page: index */
:root {
  --color-bg: hsl(240, 8%, 10%);
  --color-surface: hsl(240, 7%, 15%);
  --color-surface-2: hsl(240, 6%, 20%);
  --color-border: hsl(240, 5%, 26%);
  --color-accent: hsl(345, 72%, 52%);
  --color-accent-dark: hsl(320, 65%, 42%);
  --color-accent-grad: linear-gradient(135deg, hsl(345,72%,52%), hsl(320,65%,42%));
  --color-gold: hsl(42, 88%, 60%);
  --color-text: hsl(0, 0%, 92%);
  --color-muted: hsl(240, 5%, 58%);
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-badge: 20px;
  --shadow-card: 0 2px 12px hsl(0,0%,0%,0.35);
  --shadow-float: 0 4px 24px hsl(345,72%,30%,0.25);
  --font-stack: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: hsl(345,72%,65%); }
img { max-width: 100%; display: block; }
button, input { font-family: var(--font-stack); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ── NAVIGATION ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 200ms ease;
}
.site-header.scrolled { box-shadow: var(--shadow-float); }
.nav-inner {
  display: flex; align-items: center; gap: 0;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem; color: var(--color-text);
  white-space: nowrap; flex-shrink: 0; text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo .accent { color: var(--color-accent); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0 auto; padding: 0;
}
.nav-links a {
  display: block; padding: 6px 14px;
  font-size: 0.9rem; color: var(--color-muted);
  border-radius: 6px; transition: color 150ms, background 150ms;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-surface); }
.nav-links a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  border-radius: 0;
}
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-search {
  position: relative;
}
.nav-search input {
  width: 200px; padding: 7px 14px 7px 36px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-btn); color: var(--color-text); font-size: 0.85rem;
  transition: border-color 180ms, width 200ms;
  outline: none;
}
.nav-search input::placeholder { color: var(--color-muted); }
.nav-search input:focus { border-color: var(--color-accent); width: 240px; }
.nav-search .search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--color-muted); font-size: 0.8rem; pointer-events: none;
}
.btn-login {
  background: none; border: none; cursor: pointer;
  color: var(--color-muted); font-size: 0.9rem; padding: 6px 10px;
  transition: color 150ms;
}
.btn-login:hover { color: var(--color-text); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-accent-grad); color: #fff;
  border: none; border-radius: var(--radius-btn);
  padding: 8px 20px; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: filter 150ms, transform 100ms;
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.1); color: #fff; }
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--color-accent);
  border: 1.5px solid var(--color-accent); border-radius: var(--radius-btn);
  padding: 8px 20px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 150ms, color 150ms;
  text-decoration: none;
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-outline:active { transform: scale(0.97); }
.btn-lg { padding: 14px 40px; font-size: 1rem; }

/* Hamburger */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--color-text); font-size: 1.3rem; padding: 8px; margin-left: auto;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--color-surface); flex-direction: column;
  padding: 80px 24px 40px; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px; font-size: 1.1rem;
  color: var(--color-text); border-radius: var(--radius-card);
  border-bottom: 1px solid var(--color-border); text-decoration: none;
}
.mobile-menu a:hover { background: var(--color-surface-2); }
.mobile-menu-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--color-muted);
  font-size: 1.5rem; cursor: pointer;
}

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  background: hsl(42,88%,60%,0.15); color: var(--color-gold);
  border-radius: var(--radius-badge); padding: 4px 12px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-accent {
  background: hsl(345,72%,52%,0.15); color: var(--color-accent);
}
.badge-green {
  background: hsl(145,60%,40%,0.15); color: hsl(145,60%,55%);
}

/* ── HERO ── */
.hero {
  padding: 140px 0 80px;
  background: var(--color-bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, hsl(345,72%,52%,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: hsl(345,72%,52%,0.1); border: 1px solid hsl(345,72%,52%,0.25);
  border-radius: var(--radius-badge); padding: 6px 16px;
  font-size: 0.8rem; color: var(--color-accent); font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; color: var(--color-text);
}
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--color-muted);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-cta-group {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.hero-hint { font-size: 0.85rem; color: var(--color-muted); }

/* Progress bar */
.hero-progress {
  max-width: 560px; margin: 40px auto 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 20px 24px;
}
.progress-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 0.85rem;
}
.progress-label span:first-child { color: var(--color-muted); }
.progress-label strong { color: var(--color-gold); font-weight: 700; }
.progress-bar-track {
  height: 8px; background: var(--color-surface-2);
  border-radius: 4px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 78%;
  background: var(--color-accent-grad);
  border-radius: 4px;
  animation: fillBar 1.2s ease forwards;
}
@keyframes fillBar { from { width: 0; } to { width: 78%; } }
.progress-stats {
  display: flex; gap: 24px; margin-top: 14px;
}
.progress-stat { text-align: center; flex: 1; }
.progress-stat .num {
  display: block; font-size: 1.4rem; font-weight: 800;
  color: var(--color-text); line-height: 1.2;
}
.progress-stat .lbl { font-size: 0.75rem; color: var(--color-muted); }

/* ── SECTION TITLES ── */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.3;
  margin-bottom: 12px; color: var(--color-text);
}
.section-sub {
  font-size: 1rem; color: var(--color-muted);
  max-width: 560px; line-height: 1.7;
}
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.card:hover {
  border-color: hsl(345,72%,52%,0.5);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px; height: 48px;
  background: hsl(345,72%,52%,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--color-accent);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 8px; }

/* ── FEATURES SECTION ── */
.features-section { background: var(--color-bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── DEMO SECTION ── */
.demo-section { background: var(--color-surface); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--color-accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem;
}
.step-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.step-body p { font-size: 0.9rem; color: var(--color-muted); line-height: 1.6; }
.matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.matrix-card {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 20px;
  transition: border-color 180ms, transform 180ms;
}
.matrix-card:hover { border-color: hsl(345,72%,52%,0.5); transform: translateY(-2px); }
.matrix-card .mc-icon { font-size: 1.5rem; margin-bottom: 10px; }
.matrix-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.matrix-card p { font-size: 0.82rem; color: var(--color-muted); line-height: 1.5; }

/* ── PROOF SECTION ── */
.proof-section { background: var(--color-bg); }
.stats-row {
  display: flex; gap: 32px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 64px;
}
.stat-block { text-align: center; }
.stat-block .big-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--color-gold); line-height: 1.1;
}
.stat-block .stat-lbl { font-size: 0.85rem; color: var(--color-muted); margin-top: 4px; }
.reviews-scroll {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--color-border) transparent;
}
.reviews-scroll::-webkit-scrollbar { height: 4px; }
.reviews-scroll::-webkit-scrollbar-track { background: transparent; }
.reviews-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.review-card {
  flex-shrink: 0; width: 300px; scroll-snap-align: start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 24px;
}
.review-stars { color: var(--color-gold); font-size: 0.9rem; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--color-text); line-height: 1.65; margin-bottom: 14px; }
.review-author { font-size: 0.8rem; color: var(--color-muted); font-weight: 600; }

/* ── PRICING SECTION ── */
.pricing-section { background: var(--color-surface); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.pricing-card {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 32px; position: relative;
}
.pricing-card.featured { border: 2px solid var(--color-accent); }
.pricing-card .rec-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent-grad); color: #fff;
  border-radius: var(--radius-badge); padding: 4px 16px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price {
  font-size: 2rem; font-weight: 800; color: var(--color-text);
  margin-bottom: 4px; line-height: 1.1;
}
.pricing-card .price-note { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--color-text);
}
.pricing-features li i { color: var(--color-accent); font-size: 0.8rem; flex-shrink: 0; }

/* ── FAQ SECTION ── */
.faq-section { background: var(--color-bg); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; color: var(--color-text);
  font-size: 1rem; font-weight: 600; text-align: left;
  transition: background 150ms;
}
.faq-question:hover { background: var(--color-surface-2); }
.faq-question i { color: var(--color-accent); transition: transform 250ms; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
  border-left: 3px solid var(--color-accent);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 16px 24px; font-size: 0.95rem; color: var(--color-muted); line-height: 1.75; }

/* ── INLINE CTA ── */
.inline-cta {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 40px;
  text-align: center; margin: 64px 0 0;
}
.inline-cta h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.inline-cta p { color: var(--color-muted); margin-bottom: 24px; }

/* ── FLOATING CTA ── */
.float-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 16px 20px;
  box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  max-width: 260px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 300ms, transform 300ms;
  pointer-events: none;
}
.float-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-cta-hint { font-size: 0.78rem; color: var(--color-muted); }
.float-cta .btn-primary { width: 100%; justify-content: center; }

/* ── CATEGORIES ── */
.categories-section { background: var(--color-surface); }
.cat-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-badge); padding: 8px 18px;
  font-size: 0.9rem; color: var(--color-text);
  text-decoration: none; transition: border-color 150ms, background 150ms;
}
.cat-tag:hover { border-color: var(--color-accent); background: hsl(345,72%,52%,0.08); color: var(--color-text); }
.cat-tag i { color: var(--color-accent); font-size: 0.85rem; }

/* ── NEWS SECTION ── */
.news-section { background: var(--color-bg); }
.news-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--color-border);
}
.news-item:last-child { border-bottom: none; }
.news-date-badge {
  flex-shrink: 0; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 6px 10px; text-align: center; min-width: 52px;
}
.news-date-badge .nd-month { font-size: 0.65rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.news-date-badge .nd-day { font-size: 1.1rem; font-weight: 800; color: var(--color-text); line-height: 1.1; }
.news-body a {
  font-size: 0.95rem; font-weight: 600; color: var(--color-text);
  text-decoration: none; display: block; margin-bottom: 4px;
  transition: color 150ms;
}
.news-body a:hover { color: var(--color-accent); }
.news-body p { font-size: 0.82rem; color: var(--color-muted); line-height: 1.5; }
.news-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 20px;
}
.sidebar-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: var(--color-text); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-badge); padding: 4px 12px;
  font-size: 0.78rem; color: var(--color-muted); text-decoration: none;
  transition: color 150ms, border-color 150ms;
}
.sidebar-tag:hover { color: var(--color-accent); border-color: var(--color-accent); }
.sidebar-updates { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-updates li { display: flex; gap: 10px; align-items: flex-start; }
.su-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent); flex-shrink: 0; margin-top: 7px;
}
.sidebar-updates a { font-size: 0.82rem; color: var(--color-muted); text-decoration: none; line-height: 1.5; }
.sidebar-updates a:hover { color: var(--color-accent); }

/* ── COMPARE SECTION ── */
.compare-section { background: var(--color-surface); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.compare-table thead th {
  background: var(--color-surface-2); font-weight: 700;
  color: var(--color-text);
}
.compare-table thead th:first-child { border-radius: 8px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 8px 0 0; }
.compare-table thead th.highlight { color: var(--color-accent); }
.compare-table tbody tr:hover td { background: hsl(345,72%,52%,0.04); }
.compare-table td { color: var(--color-muted); }
.compare-table td:first-child { color: var(--color-text); font-weight: 500; }
.compare-table .yes { color: hsl(145,60%,55%); }
.compare-table .no { color: hsl(0,60%,55%); }
.compare-table .hl { color: var(--color-accent); font-weight: 600; }

/* ── FOOTER ── */
.site-footer {
  background: hsl(240, 8%, 7%);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 12px; display: block; text-decoration: none; }
.footer-brand .logo .accent { color: var(--color-accent); }
.footer-brand p { font-size: 0.85rem; color: var(--color-muted); line-height: 1.7; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; color: var(--color-text); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.85rem; color: var(--color-muted); text-decoration: none; transition: color 150ms; }
.footer-col ul a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--color-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-search input { width: 160px; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section-pad { padding: 56px 0; }
  .hero { padding: 100px 0 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-cta { left: 16px; right: 16px; max-width: none; bottom: 16px; flex-direction: row; align-items: center; }
  .float-cta-hint { display: none; }
  .nav-search { display: none; }
  .nav-right .btn-login { display: none; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 0.8rem; }
}

/* roulang page: category1 */
:root {
  --color-bg: hsl(240, 8%, 10%);
  --color-surface: hsl(240, 7%, 15%);
  --color-surface-2: hsl(240, 6%, 20%);
  --color-border: hsl(240, 5%, 26%);
  --color-accent: hsl(345, 72%, 52%);
  --color-accent-grad: linear-gradient(135deg, hsl(345,72%,52%), hsl(320,65%,42%));
  --color-gold: hsl(42, 88%, 60%);
  --color-text: hsl(0, 0%, 92%);
  --color-muted: hsl(240, 5%, 58%);
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-badge: 20px;
  --shadow-card: 0 2px 12px hsl(0,0%,0%,0.35);
  --shadow-float: 0 4px 24px hsl(345,72%,30%,0.25);
  --font-stack: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.75;
}

a { color: var(--color-text); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-stack); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow 200ms ease;
}
.site-header.scrolled { box-shadow: var(--shadow-float); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo svg { color: var(--color-muted); flex-shrink: 0; }
.nav-logo .accent { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: color 150ms, background 150ms;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-surface); }
.nav-links a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  border-radius: 0;
  padding-bottom: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search .search-icon {
  position: absolute;
  left: 10px;
  color: var(--color-muted);
  font-size: 0.8rem;
  pointer-events: none;
}
.nav-search input {
  width: 200px;
  padding: 7px 12px 7px 30px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: var(--font-stack);
  outline: none;
  transition: border-color 150ms;
}
.nav-search input::placeholder { color: var(--color-muted); }
.nav-search input:focus { border-color: var(--color-accent); }

.btn-login {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 6px 8px;
  transition: color 150ms;
}
.btn-login:hover { color: var(--color-text); }

.btn-primary {
  background: var(--color-accent-grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: filter 150ms, transform 100ms;
  display: inline-block;
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-primary:active { transform: scale(0.97); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  padding: 8px;
  margin-left: auto;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--color-surface);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}
.nav-overlay a:hover, .nav-overlay a.active { color: var(--color-accent); background: var(--color-surface-2); }

/* ── PAGE BODY ── */
.page-body { padding-top: 64px; }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.breadcrumb-bar a { color: var(--color-muted); }
.breadcrumb-bar a:hover { color: var(--color-accent); }
.breadcrumb-bar .sep { color: var(--color-border); }
.breadcrumb-bar .current { color: var(--color-text); }

/* ── CATEGORY HERO ── */
.cat-hero {
  background: var(--color-bg);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, hsl(345,72%,52%,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cat-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.cat-hero h1 .accent { color: var(--color-accent); }
.cat-hero .hero-sub {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 560px;
}
.cat-hero .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: hsl(42,88%,60%,0.12);
  color: var(--color-gold);
  border-radius: var(--radius-badge);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-accent {
  background: hsl(345,72%,52%,0.12);
  color: var(--color-accent);
}

/* ── FILTER BAR ── */
.filter-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: nowrap;
}
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: var(--radius-btn);
  padding: 5px 14px;
  font-size: 0.82rem;
  font-family: var(--font-stack);
  transition: all 150ms;
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── MAIN LAYOUT ── */
.cat-main {
  padding: 40px 0 80px;
}
.cat-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sub-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
  display: flex;
  flex-direction: column;
}
.sub-card:hover {
  border-color: hsl(345,72%,52%,0.5);
  transform: translateY(-3px);
}

.card-banner {
  height: 140px;
  background: linear-gradient(135deg, hsl(345,72%,52%,0.18), hsl(320,65%,42%,0.22));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}
.card-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.4;
}
.card-banner-icon {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: hsl(345,72%,52%,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.75rem;
}

.card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.card-summary {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--color-border);
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: var(--radius-btn);
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 150ms, color 150ms;
  width: 100%;
  text-align: center;
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.sidebar-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: var(--radius-badge);
  padding: 4px 12px;
  font-size: 0.78rem;
  transition: all 150ms;
}
.tag:hover { border-color: var(--color-accent); color: var(--color-accent); background: hsl(345,72%,52%,0.08); }

.update-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.update-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.update-date {
  background: hsl(345,72%,52%,0.12);
  color: var(--color-accent);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.update-title {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.update-title:hover { color: var(--color-accent); }

/* ── PAGINATION ── */
.pagination-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: all 150ms;
}
.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination .current span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.pagination .disabled span { opacity: 0.35; cursor: default; }

/* ── CTA INLINE ── */
.cta-inline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.cta-inline h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-inline p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.btn-cta-large {
  display: inline-block;
  background: var(--color-accent-grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: filter 150ms, transform 100ms;
}
.btn-cta-large:hover { filter: brightness(1.08); color: #fff; }
.btn-cta-large:active { transform: scale(0.97); }

/* ── FOOTER ── */
.site-footer {
  background: hsl(240, 8%, 7%);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo {
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color 150ms;
}
.footer-col ul a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--color-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cat-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { gap: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .cat-hero { padding: 40px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .filter-section { top: 64px; }
  .cta-inline { padding: 24px 16px; }
}
