/* 食品安全智库 - 科技感设计系统 (纯CSS版) */

/* ===== CSS 变量 ===== */
:root {
  --radius: 0.75rem;

  /* 主色调：专业健康绿色体系 */
  --brand: #22C55E;
  --brand-light: #4ADE80;
  --brand-dark: #15803D;

  /* 科技感强调色 - 蓝紫渐变 */
  --cyan: #3B82F6;
  --cyan-light: #60A5FA;
  --purple: #8B5CF6;
  --purple-light: #A78BFA;

  /* 金色强调 - 象征品质、权威 */
  --gold: #D4A017;
  --gold-light: #E8C158;

  /* 背景系统 - 浅色背景 */
  --background: #FAFBFC;
  --foreground: #1A1A2E;
  --card: #FFFFFF;
  --card-foreground: #1A1A2E;
  --popover: #FFFFFF;
  --popover-foreground: #1A1A2E;

  /* 主色应用 - 健康绿色 */
  --primary: #22C55E;
  --primary-foreground: #FAFBFC;
  --secondary: #F5F5F0;
  --secondary-foreground: #3D3D5C;

  /* 中性色 */
  --muted: #F5F5F0;
  --muted-foreground: #6B7280;
  --accent: #F5F5F0;
  --accent-foreground: #3D3D5C;
  --destructive: #EF4444;
  --destructive-foreground: #FAFBFC;

  /* 边框和输入 */
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #22C55E;

  /* 图表颜色 */
  --chart-1: #22C55E;
  --chart-2: #3B82F6;
  --chart-3: #8B5CF6;
  --chart-4: #F59E0B;
  --chart-5: #6366F1;

  /* 侧边栏 */
  --sidebar: #FAFBFC;
  --sidebar-foreground: #1A1A2E;
  --sidebar-primary: #22C55E;
  --sidebar-primary-foreground: #FAFBFC;
  --sidebar-accent: #F5F5F0;
  --sidebar-accent-foreground: #3D3D5C;
  --sidebar-border: #E5E7EB;
  --sidebar-ring: #22C55E;
}

/* ===== 基础样式 ===== */
* {
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 自定义滚动条 - 科技感 */
::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track {
  background: #F5F5F0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand) 0%, var(--cyan) 50%, var(--purple) 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--cyan) 50%, var(--purple) 100%);
}

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

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

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.5); }
}

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

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

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* 动画工具类 */
.animate-fade-in { animation: fade-in 0.5s ease-out forwards; }
.animate-slide-in-right { animation: slide-in-right 0.4s ease-out forwards; }
.animate-scale-in { animation: scale-in 0.3s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-shimmer {
  animation: shimmer 2s linear infinite;
  background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
}

/* ===== 渐变背景 ===== */
.bg-gradient-brand {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--cyan-light) 50%, var(--purple-light) 100%);
}

.bg-gradient-hero {
  background: linear-gradient(135deg, #FAFBFC 0%, #F0FDF4 50%, #EFF6FF 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.bg-gradient-tech {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--cyan-light) 50%, var(--purple-light) 100%);
}

.bg-gradient-cyan {
  background: linear-gradient(135deg, var(--cyan-light) 0%, var(--purple-light) 100%);
}

/* ===== 文字渐变 ===== */
.text-gradient-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-tech {
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 阴影 ===== */
.shadow-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shadow-card-hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.shadow-elevated {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.32);
}

.shadow-glow-hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.shadow-glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ===== 链接下划线动画 ===== */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-light) 0%, var(--cyan-light) 50%, var(--purple-light) 100%);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ===== 卡片悬停效果 ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 20px rgba(34, 197, 94, 0.2);
}

