/* ==========================================================================
   优家科技官网 · U+Intelligence
   设计系统：黑金科技风（色值取自《优家科技公司介绍》PPT 品牌规范）
   字体：基于「猫啃网糖圆体」子集化后改名发布（原字体含 Reserved Font Name，
        依 SIL OFL 1.1 要求改名；许可文件见 assets/fonts/OFL-LICENSE.txt）
   ========================================================================== */

@font-face {
  font-family: 'UJRound';
  src: url('../assets/fonts/uj-round-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 背景层次 */
  --bg: #0F0F12;
  --bg-2: #16161B;
  --bg-3: #1D1D24;
  --line: rgba(200, 160, 90, 0.18);
  --line-soft: rgba(241, 220, 188, 0.10);

  /* 品牌金 */
  --gold: #C8A05A;
  --gold-bright: #E0C080;
  --gold-soft: #F5DBAE;
  --cream: #F1DCBC;

  /* 文字 */
  --text: #EDE4D6;
  --muted: #A8A8A8;
  --dim: #6B6B76;

  /* 点缀 */
  --blue: #6A8ABF;
  --green: #6ABF6A;
  --purple: #A06ABF;

  --maxw: 1200px;
  --radius: 14px;
  --font-title: 'UJRound', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'HarmonyOS Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(200, 160, 90, 0.35); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0B0B0E; }
::-webkit-scrollbar-thumb { background: #2A2A33; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- 通用容器 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 86px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--bg-2); }

/* 章节标题组 */
.eyebrow {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--gold-soft);
  line-height: 1.45;
  font-weight: 400;
}
.sec-title em { font-style: normal; color: var(--gold-bright); }
.sec-desc {
  color: var(--muted);
  max-width: 760px;
  margin-top: 14px;
  font-size: 14.5px;
}
.sec-head { margin-bottom: 44px; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-desc { margin-left: auto; margin-right: auto; }

/* 金色分隔线 */
.rule {
  width: 54px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 18px 0 0;
}
.sec-head--center .rule { margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(15, 15, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo span {
  font-family: var(--font-title); font-size: 16px;
  color: var(--gold-bright); letter-spacing: .06em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; color: var(--muted); transition: color .25s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1px; background: var(--gold);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 36px; cursor: pointer; padding: 0;
}
.nav-toggle i {
  display: block; width: 18px; height: 1.5px; background: var(--gold-bright);
  margin: 4px auto; transition: transform .25s, opacity .25s;
}
.nav-toggle.open i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open i:nth-child(2) { opacity: 0; }
.nav-toggle.open i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; padding: 130px 0 70px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(200, 160, 90, 0.16), transparent 62%),
    radial-gradient(700px 500px at 12% 78%, rgba(106, 138, 191, 0.12), transparent 65%),
    var(--bg);
}
/* 脑电波细线纹理 */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(241, 220, 188, 0.045) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(90deg, rgba(241, 220, 188, 0.045) 0 1px, transparent 1px 62px);
  mask-image: radial-gradient(circle at 60% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 60% 45%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: 12.5px; color: var(--gold-soft);
  background: rgba(200, 160, 90, 0.06); margin-bottom: 26px;
}
.hero-tag b { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); }
.hero h1 {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.28; color: var(--gold-soft);
  letter-spacing: .01em;
}
.hero h1 .u { color: var(--gold-bright); }
.hero-sub {
  margin-top: 18px; font-family: var(--font-title);
  font-size: clamp(17px, 2.1vw, 23px); color: var(--cream);
}
.hero-points { margin-top: 30px; display: grid; gap: 11px; }
.hero-points li {
  list-style: none; color: var(--muted); font-size: 14.5px; padding-left: 20px; position: relative;
}
.hero-points li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(200, 160, 90, .7);
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-size: 14.5px;
  border: 1px solid var(--line); color: var(--gold-soft);
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.btn:hover { background: rgba(200, 160, 90, .1); border-color: var(--gold); transform: translateY(-2px); }
.btn--solid { background: var(--gold); color: #14100A; border-color: var(--gold); font-weight: 500; }
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn i { font-style: normal; transition: transform .25s; }
.btn:hover i { transform: translateX(4px); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  width: 100%; max-width: 430px; filter: drop-shadow(0 24px 60px rgba(200, 160, 90, .18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
/* 环形装饰 */
.hero-ring {
  position: absolute; inset: 6% 6%; border: 1px solid var(--line);
  border-radius: 50%; pointer-events: none;
}
.hero-ring::before {
  content: ''; position: absolute; inset: 14%; border: 1px dashed rgba(200, 160, 90, .14);
  border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 数字条 ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: 30px 16px; text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--font-title); font-weight: 400;
  font-size: clamp(22px, 2.8vw, 32px); color: var(--gold-bright); line-height: 1.2;
}
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .3s, transform .3s, background .3s;
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line); transform: translateY(-4px); background: var(--bg-3); }
.card h3 {
  font-family: var(--font-title); font-weight: 400; font-size: 19px;
  color: var(--gold-soft); margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 14px; }
.card-num {
  font-family: var(--font-title); font-size: 13px; letter-spacing: .18em;
  color: var(--gold); margin-bottom: 12px; display: block;
}
.card ul { margin-top: 12px; }
.card ul li {
  list-style: none; color: var(--muted); font-size: 13.5px;
  padding-left: 15px; position: relative; margin-bottom: 6px;
}
.card ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.card--accent { border-color: rgba(200, 160, 90, .35); }
.card--accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- 产品卡 ---------- */
.pcard {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s, transform .3s;
  display: flex; flex-direction: column;
}
.pcard:hover { border-color: var(--line); transform: translateY(-4px); }
.pcard-img {
  background: radial-gradient(circle at 50% 55%, rgba(200, 160, 90, .10), transparent 68%), #101014;
  padding: 26px; display: flex; align-items: center; justify-content: center;
  min-height: 210px; border-bottom: 1px solid var(--line-soft);
}
.pcard-img img { max-height: 168px; width: auto; object-fit: contain; }
.pcard-body { padding: 20px 22px 24px; flex: 1; }
.pcard-body h3 { font-family: var(--font-title); font-weight: 400; font-size: 17px; color: var(--gold-soft); }
.pcard-body .tag {
  display: inline-block; font-size: 11.5px; color: var(--gold); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 10px;
}
.pcard-body p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.spec {
  margin-top: 14px; border-top: 1px dashed var(--line-soft); padding-top: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
}
.spec div { font-size: 12.5px; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.spec div b { color: var(--cream); font-weight: 400; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(200, 160, 90, .05));
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold);
}
.tl-item::after {
  content: ''; position: absolute; left: -26px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright);
}
.tl-year { font-family: var(--font-title); color: var(--gold-bright); font-size: 16px; }
.tl-item h4 { font-size: 15px; color: var(--cream); font-weight: 500; margin: 4px 0 4px; }
.tl-item p { color: var(--muted); font-size: 14px; }

/* ---------- 团队 ---------- */
.person { display: flex; gap: 20px; align-items: flex-start; }
.person-photo {
  width: 118px; height: 148px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #101014;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person h3 { font-family: var(--font-title); font-weight: 400; font-size: 19px; color: var(--gold-soft); }
.person .role { font-size: 12.5px; color: var(--gold); margin-bottom: 8px; }
.person ul li { font-size: 13px; color: var(--muted); list-style: none; padding-left: 14px; position: relative; margin-bottom: 4px; }
.person ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ---------- 图文并排 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--line-soft); }
.split-text h3 { font-family: var(--font-title); font-weight: 400; font-size: 22px; color: var(--gold-soft); margin-bottom: 12px; }
.split-text p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }

