/* roulang page: index */
:root {
  --color-primary: #2B7BB9;
  --color-primary-dark: #1D5D90;
  --color-primary-light: #EAF2F9;
  --color-accent: #FF8A3D;
  --color-accent-hover: #F2741F;
  --bg-page: #F6F8FB;
  --color-heading: #16324B;
  --color-body: #33475B;
  --color-secondary: #5C7185;
  --color-muted: #8A9BAC;
  --color-border: #DCE6F0;
  --color-card: #FFFFFF;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-tag: 999px;
  --shadow-card: 0 4px 20px rgba(43, 123, 185, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(43, 123, 185, 0.14);
  --transition-base: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  background-color: var(--bg-page);
  color: var(--color-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-base); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--color-heading); line-height: 1.3; font-weight: 700; }
.container-custom { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .container-custom { padding: 0 16px; }
}
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ===== Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(23, 42, 66, 0.08);
  border-bottom: 1px solid rgba(220, 230, 240, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-primary); }
.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-search {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(43, 123, 185, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-search:hover { background: var(--color-primary); color: #fff; }
.btn-search:focus-visible {
  outline: 2px solid rgba(43, 123, 185, 0.4);
  outline-offset: 2px;
}
.btn-play-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-play-small:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-play-small:active { transform: scale(0.98); }
.btn-play-small:focus-visible {
  outline: 2px solid rgba(43, 123, 185, 0.4);
  outline-offset: 2px;
}
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(43, 123, 185, 0.08);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-heading);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 40px rgba(23, 42, 66, 0.1);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-heading);
  border-radius: 10px;
}
.mobile-menu a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.mobile-menu a.active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; }
.mobile-menu .btn-play-small {
  margin-top: 12px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn-play-small { display: none; }
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 560px;
  height: 80vh;
  background-image: url('/assets/images/backpic/back-1.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.60) 35%, rgba(255,255,255,0.88) 70%, #F6F8FB 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-top: 68px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.12);
  border: 1px solid rgba(255, 138, 61, 0.3);
  color: var(--color-accent-hover);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 48px;
  color: var(--color-heading);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 900px;
  margin: 0 auto 16px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(43, 123, 185, 0.28);
}
.btn-primary:hover { background: #3588c7; box-shadow: 0 6px 20px rgba(43, 123, 185, 0.35); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible {
  outline: 2px solid rgba(43, 123, 185, 0.4);
  outline-offset: 3px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--color-primary);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover { background: var(--color-primary-light); }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary:focus-visible {
  outline: 2px solid rgba(43, 123, 185, 0.4);
  outline-offset: 3px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-heading);
  font-variant-numeric: tabular-nums;
}
.hero-stat .stat-label {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .hero-section { height: 70vh; min-height: 540px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .hero-stats { gap: 24px; margin-top: 40px; }
  .hero-stat .stat-value { font-size: 22px; }
}

/* ===== Section spacing ===== */
.section-block { padding: 80px 0; }
.section-block-sm { padding: 48px 0; }
@media (max-width: 768px) {
  .section-block { padding: 56px 0; }
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1.3;
}
.section-title .accent {
  color: var(--color-accent);
}
.section-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 6px;
}
.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.section-more:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
@media (max-width: 640px) {
  .section-title { font-size: 24px; }
  .section-header { flex-wrap: wrap; }
}

/* ===== Horizontal scroll ===== */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 2px 16px;
  scroll-snap-type: x proximity;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-item { scroll-snap-align: start; flex-shrink: 0; }
.scroll-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.scroll-nav-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.scroll-nav-btn:active { transform: scale(0.95); }
.scroll-nav-btn:focus-visible { outline: 2px solid rgba(43, 123, 185, 0.4); outline-offset: 2px; }

