/* roulang page: index */
:root {
  --primary: #7C5CFF;
  --primary-dark: #6A48E0;
  --accent: #00D4AA;
  --warning: #F5A623;
  --bg-dark: #0A0E17;
  --bg-surface: #121826;
  --bg-surface-hover: #192132;
  --text-main: #E6EAF2;
  --text-secondary: #9AA6B8;
  --border: rgba(255,255,255,0.08);
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-badge: 999px;
  --shadow-default: 0 12px 32px rgba(0,0,0,0.35);
  --shadow-hover: 0 16px 48px rgba(124,92,255,0.18);
  --spacing-section: 100px;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

button, input {
  font-family: var(--font-sans);
}

.container {
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding: var(--spacing-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1050;
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo:hover {
  color: var(--text-main);
}

.logo-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(124,92,255,0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: var(--text-main);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  color: var(--primary) !important;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-nav:hover {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(124,92,255,0.3);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 6px auto;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 14, 23, 0.97);
  z-index: 1040;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  backdrop-filter: blur(16px);
}

.mobile-menu a {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu.show {
  display: flex;
}

/* ============ Hero ============ */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 100px;
  background-image: url('/assets/images/backpic/back-1.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,14,23,0.75) 0%, rgba(10,14,23,0.82) 45%, rgba(10,14,23,0.92) 100%);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-content h1 .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124,92,255,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,92,255,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,92,255,0.08);
}

.hero-note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note i {
  color: var(--accent);
  font-size: 14px;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============ Features ============ */
.features-section {
  background: transparent;
}

.feature-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
}

.feature-row:hover {
  background: rgba(124,92,255,0.06);
  transform: translateX(8px);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: rgba(124,92,255,0.6);
  width: 48px;
  flex-shrink: 0;
}

.feature-icon {
  width: 28px;
  flex-shrink: 0;
  font-size: 28px;
  color: var(--primary);
  text-align: center;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.feature-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============ Demo ============ */
.demo-section {
  background: rgba(18,24,38,0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.phone-model {
  width: 260px;
  height: 520px;
  background: #0d1117;
  border: 8px solid #1a2430;
  border-radius: 36px;
  box-shadow: var(--shadow-default), 0 0 60px rgba(124,92,255,0.15);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #1a2430;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.demo-points {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 1;
}

.demo-points.left {
  left: 24px;
  align-items: flex-end;
}

.demo-points.right {
  right: 24px;
  align-items: flex-start;
}

.demo-point {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18,24,38,0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  width: 220px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-point:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(124,92,255,0.15);
}

.demo-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124,92,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.demo-point-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.demo-point-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============ Stats ============ */
.stats-section {
  position: relative;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 32px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.testimonials-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 16px;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(124,92,255,0.4);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.testimonial-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

/* ============ Versions ============ */
.versions-section {
  background: rgba(18,24,38,0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.version-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.version-card {
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.88;
}

.version-card.featured {
  width: 360px;
  transform: scale(1.06);
  border-color: var(--primary);
  box-shadow: 0 20px 48px rgba(124,92,255,0.25);
  opacity: 1;
  background: linear-gradient(160deg, var(--bg-surface) 0%, rgba(124,92,255,0.08) 100%);
}

.version-card.featured:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 24px 56px rgba(124,92,255,0.35);
}

.version-card:hover {
  border-color: rgba(124,92,255,0.35);
  transform: translateY(-4px);
}

.version-recommend {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning);
  color: #1a1405;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-badge);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(245,166,35,0.3);
}

.version-name {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.version-price {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.version-period {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.version-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.version-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.version-features li i {
  color: var(--accent);
  font-size: 13px;
  width: 18px;
  flex-shrink: 0;
}

.version-features li.dim {
  opacity: 0.5;
}

.version-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.version-btn.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.version-btn.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-main);
  background: transparent;
}

.version-btn.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============ News ============ */
.news-section {
  background: transparent;
}

.news-list {
  max-width: 820px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, padding-left 0.25s ease;
  border-radius: 8px;
  color: inherit;
}

.news-item:hover {
  background: rgba(124,92,255,0.04);
  padding-left: 12px;
  color: var(--text-main);
}

.news-date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  align-self: flex-start;
}

.news-date .day {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.news-date .month {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.news-body {
  flex: 1;
}

.news-body .badge {
  display: inline-flex;
  align-items: center;
  background: rgba(124,92,255,0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-badge);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.news-body h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.news-item:hover .news-body h4 {
  color: var(--primary);
}

.news-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
  font-size: 15px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

/* ============ FAQ ============ */
.faq-section {
  background: rgba(18,24,38,0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.accordion-item {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--primary);
}

.accordion-button {
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: none;
  border: none;
  transition: background 0.25s ease;
}

.accordion-button:focus {
  box-shadow: none;
  outline: 2px solid rgba(124,92,255,0.3);
}

.accordion-button:not(.collapsed) {
  background: rgba(124,92,255,0.06);
  color: var(--primary);
}

.accordion-button::after {
  background-image: none;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: '\f078';
  font-size: 14px;
  color: var(--text-secondary);
  width: auto;
  height: auto;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-q {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.8;
  width: 28px;
  flex-shrink: 0;
}

.accordion-body {
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  padding: 8px 24px 24px 66px;
  border-top: 1px solid var(--border);
}

/* ============ CTA ============ */
.cta-section {
  padding: 80px 0;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(124,92,255,0.25) 0%, rgba(0,212,170,0.12) 100%),
              var(--bg-surface);
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124,92,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.cta-banner p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  margin: 0 8px;
}

/* ============ Footer ============ */
.site-footer {
  background: #080C13;
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-contact {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

.footer-contact i {
  color: var(--primary);
  width: 20px;
  margin-right: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============ Float CTA ============ */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.float-cta.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(124,92,255,0.4);
  transition: all 0.25s ease;
}

.float-cta a:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(124,92,255,0.5);
  color: #fff;
}

.float-cta .mobile-text {
  display: none;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1060;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============ Responsive ============ */
@media (max-width: 991px) {
  :root {
    --spacing-section: 72px;
  }

  .demo-points {
    display: none;
  }

  .version-card {
    width: 280px;
  }

  .version-card.featured {
    width: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --spacing-section: 48px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-section {
    padding: 120px 0 80px;
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .feature-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 16px;
    text-align: left;
  }

  .feature-row:hover {
    transform: translateX(4px);
  }

  .feature-num {
    font-size: 20px;
    width: auto;
  }

  .feature-icon {
    font-size: 24px;
  }

  .phone-model {
    width: 220px;
    height: 440px;
  }

  .stats-row {
    flex-direction: column;
    gap: 32px;
    padding: 32px 16px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-number {
    font-size: 36px;
  }

  .testimonial-card {
    flex: 0 0 280px;
  }

  .version-grid {
    flex-direction: column;
    gap: 32px;
  }

  .version-card,
  .version-card.featured {
    width: 100%;
    max-width: 360px;
    transform: scale(1);
  }

  .version-card.featured {
    transform: scale(1);
    order: -1;
  }

  .news-item {
    flex-direction: row;
    gap: 14px;
    padding: 20px 0;
  }

  .news-date {
    width: 56px;
    padding: 10px 6px;
  }

  .news-date .day {
    font-size: 20px;
  }

  .news-date .month {
    font-size: 12px;
  }

  .news-body h4 {
    font-size: 16px;
  }

  .news-body p {
    font-size: 13px;
  }

  .accordion-button {
    font-size: 15px;
    padding: 16px 20px;
  }

  .accordion-body {
    padding: 8px 20px 20px 56px;
    font-size: 14px;
  }

  .cta-section {
    padding: 48px 0;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .cta-banner h2 {
    font-size: 24px;
  }

  .cta-banner p {
    font-size: 14px;
  }

  .cta-banner .btn {
    width: 100%;
    margin: 8px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .float-cta {
    bottom: 16px;
    right: 16px;
  }

  .float-cta a {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .float-cta .desktop-text {
    display: none;
  }

  .float-cta .mobile-text {
    display: block;
    font-size: 18px;
  }

  .back-top {
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 520px) {
  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 14px;
  }

  .phone-model {
    width: 200px;
    height: 400px;
  }

  .demo-points {
    display: none;
  }
}

/* roulang page: category1 */
:root {
            --primary: #7C5CFF;
            --primary-dark: #6A48E0;
            --primary-glow: rgba(124, 92, 255, 0.18);
            --secondary: #00D4AA;
            --accent: #F5A623;
            --bg-deep: #0A0E17;
            --bg-surface: #121826;
            --bg-hover: #192132;
            --text-main: #E6EAF2;
            --text-sub: #9AA6B8;
            --border-color: rgba(255, 255, 255, 0.08);
            --font-main: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
            --font-mono: "SF Mono", Consolas, monospace;
            --radius-card: 16px;
            --radius-btn: 8px;
            --radius-badge: 999px;
            --radius-input: 10px;
            --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
            --shadow-hover: 0 16px 48px rgba(124, 92, 255, 0.18);
            --space-section: 100px;
            --space-section-md: 72px;
            --space-section-sm: 48px;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-deep);
            color: var(--text-main);
            font-size: 16px;
            line-height: 1.8;
            -webkit-font-smoothing: antialiased;
            background-image: linear-gradient(rgba(124, 92, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(124, 92, 255, 0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            overflow-x: hidden;
        }

        img {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-card);
        }

        a {
            color: var(--text-main);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        a:hover {
            color: var(--primary);
        }

        .container {
            max-width: 1200px;
            padding-left: 24px;
            padding-right: 24px;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            height: 72px;
            background: rgba(10, 14, 23, 0.82);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 72px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 22px;
            font-weight: 800;
            letter-spacing: 1px;
            color: var(--text-main);
            transition: color 0.3s ease;
        }

        .logo:hover {
            color: var(--primary);
        }

        .logo-badge {
            position: relative;
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 12px rgba(124, 92, 255, 0.5);
        }

        .main-nav {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        .main-nav a:not(.btn-nav) {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-sub);
            position: relative;
            transition: color 0.3s ease;
            letter-spacing: 0.3px;
        }

        .main-nav a:not(.btn-nav):hover,
        .main-nav a:not(.btn-nav).active {
            color: var(--primary);
        }

        .main-nav a:not(.btn-nav).active::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
        }

        .btn-nav {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            border: 1px solid var(--primary);
            border-radius: var(--radius-btn);
            color: var(--primary) !important;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-nav:hover {
            background: var(--primary);
            color: #fff !important;
            box-shadow: 0 0 20px rgba(124, 92, 255, 0.35);
            transform: translateY(-2px);
        }

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 6px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            z-index: 1001;
        }

        .hamburger span {
            display: block;
            width: 24px;
            height: 1.5px;
            background: #fff;
            transition: all 0.3s ease;
        }

        .hamburger.open span:first-child {
            transform: translateY(4px) rotate(45deg);
        }

        .hamburger.open span:last-child {
            transform: translateY(-4px) rotate(-45deg);
        }

        .page-hero {
            position: relative;
            padding: 80px 0 60px;
            background-image: url('/assets/images/backpic/back-1.webp');
            background-size: cover;
            background-position: center;
            background-color: var(--bg-deep);
        }

        .page-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg,
                    rgba(10, 14, 23, 0.92) 0%,
                    rgba(10, 14, 23, 0.85) 40%,
                    rgba(10, 14, 23, 0.75) 100%);
            z-index: 1;
        }

        .page-hero .container {
            position: relative;
            z-index: 2;
        }

        .page-hero .breadcrumb {
            background: transparent;
            padding: 0;
            margin-bottom: 24px;
            font-size: 14px;
            color: var(--text-sub);
        }

        .page-hero .breadcrumb a {
            color: var(--text-sub);
        }

        .page-hero .breadcrumb a:hover {
            color: var(--primary);
        }

        .page-hero .breadcrumb-item+.breadcrumb-item::before {
            color: var(--text-sub);
            content: '/';
        }

        .page-hero h1 {
            font-size: 52px;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 20px;
            max-width: 720px;
            letter-spacing: 1px;
        }

        .page-hero h1 .highlight {
            color: var(--primary);
        }

        .page-hero .intro-line {
            max-width: 660px;
            font-size: 17px;
            color: var(--text-sub);
            line-height: 1.9;
            margin-bottom: 0;
        }

        .intro-bar {
            background: rgba(18, 24, 38, 0.9);
            border-bottom: 1px solid var(--border-color);
            padding: 16px 0;
        }

        .intro-bar-content {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 15px;
            color: var(--text-sub);
        }

        .intro-bar-content i {
            color: var(--secondary);
            font-size: 18px;
        }

        .section-block {
            padding: var(--space-section) 0;
            border-bottom: 1px solid var(--border-color);
        }

        .section-title {
            text-align: center;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 16px;
            letter-spacing: 1px;
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-sub);
            font-size: 16px;
            max-width: 640px;
            margin: 0 auto 48px;
            line-height: 1.8;
        }

        .guide-main-cover {
            margin-bottom: 48px;
            border-radius: var(--radius-card);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            position: relative;
        }

        .guide-main-cover img {
            width: 100%;
            height: 420px;
            object-fit: cover;
            display: block;
        }

        .guide-main-cover::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(10, 14, 23, 0.4) 0%, transparent 60%);
            pointer-events: none;
        }

        .guide-intro-text {
            max-width: 860px;
            margin: 0 auto 56px;
            text-align: center;
        }

        .guide-intro-text p {
            font-size: 16px;
            color: var(--text-sub);
            line-height: 2;
            margin-bottom: 16px;
        }

        .guide-intro-text p:last-child {
            margin-bottom: 0;
        }

        .guide-grid-2x2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-card);
            overflow: hidden;
            background: var(--bg-surface);
            margin-bottom: 48px;
        }

        .guide-grid-cell {
            padding: 36px 32px;
            position: relative;
            transition: background 0.3s ease;
        }

        .guide-grid-cell:hover {
            background: rgba(124, 92, 255, 0.06);
        }

        .guide-grid-cell:nth-child(1) {
            border-right: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .guide-grid-cell:nth-child(2) {
            border-bottom: 1px solid var(--border-color);
        }

        .guide-grid-cell:nth-child(3) {
            border-right: 1px solid var(--border-color);
        }

        .guide-cell-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: rgba(124, 92, 255, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--primary);
            font-size: 20px;
        }

        .guide-grid-cell h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
            letter-spacing: 0.5px;
        }

        .guide-grid-cell p {
            font-size: 14px;
            color: var(--text-sub);
            line-height: 1.8;
            margin-bottom: 0;
        }

        .guide-grid-cell .cell-tag {
            display: inline-block;
            padding: 4px 14px;
            background: rgba(124, 92, 255, 0.1);
            border-radius: var(--radius-badge);
            font-size: 12px;
            color: var(--primary);
            margin-bottom: 14px;
            font-weight: 500;
        }

        .guide-grid-cell .cell-tag.green {
            background: rgba(0, 212, 170, 0.1);
            color: var(--secondary);
        }

        .guide-grid-cell .cell-tag.amber {
            background: rgba(245, 166, 35, 0.1);
            color: var(--accent);
        }

        .related-news {
            background: var(--bg-surface);
            border-radius: var(--radius-card);
            padding: 48px;
            margin-top: 48px;
        }

        .related-news h3 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 32px;
            text-align: center;
        }

        .related-news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .related-news-card {
            background: var(--bg-deep);
            border-radius: var(--radius-card);
            overflow: hidden;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .related-news-card:hover {
            border-color: rgba(124, 92, 255, 0.4);
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }

        .related-news-card .news-cover {
            height: 160px;
            overflow: hidden;
        }

        .related-news-card .news-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0;
        }

        .related-news-card .news-body {
            padding: 20px;
        }

        .related-news-card .news-body h4 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .related-news-card .news-body .news-date {
            font-size: 13px;
            color: var(--text-sub);
            font-family: var(--font-mono);
        }

        .faq-section {
            background: var(--bg-surface);
            border-radius: var(--radius-card);
            padding: 56px;
        }

        .faq-section .section-title {
            text-align: left;
            margin-bottom: 32px;
        }

        .accordion-item {
            background: transparent;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-card) !important;
            margin-bottom: 16px;
            overflow: hidden;
            transition: border-color 0.3s ease;
        }

        .accordion-item:not(:first-of-type) {
            border-top: 1px solid var(--border-color);
        }

        .accordion-item.is-open {
            border-color: var(--primary);
        }

        .accordion-header {
            background: transparent;
            padding: 0;
        }

        .accordion-header .q-mark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: rgba(124, 92, 255, 0.15);
            border-radius: 8px;
            color: var(--primary);
            font-weight: 700;
            margin-right: 12px;
            font-size: 14px;
        }

        .accordion-button {
            background: transparent;
            color: var(--text-main);
            font-size: 17px;
            font-weight: 600;
            padding: 20px 24px;
            box-shadow: none;
            border: none;
            display: flex;
            align-items: center;
        }

        .accordion-button:not(.collapsed) {
            background: rgba(124, 92, 255, 0.04);
            color: var(--primary);
            box-shadow: none;
        }

        .accordion-button:not(.collapsed)::after {
            content: '\f068';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            background: none;
            color: var(--primary);
        }

        .accordion-button::after {
            content: '\f067';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            background: none;
            color: var(--text-sub);
            transition: all 0.3s ease;
        }

        .accordion-button:focus {
            box-shadow: none;
            outline: 2px solid rgba(124, 92, 255, 0.3);
        }

        .accordion-body {
            padding: 0 24px 20px 64px;
            font-size: 15px;
            color: var(--text-sub);
            line-height: 1.8;
        }

        .cta-section {
            position: relative;
            padding: 80px 0;
            overflow: hidden;
            background: linear-gradient(90deg, #6A48E0 0%, #7C5CFF 50%, #00D4AA 130%);
        }

        .cta-section::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
            top: -100px;
            right: -80px;
            border-radius: 50%;
        }

        .cta-inner {
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .cta-inner h2 {
            font-size: 32px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 16px;
        }

        .cta-inner p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 16px;
            margin-bottom: 32px;
        }

        .btn-cta {
            display: inline-block;
            padding: 14px 36px;
            background: #fff;
            color: #6A48E0;
            border-radius: var(--radius-btn);
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }

        .btn-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
            color: #5a3cc8;
        }

        .site-footer {
            background: #080C13;
            padding: 72px 0 32px;
            border-top: 1px solid var(--border-color);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.2fr;
            gap: 48px;
            margin-bottom: 48px;
        }

        .footer-brand .logo {
            font-size: 18px;
            margin-bottom: 16px;
        }

        .footer-brand p {
            font-size: 14px;
            color: var(--text-sub);
            line-height: 1.8;
            margin-top: 16px;
        }

        .footer-col h5 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 20px;
            letter-spacing: 1px;
        }

        .footer-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        .footer-col ul li a {
            font-size: 14px;
            color: var(--text-sub);
            transition: color 0.3s ease;
        }

        .footer-col ul li a:hover {
            color: var(--primary);
        }

        .footer-contact div {
            font-size: 14px;
            color: var(--text-sub);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-contact i {
            color: var(--primary);
            width: 16px;
        }

        .footer-bottom {
            border-top: 1px solid var(--border-color);
            padding-top: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .footer-bottom p {
            font-size: 13px;
            color: var(--text-sub);
            margin: 0;
        }

        @media (max-width: 991px) {
            :root {
                --space-section: 72px;
            }

            .container {
                padding-left: 20px;
                padding-right: 20px;
            }

            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 32px;
            }

            .guide-grid-2x2 {
                grid-template-columns: 1fr;
            }

            .guide-grid-cell:nth-child(n) {
                border-right: none;
                border-bottom: 1px solid var(--border-color);
            }

            .guide-grid-cell:last-child {
                border-bottom: none;
            }

            .related-news-grid {
                grid-template-columns: 1fr;
            }

            .page-hero h1 {
                font-size: 42px;
            }

            .faq-section {
                padding: 40px 32px;
            }
        }

        @media (max-width: 767px) {
            :root {
                --space-section: 48px;
            }

            .container {
                padding-left: 16px;
                padding-right: 16px;
            }

            .site-header {
                height: 64px;
            }

            .header-inner {
                height: 64px;
            }

            .logo {
                font-size: 18px;
            }

            .logo-badge {
                width: 16px;
                height: 16px;
            }

            .main-nav {
                position: fixed;
                top: 64px;
                left: 0;
                right: 0;
                background: rgba(10, 14, 23, 0.98);
                flex-direction: column;
                padding: 32px 24px;
                gap: 24px;
                align-items: center;
                transform: translateY(-120%);
                transition: transform 0.4s ease;
                border-bottom: 1px solid var(--border-color);
                z-index: 999;
                backdrop-filter: blur(16px);
            }

            .main-nav.open {
                transform: translateY(0);
            }

            .main-nav a:not(.btn-nav) {
                font-size: 16px;
            }

            .main-nav a:not(.btn-nav).active::after {
                bottom: -4px;
            }

            .btn-nav {
                margin-top: 8px;
            }

            .hamburger {
                display: flex;
            }

            .page-hero {
                padding: 56px 0 40px;
            }

            .page-hero h1 {
                font-size: 34px;
                line-height: 1.3;
            }

            .page-hero .intro-line {
                font-size: 15px;
            }

            .section-title {
                font-size: 24px;
            }

            .section-subtitle {
                font-size: 15px;
                margin-bottom: 32px;
            }

            .guide-main-cover img {
                height: 240px;
            }

            .guide-grid-cell {
                padding: 24px 20px;
            }

            .guide-grid-cell h3 {
                font-size: 18px;
            }

            .guide-grid-cell p {
                font-size: 14px;
            }

            .related-news {
                padding: 32px 20px;
            }

            .related-news-card .news-body h4 {
                font-size: 15px;
            }

            .faq-section {
                padding: 32px 16px;
            }

            .accordion-button {
                font-size: 15px;
                padding: 16px 20px;
            }

            .accordion-body {
                padding: 0 20px 16px 56px;
                font-size: 14px;
            }

            .cta-section {
                padding: 56px 0;
            }

            .cta-inner h2 {
                font-size: 24px;
            }

            .cta-inner p {
                font-size: 15px;
            }

            .btn-cta {
                padding: 12px 28px;
                font-size: 14px;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }

/* roulang page: article */
:root {
  --primary: #7C5CFF;
  --primary-dark: #6A48E0;
  --accent: #00D4AA;
  --amber: #F5A623;
  --bg: #0A0E17;
  --surface: #121826;
  --surface-hover: #192132;
  --text-main: #E6EAF2;
  --text-secondary: #9AA6B8;
  --text-muted: #5C6B7F;
  --border: rgba(255,255,255,0.08);
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-input: 10px;
  --shadow: 0 12px 32px rgba(0,0,0,0.35);
  --shadow-hover: 0 16px 48px rgba(124,92,255,0.18);
  --font-main: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", Consolas, monospace;
  --container-max: 1200px;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 30px
  );
  pointer-events: none;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.container {
  max-width: var(--container-max);
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(10, 14, 23, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}

.logo:hover {
  color: var(--text-main);
}

.logo-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.4);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav .nav-link,
.main-nav > a:not(.btn-nav) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.main-nav .nav-link:hover,
.main-nav > a:not(.btn-nav):hover {
  color: var(--primary);
}

.main-nav > a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.3);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ========== 面包屑 ========== */
.breadcrumb-nav {
  padding: 28px 0 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.breadcrumb-nav .sep {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ========== 文章头部 ========== */
.article-main {
  padding: 24px 0 100px;
}

.article-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-header {
  margin-bottom: 36px;
}

.article-header h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin: 18px 0 16px;
  letter-spacing: -0.5px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  color: var(--primary);
  font-size: 12px;
}

.badge-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* ========== 正文 ========== */
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  padding-top: 8px;
}

.article-body > * + * {
  margin-top: 24px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  padding-top: 14px;
  margin: 40px 0 18px;
  position: relative;
  line-height: 1.4;
}

.article-body h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  margin-bottom: 14px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 32px 0 14px;
  line-height: 1.5;
}

.article-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 24px 0 10px;
}

.article-body p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 24px;
}

.article-body strong {
  color: var(--text-main);
  font-weight: 600;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(124, 92, 255, 0.06);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
  margin: 28px 0;
  font-style: normal;
}

.article-body blockquote p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.article-body img {
  border-radius: 12px;
  margin: 28px 0;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
  margin: 20px 0 28px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body li::marker {
  color: var(--primary);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body table th {
  background: var(--surface);
  color: var(--text-main);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.article-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.article-body table tr:last-child td {
  border-bottom: none;
}

.article-body tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin: 24px 0;
}

.article-body a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.article-body a:hover {
  border-bottom-color: var(--primary);
}

/* ========== 标签 ========== */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  transition: all 0.25s ease;
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 92, 255, 0.08);
}

/* ========== 上一篇 / 下一篇 ========== */
.article-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 48px;
}

.pn-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  transition: all 0.3s ease;
}

.pn-card:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pn-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.pn-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-next {
  text-align: right;
}

.pn-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ========== 相关推荐 ========== */
.related-section {
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.related-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.related-section .section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.related-thumb {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-thumb img {
  transform: scale(1.05);
}

.related-info {
  padding: 16px 18px 18px;
}

.related-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-date {
  font-size: 12px;
  color: var(--text-muted);
}

.related-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

/* ========== 404 区域 ========== */
.not-found-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  padding: 100px 20px;
}

.not-found-wrap h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.not-found-wrap p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.25);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.35);
  color: #fff;
}

/* ========== 返回列表 ========== */
.back-to-list {
  text-align: center;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.back-to-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.back-to-list a:hover {
  color: var(--primary);
  gap: 12px;
}

/* ========== Footer ========== */
.site-footer {
  background: #080C13;
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.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: var(--text-secondary);
  transition: color 0.25s ease;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-contact div {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i {
  color: var(--primary);
  font-size: 12px;
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== 返回顶部 ========== */
.back-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.35s ease;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.back-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.4);
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    height: 64px;
  }

  .header-inner {
    height: 64px;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: rgba(10, 14, 23, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 36px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav > a {
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }

  .article-header h1 {
    font-size: 26px;
  }

  .article-body {
    font-size: 15px;
  }

  .article-body h2 {
    font-size: 22px;
  }

  .article-body h3 {
    font-size: 18px;
  }

  .article-prevnext {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-top-btn {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  .article-header h1 {
    font-size: 24px;
  }

  .article-wrap {
    padding: 0 4px;
  }

  .article-meta {
    gap: 6px 12px;
    font-size: 12px;
  }
}
