/* ============ Material Purple 色板 ============ */
:root {
  --p50: #F3E5F5;
  --p100: #E1BEE7;
  --p200: #CE93D8;
  --p300: #BA68C8;
  --p400: #AB47BC;
  --p500: #9C27B0;   /* primary */
  --p600: #8E24AA;
  --p700: #7B1FA2;
  --p800: #6A1B9A;
  --p900: #4A148C;
  --a200: #E040FB;
  --text: #212121;
  --text-2: #616161;
  --divider: #E0E0E0;
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --radius: 24px;
  --border: 1px solid var(--p100);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Material Icons 字体 ============ */
@font-face {
  font-family: "Material Icons";
  src: url("assets/fonts/MaterialIcons-Regular.woff2") format("woff2"),
       url("assets/fonts/MaterialIcons-Regular.ttf") format("truetype");
  font-display: block;
}
.mi {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: middle;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ 全局视差渐变背景 ============ */
.bg-parallax {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(160deg, #FAF7FD 0%, #F5EDFA 35%, #F3F0FB 65%, #FDF8F3 100%);
}
/* 底层：动态散点中心渐变（多个径向渐变光点，呼吸脉动 + 缓慢旋转漂移） */
.bg-dots {
  position: absolute; inset: -18%;
  background:
    radial-gradient(circle at 18% 24%, rgba(225, 190, 231, 0.75), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(209, 196, 233, 0.7), transparent 24%),
    radial-gradient(circle at 68% 78%, rgba(248, 187, 208, 0.6), transparent 28%),
    radial-gradient(circle at 32% 74%, rgba(179, 229, 252, 0.55), transparent 24%),
    radial-gradient(circle at 52% 42%, rgba(206, 147, 216, 0.4), transparent 20%);
  animation: dotsFlow 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes dotsFlow {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(10deg) scale(1.1); }
  100% { transform: rotate(-8deg) scale(1.04); }
}
/* 中层：模糊光斑（自带漂移 + 滚动视差） */
.bg-parallax .blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.65;
  will-change: transform;
}
.blob-1 {
  width: 46vw; height: 46vw; left: -12vw; top: -10vw;
  background: radial-gradient(circle, #E1BEE7, transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 38vw; height: 38vw; right: -10vw; top: 22vh;
  background: radial-gradient(circle, #D1C4E9, transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 42vw; height: 42vw; left: 22vw; bottom: -18vw;
  background: radial-gradient(circle, #F8BBD0, transparent 65%);
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { translate: 0 0; } to { translate: 6vw 4vh; } }
@keyframes drift2 { from { translate: 0 0; } to { translate: -5vw 6vh; } }
@keyframes drift3 { from { translate: 0 0; } to { translate: 4vw -5vh; } }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--p500); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--p50); }
::-webkit-scrollbar-thumb { background: var(--p300); border-radius: 8px; }

/* ============ 悬浮导航栏（原 AppBar 样式） ============ */
.navbar {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-radius: 38px;
  background: var(--p500);
  transition: background 0.3s;
}
.navbar.scrolled { background: var(--p700); }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; }
.brand-name { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: 2px; }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  display: flex; align-items: center; justify-content: center;
  height: 46px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  padding: 0 20px;
  border-radius: 30px;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
/* 选中态只改背景/颜色，不改字重，避免相邻导航文字位移 */
.nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.24); }

.menu-btn { display: none; color: #fff; padding: 10px; }
.menu-btn .mi { font-size: 28px; }

/* 语言切换（下拉） */
.lang-switch { position: relative; margin-left: 16px; font-size: 13px; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px; border-radius: 18px;
  transition: color 0.25s, background 0.25s;
}
.lang-trigger:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lang-trigger .lang-caret { font-size: 18px; transition: transform 0.25s var(--ease); }
.lang-switch.open .lang-trigger .lang-caret { transform: rotate(180deg); }
.lang-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.16); }

