/* KISIDE Taiwan — 黑白極簡＋品牌粉紅點綴，LINE 綠只用在購買按鈕 */

:root {
  --ink: #141414;
  --paper: #ffffff;
  --mist: #f2f2f2;
  --rule: #e2e2e2;
  --muted: #6b6b6b;
  --pink: #cc1f68;        /* 品牌粉紅：白底、淡粉底上的小字都達 4.5:1 */
  --pink-soft: #f39bbe;   /* 深色底（頁尾）上的粉紅 */
  --blush: #fce8f0;       /* 淡粉底 */
  --petal: #f6c3d6;       /* 主視覺佔位底色 */
  --blush-ink: #5c4a52;   /* 淡粉底上的次要文字 */
  --line-green: #06c755;
  --line-green-press: #05b34c;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: 0.04em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; padding: 8px 16px; background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 800px; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-mark { font-size: 20px; font-weight: 800; letter-spacing: 0.32em; }
.logo-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--pink); }

.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; text-decoration: none; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--pink); font-weight: 700; }

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { gap: 20px; font-size: 14px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { background: var(--line-green-press); border-color: var(--line-green-press); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stack { display: grid; gap: 12px; }

.text-link {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--pink);
  font-weight: 700;
  text-decoration: none;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--muted);
}

/* 待確認標記：上線前要全部替換掉 */
.tbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--muted);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 圖片框 ---------- */

.media { display: block; background: var(--mist); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section--rule { border-top: 1px solid var(--rule); }
.section-title { margin-bottom: 20px; font-size: clamp(22px, 3vw, 28px); }

.split { display: grid; gap: 8px; }
.split p + p { margin-top: 12px; }
.split-body { color: var(--muted); }
.split-body .text-link { color: var(--ink); }

@media (min-width: 880px) {
  .section { padding: 96px 0; }
  .split { grid-template-columns: 1fr 2fr; gap: 64px; }
}

/* ---------- 首頁 ---------- */

.home-hero { background: var(--blush); }
.home-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: 56px; padding-bottom: 64px; }
.home-hero-text { flex: 1 1 380px; min-width: 0; }
.home-hero .eyebrow { color: var(--pink); }
.home-hero h1 { margin-bottom: 24px; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.3; letter-spacing: 0.06em; font-weight: 800; }
.home-hero h1 .pink { color: var(--pink); }
.home-hero-lead { max-width: 28em; margin-bottom: 32px; color: var(--blush-ink); }
.home-hero .btn-outline { background: var(--paper); }
.home-hero .btn-outline:hover { background: var(--ink); color: var(--paper); }
.home-hero-media { flex: 1 1 460px; min-width: 0; background: var(--petal); }
.home-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.showcase { display: grid; gap: 32px; align-items: center; }
.showcase h3 { margin-bottom: 12px; font-size: clamp(22px, 3vw, 30px); }
.showcase .lead { margin-bottom: 20px; color: var(--muted); }

.perks-band { padding: 40px 0; background: var(--blush); }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.perk {
  display: block;
  padding: 24px 20px;
  background: var(--paper);
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.perk:hover { box-shadow: inset 0 0 0 1px var(--pink); }
.perk strong { display: block; margin-bottom: 4px; font-size: 17px; }
.perk span { font-size: 14px; color: var(--muted); }

@media (min-width: 880px) {
  .home-hero-inner { padding-top: 80px; padding-bottom: 88px; }
  .showcase { grid-template-columns: 1fr 1fr; gap: 64px; }
  .perks-band { padding: 56px 0; }
  .perks { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ---------- 商品頁 ---------- */

.crumbs { padding-top: 20px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.product { display: grid; gap: 32px; padding: 24px 0 64px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.product-info h1 { margin-bottom: 16px; font-size: clamp(26px, 4vw, 36px); }
.price { margin-bottom: 20px; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.product-info .lead { margin-bottom: 28px; color: var(--muted); }
.order-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.colors { margin-bottom: 24px; }
.colors-label { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.colors-list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.colors-list li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 50%; }

.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); }

.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scenes img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (min-width: 880px) {
  .product { grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 40px 0 96px; }
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 15px;
}
.checklist li { display: flex; align-items: baseline; gap: 12px; }
.checklist li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--ink); transform: translateY(-3px); }

.features { display: grid; margin: 0; border-top: 1px solid var(--ink); }
.feature { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.feature dt { margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.feature dd { margin: 0; color: var(--muted); }

@media (min-width: 768px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.spec th, .spec td { padding: 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 15px; }
.spec th { width: 32%; padding-right: 16px; font-weight: 600; }

/* ---------- 文件頁（關於、聯絡、政策） ---------- */

.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-lead { margin-top: 16px; color: var(--muted); }
.updated { margin-top: 12px; font-size: 13px; color: var(--muted); }

.doc-section { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.doc-section:last-child { padding-bottom: 96px; border-bottom: 0; }
.doc-section h2 { margin-bottom: 12px; font-size: 20px; }
.doc-section p + p { margin-top: 12px; }
.doc-section > ul { margin: 12px 0 0; padding-left: 1.4em; }
.doc-section > ul > li + li { margin-top: 6px; }
.doc-section .btn { margin-top: 20px; }
.doc-section .spec { margin-top: 8px; }

.steps { margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); counter-increment: step; }
.steps li::before { content: counter(step); font-weight: 700; font-variant-numeric: tabular-nums; }
.steps strong { display: block; }
.steps p { font-size: 15px; color: var(--muted); }

.table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table thead th { border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; color: var(--muted); }
.table th:nth-child(2), .table td:nth-child(2) { white-space: nowrap; }

.contact-grid { display: grid; gap: 16px; margin-top: 32px; }
.contact-card { padding: 28px; border: 1px solid var(--rule); }
.contact-card h2 { margin-bottom: 8px; font-size: 18px; }
.contact-card p { color: var(--muted); }
.contact-card .contact-value { margin-top: 12px; font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-card .btn { margin-top: 20px; }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d8d8d8; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer .logo-mark { color: #fff; }
.site-footer .logo-sub { color: var(--pink-soft); }

.footer-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand p { margin: 16px 0 20px; font-size: 14px; color: #a8a8a8; }
.footer-title { margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: #8f8f8f; }

.footer-info { display: grid; gap: 6px; margin: 0; font-size: 14px; }
.footer-info div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; }
.footer-info dt { color: #8f8f8f; }
.footer-info dd { margin: 0; color: #e6e6e6; }

.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-links a, .footer-info a { text-decoration: none; }
.footer-links a:hover, .footer-info a:hover { text-decoration: underline; }

.footer-bottom { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #333; font-size: 12px; color: #8f8f8f; }

@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr; gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.nobr { white-space: nowrap; }