/* ===== 玻璃态效果 ===== */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== 网格背景 - 科技感 ===== */
.grid-pattern {
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.grid-pattern-dense {
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===== 按钮变体 ===== */
.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 50%, var(--purple) 100%);
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

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

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

/* ===== 标签样式 ===== */
.tag-brand {
  background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
  color: var(--brand);
}

.tag-gold {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  color: #92400E;
}

.tag-tech {
  background: rgba(59, 130, 246, 0.15);
  color: #1E40AF;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ===== 品牌色工具类 ===== */
.text-brand { color: var(--brand); }
.bg-brand { background-color: var(--brand); }
.border-brand { border-color: var(--brand); }
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.bg-primary-foreground { background-color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.bg-muted { background-color: var(--muted); }
.text-foreground { color: var(--foreground); }
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.text-card-foreground { color: var(--card-foreground); }
.border-border { border-color: var(--border); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* ===== 边框发光效果 ===== */
.border-glow {
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.border-glow:hover {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* ===== 科技装饰元素 ===== */
.tech-corner {
  position: relative;
}

.tech-corner::before,
.tech-corner::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(34, 197, 94, 0.4);
}

.tech-corner::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.tech-corner::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* ===== 文章正文样式 ===== */
.article-content {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--foreground);
}

.article-content p {
  margin-bottom: 1em;
  text-indent: 2em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
  color: var(--foreground);
}

.article-content h1 { font-size: 1.75rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content ul,
.article-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.article-content table th,
.article-content table td {
  border: 1px solid var(--border);
  padding: 0.75em 1em;
  text-align: left;
}

.article-content table th {
  background-color: var(--muted);
  font-weight: 600;
  color: var(--muted-foreground);
  width: 150px;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
}

.article-content a:hover {
  opacity: 0.8;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

.article-content strong {
  font-weight: 600;
}

.article-content em {
  font-style: italic;
}

/* ===== 响应式容器 ===== */
.container-full {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 最新资讯滑动列表：隐藏滚动条（配合内联 scrollbar-width:none） */
.news-viewport::-webkit-scrollbar {
  display: none;
}
.news-viewport {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (min-width: 640px) {
  .container-full { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container-full { padding: 0 2rem; }
}

@media (min-width: 1280px) {
  .container-full { padding: 0 3rem; }
}

@media (min-width: 1536px) {
  .container-full { padding: 0 4rem; }
}

/* ===== 满屏布局 ===== */
.fullscreen-section {
  min-height: 100vh;
  width: 100%;
}

/* ===== 数据流动画 ===== */
.data-flow {
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* ===== 扫描线效果 ===== */
.scan-line {
  position: relative;
  overflow: hidden;
}

.scan-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.5) 50%, transparent 100%);
  animation: scan-line 3s linear infinite;
}

/* ===== 跑马灯 - 实时动态 ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* ===== Line clamp 工具类 ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ===== Tab按钮激活态 ===== */
.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ===== 文章正文样式 ===== */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #065f46;
  margin: 1.8em 0 0.8em;
  padding-left: 0.8em;
  border-left: 4px solid var(--cyan, #06b6d4);
  line-height: 1.4;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e40af;
  margin: 1.4em 0 0.6em;
}

.article-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #4338ca;
  margin: 1.2em 0 0.5em;
}

.article-content p {
  margin: 0.8em 0;
  text-indent: 2em;
}

.article-content ul, .article-content ol {
  margin: 0.8em 0;
  padding-left: 2em;
}

.article-content ul li {
  list-style: disc;
  margin: 0.3em 0;
}

.article-content ol li {
  list-style: decimal;
  margin: 0.3em 0;
}

.article-content li {
  line-height: 1.8;
}

.article-content strong {
  font-weight: 600;
  color: #1f2937;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: 8px;
}

.article-content table th {
  background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
  color: #0e7490;
  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid #cffafe;
  text-align: center;
}

.article-content table td {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.article-content table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.article-content table tbody tr:hover {
  background: #f0f9ff;
}

.article-content blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  border-left: 4px solid #10b981;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: italic;
}

.article-content blockquote p {
  text-indent: 0;
  margin: 0.4em 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-content a {
  color: #0891b2;
  text-decoration: none;
  border-bottom: 1px dashed #0891b2;
}

.article-content a:hover {
  color: #06b6d4;
  border-bottom-style: solid;
}

.article-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #dc2626;
}

.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.article-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2em 0;
}

/* ===== 页脚（参照 shianzhiku.cn：品牌 | 快速导航 | 关注我们 | 友情链接） ===== */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  /* 与参考站一致：1.5fr 0.8fr 1.2fr 1fr */
  .footer-grid { grid-template-columns: 1.5fr 0.8fr 1.2fr 1fr; }
}
.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.footer-nav-link:hover { color: #ffffff; }
.footer-nav-link .footer-arrow {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}
.footer-nav-link:hover .footer-arrow {
  opacity: 1;
  transform: translateX(0);
}
.footer-social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  color: #22C55E;
}
.footer-social-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.footer-qr-pop {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  margin-bottom: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 50;
  pointer-events: none;
}
.group:hover .footer-qr-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.footer-qr-card {
  width: 140px;
  padding: 0.75rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.footer-qr-card img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}
.footer-qr-card p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #1f2937;
  font-weight: 500;
}
.footer-qr-arrow {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ============================================================
   全站 UI 特效层
   Glassmorphism · 区块阴影 · 滚动揭示 · 滑动 · 3D悬浮
   说明：所有 reveal 元素默认由 .js 门控（JS 未启用时照常显示）
   ============================================================ */

html { scroll-behavior: smooth; }

/* ===== 滚动揭示（Scroll Reveal） ===== */
.js [data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}
.js [data-reveal="up"]    { transform: translateY(30px); }
.js [data-reveal="down"]  { transform: translateY(-30px); }
.js [data-reveal="left"]  { transform: translateX(-44px); }
.js [data-reveal="right"] { transform: translateX(44px); }
.js [data-reveal="scale"] { transform: scale(0.93); }
.js [data-reveal].is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
              transform .8s cubic-bezier(.22, 1, .36, 1);
}

/* ===== 顶部滚动进度条 ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand) 0%, var(--cyan) 50%, var(--purple) 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, .6);
  transition: width .12s linear;
}

/* ===== 返回顶部悬浮按钮 ===== */
.back-to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14), 0 0 0 4px rgba(34, 197, 94, .06);
  color: var(--brand);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(18px) scale(.9);
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1),
              transform .35s cubic-bezier(.22, 1, .36, 1),
              background .3s ease, color .3s ease, box-shadow .3s ease;
  z-index: 55;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover {
  background: var(--brand); color: #fff;
  box-shadow: 0 12px 32px rgba(34, 197, 94, .45);
  transform: translateY(-4px) scale(1.06);
}

/* ===== 区块阴影增强 ===== */
.shadow-soft {
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
}
.shadow-float {
  box-shadow: 0 10px 30px rgba(15, 23, 42, .10), 0 4px 10px rgba(15, 23, 42, .06);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.shadow-float:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .16), 0 0 24px rgba(34, 197, 94, .20);
}