.lang-menu {
  position: absolute;
  /* 导航条下方：与导航条留出间距（大屏 21px，小屏在媒体查询中改为 16px） */
  top: calc(100% + 21px); right: 0; left: auto;
  transform-origin: top right;
  min-width: 132px;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff; color: var(--text);
  border-radius: 16px;
  /* 阴影弱化：更小范围、更低不透明度 */
  box-shadow: 0 4px 14px rgba(74, 20, 140, 0.08), 0 1px 3px rgba(74, 20, 140, 0.06);
  opacity: 0; transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.24s var(--ease);
  z-index: 110;
}
.lang-switch.open .lang-menu {
  opacity: 1; transform: none; pointer-events: auto;
}
.lang-menu li { margin: 0; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.lang-menu a:hover { background: var(--p50); color: var(--p700); }
.lang-menu a.active { color: var(--p700); font-weight: 600; background: var(--p50); }
.lang-menu a.active::after {
  content: 'check';
  font-family: "Material Icons";
  font-weight: normal; font-style: normal;
  font-size: 18px; line-height: 1;
  margin-left: 8px; color: var(--p500);
  /* 文本与图标混排时的对齐修正 */
  display: inline-block; vertical-align: middle;
}

/* 小屏导航展开面板（替代原侧边抽屉） */
.nav-panel {
  position: absolute;
  top: calc(100% + 10px); left: 0; right: 0;
  display: none;
  flex-direction: column; gap: 4px;
  padding: 10px;
  background: #fff; border-radius: 24px;
  opacity: 0; transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.nav-panel.show { opacity: 1; transform: none; pointer-events: auto; }
.nav-panel-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  font-size: 16px; color: var(--text);
  transition: background 0.25s, color 0.25s;
}
.nav-panel-link .mi { color: var(--p500); }
.nav-panel-link:hover { background: var(--p50); color: var(--p700); }
.nav-panel-link.active { background: var(--p50); color: var(--p700); font-weight: 600; }

/* ============ 页面容器（为非首屏页面留出导航高度） ============ */
.page { padding-top: 120px; min-height: 60vh; }

/* ============ 首屏 ============ */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 6s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(74, 20, 140, 0.45), rgba(156, 39, 176, 0.2) 60%, transparent);
}