/* ===== Cards ===== */
.game-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(220, 230, 240, 0.6);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.game-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #EAF2F9 0%, #D0E3F1 100%);
}
.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-cover img { transform: scale(1.04); }
.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}
.game-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card-title { font-size: 16px; font-weight: 700; color: var(--color-heading); line-height: 1.4; }
.game-card-meta { display: flex; align-items: center; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.tag-primary { background: var(--color-primary-light); color: var(--color-primary); }
.tag-accent { background: rgba(255, 138, 61, 0.12); color: var(--color-accent-hover); }
.tag-green { background: rgba(43, 164, 113, 0.1); color: #1e8a5f; }

/* Hot gallery card */
.hot-card { width: 280px; }
@media (max-width: 1024px) { .hot-card { width: 260px; } }
@media (max-width: 640px) { .hot-card { width: 70vw; min-width: 240px; } }

/* Playlist small card */
.play-card { width: 220px; }
.play-card .game-card-cover { aspect-ratio: 16/9; }
.play-card .game-card-title { font-size: 15px; }
@media (max-width: 640px) { .play-card { width: 60vw; min-width: 200px; } }

/* Popular 4-col grid */
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.popular-grid .game-card-cover { aspect-ratio: 16/9; }
@media (max-width: 1024px) { .popular-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .popular-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===== CTA section ===== */
.cta-section {
  background: linear-gradient(120deg, var(--color-primary-light) 0%, #FFFFFF 100%);
  padding: 64px 0;
}
.cta-container {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 240, 0.6);
  box-shadow: 0 8px 36px rgba(43, 123, 185, 0.08);
}
.cta-container::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: rgba(255, 138, 61, 0.18);
  top: -40px;
  right: -30px;
  transform: rotate(30deg);
}
.cta-container::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(43, 123, 185, 0.1);
  bottom: -30px;
  left: -20px;
}
.cta-title { font-size: 28px; font-weight: 800; color: var(--color-heading); margin-bottom: 12px; }
.cta-desc { font-size: 15px; color: var(--color-secondary); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
@media (max-width: 768px) {
  .cta-container { padding: 40px 24px; }
  .cta-title { font-size: 22px; }
}

/* ===== News list (CMS) ===== */
.news-section { background: #FFFFFF; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-page);
  border-radius: 14px;
  border: 1px solid rgba(220, 230, 240, 0.5);
  border-left: 4px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.news-item:hover {
  border-left-color: var(--color-primary);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.news-date {
  min-width: 72px;
  text-align: center;
  padding: 8px 10px;
  background: var(--color-primary-light);
  border-radius: 10px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}
.news-content { flex: 1; min-width: 0; }
.news-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-content p {
  font-size: 14px;
  color: var(--color-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.news-cat { flex-shrink: 0; }
@media (max-width: 768px) {
  .news-item { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .news-date { min-width: 60px; }
  .news-content h3 { font-size: 15px; white-space: normal; }
  .news-content p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.news-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-page);
  border-radius: 16px;
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq-section { background: var(--bg-page); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open { border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(43, 123, 185, 0.1); }
.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  transition: color 0.25s ease;
}
.faq-question:hover { color: var(--color-primary); }
.faq-q-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.faq-item.open .faq-q-icon { background: var(--color-primary); color: #fff; }
.faq-arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--color-primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px 62px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-secondary);
  border-top: 1px solid transparent;
}
.faq-item.open .faq-answer-inner {
  padding-top: 16px;
  border-top-color: var(--color-border);
}
@media (max-width: 640px) {
  .faq-question { padding: 16px; font-size: 14px; }
  .faq-answer-inner { padding: 0 16px 16px 52px; }
}

/* ===== Footer ===== */
.site-footer {
  background: #16324B;
  color: #B8C7D9;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo-text { color: #FFFFFF; }
.footer-brand .logo-icon { background: var(--color-accent); }
.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #8FA6BC;
  margin-top: 16px;
  max-width: 320px;
}
.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: #B8C7D9;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #B8C7D9; }
.footer-contact span { display: flex; align-items: center; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(184, 199, 217, 0.2);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7E96AE;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .site-footer { padding-top: 48px; }
}

/* ===== Image fallback ===== */
.img-wrap { position: relative; overflow: hidden; }
.img-fallback {
  background: linear-gradient(135deg, #EAF2F9 0%, #C8DEEE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-fallback::after {
  content: '九游';
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* X scroll wrapper for arrow buttons */
.scroll-wrapper { position: relative; }
.scroll-arrows {
  display: flex;
  gap: 10px;
}
.scroll-arrows .scroll-nav-btn.scrolled-left { opacity: 0.4; pointer-events: none; }

/* Focus visible general */
a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(43, 123, 185, 0.4);
  outline-offset: 2px;
}

/* roulang page: category1 */
:root {
  --color-primary: #2B7BB9;
  --color-primary-dark: #1D5D90;
  --color-accent: #FF8A3D;
  --color-accent-hover: #F2741F;
  --color-success: #2BA471;
  --color-danger: #D9534F;
  --bg-light: #EAF2F9;
  --bg-page: #F6F8FB;
  --text-heading: #16324B;
  --text-body: #33475B;
  --text-secondary: #5C7185;
  --text-muted: #8A9BAC;
  --border-color: #DCE6F0;
  --card-bg: #FFFFFF;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-tag: 999px;
  --shadow-card: 0 4px 20px rgba(43,123,185,0.08);
  --shadow-card-hover: 0 12px 32px rgba(43,123,185,0.14);
  --transition-base: 0.25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container-custom { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .container-custom { padding: 0 16px; }
}

/* Nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  z-index: 1000;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 30px rgba(23,42,66,0.08);
  border-bottom-color: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(43,123,185,0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
  color: var(--color-primary);
  background: var(--bg-light);
}
.nav-link.active {
  color: var(--color-primary);
  background: var(--bg-light);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.search-btn:hover {
  background: var(--bg-light);
  color: var(--color-primary);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s, border-color 0.25s;
  line-height: 1.4;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(43,123,185,0.4);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(43,123,185,0.3);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(43,123,185,0.35);
}
.btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--bg-light);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 10px;
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,138,61,0.3);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(255,138,61,0.35);
}
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
}
.mobile-toggle:hover { background: var(--bg-light); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px 16px;
  z-index: 999;
  box-shadow: 0 16px 32px rgba(23,42,66,0.08);
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 10px;
  margin-bottom: 2px;
}
.mobile-link:hover { background: var(--bg-light); color: var(--color-primary); }
.mobile-link.active { color: var(--color-primary); background: var(--bg-light); font-weight: 600; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-actions .btn-sm { display: none; }
  .mobile-toggle { display: flex; }
}

/* Hero */
.category-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 72px;
  overflow: hidden;
}
.category-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.category-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 45%, rgba(255,255,255,0.55) 100%);
}
.category-hero-content {
  position: relative;
  z-index: 2;
}
.category-hero-badge {
  display: inline-block;
  background: rgba(43,123,185,0.12);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.category-hero h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-heading);
  max-width: 700px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.category-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .category-hero { min-height: 400px; padding-top: 100px; padding-bottom: 48px; }
  .category-hero h1 { font-size: 32px; }
  .category-hero p { font-size: 16px; }
}

/* Section */
.section { padding: 88px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.section-head p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .section-head h2 { font-size: 26px; }
  .section-head { margin-bottom: 36px; }
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(220,230,240,0.6);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.game-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(220,230,240,0.6);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.game-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light), #e8eff5);
}
.game-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-cover img { transform: scale(1.04); }
.game-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--text-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 4px;
}
.game-badge .star { color: #FFB800; }
.game-info { padding: 20px; }
.game-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  line-height: 1.4;
}
.game-info .game-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-orange {
  background: rgba(255,138,61,0.15);
  color: #E06712;
}
@media (max-width: 1024px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .game-grid { grid-template-columns: 1fr; }
}

/* Scenario cards */
.scenario-section { background: var(--bg-light); }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scenario-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(220,230,240,0.6);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.scenario-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.scenario-img img { width: 100%; height: 100%; object-fit: cover; }
.scenario-body { padding: 20px 24px 24px; }
.scenario-body .scenario-tag {
  display: inline-block;
  background: rgba(255,138,61,0.15);
  color: #E06712;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 10px;
}
.scenario-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.scenario-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
@media (max-width: 1024px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .scenario-grid { grid-template-columns: 1fr; }
}

/* Flow */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.flow-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.flow-step-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(43,123,185,0.3);
}
.flow-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.flow-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}
.flow-arrow {
  position: absolute;
  top: 45px; right: -16px;
  font-size: 20px;
  color: var(--border-color);
  display: none;
}
@media (min-width: 1024px) {
  .flow-arrow { display: block; }
}
@media (max-width: 768px) {
  .flow-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(220,230,240,0.6);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq-item.open {
  box-shadow: 0 8px 24px rgba(43,123,185,0.1);
  border-color: rgba(43,123,185,0.3);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  background: none;
}
.faq-q-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}
.faq-item.open .faq-q-icon {
  background: var(--color-primary);
  color: #fff;
}
.faq-arrow {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px 68px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid rgba(220,230,240,0.4);
  padding-top: 14px;
}

