/* roulang page: index */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
  --transition: all 0.3s ease;
  --sidebar-width: 260px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 左侧导航 App Shell ===== */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-dark);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.sidebar-logo .logo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.sidebar-logo .logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sidebar-nav { flex: 1; }

.sidebar-nav .nav-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 12px 8px;
  font-weight: 600;
}

.sidebar-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: var(--transition);
}

.sidebar-nav a.nav-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-nav a.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-nav a.nav-link.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.6), rgba(245,158,11,0.3));
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.sidebar-footer {
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ===== 主内容区 ===== */
.app-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-dark);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
}

.mobile-topbar .menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-topbar .menu-toggle:hover { background: rgba(255,255,255,0.1); }

.mobile-logo {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,58,138,0.82)), url('/assets/images/backpic/back-1.png') center/cover no-repeat;
  padding: 100px 0 80px;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container-custom { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn i { font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item .stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ===== 板块通用 ===== */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-head .section-tag {
  display: inline-block;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-head h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
}

.section-head-light { color: #fff; }
.section-head-light .section-tag { background: rgba(255,255,255,0.15); color: #fff; }
.section-head-light h2 { color: #fff; }
.section-head-light p { color: rgba(255,255,255,0.7); }

/* ===== 核心服务 ===== */
.services {
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  color: #fff;
}

.service-card:nth-child(1) .service-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.service-card:nth-child(2) .service-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.service-card:nth-child(3) .service-icon { background: linear-gradient(135deg, #10b981, #059669); }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
}

.service-link:hover { gap: 10px; color: var(--primary-dark); }

/* ===== 分类入口 ===== */
.categories { background: var(--bg); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.05); }

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%);
}

.category-card .content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: #fff;
  width: 100%;
}

.category-card .content .cat-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.category-card .content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-card .content p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 90%;
}

.category-card .content .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 15px;
}

.category-card .content .cat-link i { transition: transform 0.3s ease; }
.category-card:hover .content .cat-link i { transform: translateX(6px); }

/* ===== 最新信息列表 ===== */
.latest-section {
  background: var(--bg-white);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-card .post-category {
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
}

.post-card .post-date {
  color: var(--text-light);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-card .read-more {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-card .read-more i { transition: transform 0.3s ease; }
.post-card:hover .read-more i { transform: translateX(4px); }

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 16px;
}

/* ===== 数据统计 ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.2), transparent 70%);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stats-grid .stat-cell {
  text-align: center;
  padding: 20px;
}

.stats-grid .stat-num {
  font-size: 52px;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 12px;
}

.stats-grid .stat-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.stats-grid .stat-cell:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.15);
}

/* ===== 内容特色 ===== */
.features-section { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.features-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.features-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.features-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(37,99,235,0.2), transparent);
  pointer-events: none;
}

.features-content .feature-list {
  list-style: none;
  padding: 0;
}

.features-content .feature-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.features-content .feature-list li:last-child { border-bottom: none; }

.feature-check {
  color: #10b981;
  font-size: 18px;
  margin-top: 4px;
  min-width: 24px;
}

.features-content .feature-list h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.features-content .feature-list p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

.features-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.feature-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-mini i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.feature-mini h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-mini p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section { background: var(--bg-white); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: rgba(37,99,235,0.3); }

.faq-question {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
  font-size: 18px;
}

.faq-item.active .faq-question i { transform: rotate(45deg); }

.faq-answer {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)), url('/assets/images/backpic/back-2.png') center/cover no-repeat;
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

.cta-btn-warning {
  background: var(--accent);
  color: #1e293b;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

.cta-btn-warning:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(245,158,11,0.5);
  color: #1e293b;
}

.cta-btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.cta-btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  color: #fff;
}

/* ===== 页脚 ===== */
.app-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}

