/* ===== 羊羊影院 全站样式表 v2.0 ===== */
/* ===== 设计语言：现代韩流 + 暗夜影院 + 毛玻璃质感 ===== */

/* ---------- CSS 变量与主题系统 ---------- */
:root {
  /* 主色板 - 羊羊金 + 深空蓝 */
  --yy-primary: #FBBF24;
  --yy-primary-soft: #FDE68A;
  --yy-primary-dark: #F59E0B;
  --yy-accent: #60A5FA;
  --yy-accent-soft: #DBEAFE;
  
  /* 浅色模式 */
  --bg: #F8FAFC;
  --bg-gradient: radial-gradient(ellipse at top left, #FEF3C7 0%, transparent 50%), radial-gradient(ellipse at bottom right, #DBEAFE 0%, transparent 50%);
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #FFFFFF;
  --surface-2: #F1F5F9;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-primary: #1E293B;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --heading: #0F172A;
  --link: #1D4ED8;
  --link-hover: #1E40AF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --footer-bg: #0F172A;
  --footer-text: #CBD5E1;
  --footer-heading: #F8FAFC;
  --footer-border: rgba(148, 163, 184, 0.2);
  --btn-primary-bg: #1E293B;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #0F172A;
  --btn-accent-bg: #FBBF24;
  --btn-accent-text: #1E293B;
  --btn-accent-hover: #F59E0B;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-hover-bg: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 8px 24px rgba(251, 191, 36, 0.2);
  --banner-gradient: linear-gradient(135deg, #1E293B 0%, #312E81 50%, #1E3A8A 100%);
  --banner-glow: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.25), transparent 40%);
  --scrollbar-track: #F1F5F9;
  --scrollbar-thumb: #CBD5E1;
  --code-bg: #F1F5F9;
  --table-stripe: rgba(241, 245, 249, 0.6);
  --hover-overlay: rgba(0, 0, 0, 0.03);
}

/* 暗色模式 */
[data-theme="dark"] {
  --bg: #0B1120;
  --bg-gradient: radial-gradient(ellipse at top left, rgba(30, 41, 59, 0.5) 0%, transparent 50%), radial-gradient(ellipse at bottom right, rgba(30, 58, 138, 0.3) 0%, transparent 50%);
  --surface: rgba(30, 41, 59, 0.75);
  --surface-solid: #1E293B;
  --surface-2: #334155;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(148, 163, 184, 0.2);
  --text-primary: #E2E8F0;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --heading: #F8FAFC;
  --link: #93C5FD;
  --link-hover: #BFDBFE;
  --border: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(148, 163, 184, 0.4);
  --nav-bg: rgba(15, 23, 42, 0.85);
  --footer-bg: #020617;
  --footer-text: #94A3B8;
  --footer-heading: #F1F5F9;
  --footer-border: rgba(148, 163, 184, 0.15);
  --btn-primary-bg: #FBBF24;
  --btn-primary-text: #1E293B;
  --btn-primary-hover: #F59E0B;
  --btn-accent-bg: #FBBF24;
  --btn-accent-text: #1E293B;
  --btn-accent-hover: #F59E0B;
  --card-bg: rgba(30, 41, 59, 0.85);
  --card-hover-bg: #334155;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 24px rgba(251, 191, 36, 0.1);
  --banner-gradient: linear-gradient(135deg, #020617 0%, #0F172A 50%, #1E293B 100%);
  --banner-glow: radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.15), transparent 50%);
  --scrollbar-track: #0F172A;
  --scrollbar-thumb: #334155;
  --code-bg: #1E293B;
  --table-stripe: rgba(51, 65, 85, 0.3);
  --hover-overlay: rgba(255, 255, 255, 0.03);
}

/* ---------- 基础重置与排版 ---------- */
*, *::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);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--yy-primary) 0%, var(--yy-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 5px solid var(--yy-primary);
  border-radius: 2px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--yy-primary), transparent);
  margin-top: 8px;
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  position: relative;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