/* ===== 毛玻璃增强 ===== */
.glass-strong {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, .45);
}
.glass-dark {
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ===== 区块分隔装饰 ===== */
.section-divider {
  width: 100%;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, .35) 35%, rgba(59, 130, 246, .35) 65%, transparent);
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(34, 197, 94, .5);
}

/* ===== 渐变描边高亮卡片 ===== */
.neon-border {
  position: relative;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.neon-border::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--brand), var(--cyan), var(--purple), var(--brand));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 6s linear infinite;
  pointer-events: none;
}
@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===== 卡片 3D 悬浮（由 JS 提供指针位置） ===== */
.tilt {
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .3s ease;
}
.tilt .tilt-spot {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 197, 94, .16), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none; z-index: 2;
}
.tilt:hover .tilt-spot { opacity: 1; }

/* ===== 头部滚动增强 ===== */
header.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, .10), 0 0 0 1px rgba(34, 197, 94, .10);
}

/* ============================================================
   顶部导航（对齐原站 shianzhiku.cn：22px 粗体 + 二级下拉白卡）
   ============================================================ */

/* 一级菜单字号：原站为 22px 粗体，小屏逐级收敛避免溢出 */
.nav-link {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
@media (min-width: 1280px) {
  .nav-link { font-size: 19px; }
}
@media (min-width: 1536px) {
  .nav-link { font-size: 22px; }
}

/* 二级下拉容器：白卡 + 轻玻璃 + 立体阴影 */
.nav-dropdown {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13), 0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* 二级项：hover 左侧品牌色指示条 + 淡绿底 */
.nav-dropdown-item {
  position: relative;
  white-space: nowrap;
}
.nav-dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-radius: 0 2px 2px 0;
  background: var(--brand, #22c55e);
  transition: width 0.2s ease, height 0.2s ease;
}
.nav-dropdown-item:hover {
  background: rgba(34, 197, 94, 0.07);
}
.nav-dropdown-item:hover::before {
  width: 3px;
  height: 58%;
}

/* 减少动效偏好：尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .animate-marquee, .animate-pulse-glow, .animate-float, .neon-border::before { animation: none !important; }
  .nav-dropdown-item::before { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 单页内容专属排版（复刻原站 shianzhiku.cn/page/terms 阅读样式） ===== */
.page-content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #374151;
}

