/* ============================================================
   PAIC2027 杭州湾·国际物理AI大会 — 全局样式系统
   风格：白底亮色科技风 — 简洁、专业、高可读性
   白色背景 + 深色文字 + 蓝紫/琥珀渐变强调色
   ============================================================ */

/* ---------- CSS 自定义属性 ---------- */
:root {
  /* 浅色基底 */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f7f8fa;
  --color-bg-tertiary: #f0f2f5;
  --color-bg-card: #ffffff;
  --color-bg-elevated: #ffffff;

  /* 强调色系（紫→蓝→黄渐变，黄色占比较少） */
  --color-cyan: #8b5cf6;
  --color-cyan-rgb: 139, 92, 246;
  --color-cyan-dim: #7c3aed;
  --color-cyan-bright: #a78bfa;
  --color-cyan-light: rgba(139, 92, 246, 0.06);

  --color-blue: #3b82f6;
  --color-blue-rgb: 59, 130, 246;
  --color-blue-dim: #2563eb;
  --color-blue-bright: #60a5fa;
  --color-blue-light: rgba(59, 130, 246, 0.06);

  --color-yellow: #fbbf24;
  --color-yellow-rgb: 251, 191, 36;
  --color-yellow-dim: #f59e0b;
  --color-yellow-light: rgba(251, 191, 36, 0.04);

  /* 文字 — 高可读性深色 */
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #2d3748;
  --color-text-dim: #718096;
  --color-text-muted: #a0aec0;
  --color-text-inverse: #ffffff;

  /* 边框 & 分割线 */
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-accent: rgba(139, 92, 246, 0.18);
  --color-border-strong: rgba(139, 92, 246, 0.28);

  /* 卡片/面板 */
  --color-holo-bg: #ffffff;
  --color-holo-border: rgba(0, 0, 0, 0.07);
  --color-holo-glow: rgba(139, 92, 246, 0.04);
  --color-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --color-card-shadow-hover: 0 8px 30px rgba(139, 92, 246, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);

  /* 字体 */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 间距 */
  --section-gap: 100px;
  --container-max: 1400px;
  --navbar-height: 72px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* 过渡 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  overflow-x: hidden;
  min-height: 100dvh;
  max-width: 100vw;
}

/* 通用内容容器约束 */
.section-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 60px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section-container {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

a {
  color: var(--color-cyan);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* 自定义滚动条 — 蓝紫渐变风格 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-cyan), var(--color-blue));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-cyan-bright), var(--color-blue-bright));
}

/* 选中文字 */
::selection {
  background: rgba(139, 92, 246, 0.15);
  color: var(--color-text-primary);
}

/* 通用面板 */
.holo-panel {
  background: var(--color-holo-bg);
  border: 1px solid var(--color-holo-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.holo-panel:hover {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.06), var(--color-card-shadow-hover);
}
/* 面板内嵌光边 */
.holo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(139, 92, 246, 0.04), inset 0 -1px 0 rgba(59, 130, 246, 0.03);
}

/* 表单输入统一样式 */
.holo-input {
  font-family: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  font-size: 14px;
  color: #1a1a2e;
  background: rgba(247, 248, 250, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.holo-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  background: #ffffff;
}
.holo-input::placeholder {
  color: #a0aec0;
}
.holo-input:hover {
  border-color: rgba(139, 92, 246, 0.3);
}
textarea.holo-input {
  line-height: 1.6;
  resize: vertical;
}
select.holo-input {
  appearance: auto;
  cursor: pointer;
}

/* 发光按钮 — 浅色版 */
.btn-glow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
  color: var(--color-cyan);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: box-shadow 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn-glow:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.12), 0 0 40px rgba(139, 92, 246, 0.04);
  color: var(--color-cyan-bright);
}
.btn-glow:active {
  transform: scale(0.98);
}

/* 模块标题 — 蓝紫渐变字体 */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #8b5cf6 20%, #3b82f6 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}
.section-title .accent {
  color: var(--color-cyan);
}
/* 标题下划线 — 宽度匹配文字 */
.section-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
  margin-top: 12px;
  border-radius: 2px;
}

/* 文字渐变 */
.text-gradient {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 图片占位符 */
.img-placeholder {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), transparent 60%);
  pointer-events: none;
}

/* ─── 科技感动效 ─── */

/* 扫描线动画 */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* 横向扫描光带（用于卡片图片） */
@keyframes scan-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 光晕脉冲 */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 旋转扫描 */
@keyframes rotate-scan {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 霓虹呼吸 */
@keyframes neon-breathe {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 4px rgba(139,92,246,0.3)); }
  50% { opacity: 1; filter: drop-shadow(0 0 10px rgba(139,92,246,0.5)); }
}

/* 光纤流动 */
@keyframes fiber-flow {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

/* 涟漪扩散 */
@keyframes ripple-expand {
  0% { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}

/* 全息扫描光带 */
@keyframes holo-scan {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* 渐变色流动 */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 数据流粒子 */
@keyframes data-dot-flow {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100%); }
}

/* 边框流光 */
@keyframes border-glow-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── 交互效果类 ─── */

/* 文字hover发光 */
.text-hover-glow {
  transition: text-shadow 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.text-hover-glow:hover {
  color: var(--color-cyan);
}

/* 图片全息扫描层 */
.img-holo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  overflow: hidden;
}
.img-holo-overlay::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(139,92,246,0.06) 40%,
    rgba(139,92,246,0.1) 50%,
    rgba(139,92,246,0.06) 60%,
    transparent 100%
  );
  animation: holo-scan 2.5s linear infinite;
}
.img-holo-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent, transparent 2px,
      rgba(139,92,246,0.02) 2px, rgba(139,92,246,0.02) 4px
    );
}
.img-hover-group:hover .img-holo-overlay,
.img-hover-trigger:hover .img-holo-overlay {
  opacity: 1;
}

/* 像素波纹 */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.3), transparent);
  animation: ripple-expand 0.7s ease-out forwards;
  pointer-events: none;
}

/* 边框渐变流动 */
.border-flow {
  position: relative;
  border-radius: inherit;
}
.border-flow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #fbbf24, #8b5cf6);
  background-size: 300% 300%;
  animation: gradient-flow 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.border-flow:hover::before {
  opacity: 1;
}

/* ─── 数据统计卡片悬停 ─── */
.stat-card:hover .stat-card-glow { opacity: 1 !important; }
.stat-card:hover .stat-card-aura { opacity: 1 !important; }
.stat-card:hover {
  border-color: rgba(139,92,246,0.2) !important;
  box-shadow: 0 8px 32px rgba(139,92,246,0.08), 0 0 40px rgba(139,92,246,0.03);
}
.stat-card .stat-card-glow { animation: none; }
.stat-card:hover .stat-card-glow { animation: gradient-flow 2s linear infinite; }

/* ─── 事件/资讯卡片悬停 ─── */
.event-card, .news-card {
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}
.event-card:hover, .news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.25) !important;
  box-shadow: 0 12px 40px rgba(139,92,246,0.08), 0 0 30px rgba(139,92,246,0.03) !important;
}

/* ─── 通用悬停微交互 ─── */
.hover-lift {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
}

/* ─── 展馆卡片悬停增强 ─── */
.hall-card-inner:hover {
  border-color: rgba(139,92,246,0.3) !important;
  box-shadow: 0 8px 32px rgba(139,92,246,0.1), 0 0 30px rgba(139,92,246,0.04) !important;
}

/* 性能优化：减少动画对布局的影响 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Import template.css - extracted inline styles */
@import url("template.css");