.footer-bottom {
  padding: 20px 0;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover { color: var(--accent-light); }

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .advanced-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main { margin-left: 0; }

  .mobile-topbar { display: flex; }

  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 34px; }
  .hero p.hero-desc { font-size: 16px; }

  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .section-head { margin-bottom: 36px; }

  .services-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-cell:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: 1fr; }
  .features-secondary { grid-template-columns: 1fr; }
  .cta-content h2 { font-size: 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .container-custom { padding: 0 20px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat-cell { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px; }
  .stats-grid .stat-cell:last-child { border-bottom: none; }
  .stats-grid .stat-num { font-size: 36px; }
  .category-card { min-height: 320px; }
  .category-card .content { padding: 28px; }
  .category-card .content h3 { font-size: 22px; }
  .post-card { padding: 20px; }
  .faq-question { padding: 18px 20px; font-size: 15px; }
  .faq-answer { padding: 0 20px; }
  .faq-item.active .faq-answer { padding-bottom: 18px; }
  .cta-buttons { flex-direction: column; }
  .cta-btn { width: 100%; justify-content: center; }
}

/* ===== 动画 & 焦点 ===== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate { animation: fadeUp 0.6s ease both; }

/* roulang page: category1 */
:root {
            --primary: #4f46e5;
            --primary-deep: #3730a3;
            --primary-soft: rgba(79, 70, 229, .08);
            --accent: #06b6d4;
            --bg: #f5f7fb;
            --surface: #ffffff;
            --text: #0f172a;
            --text-weak: #5b6b7c;
            --border: #e4e9f0;
            --radius: 18px;
            --radius-sm: 12px;
            --shadow: 0 6px 30px rgba(15, 23, 42, .07);
            --shadow-lg: 0 16px 50px rgba(15, 23, 42, .1);
            --sidebar-w: 262px;
            --space-section: 88px;
        }

        * {
            box-sizing: border-box;
        }
        html,
        body {
            margin: 0;
            padding: 0;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }
        img {
            max-width: 100%;
            display: block;
        }
        a {
            text-decoration: none;
            color: inherit;
            transition: color .25s;
        }
        button {
            font-family: inherit;
            cursor: pointer;
        }

        .container-custom {
            max-width: 1200px;
            margin: 0 auto;
            padding-left: 32px;
            padding-right: 32px;
        }
        @media (max-width:640px) {
            .container-custom {
                padding-left: 20px;
                padding-right: 20px;
            }
        }

        .app-shell {
            display: flex;
            min-height: 100vh;
        }
        .app-main {
            flex: 1;
            margin-left: var(--sidebar-w);
            min-width: 0;
        }

        .app-sidebar {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: var(--sidebar-w);
            background: #fff;
            border-right: 1px solid var(--border);
            padding: 32px 22px;
            display: flex;
            flex-direction: column;
            z-index: 200;
            transition: transform .3s ease;
        }
        .sidebar-logo {
            font-size: 26px;
            font-weight: 800;
            color: var(--text);
            letter-spacing: -.5px;
            padding: 4px 10px;
            display: inline-flex;
            align-items: center;
        }
        .sidebar-logo span {
            color: var(--primary);
            margin-left: 2px;
        }
        .sidebar-slogan {
            font-size: 12.5px;
            color: var(--text-weak);
            margin: 10px 0 28px;
            padding-left: 10px;
            line-height: 1.5;
        }
        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .nav-label {
            font-size: 11px;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: #9aa5b1;
            font-weight: 700;
            margin: 0 0 10px 10px;
        }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: var(--radius-sm);
            color: var(--text-weak);
            font-weight: 500;
            font-size: 14.5px;
            transition: background .2s, color .2s, transform .15s;
        }
        .nav-link i {
            width: 22px;
            text-align: center;
            font-size: 16px;
        }
        .nav-link:hover {
            background: var(--primary-soft);
            color: var(--primary);
        }
        .nav-link.active {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 8px 24px rgba(79, 70, 229, .28);
        }
        .sidebar-meta {
            margin-top: auto;
            padding: 14px;
            background: var(--bg);
            border-radius: var(--radius-sm);
            font-size: 13px;
            color: var(--text-weak);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .mobile-topbar {
            display: none;
        }
        .menu-overlay {
            display: none;
        }
        @media (max-width: 900px) {
            .app-sidebar {
                transform: translateX(-100%);
                box-shadow: 24px 0 60px rgba(15, 23, 42, .18);
            }
            .app-sidebar.open {
                transform: translateX(0);
            }
            .app-main {
                margin-left: 0;
            }
            .mobile-topbar {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 14px 20px;
                background: #fff;
                border-bottom: 1px solid var(--border);
                position: sticky;
                top: 0;
                z-index: 150;
            }
            .mobile-brand {
                font-size: 20px;
                font-weight: 800;
                color: var(--text);
            }
            .menu-toggle {
                background: var(--bg);
                border: 1px solid var(--border);
                border-radius: 10px;
                width: 40px;
                height: 40px;
                font-size: 16px;
                color: var(--text);
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .menu-toggle:hover {
                background: var(--primary-soft);
                color: var(--primary);
            }
            .menu-overlay.show {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(15, 23, 42, .42);
                z-index: 140;
            }
        }

        .trend-hero {
            padding: 110px 0 100px;
            background: linear-gradient(120deg, rgba(15, 23, 42, .88) 0%, rgba(49, 46, 129, .78) 50%, rgba(79, 70, 229, .68) 100%), url('/assets/images/backpic/back-1.png') center/cover no-repeat;
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .trend-hero .container-custom {
            position: relative;
            z-index: 2;
        }
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, .14);
            border: 1px solid rgba(255, 255, 255, .22);
            padding: 7px 16px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 600;
            backdrop-filter: blur(6px);
            margin-bottom: 22px;
        }
        .trend-hero h1 {
            font-size: 48px;
            line-height: 1.18;
            font-weight: 800;
            letter-spacing: -1px;
            margin: 0 0 18px;
        }
        .trend-hero p {
            font-size: 17px;
            line-height: 1.8;
            max-width: 580px;
            color: rgba(255, 255, 255, .88);
            margin: 0 0 34px;
        }
        .hero-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }
        @media (max-width: 520px) {
            .trend-hero {
                padding: 72px 0 64px;
            }
            .trend-hero h1 {
                font-size: 32px;
            }
            .trend-hero p {
                font-size: 15px;
            }
        }

        .section {
            padding: var(--space-section) 0;
        }
        .section-alt {
            background: var(--surface);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }
        .section-head {
            text-align: center;
            max-width: 680px;
            margin: 0 auto 52px;
        }
        .section-tag {
            display: inline-block;
            background: var(--primary-soft);
            color: var(--primary);
            font-weight: 600;
            font-size: 13px;
            padding: 6px 14px;
            border-radius: 999px;
            margin-bottom: 16px;
        }
        .section-head h2 {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -.5px;
            line-height: 1.3;
            margin: 0 0 14px;
        }
        .section-head p {
            font-size: 15.5px;
            color: var(--text-weak);
            line-height: 1.8;
            margin: 0;
        }
        @media (max-width: 640px) {
            .section-head h2 {
                font-size: 24px;
            }
            .section {
                --space-section: 56px;
            }
        }

        .trend-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 26px;
        }
        @media (max-width: 1024px) {
            .trend-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        @media (max-width: 640px) {
            .trend-grid {
                grid-template-columns: 1fr;
            }
        }

        .trend-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform .28s ease, box-shadow .28s ease;
        }
        .trend-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
        }
        .trend-card-media {
            position: relative;
            aspect-ratio: 16/9;
            overflow: hidden;
        }
        .trend-card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .5s ease;
        }
        .trend-card:hover .trend-card-media img {
            transform: scale(1.05);
        }
        .trend-card-body {
            padding: 26px;
        }
        .trend-tag {
            display: inline-block;
            background: var(--primary-soft);
            color: var(--primary);
            font-size: 12.5px;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 8px;
            margin-bottom: 12px;
        }
        .trend-card-body h3 {
            font-size: 18px;
            line-height: 1.45;
            font-weight: 700;
            margin: 0 0 10px;
        }
        .trend-card-body p {
            font-size: 14.5px;
            line-height: 1.75;
            color: var(--text-weak);
            margin: 0 0 18px;
        }
        .card-link {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .card-link i {
            transition: transform .2s;
        }
        .card-link:hover i {
            transform: translateX(4px);
        }

        .stats-section {
            background: linear-gradient(120deg, #15152e, #312e81 70%, #4f46e5);
            padding: 70px 0;
            color: #fff;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 26px;
        }
        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 420px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }
        .stat-item {
            background: rgba(255, 255, 255, .08);
            border: 1px solid rgba(255, 255, 255, .12);
            padding: 30px 22px;
            border-radius: var(--radius);
            text-align: center;
            backdrop-filter: blur(4px);
        }
        .stat-num {
            font-size: 36px;
            font-weight: 800;
            line-height: 1.2;
        }
        .stat-label {
            font-size: 14px;
            color: rgba(255, 255, 255, .78);
            margin-top: 6px;
        }

        .topic-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        @media (max-width: 900px) {
            .topic-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        @media (max-width: 560px) {
            .topic-grid {
                grid-template-columns: 1fr;
            }
        }
        .topic-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 26px;
            transition: border-color .25s, transform .25s, box-shadow .25s;
        }
        .topic-card:hover {
            border-color: var(--primary);
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }
        .topic-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: var(--primary-soft);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 19px;
            margin-bottom: 16px;
        }
        .topic-card h3 {
            font-size: 16.5px;
            margin: 0 0 8px;
            font-weight: 700;
        }
        .topic-card p {
            font-size: 13.5px;
            color: var(--text-weak);
            line-height: 1.7;
            margin: 0 0 14px;
        }
        .topic-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .topic-tags span {
            background: var(--bg);
            font-size: 12px;
            padding: 3px 10px;
            border-radius: 6px;
            color: var(--text-weak);
        }

        .report-wrap {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }
        @media (max-width: 820px) {
            .report-wrap {
                grid-template-columns: 1fr;
                gap: 32px;
            }
        }
        .report-media {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
        }
        .report-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 16/11;
        }
        .report-badge {
            position: absolute;
            top: 16px;
            left: 16px;
            background: #fff;
            color: var(--primary);
            font-size: 13px;
            font-weight: 700;
            padding: 6px 14px;
            border-radius: 999px;
            box-shadow: var(--shadow);
        }
        .report-content h2 {
            font-size: 32px;
            font-weight: 800;
            line-height: 1.3;
            margin: 0 0 18px;
            letter-spacing: -.5px;
        }
        .report-content p {
            color: var(--text-weak);
            font-size: 15.5px;
            line-height: 1.8;
            margin-bottom: 20px;
        }
        .report-list {
            list-style: none;
            padding: 0;
            margin: 0 0 26px;
        }
        .report-list li {
            display: flex;
            gap: 10px;
            padding: 8px 0;
            font-size: 14.5px;
            color: var(--text);
        }
        .report-list li i {
            color: var(--primary);
            margin-top: 4px;
        }
        @media (max-width: 640px) {
            .report-content h2 {
                font-size: 24px;
            }
        }

        .timeline-wrap {
            max-width: 880px;
            margin: 0 auto;
            position: relative;
        }
        .timeline-wrap::before {
            content: '';
            position: absolute;
            left: 24px;
            top: 8px;
            bottom: 8px;
            width: 2px;
            background: linear-gradient(to bottom, var(--primary), var(--accent));
            border-radius: 2px;
        }
        .timeline-item {
            position: relative;
            padding-left: 72px;
            margin-bottom: 34px;
        }
        .timeline-dot {
            position: absolute;
            left: 14px;
            top: 6px;
            width: 22px;
            height: 22px;
            background: #fff;
            border: 5px solid var(--primary);
            border-radius: 50%;
            box-shadow: 0 0 0 6px rgba(79, 70, 229, .15);
        }
        .timeline-item h3 {
            font-size: 18px;
            font-weight: 700;
            margin: 0 0 6px;
        }
        .timeline-item p {
            color: var(--text-weak);
            font-size: 14.5px;
            line-height: 1.8;
            margin: 0;
        }

        .faq-list {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .faq-item {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            overflow: hidden;
            transition: border-color .2s, box-shadow .2s;
        }
        .faq-item[open] {
            border-color: var(--primary);
            box-shadow: var(--shadow);
        }
        .faq-item summary {
            font-size: 16px;
            font-weight: 600;
            padding: 20px 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            list-style: none;
        }
        .faq-item summary::-webkit-details-marker {
            display: none;
        }
        .faq-item summary i {
            color: var(--primary);
            transition: transform .25s;
            flex-shrink: 0;
        }
        .faq-item[open] summary i {
            transform: rotate(45deg);
        }
        .faq-answer {
            padding: 0 24px 20px;
            color: var(--text-weak);
            font-size: 14.5px;
            line-height: 1.8;
        }

        .cta-section {
            background: linear-gradient(120deg, #312e81, #4f46e5, #06b6d4);
            color: #fff;
            text-align: center;
            padding: 84px 0;
        }
        .cta-section h2 {
            font-size: 34px;
            font-weight: 800;
            margin: 0 0 14px;
            letter-spacing: -.5px;
        }
        .cta-section p {
            font-size: 16px;
            color: rgba(255, 255, 255, .85);
            max-width: 560px;
            margin: 0 auto 30px;
        }
        .cta-actions {
            display: flex;
            justify-content: center;
            gap: 14px;
            flex-wrap: wrap;
        }
        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #fff;
            color: var(--primary);
            font-weight: 700;
            font-size: 14.5px;
            padding: 13px 28px;
            border-radius: 12px;
            border: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
            transition: transform .2s, box-shadow .2s;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
            color: var(--primary-deep);
        }
        .btn-ghost {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .3);
            color: #fff;
            font-weight: 600;
            padding: 13px 26px;
            border-radius: 12px;
            backdrop-filter: blur(4px);
            transition: background .2s;
        }
        .btn-ghost:hover {
            background: rgba(255, 255, 255, .2);
        }
        @media (max-width: 520px) {
            .cta-section {
                padding: 56px 0;
            }
            .cta-section h2 {
                font-size: 26px;
            }
        }

        .app-footer {
            background: #111827;
            color: #9ca3af;
            padding: 60px 0 0;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
            gap: 40px;
            padding-bottom: 44px;
        }
        @media (max-width: 900px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        @media (max-width: 560px) {
            .footer-grid {
                grid-template-columns: 1fr;
            }
        }
        .footer-logo {
            font-size: 24px;
            font-weight: 800;
            color: #fff;
        }
        .footer-brand p {
            font-size: 13.5px;
            line-height: 1.8;
            margin-top: 14px;
            max-width: 320px;
        }
        .footer-col h4 {
            color: #fff;
            font-size: 15px;
            margin: 0 0 18px;
            font-weight: 700;
        }
        .footer-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .footer-col ul li {
            margin-bottom: 10px;
        }
        .footer-col ul li a {
            font-size: 14px;
            color: #9ca3af;
            transition: color .2s;
        }
        .footer-col ul li a:hover {
            color: #fff;
        }
        .footer-col ul li a i {
            margin-right: 6px;
        }
        .social-links a {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(255, 255, 255, .06);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            margin-right: 8px;
            transition: background .2s, color .2s;
        }
        .social-links a:hover {
            background: var(--primary);
            color: #fff;
        }
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, .08);
            padding: 22px 0;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 13px;
            color: #6b7280;
        }
        .footer-bottom a {
            color: #9ca3af;
        }
        .footer-bottom a:hover {
            color: #fff;
        }

