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

:root {
  --primary: #008080;
  --primary-dark: #006666;
  --primary-light: #00a0a0;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 导航栏 ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.nav-logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 5px;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ===== 主容器 ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  flex: 1;
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, #008080, #005566);
  color: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero-subtitle { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== Section ===== */
.section { margin-bottom: 40px; }

.section-title {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.section-desc { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.card-body { padding: 20px; }
.card-title { font-size: 17px; margin-bottom: 8px; }
.card-text { color: var(--text-light); font-size: 14px; margin-bottom: 10px; }
.card-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #999; flex-wrap: wrap; }

/* ===== 标签 ===== */
.tag {
  background: rgba(0,128,128,0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* ===== 快速通道 ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.quick-link {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.quick-link:hover { transform: translateY(-3px); }
.quick-link-icon { font-size: 36px; margin-bottom: 10px; }
.quick-link-text { font-size: 15px; color: var(--text); }

/* ===== 留言板 ===== */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 30px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

.message-list { display: flex; flex-direction: column; gap: 16px; }

.message-item {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.message-content { flex: 1; }
.message-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.message-name { font-weight: 600; font-size: 15px; }
.message-date { font-size: 12px; color: #999; }
.message-text { color: var(--text-light); font-size: 14px; }

/* ===== 博客 ===== */
.blog-list { display: flex; flex-direction: column; gap: 20px; }

.blog-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.blog-title { font-size: 18px; margin-bottom: 8px; }
.blog-title a { color: var(--text); text-decoration: none; }
.blog-title a:hover { color: var(--primary); }
.blog-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #999; margin-bottom: 10px; flex-wrap: wrap; }
.blog-summary { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }

.blog-detail { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin: 20px 0; }
.blog-detail-title { font-size: 26px; margin-bottom: 10px; }
.blog-detail-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; font-size: 13px; color: #999; flex-wrap: wrap; }
.blog-detail-content p { margin-bottom: 12px; line-height: 1.8; color: #444; }
.blog-nav { text-align: center; margin-top: 20px; }

.back-link { display: inline-block; color: var(--primary); text-decoration: none; margin-bottom: 16px; font-size: 14px; }
.back-link:hover { text-decoration: underline; }

/* ===== 相册 ===== */
.gallery-upload-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.gallery-upload-form .form-group { flex: 1; min-width: 200px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 30px 12px 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title { display: block; font-size: 14px; font-weight: 600; }
.gallery-date { display: block; font-size: 11px; opacity: 0.8; margin-bottom: 6px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }

/* ===== 小游戏 ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.game-card:hover { transform: translateY(-3px); }
.game-icon { font-size: 48px; margin-bottom: 12px; }
.game-card h3 { font-size: 20px; margin-bottom: 8px; }
.game-card p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }

.game-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.game-status { font-size: 16px; font-weight: 600; }
.game-controls { display: flex; gap: 8px; }
.game-turn { font-size: 18px; }

.game-board-container { display: flex; justify-content: center; margin: 20px 0; }
#board { border-radius: 8px; box-shadow: var(--shadow); cursor: pointer; max-width: 100%; }

.game-result {
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.game-result p { font-size: 24px; margin-bottom: 16px; color: var(--primary); }
.game-hint { text-align: center; color: var(--text-light); font-size: 14px; margin-top: 16px; }

/* ===== 2048 ===== */
.game-2048-container { display: flex; justify-content: center; margin: 20px 0; }

.grid-2048 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #bbada0;
  padding: 8px;
  border-radius: 8px;
  width: 360px;
  height: 360px;
}

.tile-2048 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border-radius: 6px;
  background: #cdc1b4;
  color: #776e65;
  transition: all 0.1s;
}

.tile-2 { background: #eee4da; }
.tile-4 { background: #ede0c8; }
.tile-8 { background: #f2b179; color: #fff; }
.tile-16 { background: #f59563; color: #fff; }
.tile-32 { background: #f67c5f; color: #fff; }
.tile-64 { background: #f65e3b; color: #fff; }
.tile-128 { background: #edcf72; color: #fff; font-size: 22px; }
.tile-256 { background: #edcc61; color: #fff; font-size: 22px; }
.tile-512 { background: #edc850; color: #fff; font-size: 22px; }
.tile-1024 { background: #edc53f; color: #fff; font-size: 18px; }
.tile-2048 { background: #edc22e; color: #fff; font-size: 18px; }

/* ===== Alert ===== */
.alert {
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error { background: #ffe0e0; color: #c0392b; border: 1px solid #e74c3c; }

/* ===== Footer ===== */
.footer {
  background: #2c3e50;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  margin-top: auto;
}

.footer-content { max-width: 1100px; margin: 0 auto; }

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 10px;
    gap: 2px;
  }
  .nav-menu.show { display: flex; }
  .nav-menu a { padding: 12px 16px; }

  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 24px; }

  .gallery-upload-form { flex-direction: column; }

  .grid-2048 { width: 300px; height: 300px; }
  .tile-2048 { font-size: 20px; }
}

/* ========================================================
   首页精美样式
   ======================================================== */

/* ===== Hero 渐变动画区 ===== */
.hero-pro {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  margin: -30px -20px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #0a2e36, #008080, #005566, #0d4f4f, #1a6b6b);
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 粒子背景 */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

.hero-particles span:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 20%; animation-duration: 22s; animation-delay: 2s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { left: 35%; animation-duration: 16s; animation-delay: 4s; width: 8px; height: 8px; }
.hero-particles span:nth-child(4) { left: 50%; animation-duration: 25s; animation-delay: 0s; }
.hero-particles span:nth-child(5) { left: 60%; animation-duration: 20s; animation-delay: 3s; width: 3px; height: 3px; }
.hero-particles span:nth-child(6) { left: 70%; animation-duration: 14s; animation-delay: 6s; }
.hero-particles span:nth-child(7) { left: 80%; animation-duration: 24s; animation-delay: 1s; width: 5px; height: 5px; }
.hero-particles span:nth-child(8) { left: 88%; animation-duration: 19s; animation-delay: 5s; }
.hero-particles span:nth-child(9) { left: 95%; animation-duration: 17s; animation-delay: 2s; width: 7px; height: 7px; }
.hero-particles span:nth-child(10) { left: 45%; animation-duration: 21s; animation-delay: 7s; width: 4px; height: 4px; }

@keyframes floatUp {
  0% { transform: translateY(620px) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

.hero-content-pro {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 14px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title-pro {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-line-1 {
  display: block;
  margin-bottom: 4px;
}

.hero-line-1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4ade80, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typing {
  display: block;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  min-height: 32px;
}

.cursor {
  animation: blink 0.8s step-end infinite;
  color: #4ade80;
}

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

.hero-subtitle-pro {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-desc {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.8;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons-pro {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-family: inherit;
  font-weight: 600;
}

.btn-pro-primary {
  background: #008080;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 128, 128, 0.4);
}
.btn-pro-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0, 128, 128, 0.5); background: #006666; }

.btn-pro-glow {
  background: linear-gradient(135deg, #4ade80, #34d399);
  color: #0a2e36;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}
.btn-pro-glow:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(74, 222, 128, 0.5); }

.btn-pro-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.btn-pro-outline:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

.btn-pro-lg { padding: 14px 36px; font-size: 16px; }

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: center;
  animation: fadeIn 1s ease 1.5s both;
}

.scroll-arrow {
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin: 8px auto 0;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ===== 统计区 ===== */
.stats-section { margin-bottom: 60px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #008080, #4ade80);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-4px); }
.stat-card:hover::before { transform: scaleX(1); }

.stat-icon { font-size: 32px; margin-bottom: 10px; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #008080;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: var(--text-light); }

/* ===== 功能展示区 ===== */
.features-section { margin-bottom: 60px; }

.section-header { text-align: center; margin-bottom: 36px; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: #008080;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title-pro { font-size: 28px; color: var(--text); margin-bottom: 8px; }
.section-desc-pro { color: var(--text-light); font-size: 15px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.feature-blue::after { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.feature-green::after { background: linear-gradient(90deg, #10b981, #34d399); }
.feature-orange::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.feature-purple::after { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 28px;
  transition: transform 0.3s;
}

.feature-blue .feature-icon-wrap { background: rgba(59, 130, 246, 0.1); }
.feature-green .feature-icon-wrap { background: rgba(16, 185, 129, 0.1); }
.feature-orange .feature-icon-wrap { background: rgba(245, 158, 11, 0.1); }
.feature-purple .feature-icon-wrap { background: rgba(139, 92, 246, 0.1); }

.feature-card:hover .feature-icon-wrap { transform: scale(1.1) rotate(-5deg); }

.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.feature-link {
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.3s;
}
.feature-blue .feature-link { color: #3b82f6; }
.feature-green .feature-link { color: #10b981; }
.feature-orange .feature-link { color: #f59e0b; }
.feature-purple .feature-link { color: #8b5cf6; }

/* 光泽扫过 */
.feature-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
  pointer-events: none;
}

.feature-card:hover .feature-shine { left: 100%; }

/* ===== 最新日志区 ===== */
.latest-section { margin-bottom: 60px; }

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.latest-card {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.latest-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

.latest-number {
  font-size: 42px;
  font-weight: 800;
  color: rgba(0, 128, 128, 0.15);
  line-height: 1;
  flex-shrink: 0;
}

.latest-body { flex: 1; }
.latest-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; color: #999; }
.latest-tag {
  background: rgba(0,128,128,0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.latest-body h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.latest-card:hover h3 { color: var(--primary); }
.latest-body p { color: var(--text-light); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.latest-readmore { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ===== CTA 召唤区 ===== */
.cta-section {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a2e36, #008080, #005566);
  background-size: 200% 200%;
  animation: heroGradient 10s ease infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 50px 30px;
  color: #fff;
}

.cta-content h2 { font-size: 28px; margin-bottom: 12px; font-weight: 800; }
.cta-content p { font-size: 15px; opacity: 0.85; line-height: 1.8; margin-bottom: 24px; }

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card-hidden { opacity: 0; transform: translateY(24px); }
.card-show { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-pro { min-height: 520px; margin: -20px -15px 30px; }
  .hero-title-pro { font-size: 26px; }
  .hero-typing { font-size: 18px; }
  .hero-desc { font-size: 13px; }
  .hero-buttons-pro { flex-direction: column; align-items: center; }
  .btn-pro { width: 80%; justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 20px 12px; }
  .stat-num { font-size: 28px; }

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

  .latest-grid { grid-template-columns: 1fr; }
  .latest-card { flex-direction: column; }
  .latest-number { font-size: 32px; }

  .cta-content h2 { font-size: 22px; }
}


/* ===== 农业信息报告CTA按钮 ===== */
.nav-cta {
  background: linear-gradient(135deg, #f39c12, #e67e22) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #e67e22, #d35400) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.5);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4); }
  50% { box-shadow: 0 2px 16px rgba(230, 126, 34, 0.7); }
}

/* 移动端CTA按钮适配 */
@media (max-width: 768px) {
  .nav-cta {
    margin-top: 8px;
    display: inline-block;
  }
}

/* ===== Hero区 - 每日农业信息报告横幅 ===== */
.hero-report-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(243,156,18,0.95), rgba(230,126,34,0.95));
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-top: 22px;
  box-shadow: 0 4px 20px rgba(230,126,34,0.45);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: float-up 0.6s ease-out, banner-glow 2.5s ease-in-out infinite 0.6s;
}

.hero-report-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.hero-report-banner:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(230,126,34,0.6);
}

.report-banner-icon {
  font-size: 22px;
  line-height: 1;
}

.report-banner-label {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.report-banner-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.report-banner-arrow {
  font-size: 18px;
  transition: transform 0.3s;
}

.hero-report-banner:hover .report-banner-arrow {
  transform: translateX(4px);
}

@keyframes float-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes banner-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(230,126,34,0.45); }
  50% { box-shadow: 0 4px 30px rgba(230,126,34,0.75); }
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}