:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b6b;
  --secondary: #f77f00;
  --accent: #457b9d;
  --accent-dark: #1d3557;
  --teal: #2a9d8f;
  --bg: #f7f8fa;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --text: #2b2b2b;
  --text-heading: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e2e6ea;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 20px rgba(230, 57, 70, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

.dark-mode {
  --bg: #0f0f13;
  --bg-card: #1a1a22;
  --bg-glass: rgba(26, 26, 34, 0.78);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text: #d4d4dc;
  --text-heading: #f0f0f5;
  --text-muted: #9a9aa8;
  --text-light: #6b6b7b;
  --border: #2a2a35;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 4px 20px rgba(230, 57, 70, 0.25);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.03);
  color: var(--primary);
}

.logo svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

.nav {
  display: flex;
  gap: 6px;
  font-size: 14.5px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  position: relative;
  transition: all var(--transition-base);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.nav a:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.06);
}

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 16px;
  background: var(--bg-card);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12), var(--shadow-sm);
}

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

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

.search-box button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.search-box button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

.search-box button:active {
  transform: scale(0.97);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  transition: all var(--transition-base);
  line-height: 1;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  line-height: 1;
}

.menu-toggle:hover {
  background: rgba(230, 57, 70, 0.08);
}

.banner {
  position: relative;
  background: linear-gradient(135deg, #e63946 0%, #f77f00 50%, #e63946 100%);
  background-size: 200% 200%;
  animation: bannerGradient 12s ease infinite;
  color: #fff;
  padding: 80px 20px 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

@keyframes bannerGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 2;
  transition: background var(--transition-base);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 0;
}

.banner-slide.active {
  opacity: 0.35;
}

.banner h1 {
  position: relative;
  z-index: 3;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  animation: bannerTextIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.banner p {
  position: relative;
  z-index: 3;
  font-size: 17px;
  max-width: 760px;
  margin: 0 auto 28px;
  opacity: 0.95;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  animation: bannerTextIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.banner-btn {
  position: relative;
  z-index: 3;
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  padding: 14px 40px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-base);
  animation: bannerTextIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
  border: 2px solid transparent;
}

.banner-btn:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
}

.section {
  margin-bottom: 64px;
  position: relative;
}

.section h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-heading);
  border-left: 5px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 28px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 28px 0 14px;
  padding-left: 4px;
  position: relative;
}

.section h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.section p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  margin-top: 0;
  padding-left: 0;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  text-align: center;
  margin: 36px 0;
}

.stat {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.stat:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.stat:hover::after {
  width: 80px;
}

.stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
  font-weight: 500;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.article-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.article-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
  border-radius: var(--radius-full);
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.15);
}

.article-item:hover::before {
  transform: scaleY(1);
}

.article-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 10px;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.article-item:hover h4 {
  color: var(--primary);
}

.article-item .meta {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.article-item .meta::before {
  content: "🕐";
  font-size: 11px;
  opacity: 0.7;
}

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

.article-item a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-base), color var(--transition-fast);
  margin-top: auto;
}

.article-item a:hover {
  gap: 10px;
  color: var(--primary-dark);
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.15);
}

.faq-item.open {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-q {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-heading);
  gap: 16px;
  transition: color var(--transition-fast), background var(--transition-fast);
  user-select: none;
  line-height: 1.5;
}

.faq-q:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.03);
}

.faq-q::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.08);
  transition: transform var(--transition-base), background var(--transition-base);
  line-height: 1;
}

.faq-item.open .faq-q::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition-base);
  padding: 0 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.85;
}

.faq-a p {
  margin-bottom: 0;
}

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

.howto-step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.howto-step::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: transform var(--transition-base);
}

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

.howto-step:hover::after {
  transform: translate(20%, -20%) scale(1.3);
}

.howto-step h4 {
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.howto-step h4::before {
  content: "▸";
  color: var(--secondary);
  font-size: 14px;
}

.howto-step p {
  margin-bottom: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.03), rgba(247, 127, 0, 0.03));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.2);
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-item strong {
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.contact-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 56px 20px 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: footerGradient 6s linear infinite;
}