/* ---------- 荣誉卡 ---------- */
.honor {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; transition: border-color .3s;
}
.honor:hover { border-color: var(--line); }
.honor .k {
  font-family: var(--font-title); font-size: 12px; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 10px;
}
.honor h3 { font-family: var(--font-title); font-weight: 400; font-size: 17px; color: var(--gold-soft); margin-bottom: 8px; }
.honor p { color: var(--muted); font-size: 13.5px; }

/* ---------- 图片画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); position: relative; }
.gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: 12.5px;
  color: var(--cream); background: linear-gradient(180deg, transparent, rgba(10, 10, 12, .88));
}

/* ---------- 引用条 ---------- */
.quote {
  border-left: 2px solid var(--gold); padding: 6px 0 6px 22px;
  font-family: var(--font-title); font-size: clamp(17px, 2.3vw, 24px);
  color: var(--gold-soft); line-height: 1.7;
}
.quote small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- 表格 ---------- */
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th, .ptable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.ptable th { color: var(--gold); font-weight: 400; font-family: var(--font-title); }
.ptable td { color: var(--muted); }
.ptable td b { color: var(--cream); font-weight: 400; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: #0B0B0E; padding: 54px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 330px; }
.footer-col h4 {
  font-family: var(--font-title); font-weight: 400; font-size: 14px;
  color: var(--gold-soft); margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 9px; transition: color .25s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
}
.footer-bottom p, .footer-legal a { color: var(--dim); font-size: 11.5px; }  /* 隐私政策/服务条款：页脚最小字 */
/* ICP 备案号：法定展示项，链接工信部备案系统 */
.footer-bottom .icp { color: var(--dim); font-size: 11.5px; transition: color .25s; }
.footer-bottom .icp:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 16px; align-items: center; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- 内页头部 ---------- */
.pagehead {
  padding: 148px 0 56px; position: relative;
  background: linear-gradient(180deg, rgba(200, 160, 90, .07), transparent 78%), var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.pagehead h1 {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(28px, 4vw, 42px); color: var(--gold-soft);
}
.pagehead .en { font-size: 12.5px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.crumb { margin-top: 14px; font-size: 12.5px; color: var(--dim); }
.crumb a:hover { color: var(--gold); }

/* ---------- 法务页 ---------- */
.legal { max-width: 820px; }
.legal h2 {
  font-family: var(--font-title); font-weight: 400; font-size: 19px;
  color: var(--gold-soft); margin: 34px 0 10px;
}
.legal p, .legal li { color: var(--muted); font-size: 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .note {
  border: 1px dashed var(--line); border-radius: 10px; padding: 14px 18px;
  color: var(--gold-soft); font-size: 13px; margin: 22px 0;
}

/* ---------- 滚动淡入 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 280px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--rev .split-media { order: 0; }
}
@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .section { padding: 60px 0; }
  .nav-links {
    position: fixed; inset: 61px 0 auto; flex-direction: column; gap: 0;
    background: rgba(11, 11, 14, .98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 10px 24px 20px;
    transform: translateY(-140%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 12px; }
  .stat:nth-child(even) { border-right: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 150px; }
  .person { flex-direction: column; gap: 14px; }
  .person-photo { width: 104px; height: 130px; }
  .hero { min-height: auto; padding: 110px 0 50px; }
  .pagehead { padding: 112px 0 40px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
}
