/* ============================================================
   Loonglite — 全新品牌站样式系统
   设计语言：深炭黑底 + 琥珀暖光，移动优先，语义化 + 无障碍
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #0e0e10;          /* 主背景：深炭黑 */
  --ink-soft: #16161a;     /* 次背景 */
  --ink-card: #1c1c21;     /* 卡片背景 */
  --line: rgba(255, 255, 255, 0.1);
  --paper: #f7f4ee;        /* 象牙白 */
  --paper-dim: #a9a49c;    /* 弱化文字 */
  --amber: #ff6b35;        /* 琥珀主色 */
  --amber-soft: #ffa66b;   /* 琥珀浅色 */
  --white: #ffffff;

  --font-sans: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* ---------- 3. 通用布局 ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--soft { background: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--amber); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); }
.h-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12; font-weight: 400; letter-spacing: -0.02em;
}
.h-title em { font-style: italic; color: var(--amber); }
.lead { color: var(--paper-dim); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 62ch; margin-top: 20px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow::before { display: none; }
.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;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--amber); color: var(--ink); padding: 12px 18px; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-size: 0.92rem; font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--amber); color: var(--ink); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.25); }
.btn--primary:hover { background: var(--amber-soft); }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
/* logo 本身是左白底黑字 / 右黑底白字的对仗设计，直接显示即可，右半黑底在深色导航上自然融合 */
.nav__logo img { width: 44px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.nav__links a {
  font-size: 0.9rem; color: var(--paper-dim); position: relative; padding-block: 6px;
  transition: color 0.25s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--paper); }
/* 导航内的主按钮：按钮底色为琥珀，文字必须用深色，优先级高于上面的 a 规则 */
.nav__links a.btn--primary, .nav__links a.btn--primary:hover,
.nav__links a.btn--primary[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--amber);
}
.nav__toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--paper); cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; }
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span { opacity: 0; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- 6. Hero 首页 ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(560px, 88vh, 860px); display: flex; align-items: center; }
.hero__glow {
  position: absolute; z-index: 0; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 45%, rgba(255, 107, 53, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 50% at 15% 85%, rgba(255, 166, 107, 0.08), transparent 65%);
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.hero__title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; }
.hero__title em { font-style: italic; color: var(--amber); }
.hero__sub { color: var(--paper-dim); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 46ch; margin-top: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 70, 0.28), transparent 70%); filter: blur(30px);
}
.hero__img { position: relative; width: min(100%, 480px); border-radius: 50%; object-fit: cover; aspect-ratio: 1; box-shadow: var(--shadow); }
.hero__badge {
  position: absolute; bottom: 6%; left: 2%; background: rgba(14, 14, 16, 0.88); border: 1px solid var(--line);
  backdrop-filter: blur(8px); padding: 14px 20px; border-radius: 12px; font-size: 0.8rem; letter-spacing: 0.05em;
}
.hero__badge strong { color: var(--amber); font-size: 1.4rem; display: block; line-height: 1.1; }

