/* ============================================================
   OUR OCEAN® 电子色卡 — 苹果官网风
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --accent: #0071e3;
  --accent-soft: #e8f1ff;
  --border: #d2d2d7;
  --radius: 18px;
  --nav-h: 48px;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
sup { font-size: .6em; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: var(--nav-h); padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
  font-weight: 600; font-size: 17px; color: var(--text); letter-spacing: -.2px;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--text-2); font-size: 13px; padding: 6px 10px; border-radius: 8px;
  transition: color .2s, background .2s; display: inline-block;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,.04); }

/* OUR CATALOG 下拉导航 */
.nav-item { position: relative; }
.nav-dd-trigger { cursor: pointer; }
.nav-item .dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 300px; background: rgba(255,255,255,.98);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.16);
  border: 1px solid rgba(0,0,0,.06); padding: 10px; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dd-row {
  display: flex !important; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px !important; border-radius: 10px; box-sizing: border-box;
}
.dd-row b { font-size: 16px; color: var(--text); width: 34px; flex: none; }
.dd-row span { font-size: 12px; color: var(--text-2); line-height: 1.3; white-space: normal; }
.dd-row:hover { background: var(--bg-soft) !important; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-size: 13px; color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px;
  cursor: pointer; font-family: inherit; transition: background .2s;
}
.lang-toggle:hover { background: #ececef; }
.nav-cta {
  font-size: 13px; font-weight: 500; color: #fff; background: var(--accent);
  border-radius: 999px; padding: 6px 16px; transition: background .2s, transform .1s;
}
.nav-cta:hover { background: #0077ed; transform: scale(1.02); }
.menu-btn { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }

/* ---------------- 通用容器 ---------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 22px; }
.sec-label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 10px;
}
.sec-title { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; letter-spacing: -.5px; line-height: 1.12; }
.sec-sub { font-size: clamp(15px, 1.6vw, 19px); color: var(--text-2); margin-top: 12px; max-width: 640px; }
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/ui/hero.webp") center center / cover no-repeat #16202a;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.5) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 22px; max-width: 900px; }
.hero-eyebrow {
  font-size: 14px; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 18px; opacity: .92;
}
.hero-title {
  font-size: clamp(40px, 8vw, 84px); font-weight: 700; letter-spacing: -.6px;
  line-height: 1.02; margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 22px); opacity: .92; margin-bottom: 34px;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; border-radius: 999px; padding: 13px 28px;
  font-size: 16px; font-weight: 500; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: #fff; transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: scale(1.03); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0077ed; transform: scale(1.03); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 12px; letter-spacing: .18em; opacity: .8;
}

/* ---------------- 统计条 ---------------- */
.stats { background: var(--bg-soft); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: var(--maxw);
  margin: 0 auto; padding: 56px 22px; text-align: center;
}
.stat-num { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.4px; }
.stat-label { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ---------------- 系列卡片 ---------------- */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.series-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); cursor: pointer; display: block; color: inherit;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  aspect-ratio: 4/3;
}
.series-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.12); }
.series-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.series-card:hover img { transform: scale(1.04); }
.series-card-ov {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
}
.series-card-txt { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; }
.series-card-code { font-size: 30px; font-weight: 700; letter-spacing: -.3px; }
.series-card-name { font-size: 15px; opacity: .92; margin-top: 2px; }
.series-card-count { font-size: 13px; opacity: .72; margin-top: 6px; }

