/* ====== 星辰影院 全局样式 ====== */

/* 设计令牌 & 颜色系统 */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-footer: #0f172a;
  --bg-code: #eef2f6;

  --text-primary: #1f2937;
  --text-secondary: #243447;
  --text-heading: #111827;
  --text-accent: #1e4a6b;
  --text-muted: #334155;
  --text-footer: #e2e8f0;
  --text-footer-heading: #ffffff;
  --text-footer-muted: #cbd5e1;

  --border-light: #cbd5e1;
  --border-dark: #334155;

  --btn-bg: #1e3a5f;
  --btn-text: #ffffff;
  --btn-hover: #142d46;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-text: #1e293b;
  --nav-link: #1e293b;
  --nav-link-hover: #0f2a43;

  --banner-gradient: linear-gradient(145deg, #1e3a5f 0%, #0f2840 100%);
  --banner-text: #ffffff;
  --banner-subtext: #d1e4f5;

  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --faq-bg: #ffffff;
  --faq-header: #1f2937;
  --faq-content: #243447;

  --tag-bg: #e6edf5;
  --tag-text: #1e3a5f;

  --footer-link: #b6cbe0;

  --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0b131e;
    --bg-secondary: #101b2b;
    --bg-card: #152233;
    --bg-footer: #0b111a;
    --bg-code: #1f2a3a;

    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-heading: #f8fafc;
    --text-accent: #9ab6d4;
    --text-muted: #b0c4de;
    --text-footer: #cbd5e1;
    --text-footer-heading: #ffffff;
    --text-footer-muted: #9fb0c7;

    --border-light: #334155;
    --border-dark: #475569;

    --btn-bg: #2d4d73;
    --btn-text: #f8fafc;
    --btn-hover: #1e3a5f;

    --nav-bg: rgba(15, 23, 42, 0.92);
    --nav-text: #e2e8f0;
    --nav-link: #e2e8f0;
    --nav-link-hover: #ffffff;

    --banner-gradient: linear-gradient(145deg, #0f1b2c 0%, #1e2e44 100%);
    --banner-text: #ffffff;
    --banner-subtext: #cbd5e1;

    --faq-bg: #1f2937;
    --faq-header: #f1f5f9;
    --faq-content: #e2e8f0;

    --tag-bg: #2d3f55;
    --tag-text: #d3e2f5;

    --footer-link: #9db4d0;
  }
}

/* ====== 基础重置 ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

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

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

/* ====== 排版 ====== */
h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--text-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0 1.5rem;
  padding-left: 1rem;
  border-left: 6px solid var(--text-accent);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 1rem;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

ul, ol {
  margin-left: 1.8rem;
  margin-bottom: 1.2rem;
}

li {
  margin-bottom: 0.3rem;
}

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

.section {
  padding: 3rem 0;
  position: relative;
}

/* ====== 导航栏 ====== */
.navbar {
  position: sticky;
  top: 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-light);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: 1300px;
  margin: auto;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  position: relative;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--text-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-links a {
  color: var(--nav-link);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

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

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 0.2rem 0.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.search-box:focus-within {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(30, 74, 107, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.8rem;
  color: var(--text-primary);
  outline: none;
  width: 180px;
  font-size: 0.95rem;
}

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

.search-box button {
  background: var(--gradient-accent);
  color: var(--btn-text);
  border: none;
  border-radius: 40px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--nav-text);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* ====== Hero Banner ====== */
.hero {
  background: var(--banner-gradient);
  color: var(--banner-text);
  padding: 4rem 0;
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  transform: rotate(45deg);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(0) rotate(45deg); }
  50% { transform: translateX(-50%) rotate(45deg); }
}

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

.hero h1 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  color: var(--banner-subtext);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 700px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stats span {
  color: var(--banner-subtext);
  font-size: 1rem;
}

/* ====== 卡片 ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--text-accent);
}

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

.card h3 {
  color: var(--text-heading);
  margin-top: 0;
  font-size: 1.2rem;
}

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

/* ====== 标签 ====== */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.3rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 74, 107, 0.15);
}

