/* 奇迹广告 (TCL Signs) — 全局样式 / Global Styles
   色值来源：奇迹广告网站.xlsx — Section 1: Color Palette (topchannelletters.com audit) */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&family=Baloo+2:wght@700;800&family=Bebas+Neue&display=swap');

:root {
  /* Brand — Orange (CTA / action) */
  --color-brand-primary: #F97316;
  --color-brand-primary-dark: #C2410C;
  --color-brand-primary-light: #FDBA74;
  --color-brand-primary-soft: #FFF7ED;

  /* Accent — Purple (narrative / decoration) */
  --color-accent-primary: #7B4591;
  --color-accent-primary-dark: #522E61;
  --color-accent-primary-light: #A16AB8;
  --color-accent-primary-soft: #F4EEF7;
  --color-accent-bg-dark: #231429;
  --color-accent-text: #40244C;
  --color-accent-border: #D3BADE;

  /* Neutral */
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  --color-border: #E5E7EB;
  --color-bg: #FFFFFF;
  --color-bg-muted: #F9FAFB;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg);
}

.font-display {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* Dark "spotlight" sections — Hero / Footer / final CTA.
   决策：整站以白色为主背景，深紫 (#231429) 只用在需要产品发光效果+强烈品牌感的区块 */
.section-dark {
  background: var(--color-accent-bg-dark);
  color: #FFFFFF;
}

/* Hover glow — 卡片/按钮标准动效（用CSS transition替代GSAP，减少依赖） */
.hover-glow {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-glow:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.25);
}
.hover-glow-accent:hover {
  box-shadow: 0 12px 32px rgba(123, 69, 145, 0.35);
}

/* Scroll reveal target state (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav underline active state */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--color-brand-primary);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

/* Placeholder image blocks — 素材未到位前的占位视觉 */
.placeholder-block {
  background: repeating-linear-gradient(45deg, var(--color-accent-primary-soft), var(--color-accent-primary-soft) 10px, #ffffff 10px, #ffffff 20px);
  border: 1px dashed var(--color-accent-border);
  color: var(--color-accent-text);
}

/* Placeholder image blocks — 黑底内页版（2026-07-07 内页统一改黑底后新增） */
.placeholder-block-dark {
  background: repeating-linear-gradient(45deg, rgba(123, 69, 145, 0.18), rgba(123, 69, 145, 0.18) 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

/* Neural-noise 近似效果（CSS-only，参考 21st.dev/@aliimam/neural-noise）
   用多个模糊光晕块叠加漂移动画，营造"流动噪声光场"氛围，替代真实WebGL shader。
   零依赖，GPU开销极小；尊重 prefers-reduced-motion。 */
.noise-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.noise-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
}
.noise-blob--1 {
  width: 32rem; height: 32rem;
  top: -8rem; left: -6rem;
  background: radial-gradient(circle, var(--color-brand-primary) 0%, transparent 70%);
  animation: noise-drift-1 18s ease-in-out infinite;
}
.noise-blob--2 {
  width: 26rem; height: 26rem;
  bottom: -6rem; right: -4rem;
  background: radial-gradient(circle, var(--color-accent-primary-light) 0%, transparent 70%);
  animation: noise-drift-2 22s ease-in-out infinite;
}
.noise-blob--3 {
  width: 20rem; height: 20rem;
  top: 30%; left: 45%;
  background: radial-gradient(circle, var(--color-brand-primary-dark) 0%, transparent 70%);
  animation: noise-drift-3 16s ease-in-out infinite;
}

@keyframes noise-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(4rem, 3rem) scale(1.15); }
  66%      { transform: translate(-2rem, 5rem) scale(0.9); }
}
@keyframes noise-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-5rem, -2rem) scale(0.85); }
  66%      { transform: translate(2rem, -4rem) scale(1.2); }
}
@keyframes noise-drift-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-45%, -55%) scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .noise-blob { animation: none !important; }
}

/* WebGL neural-noise canvas — 覆盖在CSS降级方案之上，初始化成功后淡入 */
.noise-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.noise-canvas.is-active {
  opacity: 1;
}

/* ============================================================
   霓虹管字体效果（2026-07-07）— CSS近似复制参考图的glass-tube neon质感
   渐变色管身 + 多层发光bloom + 玻璃高光带，替代真实3D渲染
   ============================================================ */
.neon-sign {
  font-family: 'Baloo 2', 'Lexend', sans-serif;
  font-weight: 800;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #8CF6FF 0%, #B39CFF 45%, #FF7FD6 75%, #FF3DAE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 8px rgba(140, 246, 255, 0.85),
    0 0 22px rgba(179, 156, 255, 0.65),
    0 0 46px rgba(255, 127, 214, 0.55),
    0 0 90px rgba(255, 61, 174, 0.4),
    0 0 160px rgba(255, 61, 174, 0.25);
}
.neon-sign::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.1) 35%, transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ============================================================
   Home 改版（2026-07-07）— Exaggerated Minimalism 风格
   参考：ui-ux-pro-max style domain "Exaggerated Minimalism"
   （oversized typography clamp(3rem,10vw,12rem)、黑白主导、单一强调色、极大留白）
   仅用于 Home，其余内页维持原白底系统 —— 见 PROJECT.md 决策记录
   ============================================================ */

.giant-type {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

/* 巨型响应式字号，随视口缩放 */
.text-giant {
  font-size: clamp(3.5rem, 11vw, 11rem);
}

/* Hero CTA按钮"广告感"字体（2026-07-07）——仅限方案2 Hero 的 Get a Quote / See Our Work 两个按钮，
   不影响全站字体系统（Corporate Trust仍是站点主字体，见PROJECT.md §2.3）。
   来源：ui-ux-pro-max --domain typography "Bold Statement" 配对（Bebas Neue，标注"marketing sites, impactful, all-caps display font"）。 */
.font-ad {
  font-family: 'Bebas Neue', 'Lexend', sans-serif;
  letter-spacing: 0.03em;
}
.text-giant-sub {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* 颗粒质感叠层 — 便宜的"设计感"纹理，替代WebGL noise，纯CSS零依赖 */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 无限横向跑马灯 */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* 编辑式列表行（替代卡片，零圆角零阴影，符合Exaggerated Minimalism规范） */
.editorial-row {
  border-top: 1px solid rgba(255,255,255,0.12);
  transition: background-color 0.3s ease;
}
.editorial-row:hover {
  background-color: rgba(255,255,255,0.03);
}
.editorial-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ============================================================
   Get a Quote 背景视频（2026-07-08）— 用户自制素材，取代之前的 gooey blob 版本
   ffmpeg: colorbalance 橙色调 + boomerang（正放+倒放）无缝循环，muted+object-fit:cover
   ============================================================ */
.quote-bg-video {
  object-position: center;
}