/* CTA */
.cta-section { padding: 88px 0; }
@media (max-width: 768px) { .cta-section { padding: 64px 0; } }
.cta-container {
  background: linear-gradient(120deg, var(--bg-light) 0%, rgba(255,255,255,0.8) 100%);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220,230,240,0.5);
}
.cta-container::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: rgba(255,138,61,0.12);
  border-radius: 50%;
  z-index: 0;
}
.cta-container::after {
  content: "";
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  background: rgba(43,123,185,0.08);
  border-radius: 50%;
  z-index: 0;
}
.cta-container > * { position: relative; z-index: 1; }
.cta-container h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}
.cta-container p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .cta-container { padding: 40px 24px; }
  .cta-container h3 { font-size: 24px; }
}

/* Footer */
.site-footer {
  background: #16324B;
  color: #B8C7D9;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo-text {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .logo-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
  box-shadow: none;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #8FA5BC;
  max-width: 300px;
  margin-top: 12px;
}
.footer-col-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: #B8C7D9;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #B8C7D9;
  line-height: 1.6;
}
.footer-contact span { word-break: break-all; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #7A91A8;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-heading); font-weight: 500; }

/* Card hover etc */
.game-card-link { display: block; height: 100%; }

/* Star rating stars */
.star-icons { color: #FFB800; font-size: 14px; letter-spacing: 1px; }

/* Utility */
.section-alt { background: var(--bg-light); }

/* roulang page: article */
:root {
  --primary: #2B7BB9;
  --primary-dark: #1D5D90;
  --accent: #FF8A3D;
  --accent-hover: #F2741F;
  --bg-page: #F6F8FB;
  --bg-light: #EAF2F9;
  --title: #16324B;
  --body: #33475B;
  --muted: #5C7185;
  --faint: #8A9BAC;
  --border: #DCE6F0;
  --card: #FFFFFF;
  --green: #2BA471;
  --red: #D9534F;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-tag: 999px;
  --shadow-card: 0 4px 20px rgba(43, 123, 185, 0.08);
  --shadow-hover: 0 12px 32px rgba(43, 123, 185, 0.14);
  --font-stack: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-stack);
  background: var(--bg-page);
  color: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  background: linear-gradient(135deg, var(--bg-light), #fff);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: var(--primary-dark);
}
button {
  font-family: inherit;
  cursor: pointer;
}
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container-custom {
    padding: 0 16px;
  }
}

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(23, 42, 66, 0.08);
  border-bottom-color: rgba(220, 230, 240, 0.8);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--title);
  letter-spacing: 0.5px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.logo-text:hover .logo-icon {
  transform: scale(1.04);
  background: var(--primary-dark);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: background .2s, color .2s;
}
.nav-link:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.nav-link.active {
  color: var(--primary);
  background: rgba(43, 123, 185, 0.08);
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--title);
  transition: background .2s, color .2s;
}
.search-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.search-btn:focus-visible {
  outline: 2px solid rgba(43, 123, 185, 0.4);
  outline-offset: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 123, 185, 0.18);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(43, 123, 185, 0.4);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-outline:active {
  transform: scale(0.98);
}
.btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(43, 123, 185, 0.3);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 138, 61, 0.28);
}
.btn-accent:active {
  transform: scale(0.98);
}
.btn-accent:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.35);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 10px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.nav-toggle:hover {
  background: var(--bg-light);
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--title);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 文章主体 ===== */
.article-main {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 80vh;
}
.article-reader {
  max-width: 860px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb a {
  color: var(--muted);
  transition: color .2s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb .sep {
  color: var(--faint);
}
.breadcrumb .current {
  color: var(--body);
  font-weight: 500;
}
.article-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 48px;
  margin-bottom: 36px;
}
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 32px;
}
.article-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--title);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: var(--radius-tag);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}
.article-body h2 {
  font-size: 24px;
  color: var(--title);
  font-weight: 700;
  margin: 32px 0 16px;
  line-height: 1.4;
}
.article-body h3 {
  font-size: 20px;
  color: var(--title);
  font-weight: 700;
  margin: 28px 0 12px;
  line-height: 1.4;
}
.article-body p {
  margin-bottom: 24px;
}
.article-body img {
  border-radius: 16px;
  margin: 24px 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.article-body blockquote {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  color: var(--title);
  font-size: 15px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body code {
  background: #F0F4F8;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.article-body pre {
  background: #F0F4F8;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
  line-height: 1.6;
}
.article-body pre code {
  background: transparent;
  padding: 0;
}

/* ===== 相关推荐 ===== */
.related-section {
  margin-bottom: 40px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 20px;
  line-height: 1.3;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(43, 123, 185, 0.3);
}
.related-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.related-info h4 {
  font-size: 14px;
  color: var(--title);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: var(--radius-tag);
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  line-height: 1.5;
}

/* ===== 内容未找到 ===== */
.notfound-box {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  text-align: center;
  padding: 80px 30px;
  box-shadow: var(--shadow-card);
}
.notfound-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.notfound-box h2 {
  font-size: 28px;
  color: var(--title);
  margin-bottom: 12px;
  font-weight: 700;
}
.notfound-box p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ===== CTA ===== */
.article-cta {
  padding: 16px 0 80px;
}
.cta-box {
  background: linear-gradient(120deg, var(--bg-light) 0%, #ffffff 100%);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(255, 138, 61, 0.18);
  border-radius: 50%;
  top: -50px;
  right: -30px;
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(43, 123, 185, 0.12);
  border-radius: 50%;
  bottom: 16px;
  left: 30px;
  pointer-events: none;
}
.cta-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--title);
  margin-bottom: 14px;
  line-height: 1.3;
}
.cta-box p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #16324B;
  color: #B8C7D9;
  padding: 64px 0 0;
}
.site-footer .logo-text {
  color: #fff;
}
.site-footer .logo-icon {
  background: var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #B8C7D9;
  max-width: 320px;
}
.footer-col-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #B8C7D9;
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #B8C7D9;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  font-size: 13px;
  color: #8A9BAC;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(23, 42, 66, 0.08);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
  }
  .nav-link.active {
    background: var(--bg-light);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 768px) {
  .article-main {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  .article-card {
    padding: 24px;
  }
  .article-title {
    font-size: 28px;
  }
  .article-meta {
    gap: 12px;
    font-size: 13px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cta-box {
    padding: 40px 24px;
  }
  .cta-box h2 {
    font-size: 24px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
  .search-btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 520px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-card {
    flex-direction: row;
  }
  .related-card img {
    width: 84px;
    height: 64px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .article-body {
    font-size: 15px;
  }
  .article-body h2 {
    font-size: 21px;
  }
  .article-body h3 {
    font-size: 18px;
  }
  .nav-right {
    gap: 8px;
  }
  .nav-right .btn-sm {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* roulang page: category2 */
:root {
    --color-primary: #2B7BB9;
    --color-primary-dark: #1D5D90;
    --color-primary-light: #EAF2F9;
    --color-bg-page: #F6F8FB;
    --color-accent: #FF8A3D;
    --color-accent-hover: #F2741F;
    --color-success: #2BA471;
    --color-warning: #D9534F;
    --color-text-heading: #16324B;
    --color-text-body: #33475B;
    --color-text-secondary: #5C7185;
    --color-text-muted: #8A9BAC;
    --color-border: #DCE6F0;
    --color-card-bg: #FFFFFF;
    --color-footer-bg: #16324B;
    --color-footer-text: #B8C7D9;
    --radius-card: 16px;
    --radius-btn: 12px;
    --radius-tag: 999px;
    --radius-input: 10px;
    --shadow-card: 0 4px 20px rgba(43, 123, 185, 0.08);
    --shadow-card-hover: 0 12px 32px rgba(43, 123, 185, 0.14);
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-page);
    color: var(--color-text-body);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-heading);
    line-height: 1.3;
    font-weight: 700;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 68px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(23, 42, 66, 0.08);
    border-bottom-color: rgba(220, 230, 240, 0.5);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 68px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-heading);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-body);
    padding: 8px 2px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover { color: var(--color-primary); }

.nav-link.active { color: var(--color-primary); font-weight: 600; }

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
}

.search-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(43, 123, 185, 0.12);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    border: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #3490d0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(43, 123, 185, 0.25);
}

.btn-primary:active { transform: scale(0.98); }

.btn-primary:focus-visible {
    outline: 3px solid rgba(43, 123, 185, 0.4);
    outline-offset: 2px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--color-primary);
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-secondary:hover { background: var(--color-primary-light); }

.btn-secondary:active { transform: scale(0.98); }

.btn-secondary:focus-visible {
    outline: 3px solid rgba(43, 123, 185, 0.3);
    outline-offset: 2px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text-heading);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.menu-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 20px;
    flex-direction: column;
    gap: 2px;
    z-index: 999;
    box-shadow: 0 12px 24px rgba(23, 42, 66, 0.08);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    display: block;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-body);
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover { background: var(--color-primary-light); color: var(--color-primary); }

