/* ===== 金桔影院 全站样式 ===== */
:root {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-header: #1F2937;
  --bg-footer: #111827;
  --text-primary: #1F2937;
  --text-secondary: #243447;
  --text-heading: #111827;
  --text-link: #B45309;
  --text-link-hover: #92400E;
  --text-white: #FFFFFF;
  --text-muted-footer: #D1D5DB;
  --border-light: #E5E7EB;
  --btn-bg: #D97706;
  --btn-text: #FFFFFF;
  --btn-bg-hover: #B45309;
  --nav-text: #F3F4F6;
  --nav-text-hover: #FBBF24;
  --input-bg: #FFFFFF;
  --placeholder-color: #6B7280;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 28px rgba(17, 24, 39, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --gradient-hero: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --scrollbar-track: #f1f1f1;
  --scrollbar-thumb: #c7c7c7;
}

[data-theme="dark"] {
  --bg-page: #111827;
  --bg-card: #1F2937;
  --bg-header: #0B1120;
  --bg-footer: #0B1120;
  --text-primary: #E5E7EB;
  --text-secondary: #D1D5DB;
  --text-heading: #F9FAFB;
  --text-link: #FBBF24;
  --text-link-hover: #FCD34D;
  --text-white: #FFFFFF;
  --text-muted-footer: #9CA3AF;
  --border-light: #374151;
  --btn-bg: #F59E0B;
  --btn-text: #1F2937;
  --btn-bg-hover: #FBBF24;
  --nav-text: #E5E7EB;
  --nav-text-hover: #FBBF24;
  --input-bg: #1F2937;
  --placeholder-color: #9CA3AF;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(31, 41, 55, 0.72);
  --glass-border: rgba(55, 65, 81, 0.5);
  --gradient-hero: linear-gradient(135deg, #0B1120 0%, #1F2937 100%);
  --gradient-accent: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  --scrollbar-track: #1F2937;
  --scrollbar-thumb: #4B5563;
}

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--btn-bg);
}

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

/* 通用滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 头部导航 ===== */
.site-header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(31, 41, 55, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .site-header {
  background-color: rgba(11, 17, 32, 0.92);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo a {
  color: var(--text-white);
  font-size: 1.7rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
  transition: opacity 0.2s;
}
.logo a:hover {
  opacity: 0.9;
}
.logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.3));
  transition: transform 0.3s ease;
}
.logo a:hover svg {
  transform: rotate(-8deg) scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-menu a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  font-size: 1rem;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--nav-text-hover);
  transition: width 0.3s ease;
}
.nav-menu a:hover {
  color: var(--nav-text-hover);
}
.nav-menu a:hover::after {
  width: 100%;
}

.theme-toggle,
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nav-text);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  width: 40px;
  height: 40px;
}
.theme-toggle:hover,
.search-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.search-box {
  display: none;
  flex-basis: 100%;
  margin-top: 10px;
  animation: fadeSlideDown 0.3s ease;
}
.search-box.active {
  display: block;
}
.search-box input {
  width: 100%;
  padding: 12px 24px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  background-color: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box input:focus {
  border-color: var(--btn-bg);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.search-box input::placeholder {
  color: var(--placeholder-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.3rem;
  transition: transform 0.2s;
}
.mobile-menu-btn:hover {
  transform: scale(1.1);
}

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

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--bg-card);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.breadcrumb a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--text-link-hover);
}
.breadcrumb span {
  margin: 0 6px;
  opacity: 0.6;
}

/* ===== 主视觉 Hero ===== */
.hero {
  background: var(--gradient-hero);
  color: var(--text-white);
  padding: 4rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-text {
  flex: 1 1 380px;
}
.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 0.8s ease;
}
.hero-text p {
  font-size: 1.25rem;
  color: #E5E7EB;
  margin-bottom: 1.8rem;
  max-width: 500px;
  animation: fadeSlideUp 0.8s ease 0.1s both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

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

.hero-svg {
  flex: 0 1 280px;
  text-align: center;
  animation: float 4s ease-in-out infinite;
}
.hero-svg svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.3));
}

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

/* ===== 按钮 ===== */
.btn {
  background: var(--gradient-accent);
  color: var(--btn-text);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}
.btn:hover::before {
  left: 100%;
}
.btn:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(251, 191, 36, 0.7);
  color: #FBBF24;
  box-shadow: none;
}
.btn-outline::before {
  background: rgba(251, 191, 36, 0.1);
}
.btn-outline:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: #FBBF24;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
}