.vision-card {
  position: absolute;
  left: clamp(18px, 8vw, 120px);
  top: 20px; /* 对应 Flutter Positioned top:20，上方进入悬浮导航区域 */
  width: min(400px, calc(100vw - 48px));
  height: 320px; /* 对应原版固定高度 320 */
  /* 内容向下靠拢：靠下对齐并保留底部内边距，使文字相对卡片中部明显下移 */
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 40px 48px;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* 一次性入场动画，避免 data-reveal 在首屏重复触发造成闪烁 */
  animation: cardIn 0.9s var(--ease) 0.15s both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.vision-label { font-size: 28px; color: var(--text-2); letter-spacing: 6px; }
.vision-title {
  margin-top: 8px;
  font-size: clamp(36px, 4.2vw, 48px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--p800);
}
.vision-line { width: 72px; height: 5px; border-radius: 4px; margin: 16px 0 0; background: var(--p500); }

.hero-indicators {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 5;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.4s var(--ease);
}
.hero-dot.active { width: 36px; background: var(--p300); }

/* 锚点跳转时为悬浮导航预留空间 */
section[id] { scroll-margin-top: 110px; }

/* ============ 通用 section ============ */
.section { padding: 100px clamp(20px, 6vw, 90px); max-width: 1400px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-title { font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.2; color: var(--text); }
.section-desc { margin-top: 16px; font-size: clamp(16px, 1.6vw, 20px); color: var(--text-2); }

/* 滚动显现 */
[data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
/* 方向变体：左滑入 / 右滑入 / 缩放浮现 */
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ============ 公司简介（左右分栏，背景与全局统一） ============ */
.intro-section {
  max-width: none;
  position: relative;
  overflow: hidden;
}
.intro-section::after {
  content: "绮宵科技";
  position: absolute; right: 4%; bottom: -12%;
  font-size: clamp(120px, 18vw, 220px); font-weight: 800;
  color: rgba(156, 39, 176, 0.06);
  pointer-events: none; user-select: none;
}
.intro-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
  position: relative; z-index: 1;
}
.intro-line { width: 72px; height: 5px; border-radius: 4px; margin-top: 26px; background: var(--p500); }
.intro-lead {
  margin-top: 22px;
  font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--p800);
  line-height: 1.7;
}
.intro-text {
  font-size: clamp(16px, 1.5vw, 18px); line-height: 2; color: var(--text-2);
}
.intro-right .chip-row { margin-bottom: 0; margin-top: 24px; }

/* ============ 企业文化（宽屏左文右卡，对应原版 Row 布局） ============ */
.culture-wrap {
  display: flex; align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.culture-intro { flex: 0 1 420px; }
.culture-carousel { position: relative; overflow: hidden; flex: 1; min-width: 0; }
.culture-track { display: flex; transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); cursor: grab; }
.culture-track:active { cursor: grabbing; }
.culture-card { flex: 0 0 100%; display: flex; justify-content: center; }
/* 竖向卡片：上图下文（对应原版 Expanded flex 4:3） */
.culture-inner {
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
}
.culture-img { height: 320px; overflow: hidden; }
.culture-img img { width: 100%; height: 100%; object-fit: cover; }
.culture-body { padding: clamp(24px, 3vw, 40px); }
.culture-body h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; margin-bottom: 18px; color: var(--p800); }
.culture-body ul { list-style: none; }
.culture-body li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: clamp(15px, 1.3vw, 18px); color: var(--text-2);
}
.culture-body li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--p400);
}