.mobile-menu a.active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; }

/* ---------- Category Hero ---------- */
.category-hero {
    position: relative;
    padding: 140px 0 72px;
    background: url('/assets/images/backpic/back-2.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 380px;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255,255,255,0.93) 30%, rgba(255,255,255,0.72));
}

.category-hero .container-custom { position: relative; z-index: 1; }

.category-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-text-heading);
    letter-spacing: 0.02em;
}

.category-hero .hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ---------- Section ---------- */
.section { padding: 80px 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-head .section-desc { font-size: 15px; color: var(--color-text-muted); }

/* ---------- Cards ---------- */
.card-feature {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    border: 1px solid rgba(220, 230, 240, 0.6);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
}

.card-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(43, 123, 185, 0.15);
}

.card-feature .card-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.card-feature .card-body { padding: 24px; }

.card-feature .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-feature .card-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-tag);
    background: var(--color-primary-light);
    color: var(--color-primary);
    white-space: nowrap;
}

.tag-accent { background: rgba(255, 138, 61, 0.12); color: #E7620F; }

.tag-green { background: rgba(43, 164, 113, 0.1); color: var(--color-success); }

/* ---------- Content Split ---------- */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.content-split .content-text h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.35;
}

.content-split .content-text p {
    font-size: 15px;
    color: var(--color-text-body);
    margin-bottom: 16px;
    line-height: 1.75;
}

