/* ===== 漫画社 全域样式表 ===== */
/* 风格: 现代漫风 · 渐变Banner · 圆角卡片 · 毛玻璃 · 响应式 · 暗色模式 · 动效 */

/* ===== 设计令牌 / 变量 ===== */
:root {
  /* 主色板 */
  --brand-primary: #1a3a5c;
  --brand-secondary: #2d4b6e;
  --accent: #e94560;
  --accent-soft: #ff6b81;
  --gold: #f5c518;

  /* 明色主题 */
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --bg-footer: #102a3c;
  --bg-soft: #edf1f7;
  --text-primary: #17202A;
  --text-secondary: #3a4a5a;
  --text-heading: #0f1c2a;
  --text-link: #1a4b7a;
  --text-btn: #ffffff;
  --btn-bg: #1a3a5c;
  --btn-bg-hover: #2d4b6e;
  --border-light: #d0d9e3;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 28px rgba(0,0,0,0.12);
  --faq-bg: #f0f4f9;
  --nav-bg: rgba(255,255,255,0.85);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.4);
  --banner-overlay: linear-gradient(90deg, rgba(10,25,40,0.85) 0%, rgba(10,25,40,0.3) 100%);
  --hero-glow: radial-gradient(circle at 20% 20%, rgba(233,69,96,0.15) 0%, transparent 50%);
  --scrollbar-thumb: #b0bec5;
  --scrollbar-track: transparent;
}

/* 暗色主题 */
[data-theme="dark"] {
  --bg: #121a24;
  --bg-card: #1e2937;
  --bg-footer: #0b141e;
  --bg-soft: #1a2634;
  --text-primary: #E5E7EB;
  --text-secondary: #cbd5e1;
  --text-heading: #FFFFFF;
  --text-link: #8ab4f8;
  --text-btn: #ffffff;
  --btn-bg: #2d4b6e;
  --btn-bg-hover: #3a5f8a;
  --border-light: #334155;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 28px rgba(0,0,0,0.5);
  --faq-bg: #1a2634;
  --nav-bg: rgba(18,26,36,0.9);
  --glass-bg: rgba(30,41,55,0.6);
  --glass-border: rgba(255,255,255,0.08);
  --banner-overlay: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
  --hero-glow: radial-gradient(circle at 20% 20%, rgba(233,69,96,0.1) 0%, transparent 50%);
  --scrollbar-thumb: #334155;
}

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

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  width: 100%;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::selection {
  background: var(--accent);
  color: #fff;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.4s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

.logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 4px 8px 4px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

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

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

.search-box button {
  background: var(--btn-bg);
  color: var(--text-btn);
  border: none;
  border-radius: 30px;
  padding: 6px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 0.9rem;
}

.search-box button:hover {
  background: var(--btn-bg-hover);
  transform: scale(1.03);
}

/* 主题切换按钮 */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 6px 14px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

/* 汉堡按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: var(--bg-soft);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* 移动菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  padding: 16px;
  border-top: 1px solid var(--border-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu.open {
  display: flex;
  max-height: 500px;
  padding: 16px;
}

.mobile-menu a {
  padding: 12px 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--accent);
  padding-left: 8px;
}

/* ===== Hero Banner ===== */
.hero {
  background: var(--banner-overlay), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAwIiBoZWlnaHQ9IjUwMCIgdmlld0JveD0iMCAwIDEyMDAgNTAwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjMTgyYzQwIi8+PHBhdGggZD0iTTYwMCA4MEwgNzUwIDI1MCBMNjAwIDQyMCBMNDUwIDI1MCBaIiBmaWxsPSIjMjg0YzYwIi8+PHRleHQgeD0iNjAwIiB5PSIyNjAiIGZvbnQtc2l6ZT0iNDgiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXdlaWdodD0iNzAwIj7mvqHnlLDnpY48L3RleHQ+PC9zdmc+') no-repeat center center/cover;
  color: #fff;
  padding: 100px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

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

.hero h1 {
  font-size: 3.2rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease both;
}

.hero p {
  font-size: 1.3rem;
  max-width: 720px;
  color: #f1f5f9;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn-group {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== 按钮 ===== */
.btn {
  background: var(--btn-bg);
  color: var(--text-btn);
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid #ffffff;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  border-color: #ffffff;
}

/* ===== 通用区块 ===== */
section {
  padding: 52px 0;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-heading);
  margin-bottom: 28px;
  border-left: 6px solid var(--accent);
  padding-left: 18px;
  position: relative;
  transition: color 0.3s ease;
}

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

/* ===== 栅格系统 ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

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

.card h3 {
  color: var(--text-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

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

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

/* 徽章 */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--btn-bg), var(--btn-bg-hover));
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== 漫画卡片 ===== */
.grid-4 .card {
  text-align: center;
  padding: 16px;
}

