/* ===== 广告站前台样式 · iOS Apple 现代风格 ===== */
:root {
  /* 中性色 · 苹果风格以灰阶为主 */
  --text: #1d1d1f;           /* 近黑 */
  --text-2: #424245;          /* 次级文字 */
  --text-3: #6e6e73;          /* 辅助文字 */
  --text-4: #86868b;          /* 最弱文字 */
  --border: #d2d2d7;          /* 分割线 */
  --border-soft: #e8e8ed;     /* 浅分割线 */
  --bg: #f5f5f7;              /* 页面背景 · 苹果灰 */
  --card: #ffffff;            /* 卡片背景 */
  --card-2: #fbfbfd;          /* 次级卡片 */
  
  /* 点缀色 · 苹果蓝 */
  --accent: #0071e3;          /* Apple Blue */
  --accent-2: #0066cc;        /* 深一档 */
  --accent-soft: #eaf4ff;     /* 极浅蓝背景 */
  --accent-bg: #f0f7ff;       /* 浅蓝底 */
  --success: #34c759;         /* Apple Green */
  --danger: #ff3b30;          /* Apple Red */
  --warn: #ff9500;            /* Apple Orange */
  --purple: #5e5ce6;          /* Apple Purple */
  
  /* 渐变系统 */
  --gradient-accent: linear-gradient(135deg, #0071e3 0%, #00b4ff 100%);
  --gradient-warm: linear-gradient(135deg, #ff9500 0%, #ff3b30 100%);
  --gradient-cool: linear-gradient(135deg, #5e5ce6 0%, #0071e3 100%);
  --gradient-success: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  
  /* 阴影 · 柔和细腻 + 深度层次 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.06);
  --shadow-accent: 0 4px 14px rgba(0,113,227,.18);
  --shadow-glow: 0 8px 30px rgba(0,113,227,.25);
  
  /* 圆角系统 · 苹果偏大 */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 980px;
  
  /* 过渡系统 */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 主题切换过渡效果 ===== */
html {
  transition: background-color .3s ease, color .3s ease;
}
body, .site-header, .notice-bar, .banner-grid .banner-item, .banner-empty,
.article-card, .site-footer, .rank-info, .article-detail, .cooperation-page,
.offline-notice, .coop-contact, .detail-summary-box {
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
a, .header-nav a, .footer-link, .notice-bar .notice-item,
.article-title a, .read-more {
  transition: color .2s ease, background-color .2s ease;
}

/* ===== 深色模式 ===== */
[data-theme="dark"] {
  /* 深色主题变量 · Apple Dark Mode 风格 */
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --text-4: #6e6e73;
  --border: #38383a;
  --border-soft: #2c2c2e;
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --accent: #0a84ff;
  --accent-2: #409cff;
  --accent-soft: #1a3a5c;
  --accent-bg: #0c2340;
  --success: #30d158;
  --danger: #ff453a;
  --warn: #ff9f0a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.5);
  --shadow-accent: 0 4px 14px rgba(10,132,255,.3);
}

[data-theme="dark"] .site-header {
  background: rgba(28,28,30,.72);
  border-bottom-color: rgba(255,255,255,.08);
}

[data-theme="dark"] .header-nav a:hover {
  background: rgba(255,255,255,.08);
}

[data-theme="dark"] .brand .logo-mark {
  box-shadow: 0 4px 14px rgba(10,132,255,.4);
}

[data-theme="dark"] .article-card.article-top {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(10,132,255,.2);
}

[data-theme="dark"] .article-card.article-top:hover {
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(10,132,255,.3);
}

[data-theme="dark"] .gallery-item img {
  filter: brightness(0.95);
}

[data-theme="dark"] .banner-grid .banner-item img {
  filter: brightness(0.95);
}

/* 主题切换按钮样式 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--text-2);
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--accent-bg);
  color: var(--accent);
  transform: rotate(15deg);
}

.theme-toggle .icon {
  width: 20px;
  height: 20px;
  transition: transform .4s ease, opacity .3s ease;
}

.theme-toggle .icon-sun {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
  position: absolute;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* 主题切换按钮容器 */
.theme-toggle-wrap {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.mobile-menu-btn {
  background: var(--card-2);
}
.mobile-menu-btn span {
  background: var(--text-2);
}
[data-theme="dark"] .mobile-menu-btn span {
  background: #fff;
}
[data-theme="dark"] .mobile-nav {
  background: var(--card);
  border-top-color: var(--border);
}
[data-theme="dark"] .mobile-nav a {
  border-bottom-color: var(--border-soft);
  color: var(--text-2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro SC",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ===== 顶部导航 · 苹果毛玻璃风格 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0071e3 0%, #00b4ff 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  box-shadow: var(--shadow-accent);
}
.site-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.site-title a { color: var(--text); text-decoration: none; }
.site-title a:hover { color: var(--accent); text-decoration: none; }
.site-subtitle { display: none; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.header-nav a:hover { background: rgba(0,0,0,.05); color: var(--text); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--card-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  transition: all .3s ease;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text-2);
  border-radius: 1px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-btn.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-smooth);
  background: var(--card);
  border-top: 1px solid var(--border-soft);
}
.mobile-nav.mobile-nav-open {
  max-height: 200px;
}
.mobile-nav a {
  display: block;
  padding: 14px 22px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
}

/* ===== 滚动公告栏 ===== */
.notice-bar {
  display: flex;
  align-items: center;
  background: var(--card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 22px;
  height: 44px;
  overflow: hidden;
  position: relative;
}
.notice-bar .notice-icon {
  background: var(--gradient-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-right: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.notice-bar .notice-icon svg {
  flex-shrink: 0;
}
.notice-bar .notice-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.notice-bar .notice-scroll {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: notice-scroll 40s linear infinite;
}
.notice-bar .notice-item {
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  padding: 0 6px;
  transition: color .2s ease;
}
.notice-bar .notice-item:hover { color: var(--accent); text-decoration: none; }
.notice-bar .notice-sep { color: var(--border); margin: 0 8px; }
@keyframes notice-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.notice-bar:hover .notice-scroll { animation-play-state: paused; }

/* ===== 横幅区域(全部平铺，不滚动) ===== */
.banner-area { padding: 28px 0 6px; }
.area-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.area-title {
  font-size: 22px; font-weight: 600; color: var(--text);
  margin: 0; letter-spacing: -.02em;
}
.area-title::before { display: none; }
.area-head .small { color: var(--text-4); font-size: 13px; }

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}
.banner-grid .banner-item {
  position: relative;
  display: block;
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.banner-grid .banner-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.banner-grid .banner-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.banner-grid .banner-item:hover::after {
  opacity: 1;
}
.banner-grid .banner-item img {
  width: 100%;
  aspect-ratio: 600 / 90;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.banner-grid .banner-item:hover img {
  transform: scale(1.02);
}
.banner-empty {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--border-soft);
  color: var(--text-4);
  border-radius: var(--r-md);
  padding: 44px;
  text-align: center;
  font-size: 14px;
}

/* ===== 排名信息(升级版) ===== */
.rank-info {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; margin: 24px 0 8px;
  background: var(--accent-bg);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 13px;
}

.rank-info-advanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: var(--r-lg);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.rank-info-advanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,113,227,0.3) 0%, transparent 50%);
}

.rank-info-advanced > * {
  position: relative;
  z-index: 1;
}

.rank-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.rank-info-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.rank-info-text strong { 
  color: #60a5fa; 
  font-weight: 60; 
}

.rank-info-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-countdown .countdown-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.rank-countdown-time {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #60a5fa;
  letter-spacing: 0.05em;
  min-width: 56px;
  text-align: center;
}

.rank-progress {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.rank-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa 0%, #818cf8 100%);
  border-radius: var(--r-pill);
  transition: width 1s linear;
}

.rank-interval {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  padding: 3px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.15);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ===== 排名徽章 ===== */
.article-card {
  position: relative;
}

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-pill);
  color: #fff;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: scale(-1) translateY(-10px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rank-badge-animate {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.rank-badge.rank-badge-1 { 
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #7c4a00;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}
.rank-badge.rank-badge-2 { 
  background: linear-gradient(135deg, #C0C0C0 0%, #9E9E9E 100%);
  color: #424242;
  box-shadow: 0 4px 16px rgba(192, 192, 192, 0.4);
}
.rank-badge.rank-badge-3 { 
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.4);
}
.rank-badge.rank-badge-other { 
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

.article-card.has-rank-badge .article-body {
  padding-top: 40px;
}

/* ===== 文章网格 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding: 14px 0 56px;
}
.article-card {
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
  display: flex; flex-direction: column;
  position: relative;
  animation: cardFadeIn 0.5s var(--ease) both;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,113,227,0.2);
}
.article-card:hover::before {
  opacity: 1;
}
.article-body { padding: 20px 22px 18px; flex: 1; display: flex; flex-direction: column; }
.article-title {
  margin: 0 0 8px;
  font-size: 17px; line-height: 1.4; font-weight: 600;
  letter-spacing: -.01em;
  transition: color 0.2s var(--ease);
}
.article-title a { color: inherit; text-decoration: none; }
.article-title a:hover { color: var(--accent); text-decoration: none; }
.article-summary {
  margin: 0 0 14px;
  color: var(--text-3);
  font-size: 14px;
  flex: 1;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 文章图片行 · 显示在描述下方，自适应宽高 */
.article-thumbs {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.article-thumbs img {
  flex: 1 1 80px;
  max-width: 120px;
  min-width: 60px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s var(--ease);
}
.article-thumbs img:hover {
  transform: scale(1.05);
}
.thumb-placeholder {
  color: var(--text-4);
  font-size: 13px;
  padding: 8px 0;
}
.article-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-4);
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.meta-date { display: inline-flex; align-items: center; gap: 5px; }
.read-more {
  font-size: 13px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 3px;
  text-decoration: none;
  transition: gap 0.2s var(--ease);
}
.read-more::after { content: "›"; font-size: 16px; font-weight: 400; }
.read-more:hover { color: var(--accent-2); text-decoration: none; gap: 6px; }

.empty-state {
  text-align: center; padding: 80px 20px; color: var(--text-4);
  background: var(--card); border-radius: var(--r-lg); margin: 20px 0 50px;
  border: 1px solid var(--border-soft);
}
.empty-state p { margin: 0 0 18px; font-size: 15px; }
.btn {
  display: inline-block; padding: 9px 22px;
  border-radius: var(--r-pill);
  background: var(--gradient-accent);
  background-size: 200% auto;
  color: #fff !important; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-accent);
}
.btn:hover { 
  background-position: right center;
  transform: translateY(-2px); 
  text-decoration: none;
  box-shadow: var(--shadow-glow);
}
.btn:active {
  transform: translateY(0);
}
.btn-sm { padding: 6px 14px; font-size: 12px; }

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

/* 卡片交错动画 */
.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }

/* 横幅入场动画 */
.banner-item {
  animation: bannerFadeIn 0.6s var(--ease) both;
}
.banner-item:nth-child(1) { animation-delay: 0.1s; }
.banner-item:nth-child(2) { animation-delay: 0.2s; }
.banner-item:nth-child(3) { animation-delay: 0.3s; }
.banner-item:nth-child(4) { animation-delay: 0.4s; }

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

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 文字选择样式 */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ===== 文章详情页 ===== */
.article-detail {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin: 28px 0 56px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.detail-title {
  font-size: 28px; margin: 0 0 12px; font-weight: 600;
  line-height: 1.3; color: var(--text); letter-spacing: -.02em;
}
.detail-meta {
  color: var(--text-4); font-size: 13px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border-soft);
  display: flex; gap: 24px; flex-wrap: wrap;
}
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin: 20px 0 32px;
}
.gallery-item img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.02); }
.detail-content { font-size: 16px; line-height: 1.85; color: var(--text-2); }
.detail-content h2, .detail-content h3 { color: var(--text); margin: 24px 0 12px; letter-spacing: -.01em; }
.detail-content p { margin: 14px 0; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 16px 0; }
.detail-content ul, .detail-content ol { padding-left: 22px; }
.detail-summary-box {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 16px 20px; margin: 28px 0;
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--text-2);
}
.back-link { margin-top: 32px; }
.back-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 500;
  text-decoration: none;
}
.back-link a:hover { color: var(--accent-2); text-decoration: none; }