.content-split .content-text .btn-group {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.content-split .content-image {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.content-split .content-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Feature Grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(43, 123, 185, 0.15);
}

.feature-item .feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background 0.3s, color 0.3s;
}

.feature-item:hover .feature-icon {
    background: var(--color-primary);
    color: #fff;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-heading);
}

.feature-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover { box-shadow: 0 4px 16px rgba(43, 123, 185, 0.06); }

.faq-item.open {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(43, 123, 185, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}

.faq-item.open .faq-icon {
    background: var(--color-primary);
    color: #fff;
}

.faq-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    color: var(--color-text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 24px 20px 72px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.faq-item.open .faq-answer { display: block; }

/* ---------- CTA ---------- */
.cta-section { padding: 80px 0; }

.cta-container {
    background: linear-gradient(120deg, #EAF2F9 0%, #fff 100%);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.cta-container::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 138, 61, 0.15);
    top: -40px;
    right: -20px;
    pointer-events: none;
}

.cta-container::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: rgba(43, 123, 185, 0.08);
    bottom: -24px;
    left: 60px;
    transform: rotate(30deg);
    pointer-events: none;
}

.cta-container h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text-heading);
}

.cta-container p {
    font-size: 15px;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-container .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-text { color: #fff; margin-bottom: 16px; }

.footer-brand .logo-icon { background: var(--color-accent); }

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 16px;
    color: var(--color-footer-text);
    max-width: 320px;
}

.footer-col-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-footer-text);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-accent); }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(184, 199, 217, 0.15);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: rgba(184, 199, 217, 0.7);
    flex-wrap: wrap;
    line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .content-split { gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .content-split { grid-template-columns: 1fr; gap: 32px; }
    .section { padding: 56px 0; }
    .category-hero { min-height: 320px; padding: 110px 0 56px; }
    .category-hero h1 { font-size: 32px; }
    .category-hero .hero-subtitle { font-size: 16px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-head h2 { font-size: 26px; }
    .container-custom { padding: 0 16px; }
    .header-inner { padding: 0 16px; }
    .cta-container { padding: 40px 24px; }
    .cta-container h2 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .content-split .content-text .btn-group { flex-direction: column; }
    .content-split .content-text .btn-group .btn-primary,
    .content-split .content-text .btn-group .btn-secondary,
    .cta-container .btn-group .btn-primary,
    .cta-container .btn-group .btn-secondary { width: 100%; }
}

@media (max-width: 520px) {
    .logo-text { font-size: 17px; }
    .header-inner { gap: 12px; }
    .search-btn { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .faq-answer { padding-left: 56px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
