/* ============================================================
   CACD 视觉增强层 V3 — 参考 nepaleconomicforum.org 现代杂志风格
   纯视觉增强，不改文字内容、不改业务逻辑、不改栏目结构
   通过 CSS 变量即可整体调色，可安全覆盖 main.css 的视觉细节
   ============================================================ */

/* ---------- 0. 设计令牌微调（更现代、更利落） ---------- */
:root {
  /* 强化主色对比，深蓝更沉稳，亮蓝更鲜明 */
  --c-primary: #4A5AFF;
  --c-primary-dark: #1E2470;
  --c-gold: #D4AF37;
  --c-gold-light: #E8C87A;
  --c-accent: #00B4D8;
  --c-ink: #1A1A2E;
  --c-muted: #5A6A7A;
  --c-line: rgba(30, 36, 112, 0.08);

  /* 更细腻的阴影层级 */
  --sh-1: 0 1px 2px rgba(20, 28, 80, 0.04), 0 2px 8px rgba(20, 28, 80, 0.05);
  --sh-2: 0 6px 20px rgba(20, 28, 80, 0.08);
  --sh-3: 0 18px 50px rgba(20, 28, 80, 0.14);
}

/* ---------- 1. 全局：标题改为更利落的无衬线（保留学术感） ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}

body {
  color: var(--c-ink);
  background: #ffffff;
}

/* 背景加入极淡的网格纹理，提升质感 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(rgba(74, 90, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ---------- 2. 顶部导航栏：更干净的悬浮感 ---------- */
.site-header {
  height: 72px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(20, 28, 80, 0.05);
}

/* ---------- 3. Hero 首屏：重构视觉焦点 ---------- */
.hero {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 85% 10%, #6B7BFF 0%, #4A5AFF 34%, #2A2F8A 72%, #1E2470 100%) !important;
}

/* 顶部柔和高光 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(255,255,255,0.14), transparent 55%),
    radial-gradient(700px 600px at 100% 120%, rgba(0,180,216,0.28), transparent 60%);
  pointer-events: none;
}

/* 金色光斑 */
.hero::after {
  content: '';
  position: absolute;
  right: -6%;
  top: 8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 65%);
  border-radius: 50%;
  animation: heroPulse 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroPulse {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(-30px, 20px) scale(1.12); opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
  padding: 40px 0;
}

/* 徽章 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 100px;
  color: #fff !important;
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}

/* 主标题 */
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.18);
}

/* 副标题 */
.hero p {
  font-size: 1.12rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.86);
  max-width: 580px;
  margin-bottom: 40px;
}

/* 按钮组 */
.hero-actions {
  gap: 16px;
}

.hero .btn {
  padding: 15px 34px;
  font-size: 0.98rem;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero .btn:hover {
  transform: translateY(-3px);
}

.hero .btn-gold {
  background: linear-gradient(135deg, #E8C87A 0%, #D4AF37 100%);
  color: #1E2470;
  box-shadow: 0 8px 28px rgba(212,175,55,0.35);
  border: none;
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: #fff;
}

/* 右侧几何装饰：随呼吸微动，增强焦点
   （V5 的装饰 div 带 inline opacity:0.08，需 !important 覆盖） */
.hero-visual {
  opacity: 0.9 !important;
  animation: heroFloat 7s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0%   { transform: translateY(-50%) translateY(0); }
  100% { transform: translateY(-50%) translateY(-18px); }
}

@media (max-width: 900px) {
  .hero-visual {
    opacity: 0.25 !important;
    right: -120px;
  }
}

/* ---------- 3b. 子页面 banner（.page-hero）：与首页 hero 统一 ---------- */
.page-hero {
  background: radial-gradient(120% 140% at 85% 10%, #6B7BFF 0%, #4A5AFF 34%, #2A2F8A 72%, #1E2470 100%) !important;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 85% -10%, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(500px 600px at 0% 130%, rgba(0,180,216,0.22), transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.page-hero .breadcrumb a:hover {
  color: #E8C87A;
}

/* ---------- 4. 统计数字区：卡片化 + 计数动画准备 ---------- */
.stats-grid {
  gap: 24px;
}

.stat-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 32px 20px;
  box-shadow: var(--sh-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}

.stat-item .stat-number {
  font-family: 'Inter', 'PingFang SC', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--c-muted);
  font-weight: 500;
}

/* ---------- 5. 区块标题：更精致的引导线 ---------- */
.section-header .section-label {
  color: var(--c-primary);
  padding-left: 32px;
}

.section-header .section-label::before {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-primary));
}

.section-header h2 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ---------- 6. 卡片：图形纹理占位 + 细腻 hover ---------- */
/* 为纯色渐变占位图增加几何纹理，模拟"内容封面" */
.item-card-image {
  position: relative;
  background-size: cover !important;
}

.item-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

/* 十一边形水印纹理叠加在占位图上 */
.item-card-image::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M182 100 L168.96 129.76 L134.11 150.01 L88.36 154.45 L46.29 141.58 L21.28 115.51 L21.28 84.49 L46.29 58.42 L88.36 45.55 L134.11 49.99 L168.96 70.24 Z' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

/* 卡片主体 */
.item-card {
  border-radius: 16px;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-1);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease;
}

.item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
}

.item-card-body {
  padding: 26px;
}

.item-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
}

.item-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  transition: color 0.25s ease;
}

.item-card:hover h3 {
  color: var(--c-primary);
}

.item-card p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.75;
}

.item-card-meta {
  font-size: 0.78rem;
  color: #9aa3b2;
}

/* 基础 card（四大支柱/合作国） */
.card {
  border-radius: 16px;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-2);
}

.card-icon {
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(74,90,255,0.25);
}

.card h3 {
  font-weight: 700;
}

.card-link {
  color: var(--c-primary);
}

/* ---------- 7. 东盟合作网络卡片 ---------- */
.asean-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.asean-card strong {
  font-size: 1.05rem;
}

.asean-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: rgba(74,90,255,0.2);
}

/* ---------- 8. CTA 区块：更强质感 ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}

/* ---------- 9. 按钮统一优化 ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-dark {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.btn-outline-dark:hover {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(74,90,255,0.24);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  background: #171C4A;
}

/* ---------- 11. 回到顶部按钮 ---------- */
.back-to-top {
  background: var(--c-primary);
  box-shadow: 0 6px 18px rgba(74,90,255,0.35);
}

.back-to-top:hover {
  background: var(--c-accent);
}

/* ---------- 12. 平滑滚动入场动画（配合 main.js 的 reveal） ---------- */
.card, .item-card, .programme-card, .stat-item {
  will-change: transform, opacity;
}

/* ---------- 13. 响应式微调 ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 520px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}