/* ---------- 7. 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--paper); line-height: 1; }
.stat__num em { color: var(--amber); font-style: normal; }
.stat__label { color: var(--paper-dim); font-size: 0.8rem; margin-top: 8px; letter-spacing: 0.06em; }

/* ---------- 8. 产品卡片网格 ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 48px; }
.product-card {
  position: relative; background: var(--ink-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s;
}
.product-card:hover { transform: translateY(-8px); border-color: rgba(255, 107, 53, 0.4); }
.product-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 24px; }
.product-card__tag { color: var(--amber); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.product-card__title { font-family: var(--font-display); font-size: 1.45rem; margin-top: 8px; }
.product-card__desc { color: var(--paper-dim); font-size: 0.9rem; margin-top: 10px; }
.product-card__link { display: inline-block; margin-top: 16px; color: var(--amber); font-size: 0.85rem; font-weight: 600; }

/* ---------- 9. 优势 / 特性列表 ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 36px; margin-top: 52px; }
.feature { padding-left: 22px; border-left: 2px solid var(--amber); }
.feature__num { font-family: var(--font-display); color: var(--amber); font-size: 1.6rem; }
.feature__title { font-size: 1.15rem; font-weight: 600; margin-top: 8px; }
.feature__desc { color: var(--paper-dim); font-size: 0.92rem; margin-top: 8px; }

/* ---------- 10. 图文分栏 (关于) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__text .h-title { margin-bottom: 8px; }
.split__text p { color: var(--paper-dim); margin-top: 16px; }
.split--reverse .split__media { order: 2; }

/* ---------- 11. 专利画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 44px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-card); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 16px; font-size: 0.82rem; color: var(--paper-dim); }

/* ---------- 12. 关联品牌 ---------- */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 80px); margin-top: 30px; }
.brands__item { text-align: center; }
.brands__item img { height: 34px; width: auto; filter: grayscale(1) brightness(2); opacity: 0.75; transition: all 0.3s; }
.brands__item:hover img { filter: none; opacity: 1; }
.brands__item span { display: block; font-size: 0.72rem; color: var(--paper-dim); margin-top: 10px; letter-spacing: 0.1em; }

/* ---------- 13. CTA 区块 ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 16px; padding: clamp(48px, 7vw, 90px);
  background: linear-gradient(120deg, #1b1512, #2a1a12 55%, #1b1512);
  border: 1px solid rgba(255, 107, 53, 0.25); text-align: center;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 120%, rgba(255, 107, 53, 0.3), transparent 65%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta .h-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta p { color: var(--paper-dim); margin-top: 16px; max-width: 50ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- 14. 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 30px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 52px; }
.footer-brand p { color: var(--paper-dim); font-size: 0.88rem; margin-top: 18px; max-width: 30ch; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--paper-dim); font-size: 0.9rem; padding-block: 5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  color: var(--paper-dim); font-size: 0.8rem;
}
.footer-bottom a { color: var(--paper-dim); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- 15. 内页页头 ---------- */
.page-hero { padding-top: clamp(90px, 12vw, 150px); padding-bottom: clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero::after {
  content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: radial-gradient(ellipse at 70% 0%, rgba(255, 107, 53, 0.12), transparent 70%); pointer-events: none;
}
.page-hero .h-title { margin-top: 4px; }
.page-hero .lead { margin-top: 18px; }

/* ---------- 16. 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); }
.contact-list { margin-top: 32px; display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon {
  flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 107, 53, 0.12); color: var(--amber); font-size: 1.2rem;
}
.contact-item h3 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); }
.contact-item p, .contact-item a { display: block; margin-top: 4px; font-size: 1rem; }
.contact-item a:hover { color: var(--amber); }
.contact-form {
  background: var(--ink-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; margin-bottom: 8px; color: var(--paper-dim); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 8px; color: var(--paper);
  background: var(--ink); border: 1px solid var(--line); transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--amber); font-size: 0.85rem; margin-top: 12px; min-height: 1.2em; }

/* ---------- 17. 时间线 ---------- */
.timeline { margin-top: 44px; display: grid; gap: 0; border-left: 2px solid var(--line); padding-left: 30px; }
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item::before {
  content: ""; position: absolute; left: -38px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.18);
}
.timeline__year { color: var(--amber); font-family: var(--font-display); font-size: 1.5rem; }
.timeline__item h3 { font-size: 1.1rem; margin-top: 4px; }
.timeline__item p { color: var(--paper-dim); font-size: 0.92rem; margin-top: 6px; }

/* ---------- 18. 滚动淡入 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. 响应式断点 ---------- */
@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-soft); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 20px;
    clip-path: inset(0 0 100% 0); transition: clip-path 0.35s var(--ease); pointer-events: none;
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__img { max-width: 380px; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 10px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .hero__badge { left: 0; }
}

/* ---------- 20. 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