/* ===== 文章详情页 - 简化版 ===== */

.article-detail-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.article-detail-simple {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-sm);
}

/* 头部区域 */
.detail-header {
  margin-bottom: 24px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-4);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-3);
}

.detail-title-simple {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.top-tag {
  margin-right: 6px;
}

.detail-meta-simple {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
  background: var(--card-2);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
}

.meta-chip svg {
  color: var(--text-4);
}

.meta-chip-muted {
  opacity: 0.8;
}

/* 摘要区域（顶部） */
.detail-summary-top {
  background: linear-gradient(135deg, rgba(0,113,227,0.08) 0%, rgba(0,180,255,0.04) 100%);
  border: 1px solid rgba(0,113,227,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-icon {
  font-size: 14px;
}

.summary-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}

/* 图片画廊 */
.detail-gallery-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.gallery-item-simple {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 0.2s ease;
}

.gallery-item-simple:hover {
  transform: scale(1.02);
}

.gallery-item-simple img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* 正文内容 */
.detail-content-simple {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 28px;
}

.detail-content-simple h2,
.detail-content-simple h3 {
  color: var(--text);
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}

.detail-content-simple h2 {
  font-size: 20px;
}

.detail-content-simple h3 {
  font-size: 18px;
}

.detail-content-simple p {
  margin: 14px 0;
}

.detail-content-simple img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.detail-content-simple ul,
.detail-content-simple ol {
  padding-left: 22px;
}

.detail-content-simple blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 16px 0;
  background: var(--card-2);
  border-radius: 0 8px 8px 0;
  color: var(--text-3);
}

/* 底部操作 */
.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.back-home,
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.back-home {
  color: var(--text-3);
  background: var(--card-2);
  border-color: var(--border-soft);
}

.back-home:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

.share-btn {
  color: #fff;
  background: var(--accent);
  border: none;
}

.share-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,113,227,0.3);
}