/* ===== 章节标题 ===== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 2.8rem 0 1.8rem;
  border-left: 6px solid var(--btn-bg);
  padding-left: 1.2rem;
  line-height: 1.3;
  position: relative;
  letter-spacing: -0.5px;
  animation: fadeSlideUp 0.6s ease;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 1.2rem;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 4px;
  opacity: 0.6;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  color: var(--text-heading);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.card a {
  color: var(--text-link);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.card a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

/* 特色组合区块 */
.combo-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  margin: 1.5rem 0;
}
.combo-block h3 {
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.combo-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.combo-block > div {
  flex: 1;
  min-width: 220px;
}

/* ===== 文章列表 ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.article-item {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.article-item time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.article-item h3 {
  color: var(--text-heading);
  margin: 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  transition: color 0.2s;
}
.article-item:hover h3 {
  color: var(--text-link);
}
.article-item p {
  color: var(--text-primary);
  font-size: 0.95rem;
  flex-grow: 1;
}
.article-item a {
  color: var(--text-link);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
  margin-top: 0.5rem;
}
.article-item a:hover {
  color: var(--text-link-hover);
  padding-left: 8px;
}

/* ===== FAQ ===== */
.faq-list details {
  background: var(--bg-card);
  padding: 1.4rem 1.8rem;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.faq-list details:hover {
  border-color: var(--btn-bg);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}
.faq-list details[open] {
  border-color: var(--btn-bg);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12);
}
.faq-list summary {
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::before {
  content: '▸';
  color: var(--btn-bg);
  transition: transform 0.3s;
  display: inline-block;
  font-size: 1.2rem;
}
.faq-list details[open] summary::before {
  transform: rotate(90deg);
}
.faq-list details[open] summary {
  color: var(--btn-bg);
}
.faq-list p {
  margin-top: 14px;
  padding-left: 28px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== 表格 ===== */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
.info-table th,
.info-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.info-table th {
  background-color: var(--bg-page);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.info-table tr:last-child td {
  border-bottom: none;
}
.info-table tbody tr {
  transition: background 0.2s;
}
.info-table tbody tr:hover {
  background: rgba(217, 119, 6, 0.04);
}

/* ===== 友情链接 ===== */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.footer-links a {
  color: var(--text-link);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

/* ===== 页脚 ===== */
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-muted-footer);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}
.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-accent);
}
.site-footer a {
  color: var(--text-muted-footer);
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  transition: color 0.2s, padding-left 0.2s;
}
.site-footer a:hover {
  color: #FFFFFF;
  padding-left: 6px;
}
.copyright {
  border-top: 1px solid #374151;
  padding-top: 1.8rem;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== 联系区块 ===== */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  background: var(--bg-card);
  padding: 2.2rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
.contact-block p {
  margin: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.contact-block strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* ===== 教程区块 ===== */
.howto-block {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
.howto-block h3 {
  color: var(--text-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.howto-block h4 {
  color: var(--text-primary);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.howto-block h4::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: inline-block;
}
.howto-block ul,
.howto-block ol {
  color: var(--text-primary);
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 2;
}
.howto-block li::marker {
  color: var(--btn-bg);
  font-weight: 700;
}
.howto-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-accent);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
}

/* ===== 统计数字 ===== */
.stat-number {
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--text-heading);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 毛玻璃效果 ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .hero-grid {
    gap: 1.5rem;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0;
  }
  .header-inner {
    padding: 0.6rem 0;
  }
  .logo a {
    font-size: 1.4rem;
  }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
  }
  .nav-menu.open {
    display: flex;
    animation: fadeSlideDown 0.3s ease;
  }
  .nav-menu a {
    width: 100%;
    padding: 0.6rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-menu a::after {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero {
    padding: 3rem 0;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
  .hero-svg {
    flex-basis: 200px;
  }
  .section-title {
    font-size: 1.6rem;
    margin: 2rem 0 1.2rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .article-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card {
    padding: 1.6rem;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .howto-block {
    padding: 1.8rem;
  }
  .contact-block {
    padding: 1.8rem;
  }
  .combo-block {
    padding: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-text h1 {
    font-size: 1.7rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 0.8rem;
  }
  .info-table {
    font-size: 0.85rem;
  }
  .info-table th,
  .info-table td {
    padding: 0.8rem;
  }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 聚焦状态 ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217, 119, 6, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 选中文本 ===== */
::selection {
  background: rgba(217, 119, 6, 0.2);
  color: var(--text-heading);
}

/* ===== 高亮块 ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  background: rgba(217, 119, 6, 0.1);
  color: var(--btn-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
  transition: all 0.2s;
}
.tag:hover {
  background: var(--btn-bg);
  color: #fff;
}

/* ===== 分隔线 ===== */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 2rem 0;
}