ul, ol {
  padding-left: 0;
  list-style-position: inside;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

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

strong, b {
  font-weight: 700;
  color: var(--heading);
}

em {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--yy-primary);
  padding: 1rem 1.5rem;
  background: var(--surface-2);
  border-radius: 0 16px 16px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote footer {
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

code {
  font-family: 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

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

/* ---------- 顶部导航栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: var(--nav-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

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

.logo .logo-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--yy-primary-dark);
  background: var(--yy-primary-soft);
  border-color: var(--yy-primary-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--yy-primary-dark);
  background: var(--yy-primary-soft);
  border-color: var(--yy-primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: 40px;
  padding: 4px 6px 4px 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.search-box:focus-within {
  border-color: var(--yy-primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
  background: var(--card-bg);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 0;
  color: var(--text-primary);
  width: 160px;
  font-size: 0.9rem;
  transition: width 0.3s ease;
}

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

.search-box input:focus {
  width: 200px;
}

.search-box button {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 40px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--yy-primary);
  color: #1E293B;
  transform: scale(1.05);
}

/* 图标按钮 */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-primary);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.icon-btn:hover {
  background: var(--yy-primary-soft);
  color: var(--yy-primary-dark);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  color: var(--text-primary);
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: rotate(30deg) scale(1.1);
  background: var(--yy-primary-soft);
}

/* 移动菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  padding: 20px;
  gap: 8px;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  animation: slideDown 0.3s ease;
}

.mobile-menu a {
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.mobile-menu a:hover {
  background: var(--surface-2);
  color: var(--yy-primary-dark);
  text-decoration: none;
  transform: translateX(4px);
}

/* ---------- Banner 区块 ---------- */
.banner {
  background: var(--banner-gradient);
  color: #FFFFFF;
  border-radius: 24px;
  margin: 100px 0 40px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--banner-glow);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
  z-index: -1;
}

.banner-text {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.banner-text h2 {
  color: #FFFFFF;
  border-left-color: var(--yy-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-text h2::after {
  background: linear-gradient(90deg, var(--yy-primary), transparent);
}

.banner-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.banner-cta {
  background: var(--yy-primary);
  color: #1E293B;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  position: relative;
  overflow: hidden;
}

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

.banner-cta:hover {
  background: var(--yy-primary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.banner-cta:hover::before {
  left: 100%;
}

.banner-icon {
  flex-shrink: 0;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(251, 191, 36, 0.3));
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yy-primary), var(--yy-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--yy-primary);
  background: var(--card-hover-bg);
}

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

.card h3 {
  color: var(--heading);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p {
  color: var(--text-secondary);
}

.card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--yy-primary), var(--yy-primary-dark));
  color: #1E293B;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.badge-outline {
  background: transparent;
  border: 1.5px solid var(--yy-primary);
  color: var(--yy-primary-dark);
  box-shadow: none;
}

/* ---------- 文章列表 ---------- */
.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  padding-left: 16px;
  border-radius: 8px;
}

.article-list li:hover {
  background: var(--hover-overlay);
  padding-left: 24px;
  border-color: var(--yy-primary);
}

.article-list a {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-primary);
  flex: 1;
}

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

.article-list .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- FAQ 手风琴 ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin-bottom: 0;
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.faq-item:hover {
  border-color: var(--yy-primary);
  box-shadow: var(--shadow-sm);
}

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

.faq-question:hover {
  color: var(--yy-primary-dark);
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--yy-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

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

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  display: none;
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

.faq-answer.open {
  display: block;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yy-primary), transparent);
}

.site-footer h4 {
  color: var(--footer-heading);
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--yy-primary);
  border-radius: 2px;
}

.site-footer a {
  color: var(--footer-text);
  opacity: 0.9;
  transition: all 0.3s;
}

.site-footer a:hover {
  color: var(--yy-primary);
  opacity: 1;
  text-decoration: none;
}

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

.footer-grid p {
  color: var(--footer-text);
  font-size: 0.95rem;
  line-height: 2;
}

.bottom-bar {
  border-top: 1px solid var(--footer-border);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-text);
  opacity: 0.7;
}

