:root {
  --brand-primary: #0F2B4C;
  --brand-primary-light: #1A4170;
  --brand-accent: #C0392B;
  --brand-accent-dark: #A93226;
  --brand-gold: #D4A017;
  --text-primary: #17202A;
  --text-secondary: #2C3E50;
  --text-muted: #4A5A6A;
  --text-light: #5D6D7E;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F6F9;
  --bg-tertiary: #E8ECF1;
  --bg-card: #FFFFFF;
  --border-color: #D5DBE3;
  --shadow-sm: 0 1px 3px rgba(15, 43, 76, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 43, 76, 0.10);
  --shadow-lg: 0 8px 24px rgba(15, 43, 76, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --header-height: 68px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: 14px;
}

[data-theme="dark"] {
  --brand-primary: #1A4170;
  --brand-primary-light: #2A5A8F;
  --brand-accent: #E74C3C;
  --brand-accent-dark: #C0392B;
  --brand-gold: #E8B830;
  --text-primary: #E5E7EB;
  --text-secondary: #D1D5DB;
  --text-muted: #B0B8C4;
  --text-light: #9CA3AF;
  --bg-primary: #0F1A2B;
  --bg-secondary: #162236;
  --bg-tertiary: #1E2D45;
  --bg-card: #1A2A42;
  --border-color: #2D3F5A;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(26, 42, 66, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

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

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

a:hover {
  color: var(--brand-accent);
}

[data-theme="dark"] a {
  color: #6BA3E8;
}

[data-theme="dark"] a:hover {
  color: #F1C40F;
}

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

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--brand-accent);
  color: #FFFFFF;
}

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

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-gold));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 720px;
}

[data-theme="dark"] .section-title {
  color: #F1F5F9;
}

