/* 首頁第 2 版：疊加在 style.css 之上 */
.num-font, .eyebrow, .v2-stat strong, .finish-meta .gu {
  font-family: "Barlow", "Noto Sans TC", system-ui, sans-serif;
}

/* ---------- 深色主視覺 ---------- */
.v2-hero {
  position: relative; overflow: hidden; color: #fff;
  background: #0a0d15; padding: 84px 0 0;
}
.v2-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 80% 20%, rgba(31, 99, 216, .28), transparent 70%),
    radial-gradient(520px 360px at 0% 90%, rgba(240, 162, 26, .14), transparent 70%);
}
.v2-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient);
}
.v2-hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.v2-hero .eyebrow { color: #f5b93f; }
.v2-hero h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.22; margin-bottom: 22px; letter-spacing: .02em; }
.v2-hero h1 .grad {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.v2-hero .lead { color: #aeb5c6; font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.v2-hero .btn-ghost { background: transparent; border-color: #3a4256; color: #fff !important; }
.v2-hero .btn-ghost:hover { border-color: #fff; }

.v2-hero-figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.v2-hero-figure img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.v2-hero-figure .tag {
  position: absolute; bottom: 16px; font-size: 13px; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 999px; background: rgba(10, 13, 21, .62);
  backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .16);
}
.v2-hero-figure .tag.l { left: 16px; }
.v2-hero-figure .tag.r { right: 16px; }
.v2-hero-figure .tag b { font-weight: 700; margin-right: 6px; }

.v2-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.v2-stat { padding: 26px 24px 30px 0; }
.v2-stat + .v2-stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.v2-stat strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.v2-stat span { font-size: 14px; color: #8f97aa; }

@media (max-width: 960px) {
  .v2-hero { padding-top: 56px; }
  .v2-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .v2-stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .v2-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .v2-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 480px) {
  .v2-hero-figure .tag { font-size: 12px; bottom: 10px; padding: 4px 10px; }
  .v2-hero-figure .tag.l { left: 10px; } .v2-hero-figure .tag.r { right: 10px; }
  .v2-stat, .v2-stat + .v2-stat { padding: 18px 12px 20px 0; }
  .v2-stat:nth-child(even) { padding-left: 14px; }
}

/* ---------- 表面效果樣品牆 ---------- */
.finishes-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .finishes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .finishes-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .finishes-grid .finish:last-child { grid-column: 1 / -1; }
  .finishes-grid .finish:last-child .swatch { aspect-ratio: 2 / 1; }
}

.finish {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; color: inherit; transition: transform .25s, box-shadow .25s;
}
a.finish:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.swatch {
  --mx: 30%; --my: 25%;
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; touch-action: pan-y;
}
.swatch > * { position: absolute; inset: 0; }
.swatch .shine { pointer-events: none; transition: background-position .2s; }

/* 高光鏡面 */
.sw-gloss .base { background: linear-gradient(165deg, #2a2f3b 0%, #0b0d13 55%, #000 100%); }
.sw-gloss .shine {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.9) 0, rgba(255,255,255,.25) 7%, transparent 20%),
    linear-gradient(115deg, transparent calc(var(--mx) - 12%), rgba(255,255,255,.16) calc(var(--mx) - 6%), transparent var(--mx));
}
/* 霧面 */
.sw-matte .base {
  background-color: #444a56;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sw-matte .shine { background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.2) 0, transparent 60%); }
/* 軟觸感 */
.sw-soft .base { background: #1d1f24 url("img/finish-gloss-leather.jpg") 100% 50% / 250% auto no-repeat; filter: brightness(1.15) contrast(.95); }
.sw-soft .shine { background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.1) 0, transparent 65%); }
/* 真空電鍍 */
.sw-chrome .base {
  background: linear-gradient(180deg, #fbfcfd 0%, #a7afba 28%, #eef1f4 46%, #4f5662 62%, #c9cfd6 80%, #8e96a1 100%);
  background-size: 100% 160%; background-position: 50% var(--my);
}
.sw-chrome .shine { background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.95) 0, rgba(255,255,255,.3) 9%, transparent 22%); mix-blend-mode: screen; }
/* 透明硬化 */
.sw-clear .base {
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 60%),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(31,99,216,.18) 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(31,99,216,.18) 15px 16px),
    #dfe8f5;
}
.sw-clear .shine {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.95) 0, transparent 16%),
    linear-gradient(115deg, transparent calc(var(--mx) - 10%), rgba(255,255,255,.55) calc(var(--mx) - 5%), transparent var(--mx));
}
.sw-clear .edge { box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 -18px 30px rgba(31,99,216,.12); }