/* ====== 按钮 ====== */
.btn {
  display: inline-block;
  background: var(--gradient-accent);
  color: #ffffff !important;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ====== FAQ ====== */
.faq-item {
  background: var(--faq-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-item:hover {
  border-color: var(--text-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  font-weight: 600;
  color: var(--faq-header);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  display: inline-block;
}

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

.faq-answer {
  margin-top: 0.8rem;
  color: var(--faq-content);
  font-size: 0.95rem;
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

/* ====== Footer ====== */
footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

footer h4 {
  color: var(--text-footer-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-accent);
}

footer a {
  color: var(--footer-link);
  transition: all 0.3s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

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

.footer-grid p {
  color: var(--text-footer-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.svg-placeholder {
  background: var(--bg-code);
  border-radius: 12px;
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--border-light);
}

/* ====== 动画 ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ====== 返回顶部 ====== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ====== 滚动动画 ====== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== 移动端菜单 ====== */
.mobile-nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  padding: 1rem 1.5rem;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.3s ease;
}

.mobile-nav-open .nav-links a {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.1rem;
}

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

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .search-box {
    display: none;
  }
  
  .hero {
    padding: 3rem 0;
    border-radius: 0 0 30px 30px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .stats {
    gap: 1.5rem;
  }
  
  .stat-item {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero .btn {
    width: 100%;
    text-align: center;
  }
  
  .stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .stat-item {
    font-size: 1.5rem;
  }
  
  .faq-item {
    padding: 0.8rem 1rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
  }
  
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* 超小屏幕 */
@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-container {
    padding: 0.6rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card {
    padding: 1.2rem;
    border-radius: 16px;
  }
  
  .tag {
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ====== 打印样式 ====== */
@media print {
  .navbar,
  .hero,
  .footer-grid,
  #backToTop,
  .search-box,
  .menu-toggle {
    display: none !important;
  }
  
  body {
    background: #ffffff;
    color: #000000;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

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

/* ====== 无障碍 ====== */
@media (forced-colors: active) {
  .btn {
    border: 2px solid currentColor;
  }
}

:focus-visible {
  outline: 3px solid var(--text-accent);
  outline-offset: 2px;
}

/* ====== 高对比度文字 ====== */
@media (max-width: 900px) {
  h1 {
    letter-spacing: -0.005em;
  }
  
  .card p {
    color: var(--text-primary);
  }
}

/* ====== 性能优化 ====== */
img, video {
  max-width: 100%;
  height: auto;
}

/* ====== 卡片顶部装饰线（不同颜色） ====== */
.card:nth-child(3n+1)::before {
  background: var(--gradient-accent);
}

.card:nth-child(3n+2)::before {
  background: var(--gradient-warm);
}

.card:nth-child(3n+3)::before {
  background: var(--gradient-ocean);
}

/* ====== 文章卡片特殊样式 ====== */
article.card {
  display: flex;
  flex-direction: column;
}

article.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ====== FAQ 展开动画 ====== */
.faq-answer {
  display: none;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ====== 特色区块样式 ====== */
.section:nth-child(even) {
  background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.03) 50%, transparent 100%);
}

/* ====== 链接样式增强 ====== */
.card a:not(.btn) {
  color: var(--text-accent);
  font-weight: 600;
  position: relative;
}

.card a:not(.btn):hover {
  text-decoration: underline;
}

/* ====== 地址联系卡片特殊样式 ====== */
#contact .card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

#contact .card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ====== 版权区特殊样式 ====== */
footer .text-center {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

footer .text-center p {
  color: var(--text-footer-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ====== 返回顶部按钮动画 ====== */
#backToTop::before {
  content: '↑';
  line-height: 1;
}

#backToTop:hover::before {
  animation: float 1s ease infinite;
}

/* ====== 移动端优化 ====== */
@media (max-width: 768px) {
  .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .card:hover {
    transform: translateY(-3px);
  }
  
  .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
  }
}

/* ====== 暗色模式适配 ====== */
@media (prefers-color-scheme: dark) {
  .card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .btn-outline {
    border-color: #ffffff;
    color: #ffffff !important;
  }
  
  .card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }
  
  .faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
  }
}

/* ====== 滚动进度条 ====== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-accent);
  z-index: 1001;
  transition: width 0.3s ease;
}

/* ====== 悬浮效果 ====== */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  .tag:hover {
    transform: translateY(-2px) scale(1.05);
  }
  
  .faq-item:hover {
    transform: translateX(5px);
  }
}

/* ====== 最终优化 ====== */
@media (max-width: 600px) {
  .stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .stat-item {
    font-size: 2rem;
  }
  
  .stats span {
    display: block;
    margin-bottom: 0.5rem;
  }
}

/* 确保移动端菜单可以滚动 */
.mobile-nav-open {
  overflow: auto;
}

.mobile-nav-open .navbar {
  position: sticky;
}

/* 安全区域适配 */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  
  footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  #backToTop {
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
  }
}

/* ====== 结束 ====== */