/* ===== 红薯影视 · 完整样式系统 ===== */
/* ===== 设计语言：暖棕大地 + 米白基底 + 琥珀点缀 ===== */

/* ===== 1. 设计变量 & 主题系统 ===== */
:root {
  /* 色彩 — 暖调大地色系 */
  --bg-page: #faf6f1;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-footer: #1a1614;
  --bg-hero: linear-gradient(135deg, #2a1a12 0%, #4a3226 50%, #7c4a2d 100%);
  --bg-hero-glow: radial-gradient(circle at 20% 20%, rgba(255, 180, 100, 0.15), transparent 50%);
  --bg-section-alt: #f3ece3;
  
  /* 文本 */
  --text-primary: #2d2a26;
  --text-secondary: #5c564e;
  --text-heading: #1a1512;
  --text-accent: #b45309;
  --text-on-dark: #fdf6ee;
  --text-on-dark-soft: #d4c4b4;
  
  /* 边框 & 阴影 */
  --border-light: #e8e0d6;
  --card-shadow: 0 4px 20px rgba(90, 60, 30, 0.08);
  --card-shadow-hover: 0 12px 32px rgba(90, 60, 30, 0.15);
  
  /* 按钮 */
  --btn-bg: linear-gradient(135deg, #c2701a, #b45309);
  --btn-text: #ffffff;
  --btn-hover: linear-gradient(135deg, #b45309, #92400e);
  
  /* 标签 */
  --tag-bg: #f0e5d8;
  --tag-text: #4a3520;
  
  /* 导航 */
  --nav-text: #2d2a26;
  --nav-bg: rgba(255, 255, 255, 0.9);
  
  /* 特殊 */
  --highlight-bg: rgba(180, 83, 9, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* 字体 */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  
  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 999px;
  
  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 60px;
  
  /* 动效 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
  
  /* 渐变 & 纹理 */
  --hero-pattern: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 0h30v30H50zM20 40h30v30H20zM0 20h30v30H0zM40 50h30v30H40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== 暗色模式 ===== */
[data-theme="dark"] {
  --bg-page: #121212;
  --bg-card: #1e1e1e;
  --bg-header: rgba(18, 18, 18, 0.85);
  --bg-footer: #0a0a0a;
  --bg-hero: linear-gradient(135deg, #1a0f08 0%, #2d1f15 50%, #4a2f1a 100%);
  --bg-section-alt: #181818;
  
  --text-primary: #e8e0d8;
  --text-secondary: #b8a99a;
  --text-heading: #f5efe8;
  --text-accent: #e8934a;
  --text-on-dark: #fdf6ee;
  --text-on-dark-soft: #c4b5a5;
  
  --border-light: #333333;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
  
  --btn-bg: linear-gradient(135deg, #d47a2a, #b45309);
  --btn-hover: linear-gradient(135deg, #c2701a, #92400e);
  
  --tag-bg: #3a2a1a;
  --tag-text: #e8c9a8;
  
  --nav-text: #e8e0d8;
  --nav-bg: rgba(18, 18, 18, 0.9);
  
  --highlight-bg: rgba(232, 147, 74, 0.15);
  --glass-bg: rgba(30, 30, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --hero-pattern: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 0h30v30H50zM20 40h30v30H20zM0 20h30v30H0zM40 50h30v30H40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== 2. 基础重置 & 全局 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-page);
  background-image: var(--hero-pattern);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--text-accent);
  border-bottom-color: currentColor;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style-position: inside;
  padding-left: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ===== 3. 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b45309, #8a3a08);
  border-radius: 8px;
  border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
  background: #c2701a;
}

/* ===== 4. 选择文本 ===== */
::selection {
  background: #b45309;
  color: #ffffff;
}

/* ===== 5. 头部导航 ===== */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.site-header:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo a {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  border: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: transform var(--transition-fast);
}

.logo a:hover {
  transform: scale(1.02);
  border: none;
}

.logo span {
  color: #b45309;
  position: relative;
}

.logo span::after {
  content: '🍠';
  font-size: 0.7em;
  position: absolute;
  top: -12px;
  right: -14px;
  transform: rotate(15deg);
  animation: float 3s ease-in-out infinite;
}

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

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--nav-text);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b45309, #e8934a);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-accent);
  border: none;
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle, .search-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  border-radius: 12px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover, .search-toggle:hover {
  background: rgba(127, 127, 127, 0.1);
  transform: rotate(10deg);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 3px 3px 16px;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  max-width: 260px;
  width: 100%;
}

.search-box:focus-within {
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 8px 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  min-width: 0;
}

.search-box input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.search-box button {
  background: var(--btn-bg);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-box button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== 6. Hero 区域 ===== */
.hero {
  background: var(--bg-hero);
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  padding: clamp(60px, 10vw, 100px) 0;
  border-radius: 0 0 40px 40px;
  margin-bottom: 32px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-hero-glow);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero h1::after {
  content: '✨';
  display: inline-block;
  margin-left: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero p {
  color: var(--text-on-dark-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  margin-bottom: 32px;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.btn-primary, .btn-outline {
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--btn-bg);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.3);
}

.btn-primary::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.6s ease;
}

.btn-primary:hover {
  background: var(--btn-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===== 7. 面包屑 ===== */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: clamp(20px, 4vw, 32px) 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-accent);
  border: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* ===== 8. 区块标题 ===== */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: clamp(32px, 6vw, 48px) 0 clamp(20px, 4vw, 28px);
  border-left: 6px solid transparent;
  border-image: linear-gradient(180deg, #b45309, #e8934a) 1;
  padding-left: 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, #b45309, #e8934a);
}

/* ===== 9. 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b45309, #e8934a, transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(180, 83, 9, 0.3);
}

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

.card h3 {
  color: var(--text-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3::after {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
  color: var(--text-accent);
  font-size: 0.8em;
}

.card:hover h3::after {
  opacity: 1;
  transform: translateX(0);
}

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

.card h4 {
  color: var(--text-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ===== 10. 标签 ===== */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  margin: 6px 6px 6px 0;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.tag:hover {
  background: var(--bg-card);
  border-color: var(--text-accent);
  color: var(--text-accent);
  transform: scale(1.05);
}

/* ===== 11. 文章列表 ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.article-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #b45309, #e8934a);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.article-item:hover {
  transform: translateX(8px);
  box-shadow: var(--card-shadow);
  border-color: rgba(180, 83, 9, 0.2);
}

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

.article-item h4 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}

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

.article-item .meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-item .meta::before {
  content: '🕐';
  font-size: 0.9em;
}

.article-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-item a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-accent);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.article-item a:hover {
  gap: 8px;
  text-decoration: none;
}

.article-item a::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.article-item a:hover::after {
  transform: translateX(2px);
}

/* ===== 12. FAQ ===== */
.faq-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px);
  margin: clamp(24px, 4vw, 32px) 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  transition: background-color var(--transition-fast);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-heading);
  padding: 8px;
  border-radius: 8px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  font-size: 1rem;
  line-height: 1.5;
}

.faq-question:hover {
  color: var(--text-accent);
  background: rgba(180, 83, 9, 0.05);
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition-base);
  display: inline-block;
  color: var(--text-accent);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question {
  color: var(--text-accent);
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--text-primary);
  padding: 12px 8px 4px;
  display: none;
  line-height: 1.8;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

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

.faq-item.active .faq-answer {
  display: block;
}

/* ===== 13. 表格 ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin: 20px 0;
}

.info-table th {
  background: linear-gradient(135deg, #f0e4d5, #e8d5bf);
  color: #2d241a;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.9rem;
}

.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background: rgba(180, 83, 9, 0.03);
}

[data-theme="dark"] .info-table th {
  background: #2d1f15;
  color: #f3e7d9;
}

/* ===== 14. 页脚 ===== */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: clamp(40px, 8vw, 60px) 0 24px;
  margin-top: clamp(48px, 10vw, 80px);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b45309, #e8934a, #b45309);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 4vw, 40px);
}

.site-footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #b45309, #e8934a);
  border-radius: 2px;
}

.site-footer p {
  color: var(--text-on-dark-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.site-footer a {
  color: var(--text-on-dark-soft);
  border: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: white;
  text-decoration: none;
  padding-left: 4px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 24px;
  text-align: center;
  color: var(--text-on-dark-soft);
  font-size: 0.85rem;
  line-height: 1.8;
}

.copyright a {
  color: var(--text-on-dark-soft);
  margin: 0 8px;
}

.copyright a:hover {
  color: #e8934a;
}

/* ===== 15. 返回顶部 ===== */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--btn-bg);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.4);
  border: none;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.5);
}

.to-top:active {
  transform: scale(0.95);
}

/* ===== 16. 内容区块 ===== */
.content-section {
  margin: clamp(24px, 4vw, 40px) 0;
}

.highlight {
  background: var(--highlight-bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* ===== 17. 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

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

/* ===== 18. 联系区块 ===== */
#contact .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

#contact p::before {
  content: '•';
  color: var(--text-accent);
  font-weight: bold;
}

/* ===== 19. 版权声明区块 ===== */
.copyright-notice {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 32px);
  margin: clamp(24px, 4vw, 40px) 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.copyright-notice h4 {
  color: var(--text-heading);
  margin-bottom: 12px;
}

.copyright-notice p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== 20. 响应式 ===== */
@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }
  
  .search-box {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 80px 32px 32px;
    gap: 8px;
    transition: right 0.4s var(--ease-out);
    z-index: 998;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.open {
    right: 0;
    display: flex;
  }
  
  .nav-links a {
    padding: 14px 8px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    text-align: left;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-links a:hover {
    background: rgba(180, 83, 9, 0.05);
    padding-left: 16px;
  }
  
  .burger {
    display: flex;
  }
  
  .search-box {
    display: none;
  }
  
  .hero {
    border-radius: 0 0 24px 24px;
    padding: 48px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn-primary, .btn-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    padding-left: 16px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  
  #contact > div {
    grid-template-columns: 1fr !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .article-item {
    padding: 16px;
  }
  
  .article-item h4 {
    font-size: 1rem;
  }
}

/* ===== 21. 移动端菜单遮罩 ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== 22. 特殊工具类 ===== */
.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }

/* ===== 23. 玻璃拟态卡片 ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--bg-card);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* ===== 24. 统计数字 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-accent);
  font-family: var(--font-display);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===== 25. 动画 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

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

/* ===== 26. 打印样式 ===== */
@media print {
  .site-header, .site-footer, .to-top, .burger, .search-box {
    display: none !important;
  }
  
  .hero {
    background: #2a1a12;
    border-radius: 0;
    margin: 0;
  }
  
  .card, .article-item, .faq-box {
    box-shadow: none;
    break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ===== 27. 焦点样式 ===== */
:focus-visible {
  outline: 3px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 28. FAQ 特殊按钮 ===== */
.faq-question:hover span {
  transform: scale(1.2);
  color: var(--text-accent);
}

.faq-item.active .faq-question span {
  transform: rotate(45deg) scale(1.1);
}

/* ===== 29. 版权信息区块 ===== */
#contact .copyright-notice {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

/* ===== 30. 小屏优化 ===== */
@media (max-width: 380px) {
  .logo a {
    font-size: 1.3rem;
  }
  
  .theme-toggle {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
  }
  
  .burger span {
    width: 22px;
  }
}
