/* ===== 杭州立纬科技官网 主样式表（v2 视觉升级） ===== */

:root {
  /* === 主色系 - 冷调青灰蓝（工业级 / 精密感） === */
  --primary-950: #07101E;
  --primary-900: #0B1628;
  --primary-850: #0F1D32;
  --primary-800: #142741;
  --primary-700: #1B3454;
  --primary-600: #23456E;
  --primary-500: #2E5A8C;
  --primary-400: #3D7AB0;
  --primary-300: #5C9AC8;
  --primary-200: #8ABBD9;
  --primary-100: #BEDAEB;
  --primary-50:  #D5E7F3;

  /* === 强调色 - 铜暖（呼应 logo 橙但更沉稳） === */
  --accent-700: #C63816;
  --accent-600: #E2481C;
  --accent-500: #F06532;
  --accent-400: #FF834D;
  --accent-300: #FFA875;
  --accent-200: #FFC9A8;
  --accent-100: #FFE5D4;
  --accent-50:  #FFF3EA;

  /* === 中性色 - 偏冷灰（克制、专业） === */
  --gray-950: #0C111A;
  --gray-900: #141B26;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50:  #F8FAFC;

  /* === 功能色 === */
  --success: #0D9488;
  --warning: #D97706;
  --error:   #DC2626;

  /* === 布局 === */
  --max-width: 1280px;
  --nav-height: 76px;
  --section-padding-y: 140px;
  --section-padding-y-tablet: 100px;
  --section-padding-y-mobile: 72px;

  /* === 圆角（更克制的大圆角 + 一致的小圆角） === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* === 阴影 - 多层、更柔和（真实深度感） === */
  --shadow-xs: 0 1px 2px rgba(15, 29, 50, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 29, 50, 0.06), 0 1px 2px rgba(15, 29, 50, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 29, 50, 0.08), 0 2px 6px rgba(15, 29, 50, 0.05);
  --shadow-lg: 0 16px 40px rgba(15, 29, 50, 0.10), 0 6px 16px rgba(15, 29, 50, 0.06);
  --shadow-xl: 0 28px 64px rgba(15, 29, 50, 0.14), 0 12px 28px rgba(15, 29, 50, 0.08);
  --shadow-glow: 0 0 40px rgba(240, 101, 50, 0.18);

  /* === 渐变 === */
  --gradient-accent: linear-gradient(135deg, #E2481C 0%, #F06532 55%, #FF834D 100%);
  --gradient-accent-soft: linear-gradient(135deg, rgba(226, 72, 28, 0.10) 0%, rgba(255, 131, 77, 0.06) 100%);
  --gradient-primary: linear-gradient(180deg, #E8F1F9 0%, #F4F9FC 100%);
  --gradient-hero: linear-gradient(160deg, #DCE9F4 0%, #E5EFF7 35%, #F0F6FB 70%, #FFFFFF 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.50) 100%);
  --gradient-glass-light: linear-gradient(135deg, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.40) 100%);
  --gradient-top-accent: linear-gradient(90deg, transparent 0%, rgba(240, 101, 50, 0.55) 50%, transparent 100%);
  --gradient-divider: linear-gradient(90deg, transparent 0%, var(--gray-200) 20%, var(--gray-200) 80%, transparent 100%);

  /* === 浅色层次专用 === */
  --surface-soft: #E5EFF7;       /* section-light 底色：清爽浅蓝，与纯白一眼可辨 */
  --surface-card: #FFFFFF;
  --border-subtle: var(--gray-200);
  --card-shadow: 0 4px 16px rgba(15, 29, 50, 0.06), 0 1px 3px rgba(15, 29, 50, 0.04);
  --card-shadow-hover: 0 14px 36px rgba(15, 29, 50, 0.10), 0 4px 12px rgba(15, 29, 50, 0.06);

  /* === 字体 === */
  --font-display: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'Noto Sans SC', 'SF Mono', Menlo, monospace;

  /* === 动效节奏（克制） === */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: #ffffff;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  font-feature-settings: 'palt' 1;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

@media (max-width: 900px) {
  .container { padding: 0 28px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
}

/* ===== 通用章节样式 ===== */

.section {
  padding: var(--section-padding-y) 0;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background-color: #ffffff;
  color: var(--gray-800);
  position: relative;
}

.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 60, 100, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 60, 100, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.section-dark > * {
  position: relative;
  z-index: 1;
}

.section-light {
  background-color: var(--surface-soft);
  position: relative;
}

.section-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(30, 60, 100, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.section-light > * {
  position: relative;
  z-index: 1;
}

/* 全站分界线统一收敛到「内容 → 页脚」交界处一条。
   页面内部 section 间不再自动加线。
   各页面底部 → 页脚的线由各自页面样式单独控制。

   历史背景：此前用 section-light + section-dark 自动加交界线，
   导致公司介绍页等出现多条内部线，不符合最终设计。
   保留注释和规则结构以便回溯。 */
.section-light + .section-dark,
.section-dark + .section-light {
  position: relative;
}

.section-light + .section-dark::before,
.section-dark + .section-light::before {
  content: none;
}



.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: none;
  margin-bottom: 20px;
  font-feature-settings: 'palt' 1;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-label-dark {
  color: var(--accent-600);
}

.section-label-light {
  color: var(--accent-600);
}

/* 章节标题 —— 更大对比、更细的中宫 */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
  color: var(--gray-900);
}

.section-dark .section-title {
  color: var(--gray-900);
}

.section-subtitle {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  max-width: 620px;
  color: var(--gray-500);
  font-weight: 400;
}

.section-dark .section-subtitle {
  color: var(--gray-500);
  opacity: 1;
}

.section-header {
  margin-bottom: 72px;
}

.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-y-mobile) 0;
  }
  .section-header {
    margin-bottom: 48px;
  }
}

/* ===== 按钮样式 ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(240, 101, 50, 0.30), 0 2px 6px rgba(240, 101, 50, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240, 101, 50, 0.38), 0 4px 10px rgba(240, 101, 50, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.65);
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--gray-400);
  background: #ffffff;
  color: var(--gray-900);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-200);
}

.btn-outline-dark:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

/* ===== 卡片通用样式 ===== */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-base) var(--ease-out);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-top-accent);
  transition: all var(--dur-slow) var(--ease-out);
  opacity: 0;
  z-index: 2;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--gray-300);
}

.card:hover::before {
  opacity: 1;
}

.card-dark {
  background: var(--gradient-glass-light);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-top-accent);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  z-index: 2;
}

.card-dark:hover {
  background: #ffffff;
  border-color: var(--gray-300);
  box-shadow: var(--card-shadow-hover);
}

.card-dark:hover::before {
  opacity: 1;
}

/* ===== 动画 ===== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.animate-fade-in-up {
  animation: fadeInUp var(--dur-slow) var(--ease-out) forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ===== 滚动揭示 ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 辅助类 ===== */

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

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.serif { font-family: var(--font-display); }

/* ===== 无障碍：减少动效 ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 细网格背景（复用） ===== */
.bg-grid {
  background-image:
    linear-gradient(rgba(15, 29, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 29, 50, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.bg-grid-light {
  background-image:
    linear-gradient(rgba(15, 29, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 29, 50, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