/* 响应式 */
@media (max-width: 768px) {
  .article-detail-wrap {
    padding: 12px 10px 30px;
  }
  
  .article-detail-simple {
    padding: 24px 20px 20px;
    border-radius: 12px;
  }
  
  .detail-title-simple {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .detail-meta-simple {
    gap: 8px;
  }
  
  .meta-chip {
    font-size: 11px;
    padding: 3px 10px;
  }
  
  .detail-summary-top {
    padding: 14px 16px;
    margin-bottom: 20px;
  }
  
  .summary-text {
    font-size: 13px;
  }
  
  .detail-content-simple {
    font-size: 14px;
    line-height: 1.8;
  }
  
  .detail-content-simple h2 {
    font-size: 18px;
  }
  
  .detail-content-simple h3 {
    font-size: 16px;
  }
  
  .detail-gallery-simple {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .gallery-item-simple img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .article-detail-simple {
    padding: 20px 16px 16px;
  }
  
  .detail-title-simple {
    font-size: 20px;
  }
  
  .breadcrumb-nav {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .detail-meta-simple {
    flex-wrap: wrap;
  }
  
  .meta-chip {
    font-size: 11px;
  }
  
  .detail-content-simple {
    font-size: 14px;
  }
  
  .detail-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .back-home,
  .share-btn {
    width: 100%;
    justify-content: center;
  }
  
  .gallery-item-simple img {
    height: 90px;
  }
}

/* 深色模式适配 */
[data-theme="dark"] .article-detail-simple {
  background: var(--card);
  border-color: var(--border);
}

[data-theme="dark"] .detail-header {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .meta-chip {
  background: var(--card-2);
  border-color: var(--border);
}

[data-theme="dark"] .detail-summary-top {
  background: linear-gradient(135deg, rgba(10,132,255,0.12) 0%, rgba(10,180,255,0.06) 100%);
  border-color: rgba(10,132,255,0.25);
}

[data-theme="dark"] .detail-content-simple blockquote {
  background: var(--card-2);
}

[data-theme="dark"] .back-home {
  background: var(--card-2);
  border-color: var(--border);
}

[data-theme="dark"] .detail-footer {
  border-top-color: var(--border);
}

[data-theme="dark"] .detail-gallery-simple {
  border-color: var(--border);
}

[data-theme="dark"] .gallery-item-simple {
  border-color: var(--border);
}

/* 过期/下架提示 */
.offline-notice {
  text-align: center; padding: 90px 20px; margin: 28px 0;
  background: var(--card); border-radius: var(--r-xl);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.offline-notice .icon { font-size: 56px; color: var(--text-4); margin-bottom: 16px; }
.offline-notice h2 { margin: 0 0 8px; font-size: 22px; color: var(--text-2); font-weight: 600; }
.offline-notice p { margin: 0 0 22px; color: var(--text-4); }

/* ===== 合作页面 ===== */
.cooperation-page {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin: 28px 0 56px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.coop-title { font-size: 26px; margin: 0 0 20px; font-weight: 600; letter-spacing: -.02em; }
.coop-content { line-height: 1.85; color: var(--text-2); font-size: 16px; }
.coop-content img { max-width: 100%; border-radius: var(--r-md); }
.coop-contact {
  margin-top: 32px; padding: 24px 26px;
  border-radius: var(--r-md);
  background: var(--accent-bg);
  border: 1px solid var(--accent-soft);
}
.coop-contact h3 { font-size: 18px; margin: 0 0 12px; color: var(--accent); font-weight: 600; }
.contact-info { color: var(--text-2); line-height: 1.8; }

/* ===== 底部 ===== */
.site-footer {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-inner .copyright { font-size: 13px; color: var(--text-4); }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3); 
  font-size: 13px;
  padding: 6px 12px; 
  border-radius: var(--r-pill);
  text-decoration: none; 
  transition: all 0.2s ease;
}
.footer-link:hover { 
  background: var(--accent-bg); 
  color: var(--accent); 
  text-decoration: none; 
}

/* 收藏按钮 */
.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.favorite-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.favorite-btn svg {
  transition: all 0.25s var(--ease);
}
.favorite-btn.favorited {
  border-color: #f43f5e;
  color: #f43f5e;
  background: #fff1f2;
}
.favorite-btn.favorited svg {
  fill: #f43f5e;
}

/* Toast 提示 */
.toast-message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 10px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--text-2);
  opacity: 0;
  transition: all 0.3s var(--ease);
  z-index: 9999;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-info { background: #6366f1; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .container { padding: 0 16px; max-width: 100%; }
  /* 头部 */
  .site-header { 
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .site-header .container { height: 52px; }
  .brand { gap: 10px; }
  .brand .logo-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
  .site-title { font-size: 16px; }
  .header-nav { display: none; }
  .header-right { gap: 6px; }
  .header-actions { gap: 4px; }
  .mobile-menu-btn { display: flex; }
  .theme-toggle {
    width: 40px;
    height: 40px;
  }
  /* 滚动公告栏 */
  .notice-bar { padding: 0 16px; height: 36px; }
  .notice-bar .notice-icon { font-size: 11px; padding: 3px 10px; margin-right: 10px; }
  .notice-bar .notice-item { font-size: 13px; }
  .notice-bar .notice-scroll { animation-duration: 30s; }
  /* 横幅区域 */
  .banner-area { padding: 18px 0 4px; }
  .area-title { font-size: 18px; }
  .banner-grid { grid-template-columns: 1fr; gap: 10px; }
  .banner-grid .banner-item img { aspect-ratio: 600 / 90; }
  /* 文章卡片 */
  .article-grid { grid-template-columns: 1fr; gap: 14px; padding: 10px 0 36px; }
  .article-body { padding: 16px 18px 14px; }
  .article-title { font-size: 16px; }
  .article-summary { font-size: 13px; -webkit-line-clamp: 2; }
  .article-thumbs img { flex: 1 1 60px; max-width: 100px; min-width: 50px; }
  .article-meta { padding-top: 10px; margin-top: 10px; }
  .read-more { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
  .read-more::after { content: "›"; font-size: 18px; margin-left: 2px; }
  /* 文章详情 */
  .article-detail, .cooperation-page { padding: 22px 18px; margin: 18px 0 40px; border-radius: 14px; }
  .detail-title { font-size: 20px; line-height: 1.35; }
  .detail-meta { gap: 14px; font-size: 12px; margin-bottom: 20px; padding-bottom: 14px; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 24px; }
  .gallery-item img { height: 120px; }
  .detail-content { font-size: 15px; line-height: 1.8; }
  .detail-content h2 { font-size: 19px; }
  .detail-content h3 { font-size: 17px; }
  .detail-content img { border-radius: 8px; }
  .coop-title { font-size: 20px; }
  .coop-content { font-size: 15px; }
  .coop-contact { padding: 18px 20px; margin-top: 24px; }
  /* 排名信息 - 移动端紧凑版 */
  .rank-info-advanced {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }
  .rank-info-left {
    width: 100%;
    justify-content: space-between;
  }
  .rank-info-text { font-size: 12px; }
  .rank-info-right {
    width: 100%;
    justify-content: space-between;
  }
  .rank-countdown-time { font-size: 22px; }
  .rank-progress { width: 80px; }
  .rank-interval { font-size: 10px; padding: 2px 8px; }
  .badge-soft { font-size: 11px; padding: 3px 10px; }
  /* 底部 */
  .site-footer { padding: 16px 0; }
  .footer-inner { justify-content: center; text-align: center; flex-direction: column; gap: 10px; }
  .footer-left { justify-content: center; }
  .footer-right { justify-content: center; }
  .footer-link { min-height: 44px; display: inline-flex; align-items: center; }
  .copy-url-btn { min-height: 44px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .site-header .container { height: 50px; }
  .brand .logo-mark { width: 32px; height: 32px; font-size: 17px; }
  .site-title { font-size: 15px; letter-spacing: -.01em; }
  .theme-toggle { width: 38px; height: 38px; }
  .mobile-menu-btn { width: 38px; height: 38px; }
  .banner-grid { gap: 8px; }
  .article-thumbs img { flex: 1 1 50px; max-width: 90px; min-width: 45px; }
  .article-title { font-size: 15px; }
  .article-summary { font-size: 13px; }
  .article-card { border-radius: var(--r-md); }
  .article-body { padding: 14px 14px 12px; }
  .detail-title { font-size: 18px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .gallery-item img { height: 180px; }
  .offline-notice { padding: 60px 16px; }
  .offline-notice .icon { font-size: 44px; }
  .offline-notice h2 { font-size: 18px; }
  .area-title { font-size: 16px; }
  .notice-bar { height: auto; min-height: 36px; }
  .notice-bar .notice-track { flex: 1; min-width: 0; }
  .btn { padding: 12px 24px; font-size: 14px; min-height: 44px; }
  .read-more { font-size: 14px; }
  .rank-info-advanced { padding: 12px 14px; }
  .rank-countdown-time { font-size: 20px; }
  .rank-progress { width: 60px; }
  .mobile-nav a { padding: 12px 16px; font-size: 14px; }
}

/* 触摸设备优化 */
@media (hover: none) {
  .article-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .article-card:active {
    transform: scale(0.98);
    transition: transform 0.1s var(--ease);
  }
  .banner-item:hover {
    transform: none;
  }
  .btn:hover {
    transform: none;
  }
  .btn:active {
    transform: scale(0.97);
    transition: transform 0.1s var(--ease);
  }
}

/* 确保所有可交互元素有足够的点击区域 */
a, button, .btn, .read-more, .footer-link, .header-nav a,
.article-card, .banner-item, .gallery-item, .coop-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 图片加载优化 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  background: linear-gradient(90deg, var(--border-soft) 25%, var(--border) 50%, var(--border-soft) 75%);
  background-size: 200% 100%;
  animation: imgLoading 1.5s infinite;
}

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

/* 图片加载完成后移除动画 */
img[loading="lazy"][src]:not([src=""]) {
  animation: none;
  background: transparent;
}

/* 横幅严格 600×90 比例 · 所有屏幕尺寸 */
.banner-grid .banner-item {
  aspect-ratio: 600 / 90;
}
.banner-grid .banner-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 600 / 90;
  object-fit: cover;
}

/* ===== 置顶文章 ===== */
.article-card.article-top {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-bg);
}
.article-card.article-top:hover {
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-bg);
}
.top-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 16px;
  vertical-align: middle;
}
.article-top .article-title {
  position: relative;
}
.article-top .article-title a {
  color: var(--accent);
}

/* 详情页置顶徽章 */
.detail-title .top-badge {
  font-size: 24px;
  margin-right: 10px;
}

/* 后台预览缩略图样式 */
.thumb-preview {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
}
.banner-thumb {
  width: 100px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: inline-block;
}

/* ===== 移动端头部安全区域适配 ===== */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}
.mobile-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== 回到顶部按钮 ===== */
.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--text-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease-smooth);
  z-index: 90;
  padding: 0;
}
.scroll-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  .scroll-to-top {
    right: 16px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

/* 移动端header紧凑模式 */
@media (max-width: 768px) {
  .site-header .container {
    height: 52px;
  }
  .site-title {
    font-size: 17px;
  }
  .brand .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 9px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .theme-toggle {
    width: 38px;
    height: 38px;
  }
}

/* 移动端触摸交互优化 */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease-smooth);
    background: var(--card);
    border-top: 1px solid var(--border-soft);
  }
  .mobile-nav.mobile-nav-open {
    max-height: 300px;
    overflow-y: auto;
  }
  .mobile-nav a {
    display: block;
    padding: 15px 22px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .mobile-nav a:last-child {
    border-bottom: none;
  }
  .mobile-nav a:hover,
  .mobile-nav a:active {
    background: var(--accent-bg);
    color: var(--accent);
    text-decoration: none;
  }
  .header-right {
    gap: 8px;
  }
  .header-actions {
    gap: 4px;
  }
}

