:root {
  --primary: #ff6b35;
  --primary-dark: #e05520;
  --primary-light: #ff9a5a;
  --accent: #ffd93d;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text: #1f2328;
  --text-muted: #5b6570;
  --border: #e5e8ec;
  --border-glass: rgba(255, 255, 255, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 32px rgba(255, 107, 53, 0.28);
  --gradient-hero: linear-gradient(135deg, #ff6b35 0%, #ff9a5a 55%, #ffd93d 100%);
  --gradient-hero-2: linear-gradient(135deg, #ff6b35 0%, #ff4e6a 100%);
  --gradient-hero-3: linear-gradient(135deg, #ff8a3d 0%, #ff6b35 50%, #ffb347 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 107, 53, 0.06), rgba(255, 217, 61, 0.04));
  --blur: blur(16px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #ff7d4d;
  --primary-dark: #ff6b35;
  --primary-light: #ffa070;
  --accent: #ffd93d;
  --bg: #15181c;
  --bg-alt: #1d2126;
  --bg-glass: rgba(29, 33, 38, 0.72);
  --bg-glass-strong: rgba(29, 33, 38, 0.88);
  --text: #e8eaed;
  --text-muted: #9aa4ae;
  --border: #2c3238;
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 8px 32px rgba(255, 125, 77, 0.22);
  --gradient-hero: linear-gradient(135deg, #c24a1e 0%, #d96830 55%, #b8860b 100%);
  --gradient-hero-2: linear-gradient(135deg, #c24a1e 0%, #a83248 100%);
  --gradient-hero-3: linear-gradient(135deg, #b8621f 0%, #c24a1e 50%, #a87820 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 125, 77, 0.08), rgba(255, 217, 61, 0.03));
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ============ Header ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-glass);
  transition: box-shadow var(--transition), background var(--transition);
}

header.site-header.scrolled {
  box-shadow: var(--shadow);
  background: var(--bg-glass-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo svg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: var(--shadow-glow);
}

.logo span {
  background: var(--gradient-hero-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav.main-nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

nav.main-nav a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}

nav.main-nav a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.icon-btn:active {
  transform: translateY(0);
}

.menu-toggle {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 14px;
  width: 140px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.search-box button:hover {
  color: var(--primary);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 12px 0 40px;
  background: var(--gradient-hero);
  color: #fff;
  min-height: 340px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(255, 217, 61, 0.25), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
  padding: 40px;
  z-index: 2;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide:nth-child(2) {
  background: var(--gradient-hero-2);
}

.hero-slide:nth-child(3) {
  background: var(--gradient-hero-3);
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 3;
  animation: heroIn 0.7s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero p {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.95;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.hero .btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  background: #fff;
  color: var(--primary-dark);
}

.hero .btn:active {
  transform: translateY(-1px) scale(0.99);
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), width var(--transition);
  padding: 0;
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dots button.active {
  background: #fff;
  transform: scale(1.3);
  width: 24px;
  border-radius: 6px;
}

.hero-art {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 280px;
  opacity: 0.25;
  z-index: 1;
  animation: floatArt 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatArt {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ============ Sections ============ */
section {
  padding: 48px 0;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 48px;
  height: 4px;
  background: var(--gradient-hero-2);
  border-radius: 2px;
  transition: width var(--transition);
}

.section-title:hover::after {
  width: 100%;
}

.section-sub {
  color: var(--text-muted);
  margin: 16px 0 32px;
  font-size: 15px;
}

/* ============ Grid ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============ Cards ============ */
.card {
  background: var(--bg-alt);
  background-image: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero-2);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.card p + p {
  margin-top: 8px;
}

.card strong {
  color: var(--text);
  font-weight: 600;
}

.card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  transition: transform var(--transition);
}

.card:hover .icon {
  transform: scale(1.1) rotate(-4deg);
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  background: var(--bg-alt);
  background-image: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.08), transparent 70%);
  pointer-events: none;
}

.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: var(--gradient-hero-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ============ Article Cards ============ */
.article-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.article-thumb {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}

.article-thumb svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.article-card:hover .article-thumb svg {
  transform: scale(1.06);
}

.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.12), transparent 60%);
  pointer-events: none;
}

.article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta time {
  font-weight: 600;
  color: var(--primary);
}

.article-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}

.article-card:hover .article-body h3 {
  color: var(--primary);
}

.article-body p {
  color: var(--text-muted);
  font-size: 14px;
  flex: 1;
  margin-bottom: 14px;
  line-height: 1.7;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
  align-self: flex-start;
}

.read-more:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: var(--bg-glass-strong);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
  line-height: 1.5;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  font-weight: 400;
  line-height: 1;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 20px 18px;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ============ HowTo Steps ============ */
.howto-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.howto-step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-hero-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition);
}

.howto-step:hover .step-num {
  transform: scale(1.1) rotate(-6deg);
}

.step-body h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--text);
}

.step-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============ Timeline ============ */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 16px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  transition: transform var(--transition);
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.25);
}

.timeline-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--primary);
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============ Testimonials ============ */
.testimonial {
  background: var(--bg-alt);
  background-image: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 80px;
  color: var(--primary);
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.testimonial:hover .avatar {
  transform: scale(1.08);
  border-color: var(--primary);
}

.testimonial .who strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.testimonial .who span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ Table ============ */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

td {
  color: var(--text-muted);
  transition: background var(--transition);
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover td {
  background: rgba(255, 107, 53, 0.05);
}

/* ============ Notice ============ */
.notice {
  background: rgba(255, 107, 53, 0.08);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  transition: background var(--transition), transform var(--transition);
}

.notice:hover {
  background: rgba(255, 107, 53, 0.12);
  transform: translateX(4px);
}

.notice strong {
  color: var(--primary);
}

[data-theme="dark"] .notice {
  background: rgba(255, 125, 77, 0.1);
}

[data-theme="dark"] .notice:hover {
  background: rgba(255, 125, 77, 0.16);
}

/* ============ Prose ============ */
.prose p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

.prose h3 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.prose h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1em;
  background: var(--gradient-hero-2);
  border-radius: 2px;
}

.prose h4 {
  font-size: 16px;
  margin: 20px 0 10px;
  color: var(--text);
  font-weight: 700;
}

.prose ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 15px;
  list-style: disc;
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.prose li::marker {
  color: var(--primary);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ============ Tags ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ============ Sitemap Links ============ */
.sitemap-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}

.sitemap-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--transition), padding-left var(--transition);
  position: relative;
}