.finish-meta { padding: 14px 16px 16px; }
.finish-meta h3 { font-size: 16px; margin: 0 0 2px; }
.finish-meta .en { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.finish-meta p { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.6; }
.finish-meta .gu { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.finish-hint { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- 應用領域大圖卡 ---------- */
.apps-big { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.app-card {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 380px; color: #fff;
  display: flex; align-items: flex-end;
}
.app-card:hover { text-decoration: none; }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.app-card:hover img { transform: scale(1.04); }
.app-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 8, 14, .88) 100%); }
.app-card .txt { position: relative; z-index: 1; padding: 24px; }
.app-card h3 { font-size: 22px; margin-bottom: 6px; }
.app-card p { font-size: 14px; color: #d3d7e0; margin-bottom: 12px; }
.app-card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.app-card .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #fff; }
.apps-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.apps-small .app-item { border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 900px) {
  .apps-big { grid-template-columns: 1fr 1fr; }
  .apps-big .app-card:first-child { grid-column: 1 / -1; }
  .apps-small { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .apps-big { grid-template-columns: 1fr; }
  .app-card { min-height: 300px; }
}

/* ---------- Why UV 雙欄 ---------- */
.why-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-two .why-grid { grid-template-columns: 1fr; gap: 0; }
.why-two .why-item { padding: 20px 0; }
.why-two .hero-visual { color: var(--ink); }
@media (max-width: 900px) { .why-two { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 弧形塗層剖面 ---------- */
.coat-diagram { width: 100%; height: auto; }
.diagram-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 480px) {
  .why-two .hero-visual { padding: 18px 14px; }
  .diagram-caption { flex-direction: column; gap: 2px; }
}
.coat-diagram .sweep-arc { animation: arc-sweep 3.2s ease-in-out infinite; }
@keyframes arc-sweep { from { stroke-dashoffset: 15; } to { stroke-dashoffset: -105; } }
@media (prefers-reduced-motion: reduce) { .coat-diagram .sweep-arc { animation: none; opacity: 0; } }

/* ---------- 內頁深色頁首 ---------- */
.page-head.v2-head {
  position: relative; overflow: hidden; color: #fff; border-bottom: 0;
  background: #0a0d15; padding: 84px 0 68px;
}
.page-head.v2-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 360px at 85% 0%, rgba(31, 99, 216, .28), transparent 70%),
    radial-gradient(480px 300px at 0% 100%, rgba(240, 162, 26, .12), transparent 70%);
}
.page-head.v2-head .head-bg { position: absolute; inset: 0; background-position: right center; background-size: 200% auto; background-repeat: no-repeat; background-color: #0a0d15; }
.page-head.v2-head .head-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0a0d15 30%, rgba(10, 13, 21, .72) 60%, rgba(10, 13, 21, .35) 100%);
}
@media (max-width: 700px) { .page-head.v2-head .head-bg::after { background: rgba(10, 13, 21, .78); } }
.page-head.v2-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient); }
.page-head.v2-head .container { position: relative; }
.page-head.v2-head .eyebrow { color: #f5b93f; }
.page-head.v2-head h1 { color: #fff; }
.page-head.v2-head p { color: #aeb5c6; }
.page-head.v2-head .crumbs, .page-head.v2-head .crumbs a { color: #8f97aa; }
@media (max-width: 600px) { .page-head.v2-head { padding: 56px 0 48px; } }

/* 產品卡片 */
.product { border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.product:hover { border-color: var(--accent); box-shadow: var(--shadow); }

/* 首頁產品卡片：「找不到合適的產品」橫跨整列 */
.grid .card-cta { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: center; }
.grid .card-cta .card-icon { margin: 0; grid-row: span 2; }
.grid .card-cta h3 { margin: 0; }
.grid .card-cta p { margin: 0; grid-column: 2; }
.grid .card-cta .more { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
@media (max-width: 640px) {
  .grid .card-cta { grid-template-columns: auto 1fr; }
  .grid .card-cta .more { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; }
}

/* ---------- 捲動淡入 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .app-card img { transition: none; }
}