/* 暗色模式移动端菜单优化 */
@media (max-width: 768px) {
  [data-theme="dark"] .mobile-nav {
    background: var(--card);
    border-top-color: var(--border);
  }
  [data-theme="dark"] .mobile-nav a {
    border-bottom-color: var(--border);
    color: var(--text-2);
  }
  [data-theme="dark"] .mobile-nav a:hover,
  [data-theme="dark"] .mobile-nav a:active {
    background: rgba(0,113,227,.15);
    color: var(--accent);
  }
}

/* 移动端排名信息栏优化 */
@media (max-width: 768px) {
  .rank-info-advanced {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 10px;
  }
  .rank-info-left {
    width: 100%;
    justify-content: space-between;
  }
  .rank-info-text {
    font-size: 12px;
  }
  .rank-info-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .rank-countdown-time {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
  }
  .rank-progress {
    width: 80px;
  }
}

/* 移动端banner区域紧凑化 */
@media (max-width: 768px) {
  .banner-area {
    padding: 18px 0 4px;
  }
  .area-head {
    margin-bottom: 12px;
  }
  .area-title {
    font-size: 18px;
  }
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 移动端footer紧凑化 */
@media (max-width: 768px) {
  .site-footer {
    padding: 16px 0;
    margin-top: 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    text-align: center;
  }
  .footer-link,
  .copy-url-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* 防止移动端文本自动缩放 */
.site-title, .area-title, .article-title {
  -webkit-text-size-adjust: 100%;
}

/* 移动端滚动条美化 */
@media (max-width: 768px) {
  .mobile-nav::-webkit-scrollbar {
    width: 3px;
  }
  .mobile-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
  }
}

/* 4K和大字体适配 */
@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

/* 用户偏好减少动画 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 列表式文章样式 ===== */

.article-list-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 40px;
}