/* roulang page: article */
:root{
    --primary:#141e3a;
    --primary-light:#25366b;
    --accent:#f0a035;
    --accent-light:#fbbf5e;
    --bg:#f4f6fb;
    --surface:#ffffff;
    --text:#1e293b;
    --text-light:#64748b;
    --border:#e2e8f0;
    --radius:14px;
    --radius-sm:8px;
    --shadow-sm:0 2px 8px rgba(30,41,59,.06);
    --shadow-md:0 8px 24px rgba(30,41,59,.08);
    --shadow-lg:0 20px 50px rgba(30,41,59,.12);
    --sidebar-width:260px;
    --transition:all .25s ease;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    background:var(--bg);
    color:var(--text);
    font-size:16px;
    line-height:1.75;
    min-height:100vh;
}
a{color:var(--primary);text-decoration:none;transition:var(--transition)}
a:hover{color:var(--accent)}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
button,input,select,textarea{font-family:inherit;font-size:inherit}
.container-custom{max-width:1280px;margin:0 auto;padding:0 32px}
::selection{background:var(--accent);color:#fff}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:#f1f5f9}
::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#94a3b8}

.reading-progress{
    position:fixed;top:0;left:0;height:3px;background:var(--accent);
    width:0%;z-index:1000;border-radius:0 4px 4px 0;
    transition:width .1s linear;
    box-shadow:0 0 8px rgba(240,160,53,.4);
}

.app-shell{display:flex;min-height:100vh}

.sidebar{
    width:var(--sidebar-width);
    background:linear-gradient(180deg,#101a35 0%,#1a2a55 100%);
    position:fixed;top:0;left:0;bottom:0;z-index:101;
    display:flex;flex-direction:column;
    padding:30px 20px 24px;
    box-shadow:4px 0 30px rgba(16,26,53,.18);
    transition:transform .35s cubic-bezier(.4,0,.2,1);
}
.sidebar-brand{
    display:flex;align-items:center;gap:12px;
    padding:0 10px;margin-bottom:40px;
}
.brand-icon{
    width:42px;height:42px;background:var(--accent);
    color:#fff;font-weight:800;font-size:20px;
    display:flex;align-items:center;justify-content:center;
    border-radius:12px;box-shadow:0 4px 14px rgba(240,160,53,.35);
    flex-shrink:0;
}
.brand-text{
    font-size:22px;font-weight:800;color:#fff;letter-spacing:.5px;
    line-height:1.2;
}
.sidebar-nav{flex:1}
.nav-label{
    font-size:11px;font-weight:600;letter-spacing:1.5px;
    text-transform:uppercase;color:rgba(255,255,255,.4);
    padding:0 12px;margin-bottom:12px;
}
.sidebar-nav .nav-link{
    display:flex;align-items:center;gap:12px;
    padding:12px 14px;border-radius:10px;
    color:rgba(255,255,255,.72);
    font-size:15px;font-weight:500;
    margin-bottom:5px;border-left:3px solid transparent;
    transition:var(--transition);
}
.sidebar-nav .nav-link:hover{
    background:rgba(255,255,255,.08);
    color:#fff;transform:translateX(3px);
}
.sidebar-nav .nav-link.active{
    background:rgba(255,255,255,.12);
    color:#fff;border-left-color:var(--accent);
}
.sidebar-nav .nav-link i{
    width:20px;text-align:center;font-size:16px;color:var(--accent);
    flex-shrink:0;
}
.sidebar-nav .nav-link:nth-child(3) i{color:#7aa2f7}
.sidebar-nav .nav-link:nth-child(4) i{color:#5eead4}
.sidebar-footer{
    padding:14px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    text-align:center;
}
.sidebar-footer p{
    font-size:13px;color:rgba(255,255,255,.6);
    line-height:1.6;margin-top:6px;
}
.sidebar-footer .sf-icon{
    font-size:22px;color:var(--accent);
}

.sidebar-overlay{
    position:fixed;inset:0;background:rgba(15,23,42,.55);
    z-index:99;opacity:0;pointer-events:none;
    transition:opacity .3s ease;backdrop-filter:blur(2px);
}
.sidebar-overlay.is-visible{opacity:1;pointer-events:auto}

.main-area{
    flex:1;margin-left:var(--sidebar-width);
    min-height:100vh;
    display:flex;flex-direction:column;
}
.topbar{
    display:none;align-items:center;justify-content:space-between;
    padding:12px 20px;background:var(--surface);
    border-bottom:1px solid var(--border);
    position:sticky;top:0;z-index:50;
    box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.topbar-brand{font-weight:800;font-size:18px;color:var(--primary)}
.mobile-menu-toggle{
    background:none;border:none;font-size:20px;color:var(--text);
    width:40px;height:40px;display:flex;align-items:center;
    justify-content:center;border-radius:10px;cursor:pointer;
    transition:var(--transition);
}
.mobile-menu-toggle:hover{background:#f1f5f9}

.main-content{flex:1;width:100%}

.article-hero{
    background:linear-gradient(135deg, rgba(16,26,53,.88), rgba(37,54,107,.72)), url('/assets/images/backpic/back-2.png') center/cover;
    padding:64px 0 72px;
    position:relative;
}
.article-hero-inner{
    max-width:880px;margin:0 auto;padding:0 32px;
}
.breadcrumbs{
    display:flex;flex-wrap:wrap;align-items:center;gap:8px;
    font-size:13px;color:rgba(255,255,255,.65);
    margin-bottom:20px;
}
.breadcrumbs a{color:rgba(255,255,255,.85)}
.breadcrumbs a:hover{color:var(--accent-light)}
.breadcrumbs .sep{color:rgba(255,255,255,.4)}
.hero-badge{
    display:inline-flex;align-items:center;gap:6px;
    background:rgba(240,160,53,.2);
    border:1px solid rgba(240,160,53,.35);
    color:var(--accent-light);
    font-size:13px;font-weight:600;
    padding:6px 16px;border-radius:30px;
    margin-bottom:18px;
}
.article-hero h1{
    font-size:34px;line-height:1.35;color:#fff;
    font-weight:800;margin-bottom:20px;
    letter-spacing:.5px;
    max-width:820px;
}
.post-meta{
    display:flex;flex-wrap:wrap;align-items:center;gap:20px;
    color:rgba(255,255,255,.7);font-size:14px;
}
.post-meta .meta-item{display:inline-flex;align-items:center;gap:7px}
.post-meta .meta-category{
    background:rgba(255,255,255,.14);
    color:#fff;padding:4px 14px;border-radius:20px;
    font-size:13px;font-weight:600;
}

.article-wrap{
    max-width:880px;margin:0 auto;
    padding:0 32px;
}
.article-content{
    background:var(--surface);
    border-radius:var(--radius);
    box-shadow:var(--shadow-md);
    margin-top:-36px;
    position:relative;
    padding:48px 56px 40px;
}
.article-lead{
    font-size:18px;line-height:1.8;color:var(--text-light);
    border-left:4px solid var(--accent);
    padding:6px 0 6px 20px;
    margin-bottom:36px;
    background:linear-gradient(90deg, rgba(240,160,53,.06), transparent);
    border-radius:0 8px 8px 0;
}
.article-body{
    font-size:16.5px;line-height:1.95;color:#334155;
}
.article-body p{margin-bottom:1.6em}
.article-body h2{
    font-size:24px;font-weight:700;color:var(--text);
    margin:36px 0 16px;padding-bottom:10px;
    position:relative;
}
.article-body h2::after{
    content:'';position:absolute;left:0;bottom:0;
    width:48px;height:3px;background:var(--accent);border-radius:3px;
}
.article-body h3{
    font-size:20px;font-weight:700;color:var(--text);
    margin:28px 0 12px;
}
.article-body h4{
    font-size:17px;font-weight:600;color:var(--text);
    margin:22px 0 10px;
}
.article-body ul,.article-body ol{
    padding-left:1.4em;margin:0 0 1.6em;
}
.article-body ul{list-style:disc}
.article-body ol{list-style:decimal}
.article-body li{margin-bottom:.6em}
.article-body a{color:var(--primary-light);border-bottom:1px solid rgba(37,54,107,.2)}
.article-body a:hover{color:var(--accent);border-color:var(--accent)}
.article-body img{border-radius:12px;margin:24px 0;box-shadow:var(--shadow-sm)}
.article-body blockquote{
    border-left:4px solid var(--accent);
    background:linear-gradient(90deg, rgba(240,160,53,.08), transparent);
    padding:18px 24px;border-radius:0 10px 10px 0;
    color:var(--text);font-style:italic;
    margin:24px 0;
}
.article-body pre{
    background:#0f172a;color:#e2e8f0;
    padding:20px;border-radius:10px;
    overflow-x:auto;font-size:14px;line-height:1.7;
    margin:24px 0;box-shadow:var(--shadow-sm);
}
.article-body code{
    font-family:Consolas,Menlo,monospace;
    background:#f1f5f9;padding:2px 8px;border-radius:4px;
    font-size:.92em;color:#be185d;
}
.article-body pre code{background:transparent;padding:0;color:inherit}
.article-divider{
    border:none;border-top:1px solid var(--border);
    margin:32px 0;
}
.article-bottom-actions{
    display:flex;flex-wrap:wrap;
    justify-content:space-between;align-items:center;gap:20px;
    margin-top:32px;
}
.article-tags{
    display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.tags-label{font-size:14px;color:var(--text-light);display:flex;align-items:center;gap:6px}
.tag-badge{
    background:#f1f5f9;color:var(--text-light);
    font-size:13px;padding:5px 14px;border-radius:20px;
    border:1px solid var(--border);
    transition:var(--transition);
}
.tag-badge:hover{background:var(--accent);color:#fff;border-color:var(--accent)}
.article-share{display:flex;align-items:center;gap:8px}
.share-label{font-size:14px;color:var(--text-light)}
.share-icon{
    width:38px;height:38px;border-radius:10px;
    background:#f1f5f9;color:var(--text);
    display:flex;align-items:center;justify-content:center;
    font-size:16px;transition:var(--transition);
}
.share-icon:hover{transform:translateY(-3px);box-shadow:var(--shadow-sm)}
.share-icon.wechat:hover{background:#07c160;color:#fff}
.share-icon.weibo:hover{background:#e6162d;color:#fff}
.share-icon.qq:hover{background:#12b7f5;color:#fff}

.author-card{
    background:linear-gradient(135deg, rgba(37,54,107,.04), rgba(240,160,53,.05));
    border:1px solid var(--border);
    border-radius:16px;
    padding:28px;
    display:flex;align-items:center;gap:24px;
    margin-top:36px;
    transition:var(--transition);
}
.author-card:hover{box-shadow:var(--shadow-md)}
.author-avatar{
    width:64px;height:64px;border-radius:18px;
    background:var(--primary);
    color:#fff;font-size:26px;font-weight:800;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
    box-shadow:0 6px 18px rgba(20,30,58,.25);
}
.author-info h4{font-size:17px;font-weight:700;color:var(--text);margin-bottom:6px}
.author-info p{font-size:14px;color:var(--text-light);line-height:1.7;margin:0}
.author-action{margin-left:auto}

.btn-custom{
    display:inline-flex;align-items:center;gap:8px;
    padding:12px 26px;border-radius:40px;
    font-size:14px;font-weight:600;
    border:1px solid transparent;cursor:pointer;
    transition:var(--transition);
    line-height:1.4;text-decoration:none;
}
.btn-primary{
    background:var(--primary);color:#fff;
    box-shadow:0 4px 14px rgba(20,30,58,.2);
}
.btn-primary:hover{
    background:var(--primary-light);color:#fff;
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(20,30,58,.3);
}
.btn-outline{
    background:transparent;color:var(--primary);
    border-color:var(--primary);
}
.btn-outline:hover{
    background:var(--primary);color:#fff;
    transform:translateY(-2px);
}
.btn-accent{
    background:var(--accent);color:#fff;
}
.btn-accent:hover{
    background:var(--accent-light);color:var(--primary);
    transform:translateY(-2px);
}

.post-pager{
    display:grid;grid-template-columns:1fr 1fr;gap:16px;
    margin-top:36px;
}
.pager-item{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px 24px;
    transition:var(--transition);
    display:block;
}
.pager-item:hover{
    box-shadow:var(--shadow-md);
    transform:translateY(-3px);
    border-color:var(--accent);
}
.pager-label{
    font-size:13px;color:var(--text-light);
    display:flex;align-items:center;gap:8px;
    margin-bottom:8px;
}
.pager-label i{color:var(--accent)}
.pager-title{
    font-size:15px;font-weight:600;color:var(--text);
    line-height:1.6;
}

.related-section{
    padding:72px 0 48px;
    background:var(--surface);
    border-top:1px solid var(--border);
}
.section-header{
    text-align:center;margin-bottom:48px;
}
.section-sub{
    font-size:14px;font-weight:600;color:var(--accent);
    letter-spacing:1px;text-transform:uppercase;
}
.section-header h2{
    font-size:32px;font-weight:800;color:var(--text);
    margin:10px 0 12px;
}
.section-header p{
    font-size:16px;color:var(--text-light);
    max-width:560px;margin:0 auto;
}
.related-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    height:100%;
    display:flex;flex-direction:column;
    box-shadow:var(--shadow-sm);
    transition:var(--transition);
}
.related-card:hover{
    box-shadow:var(--shadow-lg);
    transform:translateY(-6px);
}
.related-card-image{
    position:relative;overflow:hidden;
    aspect-ratio:16/10;
}
.related-card-image img{
    width:100%;height:100%;object-fit:cover;
    transition:transform .5s ease;
}
.related-card:hover .related-card-image img{
    transform:scale(1.06);
}
.related-card-image::after{
    content:'';position:absolute;inset:0;
    background:linear-gradient(180deg,transparent 55%,rgba(15,23,42,.35));
    opacity:.6;transition:opacity .3s;
}
.related-card:hover .related-card-image::after{opacity:.3}
.related-card-tag{
    position:absolute;left:16px;top:16px;z-index:2;
    background:rgba(255,255,255,.92);
    color:var(--primary);font-size:12px;font-weight:700;
    padding:5px 14px;border-radius:20px;
    backdrop-filter:blur(4px);
}
.related-card-body{
    padding:22px 24px 24px;flex:1;
    display:flex;flex-direction:column;
}
.related-card-body h3{
    font-size:17px;font-weight:700;color:var(--text);
    line-height:1.55;margin-bottom:10px;
    transition:var(--transition);
}
.related-card:hover .related-card-body h3{color:var(--primary-light)}
.related-card-body p{
    font-size:14px;color:var(--text-light);
    line-height:1.7;flex:1;margin-bottom:14px;
}
.related-card-link{
    font-size:14px;font-weight:600;color:var(--accent);
    display:inline-flex;align-items:center;gap:6px;
}
.related-card-link i{transition:transform .25s}
.related-card:hover .related-card-link i{transform:translateX(4px)}

.cta-section{
    padding:72px 0;
    background:linear-gradient(135deg, rgba(16,26,53,.92), rgba(37,54,107,.8)), url('/assets/images/backpic/back-1.png') center/cover;
    position:relative;
}
.cta-card{
    max-width:880px;margin:0 auto;text-align:center;
    padding:0 32px;
}
.cta-card h2{
    font-size:34px;font-weight:800;color:#fff;
    margin-bottom:16px;line-height:1.3;
}
.cta-card p{
    font-size:17px;color:rgba(255,255,255,.8);
    max-width:620px;margin:0 auto 32px;
    line-height:1.8;
}
.cta-buttons{
    display:flex;justify-content:center;gap:16px;flex-wrap:wrap;
}
.cta-buttons .btn-ghost{
    background:rgba(255,255,255,.12);
    color:#fff;border:1px solid rgba(255,255,255,.35);
    padding:12px 28px;border-radius:40px;
    font-weight:600;font-size:14px;
    transition:var(--transition);
    display:inline-flex;align-items:center;gap:8px;
}
.cta-buttons .btn-ghost:hover{
    background:rgba(255,255,255,.22);
    transform:translateY(-2px);
}
.cta-buttons .btn-light{
    background:#fff;color:var(--primary);
    padding:12px 28px;border-radius:40px;
    font-weight:700;font-size:14px;
    box-shadow:0 4px 16px rgba(255,255,255,.2);
    transition:var(--transition);
    display:inline-flex;align-items:center;gap:8px;
}
.cta-buttons .btn-light:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 28px rgba(255,255,255,.3);
    background:var(--accent-light);
}

.content-not-found,.content-empty{
    text-align:center;padding:48px 24px;
}
.content-not-found i{
    font-size:56px;color:var(--accent);
    margin-bottom:20px;display:block;
}
.content-not-found h2{
    font-size:28px;font-weight:800;color:var(--text);
    margin-bottom:12px;
}
.content-not-found p,.content-empty p{
    font-size:16px;color:var(--text-light);
    margin-bottom:24px;
}
.content-empty{
    padding:36px 24px;
}

.app-footer{
    background:#0f172a;
    color:#94a3b8;
    padding:64px 0 0;
    margin-top:auto;
}
.footer-grid{
    display:grid;
    grid-template-columns:1.6fr 1fr 1fr 1.1fr;
    gap:48px;
    padding-bottom:48px;
}
.footer-brand .footer-logo{
    font-size:22px;font-weight:800;color:#fff;
    display:inline-block;margin-bottom:16px;
}
.footer-brand p{
    font-size:14px;line-height:1.8;
    color:#94a3b8;max-width:340px;
}
.footer-col h4{
    font-size:15px;font-weight:700;color:#fff;
    margin-bottom:20px;letter-spacing:.5px;
}
.footer-col ul li{margin-bottom:12px}
.footer-col ul li a{
    color:#94a3b8;font-size:14px;
    display:inline-flex;align-items:center;gap:8px;
    transition:var(--transition);
}
.footer-col ul li a:hover{color:var(--accent-light);padding-left:4px}
.social-links{
    display:flex;gap:10px;
}
.social-links a{
    width:38px;height:38px;border-radius:10px;
    background:rgba(255,255,255,.08);
    display:flex;align-items:center;justify-content:center;
    color:#94a3b8;font-size:15px;
    transition:var(--transition);
}
.social-links a:hover{
    background:var(--accent);color:#fff;
    transform:translateY(-3px);
}
.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
    padding:20px 0;
    display:flex;justify-content:space-between;align-items:center;
    flex-wrap:wrap;gap:10px;
    font-size:13px;color:#64748b;
}
.footer-bottom a{color:#94a3b8}
.footer-bottom a:hover{color:var(--accent-light)}

@media (max-width:1024px) and (min-width:901px){
    .sidebar{width:220px;padding:26px 14px}
    .main-area{margin-left:220px}
    .brand-text{font-size:19px}
    .sidebar-nav .nav-link{padding:11px 10px;font-size:14px}
}
@media (max-width:900px){
    .sidebar{
        transform:translateX(-100%);
        width:280px;
    }
    .sidebar.is-open{transform:translateX(0)}
    .main-area{margin-left:0}
    .topbar{display:flex}
    .sidebar-overlay{display:block}
    .article-content{padding:36px 30px}
    .article-hero h1{font-size:28px}
    .container-custom{padding:0 20px}
    .article-wrap{padding:0 20px}
}
@media (max-width:640px){
    .article-hero{padding:44px 0 56px}
    .article-hero-inner{padding:0 20px}
    .article-hero h1{font-size:24px}
    .article-content{padding:28px 22px;margin-top:-28px}
    .article-lead{font-size:16px;padding-left:14px}
    .article-bottom-actions{flex-direction:column;align-items:flex-start}
    .post-pager{grid-template-columns:1fr}
    .author-card{flex-direction:column;text-align:center}
    .author-action{margin-left:0}
    .section-header h2{font-size:26px}
    .cta-card h2{font-size:26px}
    .footer-grid{grid-template-columns:1fr 1fr;gap:32px 20px}
    .footer-brand{grid-column:1/-1}
    .footer-bottom{flex-direction:column;text-align:center}
    .page-enter{opacity:1;transform:none}
}
@media (max-width:520px){
    .footer-grid{grid-template-columns:1fr}
    .footer-brand{grid-column:auto}
    .cta-buttons{flex-direction:column;width:100%}
    .cta-buttons a{justify-content:center}
    .breadcrumbs{font-size:12px}
    .post-meta{gap:12px;font-size:13px}
}

/* roulang page: category2 */
:root {
  --primary: #17385c;
  --primary-dark: #0c2643;
  --primary-light: #2a5a8c;
  --accent: #e2a13b;
  --accent-hover: #c98c2a;
  --bg-body: #f4f7fb;
  --bg-card: #ffffff;
  --bg-soft: #edf2f8;
  --text-main: #233649;
  --text-muted: #6d7e91;
  --border-light: #dfe6ef;
  --shadow-sm: 0 2px 10px rgba(12,38,67,0.06);
  --shadow-md: 0 8px 30px rgba(12,38,67,0.09);
  --shadow-lg: 0 18px 50px rgba(12,38,67,0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --sidebar-w: 264px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }
button { font-family: inherit; }
.container-custom { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---------- Sidebar ---------- */
.app-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  padding: 28px 20px 24px;
  transition: transform .35s ease;
  box-shadow: 4px 0 30px rgba(12,38,67,0.18);
}
.brand-logo {
  padding: 4px 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  margin-bottom: 20px;
}
.brand-logo a {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #fff;
}
.brand-logo span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: 1px;
  margin-top: 2px;
}
.sidebar-nav .nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,.4);
  padding: 0 12px;
  margin-bottom: 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  transition: all .22s;
  border: 1px solid transparent;
}
.nav-link i { width: 20px; text-align: center; font-size: 16px; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(3px); }
.nav-link.active {
  background: rgba(255,255,255,.1);
  color: var(--accent);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sidebar-footer { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.35); padding: 0 12px; }
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(12,38,67,.45);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: opacity .3s;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

/* ---------- Main ---------- */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 980;
}
.mobile-logo { color: #fff; font-size: 22px; font-weight: 800; }
.menu-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 19px;
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.menu-toggle:hover { background: rgba(255,255,255,.1); }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); }

/* ---------- Page Hero ---------- */
.page-hero {
  background:
    linear-gradient(rgba(12,38,67,.82), rgba(12,38,67,.9)),
    url('/assets/images/backpic/back-2.png') center/cover no-repeat;
  padding: 88px 0 72px;
  color: #fff;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(226,161,59,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-breadcrumb { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.hero-breadcrumb a { color: rgba(255,255,255,.85); }
.hero-breadcrumb a:hover { color: var(--accent); }
.hero-tag {
  display: inline-block;
  background: rgba(226,161,59,.18);
  border: 1px solid rgba(226,161,59,.4);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 760px;
}
.page-hero p.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.82);
  max-width: 720px;
  margin-bottom: 32px;
}
.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-stats .stat-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 14px 22px;
  text-align: center;
}
.hero-stats .stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.hero-stats .stat-label { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.bg-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  background: rgba(226,161,59,.12);
  padding: 4px 14px;
  border-radius: 100px;
}
.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; color: var(--primary-dark); }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------- Tool Category Cards ---------- */
.tool-cat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  height: 100%;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.tool-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  opacity: 0;
  transition: opacity .25s;
}
.tool-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.tool-cat-card:hover::before { opacity: 1; }
.tool-cat-card .cat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(42,90,140,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary-light);
  margin-bottom: 18px;
}
.tool-cat-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tool-cat-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ---------- Featured Tool Cards ---------- */
.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tool-card-media { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.tool-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tool-card:hover .tool-card-media img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(12,38,67,.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.tool-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tool-card-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tool-card-body p { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
}
.btn-text {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.btn-text:hover { gap: 12px; color: var(--accent); }

/* ---------- Workflow ---------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  position: relative;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.flow-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
  font-size: 42px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.flow-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Scene Cards ---------- */
.scene-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.scene-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-md); }
.scene-card-img { aspect-ratio: 16/8; overflow: hidden; }
.scene-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.scene-card:hover .scene-card-img img { transform: scale(1.04); }
.scene-card-body { padding: 24px; }
.scene-card-body i { color: var(--accent); font-size: 22px; margin-bottom: 12px; }
.scene-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.scene-card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 16px;
}
.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
  color: var(--accent);
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-item .faq-ans { padding: 0 24px 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta-section {
  background:
    linear-gradient(135deg, rgba(12,38,67,.94), rgba(23,56,92,.88)),
    url('/assets/images/backpic/back-3.png') center/cover no-repeat;
  padding: 76px 0;
}
.cta-box {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
}
.cta-box h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-box p { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 30px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 8px 24px rgba(226,161,59,.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(226,161,59,.4);
}
.btn-primary:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 3px; }

/* ---------- Footer ---------- */
.app-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.72);
  padding: 64px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { font-size: 24px; font-weight: 800; color: #fff; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 340px; }
.footer-col h4 {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.62);
  font-size: 14px;
  transition: color .2s, padding-left .2s;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-links a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  transition: all .2s;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 26px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
  .page-hero { padding: 72px 0 60px; }
  .page-hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
  }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .mobile-topbar { display: flex; }
  .container-custom { padding: 0 20px; }
  .page-hero { padding: 60px 0 48px; }
  .page-hero h1 { font-size: 30px; }
  .hero-stats { gap: 12px; }
  .hero-stats .stat-item { padding: 10px 16px; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .app-footer { padding-top: 48px; }
}

@media (max-width: 520px) {
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 24px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero .hero-desc { font-size: 15px; }
  .hero-stats .stat-item { flex: 1; min-width: 90px; }
  .flow-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-step { padding: 20px 14px; }
  .flow-step .step-num { font-size: 32px; }
  .cta-box h2 { font-size: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tool-card-body { padding: 18px; }
}

@media (min-width: 821px) {
  .app-sidebar { transform: translateX(0); }
  .sidebar-overlay { display: none; }
}
