/* =========================================================
   EZYLIFE FILM — dark theme (配色/排版对照参考站 ezylifefilm.com:
   深蓝灰底 #273142 · 白色吸顶头部 · 橙色强调 #ff5719 · Rubik)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #f2f5fa;          /* 深底主文字 (亮) */
  --ink-2: #b4bfcc;        /* 次级文字 */
  --ink-3: #8593a6;        /* 弱化文字 */
  --bg: #273142;           /* 页面底色 (参考站同款深蓝灰) */
  --bg-soft: #2f3a4d;      /* 抬升面 (卡片/面板/输入框) */
  --bg-deep: #232c3b;      /* 更深一档 (嵌套面) */
  --line: #3c485c;         /* 分隔线/描边 */
  --accent: #ff5719;       /* 参考站橙色 */
  --accent-2: #ff8a50;
  --accent-grad: linear-gradient(120deg, #ff7a35, #ff5719);
  --dark: #1e2634;         /* 更深面板 (页脚/视频框/CTA) */
  --dark-2: #232c3b;
  /* 白色头部专用 (参考站: 白头部 + 深字) */
  --header-bg: #ffffff;
  --header-ink: #1d2634;
  --header-ink-2: #5d6a7d;
  --header-hover: #f3f5f8;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(5, 9, 16, .45);
  --shadow-lg: 0 24px 60px rgba(5, 9, 16, .55);
  --header-h: 72px;
  --container: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 87, 25, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 87, 25, .45); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-light { background: #fff; color: var(--header-ink); }
.btn-light:hover { color: var(--accent); }

/* ============ Header (参考站: 白色吸顶) ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
/* 毛玻璃效果放在伪元素上, 避免 backdrop-filter 使 header 成为 fixed 子元素的包含块 */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}
.header-inner, .search-bar { position: relative; z-index: 1; }
.site-header.is-scrolled { border-color: #e8ebf0; box-shadow: 0 6px 24px rgba(5,9,16,.14); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.brand img { height: 34px; width: auto; }
.brand { flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; color: var(--header-ink);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--header-hover); color: var(--accent); }
.menu-btn { display: none; }
.btn-contact { padding: 9px 20px; font-size: 14px; }

/* --- Nav --- */
.nav-list { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-item { position: relative; flex-shrink: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: var(--header-ink);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--accent); background: var(--header-hover); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent-grad);
}
.caret { opacity: .55; transition: transform .2s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

.sub-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px; max-width: 520px;
  background: var(--header-bg); border: 1px solid #e8ebf0; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 90;
}
.nav-item:hover > .sub-panel,
.nav-item:focus-within > .sub-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.sub-list {
  display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 2px;
}
.nav-item:only-child .sub-list,
.sub-list:has(> li:nth-child(3)) { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.sub-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--header-ink);
  transition: background .18s, color .18s;
}
.sub-link:hover { background: var(--header-hover); color: var(--accent); }
.sub-count {
  font-style: normal; font-size: 12px; color: var(--header-ink-2);
  background: var(--header-hover); border-radius: 999px; padding: 1px 8px;
}
.sub-link:hover .sub-count { background: #ffe3d6; color: var(--accent); }
.sub-panel-right { left: auto; right: 0; transform: translateY(8px); }
.nav-item:hover > .sub-panel-right,
.nav-item:focus-within > .sub-panel-right { transform: translateY(0); }
.sub-list-one { grid-template-columns: 1fr !important; min-width: 220px; }

/* --- Search bar --- */
.search-bar { border-top: 1px solid #e8ebf0; background: var(--header-bg); }
.search-bar form {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; color: var(--header-ink-2);
}
.search-bar input {
  flex: 1; border: 0; font-size: 17px; color: var(--header-ink); background: none;
}
.search-bar input:focus { outline: none; }
.search-bar .btn { padding: 9px 24px; }

.header-spacer { height: var(--header-h); }

/* ============ White-label drawer (背膜白标区) ============ */
.bf-drawer {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
  background: var(--header-bg); border-bottom: 1px solid #e8ebf0;
  box-shadow: var(--shadow-lg);
}
.bf-drawer ul { padding: 10px 20px 18px; max-height: 70vh; overflow-y: auto; }
.bf-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px; font-weight: 600; color: var(--header-ink);
  border-bottom: 1px solid #eef1f5;
}
.bf-drawer li:last-child a { border-bottom: 0; }
.bf-drawer a:hover { color: var(--accent); }
@media (min-width: 901px) {
  .bf-drawer { left: auto; right: 0; width: min(340px, 90vw); border-radius: 0 0 0 16px; }
}

/* ============ Hero slider ============ */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero-slides { position: relative; height: min(72vh, 620px); min-height: 420px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity .8s var(--ease); pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,18,28,.7) 0%, rgba(13,18,28,.4) 55%, rgba(13,18,28,.15) 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; padding-top: 24px; }
.hero-copy.is-visible { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent-grad); }
.hero-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero-sub { margin-top: 16px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.82); max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero .btn-light { padding: 12px 28px; }
.hero .btn-ghost-light { padding: 12px 28px; }

