/* ==========================================================================
   易睿普斯 - 全局样式
   设计系统：商务白（白底 + 印章红点缀 + 克制阴影 + 衬线大标题）
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 颜色 - 表面层 */
  --bg-base: #ffffff;
  --bg-deep: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(220, 38, 38, 0.03);
  --bg-glass-strong: rgba(220, 38, 38, 0.06);

  /* 颜色 - 描边 */
  --border-subtle: #f1f5f9;
  --border-default: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: #dc2626;

  /* 颜色 - 文字 */
  --text-primary: #0f172a;     /* 深石板色 */
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* 颜色 - 品牌 */
  --brand-red: #dc2626;        /* 印章红（logo 主色，商务克制）*/
  --brand-red-light: #ef4444;
  --brand-red-dark: #991b1b;
  --brand-navy: #1e3a8a;        /* 商务深蓝（辅色）*/
  --brand-blue: #2563eb;

  /* 颜色 - 状态 */
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --gradient-tertiary: linear-gradient(135deg, #dc2626 0%, #1e3a8a 100%);
  --gradient-warm: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
  --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-text: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-border: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(30, 58, 138, 0.4));

  /* 阴影（克制商务风） */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 4px 16px rgba(220, 38, 38, 0.18);
  --shadow-glow-strong: 0 8px 24px rgba(220, 38, 38, 0.28);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* 间距（基于 0.25rem） */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* 字号 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* 字重 */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* 容器 */
  --container-max: 1280px;
  --container-padding: 1.5rem;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* 头部 */
  --header-height: 72px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 背景：商务白底 + 顶部极淡红光晕 */
body::before {
  content: "";
  position: fixed;
  top: -30%;
  left: 50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.04) 0%, transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  display: none;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-weight: var(--font-semibold);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin: 0 0 var(--space-4); color: var(--text-secondary); }

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease);
}
a:hover { color: var(--brand-red-light); }

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

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-12) 0;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-default);
  /* 不在这里用 backdrop-filter — 它会创建 containing block，让内部 position:fixed 的
     .nav-list 失去视口定位（变成相对 header 定位），导致菜单高度只有几像素。
     现代浏览器对 header 模糊已经够好，不影响观感。 */
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.brand-mark {
  height: 38px;
  max-width: 200px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--border-default);
  position: relative;
  overflow: hidden;
  padding: 3px 8px;
  transition: box-shadow var(--duration-base) var(--ease);
  flex-shrink: 0;
}

.brand:hover .brand-mark {
  box-shadow: 0 0 0 1px var(--border-accent), 0 4px 12px rgba(220, 38, 38, 0.12);
}

.brand-mark img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 0.5px rgba(220, 38, 38, 0.3));
}

.brand-text {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", -apple-system, BlinkMacSystemFont, sans-serif;
}

.brand:hover .brand-text {
  color: var(--brand-red);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease);
  position: relative;
}

.nav-link:hover {
  color: var(--brand-red);
}

.nav-link[aria-current="page"] {
  color: var(--brand-red);
  font-weight: var(--font-semibold);
  background: rgba(229, 0, 18, 0.10);
  border-radius: var(--radius-md);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- 标题区 ---------- */
.page-hero {
  padding: var(--space-20) 0 var(--space-12);
  text-align: center;
  position: relative;
}

.page-hero h1 {
  margin-bottom: var(--space-4);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.page-hero .lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .page-hero .lead { white-space: normal; }
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.section-title {
  font-size: var(--text-4xl);
  margin: 0;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: var(--space-3);
}

.section-desc {
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 560px;
  margin: var(--space-3) 0 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-red);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--duration-base) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- 网格布局 ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
/* 价值观：3 或 4 个都排一行（auto-fit：空槽位折叠） */
.values-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------- 产品卡 ---------- */
.product-card .card-media { aspect-ratio: 4 / 3; }

.product-card .card-body { padding: var(--space-5) var(--space-6); }

/* ---------- 案例卡（左图右文） ---------- */
.case-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.case-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(229, 0, 18, 0.12);
}

.case-card-media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--bg-elevated);
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.case-card:hover .case-card-media img { transform: scale(1.04); }

.case-card-body {
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  background: rgba(229, 0, 18, 0.12);
  color: var(--brand-red);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}

.case-card-title {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.case-card-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.case-card-text p {
  margin: 0;
}

@media (max-width: 768px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card-media { aspect-ratio: 16 / 10; min-height: 0; }
  .case-card-body { padding: var(--space-5) var(--space-6); }
}

/* ---------- 新闻横向卡片（左图右文，与 .case-card 视觉一致）---------- */
.news-row-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.news-row-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(229, 0, 18, 0.12);
}

.news-row-card-media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--bg-elevated);
}

.news-row-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.news-row-card:hover .news-row-card-media img { transform: scale(1.04); }