.carousel-ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.ctrl-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--p50); color: var(--p500);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.ctrl-btn:hover { background: var(--p500); color: #fff; }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 6px; background: var(--p100); transition: all 0.4s var(--ease); }
.carousel-dots button.active { width: 32px; background: var(--p500); }

/* ============ 行为准则 ============ */
.conduct-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.conduct-img { border-radius: var(--radius); overflow: hidden; }
.conduct-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px; padding: 14px 32px;
  font-size: 16px; font-weight: 700; color: #fff;
  border-radius: 40px;
  background: var(--p500);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.btn-primary:hover { background: var(--p700); }
.btn-primary .mi { font-size: 20px; transition: transform 0.3s var(--ease); }
/* 按钮 hover 仅变色，图标位置不动 */

/* 行为准则详情已拆分为独立页面 conduct.html */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.principle {
  display: flex; gap: 18px; padding: 26px;
  background: var(--card); border-radius: 20px;
  /* 合并 data-reveal 入场动画的 transition，避免被覆盖导致卡片硬跳出现 */
  transition: background 0.3s, opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
/* 原则卡片 hover 无上浮 */
/* 用不同浅色系区分每张原则卡片 */
.principle:nth-child(7n+1) { background: #F3E5F5; }
.principle:nth-child(7n+2) { background: #EDE7F6; }
.principle:nth-child(7n+3) { background: #E8EAF6; }
.principle:nth-child(7n+4) { background: #E3F2FD; }
.principle:nth-child(7n+5) { background: #E0F2F1; }
.principle:nth-child(7n+6) { background: #FFF3E0; }
.principle:nth-child(7n+7) { background: #FCE4EC; }
.principle-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--p500);
}
.principle h4 { font-size: 19px; margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--text-2); }
.ethics-card {
  margin-top: 26px; padding: 34px;
  border-radius: 20px;
  background: var(--p50);
}
.ethics-card h4 { font-size: 20px; margin-bottom: 12px; color: var(--p800); }
.ethics-card p { color: var(--text-2); margin-bottom: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 30px;
  color: var(--p700); font-weight: 600;
  border: 2px solid var(--p500);
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { background: var(--p500); color: #fff; }

/* ============ 大事记（滚动轨道全宽，前后卡片露出部分边缘） ============ */
.milestone-track {
  display: flex; gap: 24px;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  cursor: grab;
}
.milestone-track:active { cursor: grabbing; }
/* 突破 section 宽度限制，滚动轨道占满视口宽度 */
.milestone-stage {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
/* 每张卡片占视口 80%，但不超过原始卡片大小（对应原版 CarouselView itemExtent: 0.8） */
.milestone-card {
  flex: 0 0 min(80%, 1200px);
  display: grid; grid-template-columns: 1fr 1fr;
  background: #F6F1FA; border-radius: var(--radius); overflow: hidden;
  min-height: 380px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.5s var(--ease);
}
.milestone-card.active { opacity: 1; cursor: default; }
/* 内层包裹不参与布局（等同不存在） */
.milestone-inner { display: contents; }
.milestone-img { overflow: hidden; background: var(--p50); display: flex; align-items: center; justify-content: center; }
.milestone-img img { width: 100%; height: 100%; object-fit: cover; }
.milestone-body { padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.milestone-year { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--p600); }
.milestone-body h3 { font-size: clamp(22px, 2vw, 28px); margin: 12px 0; }
.milestone-body p { font-size: 18px; color: var(--text-2); }

/* 时间线：横线与圆形节点中心对齐 */
.timeline {
  display: flex; align-items: flex-start; justify-content: center;
  margin-top: 48px; padding: 0 10%;
}
.timeline-node { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.node-circle {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--p400);
  transition: all 0.45s var(--ease);
}
/* 时间线节点 hover 无放大 */
.timeline-node.active .node-circle {
  background: var(--p500); color: #fff;
  transform: scale(1.18);
}
.node-label { font-size: 14px; color: var(--text-2); font-weight: 600; transition: color 0.3s; }
.timeline-node.active .node-label { color: var(--p700); }
.timeline-line {
  flex: 1; max-width: 320px; height: 4px; border-radius: 4px;
  background: var(--p100); overflow: hidden;
  margin-top: 28px; /* (60px 圆 - 4px 线) / 2，对齐圆心 */
}
.timeline-progress { height: 100%; width: 0; background: var(--p500); transition: width 0.7s var(--ease); }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-card {
  padding: 34px 30px; border-radius: var(--radius);
  display: block; background: var(--card);
  transition: filter 0.3s, opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.contact-card:hover { filter: brightness(0.97); }
/* 不同浅色区分四类联系方式 */
.contact-card:nth-child(1) { background: #F3E5F5; }
.contact-card:nth-child(2) { background: #E8EAF6; }
.contact-card:nth-child(3) { background: #E0F2F1; }
.contact-card:nth-child(4) { background: #FFF3E0; }
.contact-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--p500); margin-bottom: 18px;
}
.contact-card h4 { font-size: 20px; margin-bottom: 8px; }
.contact-card p { color: var(--p600); font-size: 16px; word-break: break-all; }

/* 联系地址：保留块级语义同时整体可点击跳转（仅颜色变化，不下划线） */
.contact-address p { transition: color 0.25s; }
.contact-address:hover p { color: var(--p800); }

/* 社交媒体卡片：与其它卡片内容结构一致（图标 + 标题 + p），p 为文本 + 右侧箭头 */
.contact-wechat { display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; }
.contact-wechat .contact-icon { margin-bottom: 18px; }
.wechat-line {
  /* 与其它 contact-card p 同样的字号/颜色，行内承载文本 + 箭头按钮 */
  display: flex; align-items: center; gap: 6px;
  color: var(--p600); font-size: 16px; word-break: break-all;
}
.wechat-name { transition: color 0.25s; }
.contact-wechat:hover .wechat-name { color: var(--p800); }
.wechat-open {
  /* 无背景，样式与文本一致：同色同字号 */
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px;
  color: inherit; background: none;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.contact-wechat:hover .wechat-open,
.wechat-open:hover { color: var(--p800); }
.wechat-open:active { transform: scale(0.92); }
.wechat-open .mi { font-size: 18px; }

/* 微信公众号二维码 popover：在按钮附近弹出 */
.qr-popover {
  position: fixed; z-index: 9999;
  display: block;
  /* 内容区恰好等于二维码宽度：150(码) + 12*2(padding) = 174 */
  width: 174px;
  /* 上/左右 12，底部 16：使名称到底部的距离大于名称到二维码的距离 */
  padding: 12px 12px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(74, 20, 140, 0.2);
  text-align: center;
  opacity: 1; visibility: visible;
  transition: opacity 0.22s var(--ease);
}
.qr-popover[hidden] { display: none !important; }
.qr-popover:not(.show) { opacity: 0; visibility: hidden; pointer-events: none; }
.qr-popover-img {
  width: 150px; height: 150px;
  margin: 0 auto;
  display: block;
}
.qr-popover-name {
  margin-top: 8px;
  font-size: 13px; font-weight: 400; color: var(--text-2);
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .qr-popover { width: 154px; }
  .qr-popover-img { width: 130px; height: 130px; }
}

/* ============ 产品（竖向整屏 PageView） ============ */
.products-page {
  height: 100vh;
  padding-top: 96px; /* 对应 Flutter 的 top: 80 + 边距 */
  display: flex;
}
.product-stage {
  position: relative;
  flex: 1;
  margin: 16px;
  border-radius: 24px;
  overflow: hidden;
}
.product-track {
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.product-slide {
  position: relative;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.product-slide .product-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
}
.product-icon-lg {
  width: 100px; height: 100px; object-fit: contain;
  margin-bottom: 8px;
}
.product-content h3 {
  font-size: 32px; font-weight: 700; color: #212121;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.product-desc {
  max-width: 480px;
  font-size: 18px; color: #212121;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
  white-space: pre-line;
  margin-bottom: 16px;
}
.btn-text-icon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px; font-size: 18px; font-weight: 600;
  color: var(--p700); border-radius: 12px;
  transition: background 0.25s;
}
.btn-text-icon:hover { background: rgba(255, 255, 255, 0.55); }

/* 右侧竖排图标导航 */
.product-nav {
  position: absolute;
  right: 18px; top: 32px; bottom: 16px;
  z-index: 5;
  display: flex; flex-direction: column; gap: 16px;
}
.product-nav-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  border: none; padding: 0;
  transition: background 0.35s, transform 0.35s var(--ease);
}
.product-nav-btn img { width: 48px; height: 48px; object-fit: contain; transition: width 0.35s, height 0.35s; }
.product-nav-btn.active { background: var(--p500); }
.product-nav-btn.active img { width: 56px; height: 56px; }
/* 产品导航按钮 hover 无放大 */

/* 标签 chips（新闻/奖项页使用） */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  padding: 7px 16px; font-size: 14px; border-radius: 20px;
  color: var(--p700); background: var(--p50);
  transition: all 0.3s;
}
.chip:hover { background: var(--p500); color: #fff; }

/* ============ 新闻动态 ============ */
.tab-bar {
  position: relative; display: inline-flex; gap: 4px;
  background: var(--p50); border-radius: 36px; padding: 6px; margin-bottom: 44px;
}
.tab-btn {
  position: relative; z-index: 2;
  padding: 12px 30px; font-size: 16px; border-radius: 30px;
  color: var(--text-2); font-weight: 600; transition: color 0.3s;
}
.tab-btn.active { color: #fff; }
.tab-slider {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: 0;
  border-radius: 30px; z-index: 1;
  background: var(--p500);
  transition: left 0.4s var(--ease), width 0.4s var(--ease);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.55s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.news-feature {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  cursor: pointer;
  transition: background 0.3s, opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.news-feature:hover { background: #FDFAFC; }
.news-feature-img { position: relative; min-height: 420px; overflow: hidden; }
.news-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-feature {
  position: absolute; top: 20px; left: 20px;
  padding: 7px 18px; border-radius: 20px; font-size: 14px; font-weight: 700; color: #fff;
  background: var(--p500);
}
.news-feature-body { padding: clamp(28px, 4vw, 52px); }
.news-meta { display: flex; gap: 24px; color: var(--text-2); font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.news-meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-meta .mi { font-size: 18px; }
.news-feature-body h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.35; margin-bottom: 16px; }
.news-feature-body > p { color: var(--text-2); font-size: 17px; margin-bottom: 22px; }
.news-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.9s var(--ease), opacity 0.7s, margin 0.6s; }
.news-detail.open { max-height: 2000px; opacity: 1; margin-top: 24px; }
.news-detail p { color: var(--text-2); font-size: 16px; margin-bottom: 14px; }

.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.award-card {
  display: block; color: inherit; cursor: pointer;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  transition: filter 0.3s, opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.award-card:hover { filter: brightness(0.98); }
/* 不同浅色区分奖项卡片 */
.award-card:nth-child(1) { background: #F3E5F5; }
.award-card:nth-child(2) { background: #E8EAF6; }
.award-card:nth-child(3) { background: #FFF3E0; }
.award-img { height: 220px; overflow: hidden; }
.award-img img { width: 100%; height: 100%; object-fit: cover; }
.award-img-alt { display: flex; align-items: center; justify-content: center; background: var(--p50); }
.award-img-alt .mi { font-size: 90px; color: var(--p400); }
.award-body { padding: 26px; }
.award-body h4 { font-size: 18px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.award-org { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.award-date {
  display: inline-block; padding: 5px 14px; border-radius: 14px;
  font-size: 13px; font-weight: 700; color: var(--p700);
  background: var(--p50); margin-bottom: 14px;
}
.award-desc { font-size: 15px; color: var(--text-2); margin-bottom: 16px; }

/* ============ 加入我们 ============ */
.job-list { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.job-card {
  background: var(--card); border-radius: 20px;
  overflow: hidden;
  transition: background 0.3s, opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.job-card:hover { background: #FBF6FD; }
.job-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px; text-align: left;
}
.job-head h4 { font-size: 22px; font-weight: 700; }
.job-meta { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.job-arrow {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--p500); background: var(--p50);
  transition: all 0.45s var(--ease);
}
.job-card:hover .job-arrow { background: var(--p500); color: #fff; transform: rotate(45deg); }

/* 职位详情页样式见下方「详情页」区块 */

/* ============ 行为准则独立页 ============ */
.conduct-hero {
  position: relative; height: 440px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.conduct-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.conduct-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.62));
}
.conduct-hero-content {
  position: relative; z-index: 2;
  padding: 40px clamp(24px, 6vw, 90px) 48px;
  color: #fff;
  animation: cardIn 0.9s var(--ease) 0.2s both;
}
.conduct-hero-content h1 { font-size: clamp(38px, 5vw, 52px); font-weight: 800; }
.conduct-hero-content p { font-size: clamp(17px, 2vw, 22px); opacity: 0.92; margin-top: 10px; }

.impl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.impl-list { list-style: none; counter-reset: impl; display: flex; flex-direction: column; gap: 16px; }
.impl-list li {
  counter-increment: impl;
  position: relative;
  padding: 20px 24px 20px 76px;
  background: var(--card); border-radius: 18px;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.impl-list li:hover { background: var(--p50); }
.impl-list li::before {
  content: counter(impl);
  position: absolute; left: 20px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--p500); color: #fff;
  font-weight: 800; font-size: 16px;
}
.impl-list strong { display: block; font-size: 17px; margin-bottom: 6px; }
.impl-list span { font-size: 15px; color: var(--text-2); }
.impl-side { display: flex; flex-direction: column; gap: 22px; }
.impl-img { border-radius: 20px; overflow: hidden; }
.impl-img img { width: 100%; height: 240px; object-fit: cover; }
.impl-closing { margin-top: 48px; font-size: 17px; color: var(--text-2); max-width: 860px; }

/* ============ 详情页（新闻/职位共用） ============ */
.detail-hero {
  position: relative; height: 380px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.detail-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.6));
}
.detail-hero-content {
  position: relative; z-index: 2;
  padding: 40px clamp(24px, 6vw, 90px) 44px;
  color: #fff; max-width: 1100px;
  animation: cardIn 0.9s var(--ease) 0.2s both;
}
.detail-hero-content h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.35; margin-top: 16px; }
.back-link {
  position: absolute; top: 116px; left: clamp(20px, 5vw, 60px); z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.9); color: var(--text);
  font-size: 15px; font-weight: 600;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.back-link:hover { background: #fff; }
.back-static {
  position: static; display: inline-flex; margin-bottom: 28px;
  background: var(--p50); color: var(--p700);
}
.back-static:hover { background: var(--p100); }

.article-body { max-width: 880px; margin: 0 auto; padding: 52px 24px 90px; }
.article-meta { display: flex; gap: 26px; flex-wrap: wrap; color: var(--text-2); font-size: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .mi { font-size: 18px; }
.article-divider { border: none; border-top: 1px solid var(--divider); margin: 26px 0; }
.article-body > p { font-size: 17px; line-height: 1.9; color: var(--text); margin-bottom: 18px; }
.article-tags { margin-top: 30px; }
.article-tags .chip-row { margin-bottom: 0; }
.article-copyright {
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid var(--divider);
  font-size: 14px; color: #9e9e9e;
}

/* 奖项详情页 */
.award-hero-icon {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.award-hero-icon .mi { font-size: 120px; color: var(--p300); }
.award-info-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  background: var(--card); border-radius: 20px; padding: 30px;
  margin-bottom: 40px;
}
.award-info-item { display: flex; gap: 16px; align-items: center; }
.award-info-icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--p50); color: var(--p500);
}
.award-info-label { font-size: 14px; color: var(--text-2); }
.award-info-value { font-size: 17px; font-weight: 700; margin-top: 4px; }
.award-desc-box {
  background: var(--p50); border-radius: 20px; padding: 30px;
}
.award-desc-box p { font-size: 16px; line-height: 1.9; color: var(--text); }
.detail-section-title { font-size: 22px; font-weight: 800; color: var(--p700); margin-bottom: 16px; }
.detail-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.detail-actions .btn-primary { margin-top: 0; }

/* 职位列表卡片（跳转详情页） */
.job-link { display: block; color: inherit; }
.job-link .job-head { cursor: pointer; }
.job-desc-preview {
  padding: 0 32px 26px; margin-top: -6px;
  color: var(--text-2); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 职位详情页 */
.job-detail { max-width: 880px; }
.job-detail h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.job-detail .job-meta { font-size: 16px; margin: 14px 0 34px; }
.job-detail h5 {
  font-size: 19px; color: var(--p700); margin: 30px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.job-detail h5::before {
  content: ""; width: 6px; height: 22px; border-radius: 4px; background: var(--p500);
}
.job-detail p { color: var(--text-2); font-size: 16px; line-height: 2; }

/* ============ 页脚 ============ */
.footer {
  margin-top: 24px;
  position: relative; overflow: hidden;
  border-radius: 44px 44px 0 0;
  background: linear-gradient(140deg, var(--p900) 0%, var(--p800) 45%, var(--p600) 100%);
  color: #fff;
}
.footer-inner { position: relative; z-index: 2; padding: 70px clamp(24px, 6vw, 90px) 32px; }
.footer-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.4; pointer-events: none; }
.footer-glow-1 {
  width: 440px; height: 440px; top: -170px; right: -120px;
  background: radial-gradient(circle, var(--a200), transparent 65%);
  animation: drift2 20s ease-in-out infinite alternate;
}
.footer-glow-2 {
  width: 380px; height: 380px; bottom: -150px; left: -110px;
  background: radial-gradient(circle, #7C4DFF, transparent 65%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; justify-items: start; text-align: left; }
.footer-brand img { height: 72px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; opacity: 0.8; max-width: 320px; line-height: 1.8; }
.footer-col h5 { font-size: 16px; margin-bottom: 18px; font-weight: 700; }
.footer-col a {
  display: block;
  font-size: 14px; opacity: 0.82; padding: 6px 0;
  text-align: left;
  transition: color 0.25s, opacity 0.25s;
}
.footer-col a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: space-between; font-size: 13px; opacity: 0.85;
}
.footer-bottom a { transition: opacity 0.25s; }
.footer-bottom a:hover { opacity: 1; text-decoration: underline; }

/* ============ 404 页面 ============ */
.notfound {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px;
  position: relative;
}
.notfound-code {
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 800; line-height: 1;
  color: var(--p100);
  user-select: none;
  animation: cardIn 1s var(--ease) both;
}
.notfound-icon {
  width: 84px; height: 84px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--p500);
  margin: -40px 0 26px; position: relative;
  animation: cardIn 1s var(--ease) 0.15s both;
}
.notfound-icon .mi { font-size: 44px; }
.notfound h1 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; animation: cardIn 1s var(--ease) 0.25s both; }
.notfound p { margin-top: 14px; font-size: 17px; color: var(--text-2); animation: cardIn 1s var(--ease) 0.35s both; }
.notfound-actions {
  margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: cardIn 1s var(--ease) 0.45s both;
}
.notfound-actions .btn-primary { margin-top: 0; }

/* 回到顶部 */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  /* 浅底深 icon，弱化存在感：无外边框，阴影减弱 */
  color: var(--p700);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 3px 10px rgba(74, 20, 140, 0.08);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: all 0.45s var(--ease);
}
.back-top.show { opacity: 0.78; transform: none; pointer-events: auto; }
.back-top:hover { opacity: 1; background: #fff; color: var(--p800); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .conduct-grid, .news-feature, .impl-grid, .award-info-card, .intro-grid { grid-template-columns: 1fr; }
  .culture-wrap { flex-direction: column; align-items: stretch; }
  .culture-intro { flex: none; max-width: 720px; margin-bottom: 20px; }
  .news-feature-img { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { left: 14px; right: 14px; height: 62px; padding: 0 16px 0 20px; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .nav-panel { display: flex; }
  /* 小屏语言下拉与导航条间距收窄 */
  .lang-menu { top: calc(100% + 16px); }
  .brand-name { font-size: 20px; }
  .section { padding: 76px 20px; }
  .milestone-card { grid-template-columns: 1fr; min-height: 0; flex-basis: 85%; }
  .milestone-stage { margin-left: -20px; width: calc(100% + 40px); }
  .culture-img { height: 240px; }
  .milestone-img img { height: 200px; }
  /* 小屏 hero 文本高度对齐：仅调整卡片内部对齐（保留底部内边距，横线不再贴底） */
  .vision-card {
    padding: 0 28px 36px;    /* 保留底部内边距，横线不再贴底 */
    border-radius: 36px;
  }
  .timeline { padding: 0 4%; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  /* 产品页移动端：隐藏右侧图标导航（对应 Flutter 宽屏判断） */
  .product-nav { display: none; }
  .product-desc { font-size: 16px; }
  .product-content h3 { font-size: 28px; }
}

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

/* 全宽区块（用于页面节奏分隔，背景与全局统一） */
.section-band { max-width: none; }
.section-band > .conduct-grid { max-width: 1400px; margin: 0 auto; }
