/* style.css - 在线视频集锦 fgrbbfn.cn */
/* 完整样式系统：UI风格 + 响应式 + 暗色模式 + 动效 */

:root {
  --bg-body: #f5f7fa;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-footer: #1e2a3a;
  --text-primary: #1f2937;
  --text-title: #0b1e2e;
  --text-secondary: #334155;
  --text-muted: #4b5e77;
  --accent: #0f4c81;
  --accent-hover: #0a3b63;
  --border-soft: #d3dce6;
  --bg-highlight: #eef3f9;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 30px rgba(15, 76, 129, 0.12);
  --text-on-dark: #f2f6fc;
  --text-on-dark-muted: #ccdbe9;
  --dark-bg: #121a24;
  --dark-bg-card: #1e2a3a;
  --dark-border: #334155;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --gradient-banner: linear-gradient(135deg, #0f4c81 0%, #2c3e50 50%, #1e2a3a 100%);
  --gradient-accent: linear-gradient(135deg, #0f4c81, #2c7be5);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 暗色模式覆盖 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #121a24;
    --bg-card: #1e2a3a;
    --bg-header: rgba(30, 42, 58, 0.9);
    --text-primary: #e2e8f0;
    --text-title: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #9ecbff;
    --accent-hover: #b1d4ff;
    --border-soft: #334155;
    --bg-highlight: #223044;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --bg-footer: #0f1720;
    --text-on-dark: #f1f5f9;
    --text-on-dark-muted: #b9c7d9;
    --glass-bg: rgba(30, 42, 58, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-banner: linear-gradient(135deg, #0f1720 0%, #1e2a3a 50%, #223044 100%);
    --gradient-accent: linear-gradient(135deg, #2c7be5, #9ecbff);
  }
}

/* 基础重置 */
* {
  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, 'Noto Sans', sans-serif;
  background: var(--bg-body);
  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-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 8px;
}

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

/* 排版 */
h1, h2, h3, h4 {
  color: var(--text-title);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0.5rem 0 1.2rem;
  font-weight: 700;
}

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

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 1.5rem 0 0.8rem;
}

h4 {
  font-size: 1.15rem;
  margin: 1rem 0 0.6rem;
  color: var(--text-title);
}

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

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

a:hover, a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
  outline: none;
}

/* 容器 */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  width: 100%;
}

/* 头部导航 */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  max-width: 1440px;
  margin: auto;
  gap: 0.5rem;
}

.brand a {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.5px;
  background: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.3s ease;
}

.brand a:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
  font-size: 1.2em;
  animation: pulse 2s infinite;
}

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

.nav-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.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::after,
.nav-links a:focus::after {
  width: 100%;
}

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

.search-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  padding: 0.5rem 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.search-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.mobile-menu-icon {
  display: none;
  background: none;
  border: 0;
  font-size: 2rem;
  color: var(--text-title);
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

/* 主按钮 */
.btn {
  display: inline-block;
  background: var(--gradient-accent);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

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

.btn:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 76, 129, 0.4);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
}

/* Banner 区域 */
.banner {
  background: var(--gradient-banner);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  margin: 2rem 0;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: fadeInUp 0.8s ease;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(20deg);
  z-index: -1;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; transform: rotate(20deg) scale(1); }
  50% { opacity: 1; transform: rotate(20deg) scale(1.1); }
}

.banner h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.banner h2 {
  color: #ffffff;
  border-left-color: #ffd700;
}

.banner p {
  color: #f0f6ff;
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

.banner .btn {
  background: #ffd700;
  color: #1e2a3a;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.banner .btn:hover {
  background: #ffed4a;
  transform: translateY(-2px);
}

/* 网格布局 */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: 1.5rem;
}

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

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

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

/* 卡片样式 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: clamp(1.2rem, 2vw, 2rem);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

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

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

.card h3 {
  margin-top: 0.3rem;
  color: var(--text-title);
  font-weight: 600;
}

.card h4 {
  color: var(--text-title);
  margin-top: 0;
}

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

.card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* 文章卡片特殊样式 */
article.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
}

article.card p {
  flex-grow: 1;
}

article.card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

article.card a {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

article.card a:hover {
  gap: 0.6rem;
  text-decoration: none;
}

/* 元数据 */
.meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th {
  background: var(--bg-highlight);
  color: var(--text-title);
  padding: 1rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-soft);
}

td {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-primary);
  transition: background 0.2s ease;
}

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

/* FAQ 样式 */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

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

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-title);
  transition: background 0.2s ease;
  user-select: none;
  gap: 1rem;
}

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

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

.faq-question:hover {
  background: var(--bg-highlight);
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-soft);
  margin-top: 0;
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

/* 页脚 */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
}

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