.hero-dots {
  position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.4);
  transition: width .25s var(--ease), background .25s;
}
.hero-dots button.is-active { width: 26px; background: var(--accent); }

/* ============ Sections ============ */
.section { padding: 64px 0; }
.section.alt { background: var(--dark); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent-grad); }
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
.section-sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.section-more:hover { gap: 10px; }
.section-more { transition: gap .2s; }
.section-more svg { transition: transform .2s; }

/* ============ Category tiles ============ */
.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: 26px; padding: 22px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; right: -34px; bottom: -34px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--accent-grad); opacity: .10;
  transition: transform .3s var(--ease), opacity .3s;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255,87,25,.5); }
.tile:hover::after { transform: scale(1.5); opacity: .18; }
.tile-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 87, 25, .14); color: var(--accent);
}
.tile-name { display: block; font-weight: 700; font-size: 16px; }
.tile-count { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }

/* ============ Product grid (参考站: 图片为主的简洁卡片, 无白色底板) ============ */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }

.p-card {
  position: relative;
  background: transparent; border: 0; border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), opacity .25s;
}

.card-media {
  position: relative; display: block;
  aspect-ratio: 3 / 4;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 6%;
  transition: transform .35s var(--ease);
}
.p-card:hover .card-media img { transform: scale(1.045); }

.card-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(13, 18, 28, .45); backdrop-filter: blur(2px);
  border-radius: var(--radius);
  opacity: 0; transition: opacity .25s var(--ease);
}
.p-card:hover .card-overlay, .p-card:focus-within .card-overlay { opacity: 1; }
.ov-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.94); color: var(--header-ink);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transform: translateY(8px); transition: transform .25s var(--ease), background .2s, color .2s;
}
.ov-btn:hover { background: #fff; color: var(--accent); transform: translateY(0) scale(1.06); }
.ov-btn.is-play { background: var(--accent-grad); color: #fff; }

.badge-video {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(13, 18, 28, .78); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  backdrop-filter: blur(4px);
}
.badge-video::before {
  content: ""; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 6.5px;
  border-color: transparent transparent transparent #fff;
}

.card-body { padding: 13px 4px 4px; }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.card-title a:hover { color: var(--accent); }
.card-meta {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 5px;
  font-size: 12.5px; color: var(--ink-3);
}

.grid-empty { padding: 60px 0; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ============ Toolbar (list page) ============ */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.result-count { color: var(--ink-2); font-size: 14.5px; }
.result-count strong { color: var(--ink); }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip svg { width: 12px; height: 12px; }
.chip .chip-count { font-size: 11.5px; opacity: .7; }

/* Sub-category strip on list pages */
.subcat-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.subcat-chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-2); border: 1.5px solid transparent;
  transition: all .2s;
}
.subcat-chip:hover { color: var(--accent); }
.subcat-chip.is-active { background: var(--accent); color: #fff; }
.subcat-chip .chip-count { font-size: 11.5px; opacity: .75; margin-left: 4px; }

/* ============ Page hero (inner pages) ============ */
.page-hero {
  background: var(--dark); border-bottom: 1px solid var(--line);
  color: #fff; padding: 52px 0 42px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: var(--accent-grad); opacity: .14; filter: blur(4px);
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.4px; position: relative; z-index: 1; }
.page-hero .crumbs { position: relative; z-index: 1; }
.page-hero p { margin-top: 8px; color: rgba(255,255,255,.72); position: relative; z-index: 1; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.page-hero .crumbs { color: rgba(255,255,255,.65); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--accent); }
.page-hero .crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }

/* ============ Detail page ============ */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; padding: 44px 0; }

.detail-media { position: relative; }
.detail-wrap > .detail-media:only-child { grid-column: 1 / -1; }
.detail-wrap > .detail-media:only-child .detail-thumbs { justify-content: center; }
.detail-stage {
  position: relative; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-deep);
  overflow: hidden; cursor: zoom-in;
}
.detail-stage img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.detail-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.detail-thumbs button {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: var(--bg-deep); padding: 4px;
  transition: border-color .2s, transform .2s;
}
.detail-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumbs button:hover { transform: translateY(-2px); }
.detail-thumbs button.is-active { border-color: var(--accent); }