.bottom-bar p {
  color: inherit;
  margin-bottom: 4px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 12px 28px;
  border-radius: 40px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-accent {
  background: var(--btn-accent-bg);
  color: var(--btn-accent-text);
}

.btn-accent:hover {
  background: var(--btn-accent-hover);
  color: var(--btn-accent-text);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--yy-primary);
  color: var(--yy-primary-dark);
}

.btn-outline:hover {
  background: var(--yy-primary);
  color: #1E293B;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- 表格 ---------- */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.info-table th,
.info-table td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  text-align: left;
}

.info-table th {
  background: var(--surface-2);
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-table td {
  color: var(--text-primary);
}

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

.info-table tbody tr:nth-child(even) {
  background: var(--table-stripe);
}

.info-table tbody tr:hover {
  background: var(--hover-overlay);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 100px 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

/* ---------- 区块通用 ---------- */
.section {
  margin: 48px 0;
  padding: 40px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  display: inline-block;
  border-left: none;
  padding-left: 0;
}

.section-title h2::after {
  margin: 12px auto 0;
}

/* ---------- 评价区块 ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--yy-primary);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yy-primary), var(--yy-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1E293B;
  font-size: 0.9rem;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--heading);
}

/* ---------- 返回顶部 ---------- */
#backTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 999;
  align-items: center;
  justify-content: center;
}

#backTop:hover {
  background: var(--yy-primary);
  color: #1E293B;
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

#backTop.show {
  display: flex;
}

/* ---------- 动画 ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 滚动入场动画 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.d-none { display: none; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #FFFFFF !important; }
.text-gold { color: var(--yy-primary) !important; }

.bg-surface { background: var(--surface) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }

.rounded { border-radius: 16px !important; }
.rounded-full { border-radius: 999px !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-gold { box-shadow: var(--shadow-gold) !important; }

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, var(--yy-primary) 0%, var(--yy-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* 分割线 */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 32px 0;
}

/* 高亮标记 */
.highlight {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.1) 100%);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* 标签 */
.tag {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--border);
}

.tag:hover {
  background: var(--yy-primary-soft);
  color: var(--yy-primary-dark);
  border-color: var(--yy-primary);
}

/* 加载状态 */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 1.5s infinite;
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}

/* ---------- 响应式设计 ---------- */
/* 平板 */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .search-box input {
    width: 120px;
  }
  
  .search-box input:focus {
    width: 140px;
  }
  
  .banner {
    padding: 40px 32px;
    min-height: 280px;
  }
  
  .banner-icon {
    width: 150px;
    height: 150px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex !important;
  }
  
  .search-box {
    display: none;
  }
  
  .header-inner {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .banner {
    margin: 80px 0 24px;
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
    gap: 24px;
    min-height: auto;
  }
  
  .banner-text h2 {
    font-size: 1.6rem;
  }
  
  .banner-text p {
    font-size: 1rem;
  }
  
  .banner-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card {
    padding: 20px;
  }
  
  .article-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .article-list .meta {
    font-size: 0.8rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
    padding: 16px;
  }
  
  .faq-answer {
    padding: 0 16px 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .section {
    padding: 24px;
    margin: 32px 0;
  }
  
  .testimonial-card {
    padding: 24px;
  }
  
  .info-table {
    font-size: 0.9rem;
  }
  
  .info-table th,
  .info-table td {
    padding: 12px;
  }
  
  #backTop {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  
  .breadcrumb {
    padding: 80px 0 16px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .banner {
    padding: 24px 16px;
  }
  
  .banner-text h2 {
    font-size: 1.3rem;
  }
  
  .banner-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 16px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 12px 28px;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* 打印样式 */
@media print {
  .site-header,
  .site-footer,
  #backTop,
  .search-box,
  .theme-toggle,
  .menu-toggle,
  .mobile-menu,
  .banner-cta {
    display: none !important;
  }
  
  body {
    background: #FFFFFF;
    color: #1E293B;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .section,
  .card,
  .info-table {
    box-shadow: none;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
  }
  
  a {
    color: #1D4ED8;
    text-decoration: underline;
  }
}

/* 无障碍 */
@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;
  }
}

/* 焦点可见性 */
:focus-visible {
  outline: 3px solid var(--yy-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 选中文本 */
::selection {
  background: var(--yy-primary);
  color: #1E293B;
}

/* ---------- 特殊组件 ---------- */
/* 统计数字 */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yy-primary), var(--yy-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--yy-primary), var(--yy-accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--yy-primary);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--yy-primary);
}

/* 步骤 */
.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
}