.site-footer a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.site-footer a:hover {
  color: white;
  transform: translateX(3px);
  text-decoration: none;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50px;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 工具类 */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

.svg-placeholder {
  background: linear-gradient(135deg, var(--bg-highlight), var(--border-soft));
  border-radius: var(--radius-sm);
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.svg-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer-bg 3s infinite;
}

@keyframes shimmer-bg {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.article-img svg {
  width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: var(--radius-sm);
}

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

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

/* 滚动动画触发 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* 响应式导航 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 0;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-soft);
    animation: slideDown 0.3s ease;
  }

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

  .mobile-menu-icon {
    display: block;
  }

  .nav-links a {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    width: 100%;
    border-bottom: 1px solid var(--border-soft);
  }

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

  .nav-links a::after {
    display: none;
  }

  .search-toggle {
    display: none;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }
}

/* 移动端优化 */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .banner {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .banner h1 {
    font-size: 1.6rem;
  }

  .banner p {
    font-size: 0.95rem;
  }

  .card {
    padding: 1rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  .to-top {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* 打印样式 */
@media print {
  .site-header, .site-footer, .to-top, .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .banner {
    background: white;
    color: black;
    border: 2px solid #333;
  }

  .banner h1, .banner h2, .banner p {
    color: black;
  }
}

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

/* 高对比模式 */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-title: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #333333;
    --border-soft: #000000;
    --accent: #0000aa;
    --accent-hover: #000080;
  }
}

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

/* 毛玻璃效果增强 */
.glass-effect {
  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: var(--radius-md);
}

/* 卡片内链接样式 */
.card a:not(.btn) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.card a:not(.btn):hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
  color: var(--accent-hover);
}

/* 特定区块间距 */
section {
  scroll-margin-top: 80px;
}

#brand, #services, #solutions, #cases, #articles, #howto, #faq, #contact {
  padding: 1rem 0;
}

/* 联系区块样式 */
#contact .card p {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#contact .card p:last-child {
  margin-bottom: 0;
}

/* 版权与链接 */
.footer-grid h4 {
  color: white;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-grid div:first-child {
  gap: 0.2rem;
}

/* 占位符 */
.svg-placeholder span {
  font-size: 1.2rem;
}

/* 移动端表格 */
@media (max-width: 640px) {
  .table-wrap {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.6rem 0.8rem;
  }
}

/* 减少闪烁 */
img, svg {
  max-width: 100%;
  height: auto;
}

/* 卡片图标动画 */
.card h3, .card h4 {
  transition: color 0.3s ease;
}

.card:hover h3, .card:hover h4 {
  color: var(--accent);
}

/* FAQ active 状态 */
.faq-item.active {
  border-color: var(--accent);
  background: var(--bg-highlight);
}

/* 移动端菜单动画 */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

/* 页脚链接布局 */
.footer-grid div a {
  display: inline-block;
  padding: 0.1rem 0;
}

/* 特别优化：确保卡片内标题不会被截断 */
.card h3, .card h4 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 链接下划线动画 */
a:not(.btn):not(.brand a) {
  background-image: linear-gradient(transparent calc(100% - 2px), var(--accent) 2px);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

a:not(.btn):not(.brand a):hover {
  background-size: 100% 100%;
  text-decoration: none;
}

/* 文章卡片日期样式 */
article.card .meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* 文章卡片日期前的圆点 */
article.card .meta::before {
  content: '•';
  color: var(--accent);
}

/* 联系区块图标 */
#contact .card p::first-letter {
  font-weight: bold;
}

/* 移动端导航链接点击区域 */
.nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* 滚动条宽度调整 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* 卡片过渡动画 */
.card {
  animation: fadeInUp 0.5s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* FAQ 答案动画 */
.faq-answer {
  animation: fadeIn 0.3s ease;
  display: none;
}

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

/* 响应式字体 */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
}

/* 最终优化：保证对比度和可读性 */
.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

/* 链接在卡片内的间距 */
.card a:last-child {
  margin-top: 0.5rem;
}

/* 页脚最底部信息 */
.copyright p {
  color: var(--text-on-dark-muted);
  margin: 0;
  font-size: 0.85rem;
}

/* 确保所有内容区域都有合适的间距 */
main.container {
  padding-bottom: 2rem;
}

/* 移动端按钮 */
@media (max-width: 640px) {
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-outline {
    padding: 0.6rem 1.4rem;
  }
}

/* 暗色模式下特定元素调整 */
@media (prefers-color-scheme: dark) {
  .card {
    background: var(--dark-bg-card);
  }

  .faq-item {
    background: var(--dark-bg-card);
  }

  table {
    background: var(--dark-bg-card);
  }

  th {
    background: var(--bg-highlight);
  }

  .svg-placeholder {
    background: var(--bg-highlight);
  }
}

/* 打印时隐藏交互元素 */
@media print {
  .search-toggle, .mobile-menu-icon, .faq-question::after {
    display: none !important;
  }

  .faq-answer {
    display: block !important;
  }
}

/* 最终代码结束 */