.news-row-card-body {
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-row-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.news-row-meta-sep { color: var(--text-muted); opacity: 0.6; }

.news-row-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-3);
  background: rgba(229, 0, 18, 0.12);
  color: var(--brand-red);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.news-row-card-title {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.news-row-card-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.news-row-card-text p { margin: 0; }

@media (max-width: 768px) {
  .news-row-card { grid-template-columns: 1fr; }
  .news-row-card-media { aspect-ratio: 16 / 10; min-height: 0; }
  .news-row-card-body { padding: var(--space-5) var(--space-6); }
}

/* ---------- 新闻卡 ---------- */
.news-card .card-media { aspect-ratio: 16 / 10; }

.news-card .card-body { padding: var(--space-5) var(--space-6) var(--space-6); }

.news-card .card-meta { margin-bottom: var(--space-3); }

.news-card .card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 横向滚动条 */
.scroller {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  padding: var(--space-2) var(--space-1) var(--space-6);
  margin: 0 calc(var(--container-padding) * -1);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

.scroller > * {
  flex: 0 0 360px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .scroller > * { flex-basis: 280px; }
}

/* ---------- 新闻轮播大横幅 ---------- */
.news-carousel {
  position: relative;
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.news-slides {
  position: relative;
  height: 100%;
}

.news-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease);
  pointer-events: none;
}

.news-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.news-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.news-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s var(--ease);
}

.news-slide.is-active .news-slide-media img {
  transform: scale(1);
}

.news-slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 26, 0.85) 0%, rgba(10, 14, 26, 0.55) 40%, rgba(10, 14, 26, 0.15) 100%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.1) 50%, rgba(10, 14, 26, 0.6) 100%);
}

.news-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-10);
  max-width: 760px;
  z-index: 1;
}

.news-slide-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-4);
  background: rgba(229, 0, 18, 0.18);
  border: 1px solid rgba(229, 0, 18, 0.4);
  color: var(--brand-red);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(8px);
  letter-spacing: 0.05em;
}

.news-slide-date {
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.news-slide-date::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand-red);
}

.news-slide-title {
  font-size: var(--text-4xl);
  color: #fff;
  margin: 0 0 var(--space-3);
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-slide-summary {
  font-size: var(--text-base);
  color: rgba(226, 232, 240, 0.82);
  margin: 0 0 var(--space-5);
  max-width: 640px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-slide-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-red);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  align-self: flex-start;
}

.news-slide-link::after {
  content: "→";
  transition: transform var(--duration-base) var(--ease);
}

.news-slide-link:hover::after { transform: translateX(4px); }

/* 左右翻页箭头 */
.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0.55;
  transition: all var(--duration-base) var(--ease);
  z-index: 3;
}

.news-arrow svg { width: 20px; height: 20px; }

.news-arrow:hover,
.news-arrow:focus-visible {
  opacity: 1;
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--text-inverse);
  box-shadow: 0 0 24px rgba(229, 0, 18, 0.4);
}

.news-arrow:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 4px;
}

.news-arrow-prev { left: var(--space-6); }
.news-arrow-next { right: var(--space-6); }

/* 圆点 */
.news-dots {
  position: absolute;
  right: var(--space-10);
  bottom: var(--space-10);
  display: flex;
  gap: var(--space-2);
  z-index: 3;
}

.news-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-base) var(--ease);
}

.news-dot.is-active {
  width: 36px;
  background: var(--brand-red);
  box-shadow: 0 0 12px rgba(229, 0, 18, 0.4);
}

.news-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.news-dot.is-active:hover {
  background: var(--brand-red);
}

/* 进度条 */
.news-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-primary);
  z-index: 2;
  transition: width 0.1s linear;
}

.news-carousel[data-paused="true"] .news-progress {
  transition: none;
}

@media (max-width: 768px) {
  .news-carousel { height: 400px; }
  .news-slide-content { padding: var(--space-6); }
  .news-slide-title { font-size: var(--text-2xl); }
  .news-slide-summary { font-size: var(--text-sm); }
  .news-arrow { width: 40px; height: 40px; }
  .news-arrow svg { width: 18px; height: 18px; }
  .news-arrow-prev { left: var(--space-3); }
  .news-arrow-next { right: var(--space-3); }
  .news-dots { right: var(--space-6); bottom: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .news-slide-media img { transform: none; transition: none; }
}

/* ---------- 团队卡 ---------- */
.team-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(229, 0, 18, 0.06);
  border-color: rgba(229, 0, 18, 0.2);
}
.team-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.team-card:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.team-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  background: var(--gradient-primary);
  padding: 3px;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.3;
  filter: blur(12px);
  z-index: -1;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-base);
}

.team-name {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--space-1);
  color: var(--text-primary);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--brand-red);
  font-weight: var(--font-medium);
  margin: 0 0 var(--space-3);
}

