/* SPTI 詩鉑蒂國際 — 網站樣式 v1 */
:root {
  --ink: #1b2130;
  --ink-2: #454d5e;
  --muted: #6b7384;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --line: #e2dfd7;
  /* 取自 Logo：藍（主色）、金、紅 */
  --accent: #1f63d8;
  --accent-ink: #164a9f;
  --accent-soft: #e7effc;
  --gold: #f0a21a;
  --red: #d8321f;
  --brand-gradient: linear-gradient(90deg, #d8321f 0%, #f0a21a 45%, #1f63d8 100%);
  --dark: #151925;
  --dark-2: #1f2433;
  --dark-line: #2e3446;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(20, 24, 36, .04), 0 8px 24px rgba(20, 24, 36, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-gradient);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 12px; border-left: 1px solid var(--line); }
.brand-text strong { font-size: 17px; letter-spacing: .08em; }
.brand-text span { font-size: 12px; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); padding: 8px 14px; border-radius: 8px; font-size: 15px;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .btn { margin-left: 8px; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--dark) !important; }
.btn-light:hover { background: var(--accent-soft); }
.btn-sm { padding: 7px 16px; font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .18em; color: var(--accent-ink);
  font-weight: 700; margin-bottom: 14px; text-transform: uppercase;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { color: var(--ink-2); font-size: 17px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(31, 99, 216, .10), transparent 70%),
    radial-gradient(500px 300px at 10% 100%, rgba(240, 162, 26, .08), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: .02em; margin-bottom: 20px; }
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.hero-tags span {
  font-size: 13px; color: var(--ink-2); padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.hero-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow);
}
.visual-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }

.layer-legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.layer-legend li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.layer-legend .n {
  flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  font-size: 11px; font-weight: 700; background: var(--c); color: var(--t, #fff); border: 1px solid var(--b, transparent);
}
.layer-legend strong { display: block; font-size: 14px; }
.layer-legend li span:not(.n) { color: var(--muted); }

.cure-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cure-steps div {
  position: relative; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.4;
  padding: 9px 4px; border-radius: 10px; background: var(--surface-2);
}
.cure-steps small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.cure-steps .hot { background: var(--accent); color: #fff; }
.cure-steps .hot small { color: #d6e4ff; }
.cure-steps div:not(:last-child)::after {
  content: "›"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  font-size: 15px; font-weight: 400; color: var(--muted); z-index: 1;
}

/* 示意圖動畫 */
.uv-ray { animation: ray 1s linear infinite; }
.uv-beam, .tube-glow { animation: beam 2.4s ease-in-out infinite; }
.sweep { animation: sweep 3.2s ease-in-out infinite; }
@keyframes ray { to { stroke-dashoffset: -16; } }
@keyframes beam { 50% { opacity: .6; } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(470px); } }
@media (prefers-reduced-motion: reduce) {
  .uv-ray, .uv-beam, .tube-glow, .sweep { animation: none; }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Capability strip ---------- */
.strip { padding: 0; }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.strip-item { padding: 26px 24px; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: 0; }
.strip-item strong { display: block; font-size: 17px; margin-bottom: 4px; }
.strip-item span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.card-list li { padding: 3px 0 3px 16px; position: relative; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: .6; }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.app-item { background: var(--surface); padding: 28px; }
.app-item h3 { font-size: 18px; margin-bottom: 6px; }
.app-item p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.app-item .chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }

.chip {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* ---------- Why UV (dark) ---------- */
.dark { background: var(--dark); color: #e8e9ee; }
.dark .eyebrow { color: #f5b93f; }
.dark .section-head p { color: #a9aebd; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { border-top: 1px solid var(--dark-line); padding-top: 24px; }
.why-item .num { font-size: 13px; color: #8fb8ff; letter-spacing: .12em; font-weight: 700; }
.why-item h3 { font-size: 20px; margin: 10px 0 8px; color: #fff; }
.why-item p { color: #a9aebd; font-size: 15px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li { list-style: none; position: relative; padding-top: 48px; }
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 14px; font-weight: 700; color: var(--accent-ink);
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center;
}
.process li::after {
  content: ""; position: absolute; top: 18px; left: 48px; right: -10px; height: 1px; background: var(--line);
}
.process li:last-child::after { display: none; }
.process h3 { font-size: 18px; margin-bottom: 6px; }
.process p { font-size: 14px; color: var(--ink-2); }
.process { padding: 0; margin: 0; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process li::after { display: none; }
}
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-box {
  background: linear-gradient(135deg, var(--dark) 0%, #10285a 100%);
  border-radius: 20px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient); }
.cta-box h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-box p { color: #b9bdcc; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-box .btn-ghost { background: transparent; border-color: #4a5068; color: #fff !important; }
.cta-box .btn-ghost:hover { border-color: #fff; }
@media (max-width: 600px) { .cta-box { padding: 36px 24px; } .cta-band { padding-bottom: 64px; } }

/* ---------- Page header ---------- */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.page-head p { color: var(--ink-2); font-size: 17px; max-width: 680px; margin: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* ---------- Products page ---------- */
.cat-nav {
  position: sticky; top: 68px; z-index: 40; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.cat-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cat-nav .container::-webkit-scrollbar { display: none; }
.cat-nav a {
  white-space: nowrap; font-size: 14px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface);
}
.cat-nav a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.cat-section { padding: 72px 0; scroll-margin-top: 130px; border-bottom: 1px solid var(--line); }
.cat-section:last-of-type { border-bottom: 0; }
.cat-head { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.cat-head h2 { font-size: 28px; }
.cat-head .cat-desc { color: var(--ink-2); font-size: 15px; }
.cat-head > div:first-child { position: sticky; top: 150px; align-self: start; }
@media (max-width: 900px) {
  .cat-head { grid-template-columns: 1fr; gap: 24px; }
  .cat-head > div:first-child { position: static; }
}

.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 16px;
}
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.product h3 { font-size: 19px; margin-bottom: 6px; }
.product .desc { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.product dl { display: grid; grid-template-columns: 88px 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 14px; }
.product dt { color: var(--muted); }
.product dd { margin: 0; color: var(--ink); }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-new {
  font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--red), var(--gold));
  padding: 3px 10px; border-radius: 999px; letter-spacing: .06em;
}
.spec-list { margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.spec-list li { padding-left: 16px; position: relative; color: var(--ink-2); }
.spec-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 2px; }
@media (max-width: 560px) {
  .spec-list { grid-template-columns: 1fr; }
  .product { padding: 22px 20px; }
  .product dl { grid-template-columns: 76px 1fr; }
}
.note {
  font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin-top: 8px;
}

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.prose p { color: var(--ink-2); font-size: 16px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 110px; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.placeholder { color: var(--muted); font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .card-icon { margin: 0; flex: none; width: 40px; height: 40px; }
.contact-line small { display: block; color: var(--muted); font-size: 13px; }
.contact-line strong { font-weight: 500; word-break: break-word; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form { padding: 24px 20px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field label .req { color: #c2410c; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; margin: 0;
}
.checks input { width: auto; margin: 0; accent-color: var(--accent); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a9aebd; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-logo { background: #fff; border-radius: 8px; padding: 4px 8px; height: 48px; }
.site-footer .brand-text { border-left-color: var(--dark-line); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #8b90a0; }
.logo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 32px; margin-bottom: 20px; }
.logo-card img { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
@media (max-width: 480px) { .brand-text { display: none; } }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9ccd8; }
.site-footer a:hover { color: #fff; }
.footer-about { margin-top: 16px; max-width: 340px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--dark-line); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7d8294; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