.step-item {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  counter-increment: step;
  transition: all 0.3s ease;
}

.step-item:hover {
  border-color: var(--yy-primary);
  box-shadow: var(--shadow-md);
}

.step-item::before {
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--yy-primary), var(--yy-primary-dark));
  color: #1E293B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* 提示框 */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
}

.alert-info {
  background: var(--yy-accent-soft);
  border-color: var(--yy-accent);
  color: var(--text-primary);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
  color: var(--text-primary);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: var(--yy-primary);
  color: var(--text-primary);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: var(--text-primary);
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface-solid);
  border-radius: 24px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}

/* 标签页 */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--yy-primary-dark);
}

.tab-btn.active {
  color: var(--yy-primary-dark);
  border-bottom-color: var(--yy-primary);
  font-weight: 600;
}

/* 进度条 */
.progress {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--yy-primary), var(--yy-accent));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 评分 */
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--yy-primary);
  font-size: 1.2rem;
}

.rating .score {
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 8px;
}

/* 工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: auto;
  background: var(--text-primary);
  color: var(--bg);
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 响应式表格容器 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 视频容器 */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 图片画廊 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* 暗色模式下的图片调整 */
[data-theme="dark"] .gallery img {
  filter: brightness(0.9);
}

/* 自定义滚动条（隐藏滚动条但保留功能） */
.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* 底部渐变 */
.fade-bottom {
  position: relative;
}

.fade-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* 毛玻璃卡片 */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

/* 文本溢出省略 */
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 网格布局辅助 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

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

/* 响应式网格 */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 鼠标悬停效果增强 */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

/* 渐变边框 */
.gradient-border {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(135deg, var(--yy-primary), var(--yy-accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 16px;
}

/* 霓虹效果 */
.neon-text {
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5), 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(251, 191, 36, 0.1);
}

/* 3D 效果 */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

/* 粒子背景 */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 波浪背景 */
.wave-bg {
  position: relative;
  overflow: hidden;
}

.wave-bg::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(251, 191, 36, 0.1), transparent 50%);
  animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-10%) rotate(2deg);
  }
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--yy-primary), var(--yy-accent));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* 通知气泡 */
.notification-badge {
  position: relative;
}

.notification-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* 暗色模式过渡 */
.theme-transition {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 键盘快捷键提示 */
.kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--border);
  color: var(--text-primary);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

/* 错误状态 */
.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-state h1 {
  font-size: 6rem;
  margin-bottom: 0;
  background: linear-gradient(135deg, #EF4444, var(--yy-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 骨架屏动画 */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}

/* 渐变文字按钮 */
.btn-gradient {
  background: linear-gradient(135deg, var(--yy-primary), var(--yy-accent));
  color: #1E293B;
  border: none;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--yy-primary-dark), var(--yy-accent));
  color: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

/* 卡片悬浮光效 */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* 无限滚动 */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

/* 打字机效果 */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typing {
  overflow: hidden;
  border-right: 2px solid var(--yy-primary);
  white-space: nowrap;
  animation: typing 2s steps(40, end);
}

/* 闪烁光标 */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

/* 渐变背景动画 */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* 悬浮卡片 */
.floating-card {
  position: relative;
  transition: transform 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-8px) rotateX(2deg);
}

/* 磁性按钮 */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

/* 涟漪效果 */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* 最后：确保所有交互元素都有合适的触控区域 */
@media (max-width: 768px) {
  .btn,
  .banner-cta,
  .icon-btn,
  .theme-toggle,
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  .article-list a,
  .faq-question,
  .nav-links a {
    padding: 12px;
  }
}