.detail-video { margin-top: 22px; }
.video-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--dark); aspect-ratio: 16 / 9;
}
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.video-label::before { content: ""; width: 22px; height: 2px; background: var(--accent-grad); border-radius: 2px; }

.detail-info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.4px; }
.detail-series { color: var(--accent); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.detail-facts { margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.fact { display: flex; justify-content: space-between; gap: 18px; padding: 13px 18px; font-size: 14.5px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt { color: var(--ink-3); font-weight: 600; }
.fact dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.detail-actions .btn { padding: 13px 30px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.detail-tags a {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-soft); padding: 5px 12px; border-radius: 999px;
}
.detail-tags a:hover { color: var(--accent); background: rgba(255, 87, 25, .14); }

/* ============ Try on device (专业印花预览渲染器) ============ */
.tryon { margin-top: 26px; }
.tryon-dark {
  position: relative;
  display: flex; justify-content: center;
  padding: 36px 0 26px;
  border-radius: 16px;
  background: #000;
}
.tryon-dark canvas {
  width: min(320px, 82%);
  display: block;
}
.tryon-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; align-items: center;
  margin-top: 14px;
}
.upload-btn {
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg-soft);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.upload-btn:hover { border-color: var(--accent); color: var(--accent); }
.frame-chips { display: inline-flex; gap: 7px; }
.frame-chips button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line);
  cursor: pointer; padding: 0;
}
.frame-chips button.is-active { box-shadow: 0 0 0 2px var(--accent); }
.frame-chips .fc-orange { background: linear-gradient(135deg, #ffb469, #ff7d1f); }
.frame-chips .fc-silver { background: linear-gradient(135deg, #f5f6f9, #a9b0bd); }
.frame-chips .fc-graphite { background: linear-gradient(135deg, #5a5e68, #1c1e24); }
.tryon-note {
  text-align: center; font-size: 12.5px; color: var(--ink-3);
  margin-top: 12px;
}

/* 列表卡片竖版图的手机壳效果 */
.card-media .phone-frame {
  position: relative; display: block; border-radius: 26px; overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .30), inset 0 0 0 6px rgba(5, 9, 16, .25), 0 10px 22px rgba(5, 9, 16, .45);
}
.card-media .phone-frame img { border-radius: 20px; }
.card-media .phone-frame::before {
  content: ""; position: absolute; top: 6%; left: 10.5%; z-index: 2;
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #454b5c, #12141b 72%);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .38), inset 0 1px 2px rgba(255, 255, 255, .4);
}

.detail-content { padding: 10px 0 50px; }
.detail-content h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.detail-content .rich { color: var(--ink-2); font-size: 15.5px; max-width: 860px; }
.rich p { margin: 0 0 14px; }
.rich img { border-radius: 12px; margin: 10px 0; }

.detail-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 60px;
}
.pager-link { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s; }
.pager-link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.pager-link span { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 4px; }
.pager-link a { color: var(--ink); font-weight: 600; }
.pager-link a:hover { color: var(--accent); }
.pager-link.next { text-align: right; }

/* ============ Feature strip ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 87, 25, .14); color: var(--accent);
}
.feature h3 { font-size: 16px; font-weight: 700; }
.feature p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }

/* ============ CTA band ============ */
.cta-band {
  background: var(--dark); color: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: var(--accent-grad); opacity: .22; filter: blur(10px);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.7); margin-top: 8px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; padding: 14px 32px; }

/* ============ Video spotlight (homepage) ============ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.v-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.v-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.v-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.v-card:hover .v-thumb img { transform: scale(1.05); }
.v-play {
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  transition: transform .25s var(--ease);
}
.v-play::before {
  content: ""; width: 0; height: 0; border-style: solid;
  border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor;
  margin-left: 3px;
}
.v-card:hover .v-play { transform: scale(1.1); }
.v-body { padding: 14px 18px 16px; }
.v-body h3 { font-size: 15.5px; font-weight: 700; }
.v-body p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ============ Contact page ============ */
.contact-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; padding: 48px 0 70px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.contact-card .feature-icon { background: rgba(255, 87, 25, .14); }
.contact-card h3 { font-size: 15px; font-weight: 700; }
.contact-card p { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }
.contact-card a:hover { color: var(--accent); }

.msg-form {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px; box-shadow: var(--shadow);
}
.msg-form h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.msg-form > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-deep);
  font-size: 15px; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--dark-2);
}
.field textarea { min-height: 130px; resize: vertical; }
.code-row { display: flex; gap: 12px; align-items: stretch; }
.code-row input { flex: 1; }
.code-row img { height: 48px; border-radius: 12px; cursor: pointer; }
.form-msg { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.form-msg.ok { background: rgba(34, 197, 94, .14); color: #4ade80; display: block; }
.form-msg.err { background: rgba(239, 68, 68, .14); color: #f87171; display: block; }

/* ============ About page ============ */
.about-wrap { max-width: 800px; margin: 0 auto; padding: 48px 0 60px; }
.about-wrap .rich { color: var(--ink-2); font-size: 16px; }
.about-wrap .rich h1, .about-wrap .rich h2 { color: var(--ink); margin: 26px 0 12px; }

/* ============ Search page ============ */
.search-summary { padding: 34px 0 8px; }
.search-summary h1 { font-size: 24px; font-weight: 800; }
.search-summary p { color: var(--ink-2); margin-top: 6px; }

/* ============ Pagination ============ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 46px 0 8px; }
.pagination a, .pagination span, .pagination strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--ink-2); background: transparent;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination strong, .pagination span.is-current, .pagination .page-current {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1.3fr 1.1fr 1.6fr; gap: 40px;
  padding: 56px 24px 44px;
}
.footer-logo { filter: brightness(0) invert(1); height: 30px; width: auto; }
.footer-tagline { color: #fff; font-weight: 700; margin-top: 18px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 10px; max-width: 340px; }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; letter-spacing: .4px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: rgba(255,255,255,.66); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact .btn { margin-top: 18px; padding: 10px 22px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 20px 24px; font-size: 13px; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: inherit; }

/* ============ Back to top ============ */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--header-ink); border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--accent); transform: translateY(-3px); }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 300; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10, 13, 20, .92); backdrop-filter: blur(6px); }
.lightbox-dialog { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb-close {
  position: absolute; top: 22px; right: 22px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

.lb-stage { margin: 0; max-width: min(1100px, 94vw); width: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-media {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  max-height: calc(100vh - 190px);
}
.lb-media img, .lb-media canvas { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 10px; width: auto; height: auto; }
.lb-media img { object-fit: contain; }
.lb-media .video-frame { width: min(960px, 92vw); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.lb-media .video-frame video, .lb-media .video-frame iframe { width: 100%; height: 100%; border: 0; }

.lb-caption {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 18px; color: #fff;
}
.lb-title { font-weight: 700; font-size: 16px; }
.lb-meta { color: rgba(255,255,255,.6); font-size: 13.5px; }
.lb-video-btn { padding: 9px 20px; font-size: 13.5px; }
.lb-counter { font-size: 13px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }

body.lb-open { overflow: hidden; }

/* ============ Responsive ============ */
@media (max-width: 1280px) {
  .nav-link { padding: 10px 7px; font-size: 13.5px; gap: 4px; }
  .header-inner { gap: 12px; }
  .brand img { height: 30px; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  .menu-btn { display: inline-flex; }
  .btn-contact { display: none; }

  .nav-list { display: none; }
  .main-nav.is-open .nav-list {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--header-h); right: 0; bottom: 0;
    width: min(360px, 88vw); overflow-y: auto;
    background: var(--header-bg); padding: 18px 20px 40px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-link {
    width: 100%; justify-content: space-between;
    padding: 14px 12px; border-radius: 12px; font-size: 16px;
  }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--header-hover); }

  .sub-panel {
    position: static; transform: none; min-width: 0; max-width: none;
    opacity: 1; visibility: hidden; display: none;
    box-shadow: none; border: 0; padding: 0 6px 6px;
  }
  .nav-item.sub-open > .sub-panel { display: block; visibility: visible; }
  .sub-list { grid-template-columns: 1fr !important; }
  .sub-link { justify-content: space-between; padding: 10px 12px 10px 22px; color: var(--header-ink-2); }
  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: ""; position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(10,13,20,.55); z-index: 98;
  }

  .grid, .grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card-body { padding: 10px 2px 2px; }
  .card-title { font-size: 13.5px; }
  .card-meta { font-size: 11px; }
  .badge-video { top: 8px; right: 8px; font-size: 10.5px; padding: 4px 8px; }

  .detail-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 48px; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 26px; }
  .lb-nav { display: none; }
  .hero-slides { height: 68vh; min-height: 380px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .grid, .grid.compact { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; }
  .hero-title { font-size: 30px; }
  .toolbar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
