/* ===== 污网站 · 光影世界 全局样式 ===== */
:root {
  --bg-body: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-solid: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-heading: #ffffff;
  --brand-main: #f43f5e;
  --brand-secondary: #8b5cf6;
  --accent-gold: #fbbf24;
  --border-light: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(15, 23, 42, 0.8);
  --btn-bg: linear-gradient(135deg, #f43f5e, #8b5cf6);
  --btn-bg-hover: linear-gradient(135deg, #e11d48, #7c3aed);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-primary: 0 0 20px rgba(244, 63, 94, 0.2);
  --grid-bg: rgba(255, 255, 255, 0.03);
  --hero-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  --card-hover-transform: translateY(-8px);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 亮色模式变量 */
@media (prefers-color-scheme: light) {
  :root {
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-solid: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-heading: #0f172a;
    --border-light: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --grid-bg: rgba(0, 0, 0, 0.02);
    --hero-gradient: linear-gradient(135deg, #fde68a 0%, #fca5a5 50%, #c4b5fd 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(244, 63, 94, 0.1) 0%, transparent 50%);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 排版 ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--brand-main) 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: 1.2rem;
  position: relative;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--brand-main), var(--brand-secondary));
  border-radius: 4px;
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
}

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

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

a {
  color: var(--brand-main);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

a:not(.btn-primary):hover {
  color: var(--brand-secondary);
}

ul, ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
  color: var(--text-primary);
}

li {
  margin-bottom: 0.5rem;
  position: relative;
}

ul li::marker {
  color: var(--brand-main);
}

ol li::marker {
  font-weight: 600;
  color: var(--brand-secondary);
}

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

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 2.5rem 0;
}

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

/* ===== 头部导航 ===== */
.site-header {
  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);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  background: linear-gradient(135deg, var(--brand-main), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo span {
  -webkit-text-fill-color: var(--brand-main);
}

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

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  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: linear-gradient(90deg, var(--brand-main), var(--brand-secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

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

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

.btn-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.btn-toggle:hover {
  opacity: 1;
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.menu-icon:hover {
  background: var(--grid-bg);
}

/* ===== Hero区域 ===== */
.hero {
  background: var(--hero-gradient);
  border-radius: 24px;
  padding: 3.5rem 0;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(5%, 5%); }
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-svg {
  flex: 0 0 300px;
  animation: float 6s ease-in-out infinite;
}

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

/* ===== 按钮 ===== */
.btn-primary {
  background: var(--btn-bg);
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.3);
}

.btn-primary::before {
  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.5s ease, height 0.5s ease;
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* ===== 面包屑 ===== */
.breadcrumb-wrap {
  padding: 1.5rem 0 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-wrap a {
  color: var(--brand-main);
  border: none;
}

.breadcrumb-wrap a:hover {
  color: var(--brand-secondary);
}

/* ===== 锚点导航 ===== */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  justify-content: center;
}

.anchor-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  background: var(--bg-card);
}

.anchor-nav a:hover {
  background: var(--btn-bg);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

/* ===== 文章卡片 ===== */
.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.article-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-main), var(--brand-secondary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover {
  transform: var(--card-hover-transform);
  border-color: var(--brand-main);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

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

.article-card time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.8rem;
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

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

.article-card a {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-card a::after {
  content: '→';
  transition: transform 0.3s ease;
}

.article-card a:hover::after {
  transform: translateX(5px);
}

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

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }
.article-card:nth-child(7) { animation-delay: 0.7s; }
.article-card:nth-child(8) { animation-delay: 0.8s; }
.article-card:nth-child(9) { animation-delay: 0.9s; }
.article-card:nth-child(10) { animation-delay: 1s; }

/* ===== FAQ样式 ===== */
.faq-list {
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
  border-color: var(--brand-main);
  box-shadow: var(--glow-primary);
}

.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-heading);
  list-style: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brand-main);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-primary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  animation: slideDown 0.3s ease;
}

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

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

th, td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.95rem;
}

th {
  background: var(--grid-bg);
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
}

tr {
  transition: background 0.3s ease;
}

tr:hover {
  background: var(--grid-bg);
}

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

/* ===== Section间距 ===== */
section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.8s ease forwards;
}

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

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.footer-cols h4 {
  color: var(--text-heading);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-cols h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-main), var(--brand-secondary));
}

.footer-cols a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-cols a:hover {
  color: var(--brand-main);
  padding-left: 5px;
}

.footer-cols span {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--btn-bg);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.5rem;
  z-index: 999;
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.3);
  transition: var(--transition-smooth);
}

.to-top:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

/* ===== 联系区域 ===== */
#contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#contact > div:last-child {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

#contact strong {
  color: var(--text-heading);
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== 图片说明 ===== */
.img-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.8rem;
  font-style: italic;
}