.sitemap-links a::before {
  content: "›";
  position: absolute;
  left: -12px;
  opacity: 0;
  color: var(--primary);
  transition: opacity var(--transition), left var(--transition);
}

.sitemap-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.sitemap-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* ============ Footer ============ */
footer.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}

.footer-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-grid a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-bottom p {
  margin-bottom: 4px;
}

/* ============ Back Top ============ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-hero-2);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  opacity: 0;
}

.back-top.show {
  display: flex;
  opacity: 1;
  animation: popIn 0.35s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.back-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.back-top:active {
  transform: translateY(-2px) scale(0.98);
}

/* ============ Reveal Animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ Focus States ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Selection ============ */
::selection {
  background: rgba(255, 107, 53, 0.25);
  color: var(--text);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  border: 2px solid var(--bg-alt);
  transition: background var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  nav.main-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-glass-strong);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav.main-nav.open {
    display: flex;
  }

  nav.main-nav a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .menu-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 300px;
  }

  .hero-slide {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .hero-art {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 16px;
    gap: 20px;
  }

  section {
    padding: 36px 0;
  }

  .header-inner {
    height: 60px;
  }

  nav.main-nav {
    top: 60px;
  }

  .logo {
    font-size: 18px;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: 280px;
    border-radius: var(--radius);
  }

  .hero-slide {
    padding: 28px 20px;
  }

  .hero .btn {
    padding: 10px 24px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .sitemap-links {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .card {
    padding: 20px;
  }

  .article-thumb {
    height: 140px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .faq-q {
    padding: 16px;
    font-size: 15px;
  }

  .howto-step {
    padding: 14px;
  }

  .testimonial {
    padding: 20px;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -20px;
  }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  header.site-header,
  .hero-dots,
  .back-top,
  footer.site-footer,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    background: #f0f0f0;
    color: #000;
    box-shadow: none;
  }

  .card,
  .article-card,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}