:root {
  --bg: #fff7f0;
  --text: #3b2f2f;
  --accent: #ff9aa2;
  --accent2: #fbc687;
  --accent3: #a0d2eb;
  --card: #ffffff;
  --shadow: rgba(0, 0, 0, .08);
  --shadow-heavy: rgba(0, 0, 0, .12);
  --brand: #6c5b7b;
  --success: #88d3b0;
  --warning: #ffb347;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --top-notice-height: 0px;
  --bg-pattern: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7f0 0%, #fff0f6 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: var(--bg-pattern);
  background-repeat: repeat;
  background-size: 260px auto;
  opacity: 0.10;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* 加载动画 */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: var(--bg);
}

.loader-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 1200px at 10% 10%, #fff0f6 0%, transparent 50%), 
              radial-gradient(1000px 1000px at 90% 90%, #fff7f0 0%, transparent 45%), 
              #fff;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px var(--shadow-heavy);
}

.loader-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  animation: spin 2s linear infinite;
  position: relative;
  overflow: hidden;
}

.loader-avatar::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--card);
  border-radius: 16px;
}

.loader-text {
  font-weight: 600;
  font-size: 1.1rem;
}

#loader-cancel {
  position: absolute;
  bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 版权声明栏 - 修复重叠问题 */
#top-notice-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

#top-notice {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notice-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.notice-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.notice-text {
  flex: 1;
  min-width: 200px;
}

.notice-msg {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
}

.notice-msg:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

#notice-close {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 0.5rem;
}

.notice-shadow {
  position: absolute;
  inset: auto 0 -6px 0;
  height: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent);
}

/* 顶栏优化 */
#site-header {
  position: sticky;
  top: var(--top-notice-height, 0px);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  box-shadow: 0 4px 12px var(--shadow);
  z-index: 990;
  margin-top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 移除动画，改为静态logo */
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  /* 移除动画 */
}

/* 时间线切换按钮 */
.timeline-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #0b2e3d;
  display: none; /* 默认隐藏，移动端显示 */
}

#top-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(160, 210, 235, 0.1);
}

.nav-link.active {
  background: var(--accent3);
  color: #0b2e3d;
  font-weight: 700;
}

.nav-link span {
  display: inline-block;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

#site-fav-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* 移动端时间线侧边栏 */
.mobile-timeline {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--card);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  display: none;
  display: none;
  flex-direction: column;
}

.mobile-timeline.active {
  transform: translateX(0);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.timeline-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.timeline-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 主布局 */
#layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
  min-height: calc(100vh - 200px);
}