/* ===== 工具类 ===== */
.text-muted {
  color: var(--text-secondary) !important;
}

.text-center {
  text-align: center;
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--brand-main), var(--brand-secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--brand-main), var(--brand-secondary));
  opacity: 0.8;
}

/* ===== 选中文本样式 ===== */
::selection {
  background: var(--brand-main);
  color: #ffffff;
}

/* ===== 响应式断点 ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

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

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .hero-svg {
    flex: 0 0 auto;
    margin-top: 2rem;
  }
}

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

  .container {
    padding: 0 1rem;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
  }

  .menu-icon {
    display: block;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 2.5rem 1rem;
    border-radius: 16px;
    margin: 1rem 0;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .grid-articles {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  section {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 16px;
  }

  .anchor-nav {
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .anchor-nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
  }

  .to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .hero-svg {
    display: none;
  }

  .article-card {
    padding: 1.2rem;
  }

  section {
    padding: 1.2rem;
  }

  .breadcrumb-wrap {
    font-size: 0.85rem;
  }

  .anchor-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 1rem;
    scrollbar-width: none;
  }

  .anchor-nav::-webkit-scrollbar {
    display: none;
  }

  .anchor-nav a {
    white-space: nowrap;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .site-header,
  .to-top,
  .search-box,
  .menu-icon,
  .btn-primary {
    display: none !important;
  }

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

  section,
  .article-card,
  .faq-item {
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* ===== 无障碍支持 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 焦点样式 ===== */
:focus-visible {
  outline: 2px solid var(--brand-main);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 高亮卡片 ===== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

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

/* ===== 侧边栏 ===== */
.sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
}

/* ===== 数字统计动画 ===== */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-main), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ===== 品牌高亮 ===== */
.brand-highlight {
  background: linear-gradient(135deg, var(--brand-main), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ===== 暗色模式手动切换支持 ===== */
body.dark-mode {
  --bg-body: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-solid: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-heading: #ffffff;
  --border-light: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(15, 23, 42, 0.9);
}

/* ===== 滚动观察器动画 ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== 响应式字体大小 ===== */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .grid-articles h3 {
    font-size: 1rem;
  }
}

/* ===== 卡片hover微光效果 ===== */
.article-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.article-card:hover::after {
  width: 200px;
  height: 200px;
}

/* ===== 表单样式 ===== */
input, textarea, select {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-main);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

/* ===== 标签样式 ===== */
.tag {
  display: inline-block;
  background: var(--btn-bg);
  color: #ffffff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.2rem;
  transition: var(--transition-smooth);
}

.tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

/* ===== 响应式表格优化 ===== */
@media (max-width: 600px) {
  .table-wrap {
    border-radius: 8px;
  }

  th, td {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
}

/* ===== 最后确保所有卡片都应用新变量 ===== */
.card, .article-card, .faq-item, .sidebar, section {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== 暗色模式适配优化 ===== */
@media (prefers-color-scheme: dark) {
  .article-card p {
    color: #94a3b8;
  }

  .faq-answer {
    color: #e2e8f0;
  }

  .footer-bottom p {
    color: #64748b;
  }
}

/* ===== 亮色模式适配优化 ===== */
@media (prefers-color-scheme: light) {
  .article-card p {
    color: #64748b;
  }

  .faq-answer {
    color: #1e293b;
  }

  .footer-bottom p {
    color: #64748b;
  }
}

/* ===== 联系方式区块 ===== */
#contact div {
  margin-bottom: 1rem;
}

#contact strong {
  color: var(--brand-main);
  margin-right: 0.5rem;
}

/* ===== 图片圆角 ===== */
img {
  border-radius: 12px;
}

/* ===== 链接下划线动画 ===== */
a:not(.btn-primary):not(.logo a)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand-main);
  transition: width 0.3s ease;
}

a:not(.btn-primary):not(.logo a):hover::after {
  width: 100%;
}

/* ===== 最后清理 ===== */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ===== 完全响应式布局 ===== */
@media (max-width: 640px) {
  .container {
    padding: 0 0.8rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  section {
    padding: 1rem;
    border-radius: 12px;
  }

  .article-card {
    padding: 1rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .footer-cols {
    gap: 1rem;
  }
}

/* ===== 确保所有元素都有平滑过渡 ===== */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== 确保图片不溢出 ===== */
img {
  max-width: 100%;
  height: auto;
}

/* ===== 确保SVG也有过渡 ===== */
svg {
  transition: all 0.3s ease;
}

/* ===== 最终字体优化 ===== */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 确保列表样式正确 ===== */
ul, ol {
  padding-left: 1.5rem;
}

/* ===== 确保段落间距 ===== */
p {
  letter-spacing: 0.01em;
}

/* ===== 确保标题不换行 ===== */
h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}