[data-theme="dark"] .section-subtitle {
  color: #B0B8C4;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

[data-theme="dark"] .logo {
  color: #E5E7EB;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover {
  background: var(--bg-tertiary);
  color: var(--brand-primary);
}

.nav a:hover::after {
  width: 60%;
  left: 20%;
}

[data-theme="dark"] .nav a {
  color: #D1D5DB;
}

[data-theme="dark"] .nav a:hover {
  background: #1E2D45;
  color: #F1F5F9;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 6px 14px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.search-box:focus-within {
  border-color: var(--brand-primary-light);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(26, 65, 112, 0.12);
}

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

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

[data-theme="dark"] .search-box {
  background: #1E2D45;
}

[data-theme="dark"] .search-box input {
  color: #E5E7EB;
}

[data-theme="dark"] .search-box input::placeholder {
  color: #9CA3AF;
}

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

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

.theme-toggle {
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--border-color);
  transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle {
  background: #1E2D45;
  color: #E5E7EB;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #2D3F5A;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--bg-tertiary);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 20px;
  z-index: 999;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 4px;
  animation: slideDown 0.3s ease;
}

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

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-nav a:hover {
  background: var(--bg-tertiary);
  color: var(--brand-primary);
  transform: translateX(4px);
}

[data-theme="dark"] .mobile-nav {
  background: rgba(26, 42, 66, 0.85);
}

[data-theme="dark"] .mobile-nav a {
  color: #D1D5DB;
}

.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

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

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

.breadcrumb span {
  margin: 0 6px;
  color: var(--text-light);
}

[data-theme="dark"] .breadcrumb {
  color: #9CA3AF;
}

[data-theme="dark"] .breadcrumb a {
  color: #9CA3AF;
}

.banner {
  position: relative;
  background: linear-gradient(135deg, #0F2B4C 0%, #1A4170 45%, #2A5A8F 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 340px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.banner-slide {
  display: none;
  padding: 48px 52px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.banner-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

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

.banner-slide h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.5px;
}

.banner-slide p {
  font-size: 1.05rem;
  color: #E8ECF1;
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.banner-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #C0392B, #A93226);
  color: #FFFFFF;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.45);
  position: relative;
  overflow: hidden;
}

.banner-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.banner-btn:hover {
  background: linear-gradient(135deg, #A93226, #8E2A20);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.55);
}

.banner-btn:hover::after {
  left: 100%;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 52px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.banner-dot.active {
  background: #FFFFFF;
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

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

.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

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

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

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

[data-theme="dark"] .card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

[data-theme="dark"] .card h3 {
  color: #F1F5F9;
}

[data-theme="dark"] .card p {
  color: #D1D5DB;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.2;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

[data-theme="dark"] .stat-item {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

[data-theme="dark"] .stat-number {
  color: #6BA3E8;
}

[data-theme="dark"] .stat-label {
  color: #B0B8C4;
}

.article-list {
  display: grid;
  gap: 20px;
}

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

.article-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.article-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
  transform: translateX(4px);
}

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

.article-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.article-item h3 a {
  color: var(--text-primary);
}

.article-item h3 a:hover {
  color: var(--brand-accent);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.article-readmore {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.article-readmore:hover {
  color: var(--brand-accent);
  gap: 8px;
}

[data-theme="dark"] .article-item {
  background: #1A2A42;
  border-color: #2D3F5A;
}

[data-theme="dark"] .article-item h3 a {
  color: #F1F5F9;
}

[data-theme="dark"] .article-item h3 a:hover {
  color: #F1C40F;
}

[data-theme="dark"] .article-meta {
  color: #9CA3AF;
}

[data-theme="dark"] .article-summary {
  color: #D1D5DB;
}

[data-theme="dark"] .article-readmore {
  color: #6BA3E8;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.faq-question {
  padding: 18px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--bg-tertiary);
}

.faq-question .arrow {
  flex-shrink: 0;
  transition: transform 0.35s ease;
  color: var(--text-muted);
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
  color: var(--brand-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

[data-theme="dark"] .faq-item {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

[data-theme="dark"] .faq-question {
  color: #F1F5F9;
}

[data-theme="dark"] .faq-question:hover {
  background: #1E2D45;
}

[data-theme="dark"] .faq-answer p {
  color: #D1D5DB;
}

.howto-steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}

.howto-step {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.howto-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand-primary-light);
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(15, 43, 76, 0.3);
}

.howto-step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.howto-step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

[data-theme="dark"] .howto-step {
  background: #1A2A42;
  border-color: #2D3F5A;
}

[data-theme="dark"] .howto-step-content h4 {
  color: #F1F5F9;
}

[data-theme="dark"] .howto-step-content p {
  color: #D1D5DB;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

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

thead {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
}

thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

tbody td {
  padding: 12px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

tbody tr:hover td {
  background: var(--bg-tertiary);
}

[data-theme="dark"] thead {
  background: linear-gradient(135deg, #1A4170, #2A5A8F);
}

[data-theme="dark"] tbody td {
  color: #D1D5DB;
  border-color: #2D3F5A;
}

[data-theme="dark"] tbody tr:nth-child(even) {
  background: #162236;
}

[data-theme="dark"] tbody tr:hover td {
  background: #1E2D45;
}

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

.contact-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-gold);
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--brand-primary);
  transition: var(--transition);
}

.contact-item:hover .icon {
  transform: scale(1.12);
  color: var(--brand-accent);
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

[data-theme="dark"] .contact-item {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

[data-theme="dark"] .contact-item .icon {
  color: #6BA3E8;
}

[data-theme="dark"] .contact-item h4 {
  color: #F1F5F9;
}

[data-theme="dark"] .contact-item p {
  color: #D1D5DB;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.footer {
  background: linear-gradient(180deg, #0B1A2E 0%, #081220 100%);
  color: #E5E7EB;
  padding: 48px 0 24px;
  margin-top: 60px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-gold));
}

[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #060D18 0%, #040910 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 1px;
}

.footer-col p {
  font-size: 0.85rem;
  color: #B0B8C4;
  line-height: 1.8;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: #B0B8C4;
  transition: var(--transition);
  display: inline-block;
}

.footer-col ul a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid #1E2D45;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #9CA3AF;
}

.footer-bottom a {
  color: #9CA3AF;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.highlight-box {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--brand-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 20px 0;
  transition: var(--transition);
}

.highlight-box:hover {
  border-left-color: var(--brand-gold);
  transform: translateX(4px);
}

.highlight-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

[data-theme="dark"] .highlight-box {
  background: #1E2D45;
}

[data-theme="dark"] .highlight-box p {
  color: #D1D5DB;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  margin: 2px 4px 2px 0;
  transition: var(--transition);
}

.tag:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}

[data-theme="dark"] .tag {
  background: #1E2D45;
  color: #D1D5DB;
}

.prose p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

[data-theme="dark"] .prose p {
  color: #D1D5DB;
}

.prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.prose strong {
  color: var(--brand-primary);
  font-weight: 700;
}

[data-theme="dark"] .prose h2,
[data-theme="dark"] .prose h3,
[data-theme="dark"] .prose h4 {
  color: #F1F5F9;
}

[data-theme="dark"] .prose strong {
  color: #6BA3E8;
}

.prose ul, .prose ol {
  margin: 12px 0 16px 24px;
}

.prose ul li, .prose ol li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 6px;
}

[data-theme="dark"] .prose ul li,
[data-theme="dark"] .prose ol li {
  color: #D1D5DB;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

@media (max-width: 1024px) {
  .nav a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }

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

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .search-box {
    display: none;
  }

  .banner-slide {
    padding: 36px 28px;
  }

  .banner-slide h1 {
    font-size: 1.6rem;
  }

  .banner-slide p {
    font-size: 0.95rem;
  }

  .banner-dots {
    left: 28px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

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

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 60px;
  }

  :root {
    --header-height: 60px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .banner {
    min-height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
  }

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

  .banner-slide h1 {
    font-size: 1.35rem;
  }

  .banner-slide p {
    font-size: 0.88rem;
    margin-bottom: 18px;
  }

  .banner-btn {
    padding: 10px 24px;
    font-size: 0.88rem;
  }

  .banner-dots {
    left: 20px;
    bottom: 14px;
  }

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

  .card {
    padding: 22px;
  }

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

  .stat-item {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .article-item {
    padding: 20px;
  }

  .howto-step {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .howto-step::before {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 15px 18px;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 18px;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .prose h2 {
    font-size: 1.25rem;
  }

  .prose h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 380px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .banner-slide h1 {
    font-size: 1.2rem;
  }
}

@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,
  .mobile-nav,
  .back-to-top,
  .banner-dots,
  .footer {
    display: none;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .card,
  .article-item,
  .faq-item,
  .howto-step {
    box-shadow: none;
    border: 1px solid #CCCCCC;
  }
}