.page-content p {
  margin: 1.15em 0;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2em 0 0.85em;
  padding-left: 0.75em;
  border-left: 4px solid #00b7b8;
  line-height: 1.4;
}

.page-content h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: #1e293b;
  margin: 1.6em 0 0.7em;
  padding-left: 0.6em;
  border-left: 3px solid #00d2ef;
}

.page-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  margin: 1.4em 0 0.6em;
}

.page-content ul,
.page-content ol {
  margin: 1.1em 0;
  padding-left: 1.75em;
}

.page-content ul li {
  list-style: disc;
  margin: 0.5em 0;
  line-height: 1.85;
}

.page-content ol li {
  list-style: decimal;
  margin: 0.5em 0;
  line-height: 1.85;
}

.page-content blockquote {
  margin: 1.6em 0;
  padding: 1em 1.5em;
  background: #f0fbfb;
  border-left: 4px solid #00b7b8;
  border-radius: 0 10px 10px 0;
}

.page-content blockquote p {
  margin: 0.5em 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
  border-radius: 10px;
  overflow: hidden;
}

.page-content table th {
  background: #e6f7f8;
  color: #0e7490;
  font-weight: 600;
  padding: 12px 16px;
  border: 1px solid #c7eef0;
  text-align: center;
}

.page-content table td {
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.page-content a {
  color: #00b7b8;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 183, 184, 0.35);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.page-content a:hover {
  color: #00d2ef;
  border-bottom-color: #00d2ef;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.25em 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.page-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5em 0;
}

@media (max-width: 768px) {
  .page-content {
    font-size: 1rem;
    line-height: 1.8;
  }
  .page-content h2 { font-size: 1.25rem; margin-top: 1.6em; }
  .page-content h3 { font-size: 1.12rem; margin-top: 1.3em; }
  .page-content h4 { font-size: 1.02rem; margin-top: 1.1em; }
  .page-content p { margin: 1em 0; }
}

/* ===== 代码块（代码查看）样式：文章/单页正文中的 pre code ===== */
.article-content pre,
.page-content pre,
.cms-rich pre {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-size: 0.9rem;
  line-height: 1.65;
}
.article-content pre code,
.page-content pre code,
.cms-rich pre code {
  background: transparent !important;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: inherit;
  color: #24292e;
}

/* ===== 附件下载链接（富文本编辑器插入） ===== */
.cms-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 9px 14px;
  margin: 8px 0;
  background: #f0fbfb;
  border: 1px solid #b6e6e8;
  border-left: 3px solid #00b7b8;
  border-radius: 8px;
  color: #0e7490;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.cms-attachment:hover {
  background: #e0f7f8;
  color: #0e7490;
}
.cms-attachment svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.cms-attachment__name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cms-attachment__size {
  flex: none;
  font-size: 0.8rem;
  color: #5e9da0;
}