/* ---------------- 品牌故事 ---------------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  background: url("../img/ui/tex_dark.webp") center / cover no-repeat #333;
  min-height: 380px;
}
.story-copy p { color: var(--text-2); font-size: 16px; margin-top: 16px; }
.story-copy .story-cn { color: var(--text); }

/* ---------------- 产品网格（系列页） ---------------- */
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.series-hero {
  padding: 56px 22px 8px; max-width: var(--maxw); margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.series-hero-code { font-size: clamp(52px, 9vw, 96px); font-weight: 700; letter-spacing: -2px; line-height: 1; }
.series-hero-name { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; margin-top: 8px; }
.series-hero-en { font-size: 16px; color: var(--text-2); margin-top: 2px; }
.series-hero-intro { font-size: 16px; color: var(--text-2); max-width: 720px; margin-top: 18px; }
.series-hero-tag {
  display: inline-block; margin-top: 18px; padding: 6px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  border-radius: var(--radius); background: var(--bg-soft); overflow: hidden;
  cursor: pointer; display: block; color: inherit;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.p-card-media { aspect-ratio: 16/10; overflow: hidden; background: #e8e8ed; position: relative; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; }
.p-card-info { padding: 16px 18px 18px; }
.p-card-num { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.p-card-meta { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.p-card-color { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.color-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ---------------- 产品详情 ---------------- */
.detail { max-width: 1200px; margin: 0 auto; padding: 32px 22px 72px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 40px; margin-top: 24px; }
.detail-media {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.detail-media img { width: 100%; height: auto; cursor: zoom-in; }
.detail-zoom-hint { font-size: 12px; color: var(--text-3); text-align: center; padding: 10px 0; }
.detail-title { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -.6px; }
.detail-series { font-size: 15px; color: var(--text-2); margin-top: 6px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; }
.spec-table th {
  text-align: left; font-weight: 600; color: var(--text); padding: 11px 0;
  border-bottom: 1px solid var(--border); width: 120px;
}
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.detail-features { margin-top: 28px; }
.detail-features h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.detail-features ol { list-style: none; counter-reset: f; }
.detail-features li {
  counter-increment: f; position: relative; padding-left: 28px;
  color: var(--text-2); font-size: 15px; margin-bottom: 10px; line-height: 1.6;
}
.detail-features li::before {
  content: counter(f); position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; background: var(--bg-soft);
  color: var(--text-2); font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.detail-colors { margin-top: 28px; }
.detail-colors h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px;
  border-radius: 999px; background: var(--bg-soft); font-size: 12.5px; color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.color-chip .dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.chip-more { font-size: 13px; color: var(--text-3); padding: 6px 4px; }
.detail-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 15px;
}
.detail-nav a { display: inline-flex; align-items: center; gap: 6px; }
.detail-nav .mid { color: var(--text-3); font-size: 13px; }

/* ---------------- CTA 条 ---------------- */
.cta-band {
  background: url("../img/ui/tex_light.webp") center / cover no-repeat #f0f0f2;
  padding: 88px 22px; text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.5px; }
.cta-band p { color: var(--text-2); margin: 12px auto 26px; max-width: 560px; font-size: 16px; }

/* ---------------- Footer ---------------- */
.footer { background: var(--bg-soft); color: var(--text-2); margin-top: 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-brand { font-size: 18px; font-weight: 600; color: var(--text); }
.footer-tagline { font-size: 13px; margin-top: 8px; }
.footer-col h4 { font-size: 13px; color: var(--text); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-mail { display: block; font-size: 13px; margin-bottom: 8px; }
.footer-mini { font-size: 13px; margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 22px; text-align: center;
  font-size: 12px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom-right { letter-spacing: .08em; }

/* ---------------- 灯箱 ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 40px;
}
.lightbox.open { display: flex; }
.lb-close {
  position: absolute; top: 18px; right: 22px; font-size: 26px; color: #fff;
  background: none; border: none; cursor: pointer; z-index: 2;
}
.lb-stage { max-width: 96vw; max-height: 86vh; overflow: auto; display: flex; }
.lb-stage img { max-width: 96vw; width: auto; }
.lb-caption { color: #bbb; font-size: 14px; margin-top: 14px; }

/* ---------------- 联系我们弹窗 ---------------- */
.contact-modal {
  position: fixed; inset: 0; z-index: 320; background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.contact-modal.open { display: flex; }
.cm-box {
  position: relative; background: #fff; border-radius: 22px; padding: 40px 36px 34px;
  text-align: center; max-width: 340px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: cmIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes cmIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.cm-close {
  position: absolute; top: 14px; right: 16px; font-size: 20px; color: var(--text-3);
  background: none; border: none; cursor: pointer;
}
.cm-qr { width: 200px; height: 200px; margin: 0 auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.cm-title { font-size: 18px; font-weight: 600; margin-top: 18px; color: var(--text); }
.cm-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.cm-web { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; }

/* 页脚二维码 */
.footer-find { display: inline-block !important; margin-top: 2px; }
.footer-qr { width: 92px; height: 92px; margin-top: 12px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* ---------------- 动画 ---------------- */
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeUp .7s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* 懒加载占位抖动 */
img.lazy { opacity: 0; transition: opacity .45s ease; }
img.lazy.loaded { opacity: 1; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; gap: 28px; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: rgba(255,255,255,.97); padding: 12px 22px 20px;
    border-bottom: 1px solid var(--border); gap: 4px;
  }
  .nav-links.open a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid rgba(0,0,0,.05); }
  /* 移动端 OUR CATALOG 手风琴 */
  .nav-item.has-dd { width: 100%; }
  .nav-item .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; box-shadow: none; border: none; background: transparent;
    padding: 4px 0 8px 12px; display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .dd-row span { font-size: 13px; }
  .nav-links.open .nav-item > a { border-bottom: 1px solid rgba(0,0,0,.05); }
}
@media (max-width: 560px) {
  .section { padding: 52px 18px; }
  .series-grid, .product-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .hero { min-height: 86vh; }
}