/* 桌面端时间线 */
.desktop-timeline {
  position: sticky;
  top: 120px;
  align-self: start;
  background: var(--card);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 8px 24px var(--shadow);
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.timeline-title {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-left: 0.5rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-timeline .timeline-list {
  flex: 1;
  padding: 0.75rem 1rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.timeline-item {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.timeline-item:hover {
  background: rgba(255, 154, 162, 0.1);
  border-color: var(--accent);
}

.timeline-item.active {
  background: var(--accent2);
  color: #4b2e09;
  font-weight: 700;
  border-color: var(--accent2);
}

#main {
  min-height: 60vh;
  position: relative;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

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

/* 瀑布流布局 - 核心改进 */
#masonry-container {
  position: relative;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.year-separator {
  grid-column: 1 / -1;
  position: relative;
  margin: 2rem 0 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.year-separator-line {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  background-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.year-separator-label {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px var(--shadow);
}

@media (min-width: 1024px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.masonry-item {
  break-inside: avoid;
  background: var(--card);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  animation: itemAppear 0.5s ease forwards;
  will-change: transform, opacity;
}

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

.masonry-item.loaded {
  animation: itemAppear 0.5s ease forwards;
}

.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-heavy);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(90deg, rgba(255, 154, 162, 0.05), rgba(160, 210, 235, 0.05));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.card-year {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f8f8, #f0f0f0);
  min-height: 200px;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  object-fit: contain;
  background: transparent;
}

.masonry-item:hover .card-img {
  transform: scale(1.02);
}

.image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 0;
}

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

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-mini {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  background: var(--accent3);
  color: #0b2e3d;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-mini:hover {
  background: var(--accent);
  color: white;
}

.btn-like {
  background: var(--accent);
  color: white;
}

.btn-like:hover {
  background: #ff7a86;
}

.badge {
  font-size: 0.8rem;
  background: var(--accent2);
  color: #4b2e09;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

.loading-indicator {
  text-align: center;
  padding: 2rem;
  display: none;
}

.loading-indicator.active {
  display: block;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(160, 210, 235, 0.3);
  border-top-color: var(--accent3);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text);
  opacity: 0.7;
}

/* 新版灯箱 - 完全响应式 */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9998;
}

.lightbox.active {
  display: block;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.lightbox-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(90deg, var(--card), rgba(160, 210, 235, 0.1));
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lightbox-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.lightbox-year {
  color: var(--accent);
  font-weight: 600;
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
}

.lightbox-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.image-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(160, 210, 235, 0.3);
  border-top-color: var(--accent3);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.lightbox-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent3);
  color: #0b2e3d;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.control-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.control-btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  color: white;
  font-size: 0.9rem;
}

.control-btn span {
  display: inline-block;
}

.control-btn.active {
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 154, 162, 0.3);
}

.lightbox-compare {
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1rem;
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.compare-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.compare-toggle:hover {
  color: var(--accent);
}

.compare-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.compare-count {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.compare-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  max-height: 120px;
  transition: max-height 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(0, 0, 0, 0.1);
}

.compare-strip.collapsed {
  max-height: 0;
  overflow: hidden;
  padding: 0;
}

.compare-strip::-webkit-scrollbar {
  height: 6px;
}

.compare-strip::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.compare-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.compare-item {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition);
}

.compare-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.compare-item.active {
  border-color: var(--accent2);
  box-shadow: 0 4px 12px rgba(251, 198, 135, 0.3);
}

.compare-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fancybox-compare {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
}

.fancybox-compare .compare-strip {
  max-height: 96px;
}

/* 自定义浮动工具按钮已移除，统一使用fancybox原生Toolbar */

/* 二维码模态框 */
#qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

#qr-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.qr-container {
  position: relative;
  background: var(--card);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  width: min(400px, 90vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.qr-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

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

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: white;
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  margin: 0 auto 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.qr-hint {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.9rem;
}

.qr-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.qr-btn {
  flex: 1;
  justify-content: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #4b2e09;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-illustration {
  width: 200px;
  height: auto;
  border-radius: var(--border-radius);
  display: block;
  object-fit: contain;
}

.empty-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.empty-hint {
  color: var(--text);
  opacity: 0.6;
  max-width: 300px;
}

/* 关于页面 */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px var(--shadow);
  align-items: center;
}

.about-illustration {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 26px var(--shadow-heavy);
}

.about-content h2 {
  margin-bottom: 1rem;
  color: var(--brand);
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(160, 210, 235, 0.1);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.feature:hover {
  background: rgba(160, 210, 235, 0.2);
  transform: translateY(-2px);
}

.feature i {
  font-size: 1.5rem;
  color: var(--accent3);
}

.feature span {
  font-size: 0.9rem;
  font-weight: 600;
}

.about-section {
  margin-top: 2rem;
  background: var(--card);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 6px 18px var(--shadow);
}

.about-section h3 {
  margin-bottom: 0.75rem;
  color: var(--brand);
}

.about-section p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.about-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.faq-item {
  background: rgba(160, 210, 235, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
}

.faq-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.about-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 154, 162, 0.6);
  padding-bottom: 2px;
}

.about-link:hover {
  color: var(--accent2);
  border-bottom-color: rgba(251, 198, 135, 0.8);
}

/* 页脚 */
#footer {
  background: var(--card);
  box-shadow: 0 -4px 12px var(--shadow);
  padding: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 980;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.powered {
  font-weight: 700;
  color: var(--brand);
}

.copyright {
  opacity: 0.8;
  font-size: 0.9rem;
      font-weight: 700;
    color: var(--brand);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

#footer-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  transition: var(--transition);
}

#footer-top:hover {
  color: var(--accent2);
}

/* 移动端优化 */
@media (max-width: 768px) {
  #top-notice {
    padding: 0.5rem;
  }
  
  .notice-content {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .notice-msg {
    width: 100%;
    text-align: center;
  }
  
  #site-header {
    padding: 0.75rem;
  }
  
  /* 显示时间线切换按钮 */
  .timeline-toggle {
    display: flex;
  }
  
  /* 显示移动端时间线 */
  .mobile-timeline {
    display: block;
  }
  
  /* 隐藏桌面端时间线 */
  .desktop-timeline {
    display: none;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  
  .nav-link i {
    font-size: 1.2rem;
    margin: 0;
  }
  
  #layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem auto;
    padding: 0 0.75rem;
  }
  
  .lightbox-container {
    border-radius: 0;
  }
  
  .lightbox-controls {
    flex-wrap: wrap;
  }
  
  .control-btn span {
    display: none;
  }
  
  .control-btn {
    padding: 0.75rem;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  
  .control-btn i {
    font-size: 1.2rem;
    margin: 0;
  }
  
  .about-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: center;
  }
  
  .about-illustration {
    max-width: 220px;
    margin: 0 auto;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .compare-item {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox-header {
    padding: 0.75rem;
  }
  
  .lightbox-body {
    padding: 0.75rem;
  }
  
  .lightbox-controls {
    gap: 0.5rem;
  }
  
  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .control-group {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  
  .qr-container {
    padding: 1.5rem;
  }
  
  .qr-image {
    width: 180px;
    height: 180px;
  }
}

/* 触控优化 */
@media (hover: none) and (pointer: coarse) {
  .masonry-item:hover {
    transform: none;
  }
  
  button:hover {
    transform: none;
  }
  
  .timeline-item:hover,
  .compare-item:hover,
  .feature:hover {
    transform: none;
  }
  
  /* 增加触控区域 */
  .btn-mini,
  .control-btn,
  .lightbox-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .card-img {
    cursor: pointer;
  }
  
  /* 移除hover效果 */
  .masonry-item:hover .card-img {
    transform: none;
  }
  
  /* 优化图片缩放体验 */
  .lightbox-image {
    touch-action: pan-x pan-y pinch-zoom;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a2e;
    --text: #e6e6e6;
    --card: #2d2d44;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
  }
  
  body {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  }
  
  #top-notice {
    background: linear-gradient(90deg, rgba(255, 154, 162, 0.25), rgba(251, 198, 135, 0.25));
    color: #ffeef5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  }
  
  .notice-msg {
    background: rgba(255, 255, 255, 0.08);
    color: #ffeef5;
  }
  
  #notice-close {
    background: rgba(0, 0, 0, 0.4);
  }
  
  .notice-shadow {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
  }
  
  .about-section {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
  }
  
  .faq-item {
    background: rgba(255, 255, 255, 0.03);
  }
  
  .about-link {
    border-bottom-color: rgba(255, 154, 162, 0.9);
  }
  
  .loader-bg {
    background: radial-gradient(1200px 1200px at 10% 10%, #16213e 0%, transparent 50%), 
                radial-gradient(1000px 1000px at 90% 90%, #1a1a2e 0%, transparent 45%), 
                #0f0f1a;
  }
  
  .lightbox-image-container {
    background: linear-gradient(135deg, #2d2d44, #1a1a2e);
  }
  
  .card-image-container {
    background: linear-gradient(180deg, #2d2d44, #1a1a2e);
  }
}