.grid-4 .card svg {
  border-radius: 12px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.grid-4 .card:hover svg {
  transform: scale(1.02);
}

.grid-4 .card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.grid-4 .card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ===== 文章列表 ===== */
.article-list .article-item {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: baseline;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.article-list .article-item:hover {
  background: var(--bg-soft);
  padding-left: 20px;
}

.article-item .date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-width: 80px;
  font-family: monospace;
}

.article-item a {
  color: var(--text-link);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--faq-bg);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 6px solid var(--accent);
  transition: background 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
  background: var(--bg-card);
  transform: translateX(4px);
}

.faq-question {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  color: var(--text-primary);
  margin-top: 12px;
  line-height: 1.8;
  display: none;
  animation: fadeIn 0.3s ease;
}

/* ===== 表格 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--btn-bg);
  color: #ffffff;
  font-weight: 600;
}

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

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

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

/* ===== 列表 ===== */
ol, ul {
  padding-left: 20px;
}

ol li, ul li {
  margin-bottom: 8px;
}

/* ===== 页脚 ===== */
footer {
  background: var(--bg-footer);
  color: #cbd5e1;
  padding: 40px 0 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--btn-bg));
}

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

footer h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

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

footer a {
  color: #b0c4de;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

footer a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.copyright {
  border-top: 1px solid #2b4256;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #a0b8cc;
  text-align: center;
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background: var(--btn-bg);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  border: none;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-4px);
}

/* ===== 动画关键帧 ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ===== 滚动显示动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }

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

  .hero h1 {
    font-size: 2.4rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 1.8rem;
  }

  .navbar .nav-wrap {
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .container {
    padding: 0 16px;
  }

  .nav-actions {
    gap: 8px;
  }

  .search-box input {
    width: 80px;
    font-size: 0.9rem;
  }

  .search-box button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .theme-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
    padding-left: 12px;
  }

  .card {
    padding: 16px;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .article-item {
    flex-direction: column;
    gap: 4px;
  }

  .article-item .date {
    min-width: auto;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.5rem;
  }

  .btn-group .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .navbar, .back-top, .theme-toggle, .hamburger, .search-box {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* ===== 无障碍 ===== */
@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: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 暗黑模式下的微调 ===== */
[data-theme="dark"] .card {
  border-color: #2a3a4d;
}

[data-theme="dark"] .card:hover {
  border-color: var(--accent);
}

[data-theme="dark"] .search-box input::placeholder {
  color: #8a9bb0;
}

[data-theme="dark"] .btn-outline {
  background: rgba(255,255,255,0.08);
}

/* ===== 滚动动画初始化 ===== */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal.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; }

/* ===== 悬停特效增强 ===== */
.card .badge:hover {
  transform: scale(1.05);
}

.grid-4 .card svg {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-4 .card:hover svg {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* 页脚链接hover */
footer a::before {
  content: '→ ';
  opacity: 0;
  transition: opacity 0.3s ease;
}

footer a:hover::before {
  opacity: 1;
}

/* 文章卡片hover效果 */
.article-item a {
  position: relative;
}

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

.article-item a:hover::after {
  width: 100%;
}

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