@keyframes footerGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}

.footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

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

.footer a {
  color: #bbb;
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  transition: color var(--transition-fast), padding-left var(--transition-base);
  position: relative;
}

.footer a:hover {
  color: var(--primary);
  padding-left: 8px;
  text-decoration: none;
}

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

.footer a:hover::before {
  opacity: 1;
  left: -4px;
}

.footer p {
  font-size: 13.5px;
  line-height: 1.9;
  color: #999;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 13px;
  color: #777;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: #777;
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.back-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.5);
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  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: translateY(0);
}

.dark-mode .header {
  background: var(--bg-glass);
  border-bottom-color: var(--bg-glass-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav a:hover {
  background: rgba(230, 57, 70, 0.12);
}

.dark-mode .search-box {
  background: var(--bg-card);
  border-color: var(--border);
}

.dark-mode .search-box input {
  color: var(--text);
}

.dark-mode .search-box input::placeholder {
  color: var(--text-light);
}

.dark-mode .banner::after {
  background: var(--bg);
}

.dark-mode .card,
.dark-mode .stat,
.dark-mode .article-item,
.dark-mode .faq-item,
.dark-mode .howto-step,
.dark-mode .contact-item {
  background: var(--bg-card);
  border-color: var(--border);
}

.dark-mode .section h2,
.dark-mode .section h3,
.dark-mode .section h4,
.dark-mode .card h3,
.dark-mode .article-item h4,
.dark-mode .faq-q,
.dark-mode .contact-item strong {
  color: var(--text-heading);
}

.dark-mode .section p,
.dark-mode .card p,
.dark-mode .article-item p,
.dark-mode .faq-a,
.dark-mode .howto-step p,
.dark-mode .contact-item p {
  color: var(--text-muted);
}

.dark-mode .article-item .meta {
  color: var(--text-light);
}

.dark-mode .stat-label {
  color: var(--text-light);
}

.dark-mode .theme-toggle {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
}

.dark-mode .theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dark-mode .footer {
  background: #0a0a0a;
}

.dark-mode .footer h4 {
  color: #e0e0e0;
}

.dark-mode .footer a {
  color: #888;
}

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

.dark-mode .footer p {
  color: #777;
}

.dark-mode .footer-bottom {
  border-top-color: #1e1e1e;
}

.dark-mode .footer-bottom p {
  color: #666;
}

.dark-mode .faq-item.open .faq-q::after {
  background: var(--primary);
  color: #fff;
}

.dark-mode .faq-q::after {
  background: rgba(230, 57, 70, 0.15);
}

.dark-mode .faq-q:hover {
  background: rgba(230, 57, 70, 0.06);
}

.dark-mode .nav.open {
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-mode .back-top {
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 10px 16px;
  }

  .logo {
    font-size: 20px;
  }

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

  .nav {
    gap: 2px;
    font-size: 13.5px;
  }

  .nav a {
    padding: 6px 10px;
  }

  .search-box input {
    width: 110px;
  }

  .banner h1 {
    font-size: 32px;
  }

  .banner p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .logo {
    font-size: 18px;
    gap: 8px;
  }

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 12px 16px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: 4px;
    z-index: 1001;
  }

  .nav.open {
    display: flex;
    animation: navSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .nav a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .search-box {
    display: none;
  }

  .theme-toggle {
    order: 2;
    padding: 6px 10px;
    font-size: 14px;
  }

  .banner {
    padding: 56px 16px 70px;
  }

  .banner h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .banner p {
    font-size: 14.5px;
    margin-bottom: 22px;
    line-height: 1.7;
  }

  .banner-btn {
    padding: 12px 32px;
    font-size: 15px;
  }

  .banner::after {
    height: 40px;
  }

  .container {
    padding: 32px 14px;
  }

  .section {
    margin-bottom: 44px;
  }

  .section h2 {
    font-size: 21px;
    padding-left: 12px;
    margin-bottom: 22px;
  }

  .section h2::after {
    width: 40px;
    height: 2px;
  }

  .section h3 {
    font-size: 18px;
    margin: 22px 0 12px;
  }

  .section h4 {
    font-size: 16px;
  }

  .section p {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0;
  }

  .stat {
    padding: 22px 12px;
    border-radius: var(--radius-md);
  }

  .stat-num {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12.5px;
  }

  .article-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-item {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .article-item h4 {
    font-size: 15px;
  }

  .article-item p {
    font-size: 13.5px;
  }

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

  .faq-q::after {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  .faq-a {
    padding: 0 16px;
    font-size: 14px;
  }

  .faq-item.open .faq-a {
    padding: 0 16px 16px;
  }

  .howto-step {
    padding: 18px;
    border-radius: var(--radius-md);
    border-left-width: 3px;
  }

  .howto-step:hover {
    transform: translateX(3px);
  }

  .howto-step h4 {
    font-size: 15px;
  }

  .howto-step p {
    font-size: 14px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-item {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .contact-item strong {
    font-size: 14.5px;
  }

  .contact-item p {
    font-size: 14px;
  }

  .footer {
    padding: 40px 16px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer h4 {
    font-size: 14.5px;
    margin-bottom: 12px;
  }

  .footer a {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .footer p {
    font-size: 13px;
  }

  .footer-bottom {
    margin: 28px auto 0;
    padding-top: 18px;
    font-size: 12px;
  }

  .back-top {
    right: 16px;
    bottom: 70px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px 12px;
  }

  .logo {
    font-size: 16px;
  }

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

  .theme-toggle {
    padding: 5px 8px;
    font-size: 13px;
  }

  .menu-toggle {
    font-size: 22px;
  }

  .banner {
    padding: 44px 14px 56px;
  }

  .banner h1 {
    font-size: 20px;
    line-height: 1.35;
  }

  .banner p {
    font-size: 13.5px;
    margin-bottom: 18px;
  }

  .banner-btn {
    padding: 10px 26px;
    font-size: 14px;
  }

  .container {
    padding: 24px 12px;
  }

  .section {
    margin-bottom: 36px;
  }

  .section h2 {
    font-size: 19px;
    padding-left: 10px;
  }

  .section h3 {
    font-size: 16.5px;
  }

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

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

  .stat {
    padding: 18px 10px;
  }

  .stat-num {
    font-size: 24px;
  }

  .stat-label {
    font-size: 11.5px;
  }

  .card {
    padding: 16px;
  }

  .card h3 {
    font-size: 15.5px;
  }

  .card p {
    font-size: 13px;
  }

  .article-item {
    padding: 16px;
  }

  .article-item h4 {
    font-size: 14.5px;
  }

  .article-item .meta {
    font-size: 11.5px;
  }

  .article-item p {
    font-size: 13px;
  }

  .article-item a {
    font-size: 13px;
  }

  .faq-q {
    padding: 13px 14px;
    font-size: 14px;
  }

  .faq-q::after {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .faq-a {
    padding: 0 14px;
    font-size: 13.5px;
  }

  .faq-item.open .faq-a {
    padding: 0 14px 14px;
  }

  .howto-step {
    padding: 16px;
  }

  .howto-step h4 {
    font-size: 14.5px;
  }

  .howto-step p {
    font-size: 13.5px;
  }

  .contact-item {
    padding: 16px;
  }

  .contact-item strong {
    font-size: 14px;
  }

  .contact-item p {
    font-size: 13.5px;
  }

  .footer {
    padding: 32px 14px 18px;
  }

  .footer h4 {
    font-size: 14px;
  }

  .footer a {
    font-size: 12.5px;
  }

  .footer p {
    font-size: 12.5px;
  }

  .footer-bottom p {
    font-size: 11.5px;
  }

  .back-top {
    right: 12px;
    bottom: 60px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@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;
  }
}

@media print {
  .header,
  .banner,
  .footer,
  .back-top,
  .theme-toggle,
  .menu-toggle,
  .search-box {
    display: none !important;
  }

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

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    page-break-inside: avoid;
  }
}