/* A 方案：bio 左对齐 + 行高增加，符合中文阅读习惯 */
.team-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
  line-height: 1.75;
}
.team-bio p {
  margin: 0;
}
.team-bio-icon {
  color: var(--brand-red);
  font-weight: 700;
  flex-shrink: 0;
  width: 1em;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-red), #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 后台 bio 编辑器：行高宽松让段落呼吸 */
textarea[name="bio"] {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ---------- 拼单（易拼）---------- */
.epin-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(12px);
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.filter-group:last-child { margin-bottom: 0; }

.filter-label {
  flex-shrink: 0;
  width: 96px;
  padding-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease);
  user-select: none;
}

.tag:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.tag[aria-pressed="true"] {
  background: rgba(229, 0, 18, 0.14);
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.epin-list {
  display: grid;
  gap: var(--space-5);
}

.epin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  backdrop-filter: blur(12px);
  transition: all var(--duration-base) var(--ease);
}

.epin-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.epin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.epin-company {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
}

.epin-credit {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  margin-top: var(--space-1);
}

.epin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-sm);
}

.badge-industry {
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-function {
  background: rgba(229, 0, 18, 0.12);
  color: var(--brand-red);
  border: 1px solid rgba(229, 0, 18, 0.3);
}

.epin-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.epin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
}

.epin-contact {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.epin-contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.epin-contact-item svg { width: 16px; height: 16px; opacity: 0.7; }

.epin-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- 表单（发布拼单）---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  gap: var(--space-5);
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-deep);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
  transition: all var(--duration-base) var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(229, 0, 18, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-red);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.32);
  color: var(--text-inverse);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: rgba(220, 38, 38, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover { color: var(--brand-red); }

/* ---------- 空状态 ---------- */
.empty-state {
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

.empty-state-title {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* ---------- 关于页 ---------- */
.about-company {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .about-company { grid-template-columns: 1fr; }
}

.about-company-text h2 { margin-bottom: var(--space-6); }
.about-company-text p { margin-bottom: var(--space-4); }

.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229, 0, 18, 0.1), transparent 60%);
  pointer-events: none;
}

.stats {
  display: grid;
  /* 自适应列数：5 或 6 个都排一行（min 120px 避免太挤） */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  margin-top: var(--space-12);
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-24) 0 var(--space-20);
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 12px var(--brand-red);
  animation: pulse 2s var(--ease) infinite;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: var(--space-6);
}

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

.hero .lead {
  max-width: 880px;
  margin: 0 auto var(--space-8);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--text-secondary);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: var(--space-20);
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--border-default);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.footer-col a:hover { color: var(--brand-red); }

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-3);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- 工具类 ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: var(--space-12) 0;
}

.text-center { text-align: center; }
.mt-12 { margin-top: var(--space-12); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

/* ---------- 动画 ---------- */
@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

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

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

.fade-up {
  animation: fadeUp 0.6s var(--ease) backwards;
}

/* ---------- 移动端导航 ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }

  /* 遮罩层（点击关闭菜单） */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 98;
    animation: fadeIn 0.2s var(--ease);
  }
  body.nav-open { overflow: hidden; }

  .nav-list {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.28s var(--ease);
    z-index: 99;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-list[data-open="true"] {
    transform: translateX(0);
  }

  .nav-link {
    padding: var(--space-4) var(--space-5);
    font-size: 16px;
    font-weight: var(--font-medium);
    line-height: 1.4;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    display: block;
    margin-bottom: 2px;
  }

  .nav-link:hover, .nav-link:focus {
    background: rgba(229, 0, 18, 0.06);
    border-color: var(--border-accent);
  }

  .nav-link:hover, .nav-link:focus { background: rgba(229, 0, 18, 0.06); }

  /* 当前页用浅红背景 + 红字，比纯红字+深色背景对比度更好 */
  .nav-link[aria-current="page"] {
    color: var(--brand-red);
    background: rgba(229, 0, 18, 0.10);
    border-color: rgba(229, 0, 18, 0.25);
  }
}

/* ---------- 可见性 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 隐藏 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 通用模态框（公共页 + 后台共用）---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  animation: modalIn 0.22s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-head h3 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
  color: var(--text-primary);
}

.modal-body p { margin: 0 0 var(--space-3); }

.modal-body dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  margin: 0;
}

.modal-body dt {
  color: var(--text-muted);
  font-weight: 500;
}

.modal-body dd {
  margin: 0;
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

@media (max-width: 640px) {
  .modal-card { max-width: 100%; }
}

/* 密码框显示/隐藏切换 */
.pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pwd-wrap > input {
  padding-right: 42px !important;
}
.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color var(--duration-base) var(--ease);
}
.pwd-toggle:hover,
.pwd-wrap.is-showing .pwd-toggle {
  color: var(--brand-red);
}
.pwd-toggle:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}
.pwd-rule-hint {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