.article-item-compact {
  display: block;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
}

.article-item-compact:hover {
  border-color: var(--accent);
  background: var(--card-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.article-item-compact.is-featured {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--card) 0%, rgba(0,113,227,0.03) 100%);
}

.article-item-compact.is-featured .item-title {
  font-size: 18px;
}

.article-item-compact.is-featured .item-summary {
  font-size: 14px;
  -webkit-line-clamp: 3;
}

.article-item-compact.is-pinned {
  background: linear-gradient(135deg, var(--card) 0%, rgba(255,149,0,0.06) 100%);
  border-color: rgba(255,149,0,0.3);
}

.article-item-compact.is-pinned:hover {
  border-color: #ff9500;
}

/* 排名序号 */
.rank-no {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.rank-no-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #7c4a00; }
.rank-no-2 { background: linear-gradient(135deg, #C0C0C0, #9E9E9E); color: #424242; }
.rank-no-3 { background: linear-gradient(135deg, #CD7F32, #B87333); }
.rank-no-other { background: linear-gradient(135deg, #5e5ce6, #0071e3); }

/* 主体内容 */
.item-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 36px;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-item-compact:hover .item-title a {
  color: var(--accent);
}

.pin-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  color: var(--warn);
}

.item-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章图片画廊 */
.item-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.gallery-item {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-2);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.gallery-item:hover {
  transform: scale(1.04);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-4);
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-item svg {
  opacity: 0.7;
}

.meta-more {
  margin-left: auto;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.meta-more:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.meta-more svg {
  transition: transform 0.2s ease;
}

.meta-more:hover svg {
  transform: translateX(2px);
}

/* 响应式 */
@media (max-width: 768px) {
  .article-item-compact {
    padding: 14px;
  }
  
  .item-title {
    font-size: 15px;
  }
  
  .article-item-compact.is-featured .item-title {
    font-size: 16px;
  }
  
  .item-summary {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  
  .item-gallery {
    gap: 8px;
  }
  
  .gallery-item {
    border-radius: 8px;
  }
  
  .item-meta {
    font-size: 12px;
    gap: 12px;
  }
  
  .meta-more span {
    display: none;
  }
}

@media (max-width: 480px) {
  .article-item-compact {
    padding: 12px;
  }
  
  .item-title {
    font-size: 14px;
  }
  
  .article-item-compact.is-featured .item-title {
    font-size: 15px;
  }
  
  .item-summary {
    -webkit-line-clamp: 1;
    font-size: 12px;
  }
  
  .item-gallery {
    gap: 6px;
  }
  
  .gallery-item {
    border-radius: 6px;
  }
  
  .item-meta {
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .meta-more {
    margin-left: 0;
  }
  
  .rank-no {
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* ===== 新版底部样式 ===== */
.site-footer-new {
  position: relative;
  background: var(--card);
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 48px 22px 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.footer-logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0071e3 0%, #00b4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-3);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-3);
  margin: 0 0 12px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
}

.contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  background: var(--card-2);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-4);
}

.footer-version {
  font-weight: 500;
}

/* 新版底部复制网址按钮 */
.site-footer-new .copy-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: var(--card-2);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.site-footer-new .copy-url-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.site-footer-new .copy-url-btn.copied {
  border-color: #34c759;
  color: #34c759;
  background: #e8f5e9;
}

/* ===== 新版文章/底部响应式 ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* 板块头部 */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 16px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .section-subtitle {
    font-size: 12px;
  }
  
  /* 文章网格 */
  .article-grid-modern {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 40px;
  }
  
  .article-featured .card-title {
    font-size: 18px;
  }
  
  .card-body {
    padding: 16px 18px;
  }
  
  .card-title {
    font-size: 15px;
  }
  
  .card-excerpt {
    font-size: 13px;
  }
  
  /* 排名徽章 */
  .rank-badge-new {
    width: 32px;
    height: 32px;
    right: 14px;
  }
  
  .rank-badge-new .rank-num {
    font-size: 13px;
  }
  
  /* 底部 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 24px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .card-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .card-thumbs {
    height: auto;
  }
  
  .card-thumbs img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 20px;
  }
  
  .card-image {
    aspect-ratio: 16 / 9;
  }
  
  .article-card-new {
    border-radius: var(--r-lg);
  }
  
  .card-body {
    padding: 14px 16px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .card-excerpt {
    font-size: 12px;
  }
  
  .card-link {
    font-size: 12px;
  }
}

/* 深色模式适配 */
[data-theme="dark"] .section-title {
  background: linear-gradient(135deg, #f5f5f7 0%, #0a84ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .article-card-new {
  background: var(--card);
  border-color: var(--border);
}

[data-theme="dark"] .article-card-new:hover {
  border-color: rgba(10,132,255,0.3);
}

[data-theme="dark"] .card-meta-top .meta-category {
  background: rgba(10,132,255,0.15);
  color: #0a84ff;
}

[data-theme="dark"] .footer-bg {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

[data-theme="dark"] .site-footer-new {
  background: var(--card);
  border-top-color: var(--border);
}

[data-theme="dark"] .footer-bottom {
  background: var(--card-2);
  border-top-color: var(--border);
}

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

/* 触摸设备优化 */
@media (hover: none) {
  .article-card-new:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    border-color: var(--border-soft);
  }
  
  .article-card-new:active {
    transform: scale(0.98);
    transition: transform 0.15s ease;
  }
  
  .article-card-new:hover .card-image img {
    transform: none;
  }
  
  .card-link:hover {
    gap: 4px;
  }
  
  .card-link:hover svg {
    transform: none;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
}
