/* 睿鍠有限公司 官網 — 共用樣式（深色＋銅色，2026-11-24 何先生選定第一版） */
:root {
  --bg: #121417;
  --bg-deep: #0e1012;
  --panel: #1b1f24;
  --line: #2c333b;
  --ink: #ece7e0;
  --muted: #a7adb4;
  --copper: #d0803f;
  --copper-2: #e8a465;
  --steel: #8ea2b5;
  --todo-bg: #fff3b0;
  --todo-ink: #7a4b00;
  --radius: 8px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-2); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 待提供標示：上線前必須全部清掉 */
.todo { background: var(--todo-bg); color: var(--todo-ink); border: 1px dashed #d4a800; border-radius: 4px; padding: 0 .35em; font-weight: 700; }
.draft-banner { background: #3a2a12; color: #f3d29b; text-align: center; font-size: .85rem; padding: 6px 16px; }

/* 頁首 */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(18,20,23,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 48px; height: 48px; flex: none; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 1rem; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 6px; display: block; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.07); color: #fff; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 10px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* 按鈕 */
.btn { display: inline-block; background: var(--copper); color: #1a1006; text-decoration: none; padding: 14px 26px; border-radius: 8px; font-weight: 700; border: none; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--copper-2); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btns .btn { margin: 0 10px 10px 0; }

/* 首頁主視覺 */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 78%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,15,.94) 0%, rgba(12,13,15,.82) 42%, rgba(12,13,15,.25) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.eyebrow { display: inline-block; color: var(--copper-2); border: 1px solid rgba(232,164,101,.5); padding: 4px 12px; border-radius: 999px; font-size: .9rem; letter-spacing: .08em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); line-height: 1.18; margin: 0 0 18px; letter-spacing: .02em; }
.hero h1 span { color: var(--copper-2); }
.hero p { max-width: 560px; color: #d3cfc8; font-size: 1.1rem; margin: 0 0 28px; }

/* 數字條 */
.stats { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 2.1rem; color: var(--copper-2); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* 區塊 */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-deep); }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 680px; }
.page-head { background: var(--panel); padding: 48px 0 32px; border-bottom: 1px solid var(--line); border-top: 3px solid var(--copper); }
.page-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.card h2, .card h3 { color: #fff; }
.card p, .card li { color: var(--muted); }
.card.accent { border-top: 3px solid var(--copper); border-radius: 0; }
.card .num { color: var(--copper-2); font-weight: 700; letter-spacing: .1em; font-size: .9rem; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card .tag-list li, .tag-list li { background: rgba(208,128,63,.14); color: var(--copper-2); border: 1px solid rgba(208,128,63,.35); border-radius: 999px; padding: 2px 12px; font-size: .95rem; }
.card .tag-list.steel li, .tag-list.steel li { background: rgba(142,162,181,.12); color: #c8d3dd; border-color: rgba(142,162,181,.35); }

.placeholder-img { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #1f242a, #1f242a 12px, #242a31 12px, #242a31 24px); border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px; margin-bottom: 14px; }

/* 產品照 */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.photo { position: relative; overflow: hidden; border-radius: 6px; background: #fff; min-height: 320px; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo:hover img { transform: scale(1.04); }
.photo.white img { object-fit: contain; padding: 18px; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(0deg, rgba(10,11,13,.92), rgba(10,11,13,0)); color: #fff; }
.photo figcaption b { display: block; font-size: 1.05rem; }
.photo figcaption span { color: #d9cfc4; font-size: .88rem; }
.product-photo { border-radius: 6px; margin-bottom: 14px; width: 100%; height: auto; background: #fff; }
.product-meta { color: var(--muted); margin: 0; }

/* 首頁流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps .s { padding: 22px 18px; border-left: 1px solid var(--line); }
.steps .s::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 2rem; font-weight: 700; color: #3a434d; }
.steps .s b { display: block; font-size: 1.1rem; }
.steps .s span { color: var(--muted); font-size: .92rem; }

/* 詢價橫幅 */
.cta { background: linear-gradient(120deg, #8a4a1c, #c8783a); color: #fff; padding: 48px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { margin: 0; }
.cta p { margin: 6px 0 0; color: #fde9d6; }
.cta .btn { background: var(--bg); color: #fff; }
.cta .btn:hover { background: #000; }

/* 服務流程圖 */
.flow { text-align: center; }
.flow .step { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-weight: 700; color: #fff; }
.flow .step small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.flow-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.flow-row .step { position: relative; }
.flow-row .step + .step::before { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--copper-2); font-weight: 400; }
.flow-arrow { color: var(--copper-2); font-size: 1.2rem; margin: 6px 0; }
.flow-lanes { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.lane { border-radius: var(--radius); padding: 14px; }
.lane.forge { background: rgba(208,128,63,.10); border: 1px solid rgba(208,128,63,.45); }
.lane.mill { background: rgba(142,162,181,.08); border: 1px solid rgba(142,162,181,.35); }
.lane-title { font-weight: 700; margin-bottom: 8px; }
.lane.forge .lane-title { color: var(--copper-2); }
.lane.mill .lane-title { color: #c8d3dd; }
.lane-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow .step.mill { border-color: rgba(142,162,181,.45); }
.flow .step.wide { max-width: 520px; margin: 0 auto; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--panel); color: #fff; }

/* 表單 */
.form-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; color: #fff; }
.req { color: #ff8a73; margin-left: 4px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field input[type="number"], .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #3a434d; border-radius: 6px; font: inherit; background: #0f1215; color: var(--ink); color-scheme: dark;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.field textarea { min-height: 120px; resize: vertical; }
.field fieldset { border: none; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choice-row label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--copper); }
.hint { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.error { color: #ff8a73; font-size: .9rem; margin-top: 4px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #ff8a73; }
.notice { background: rgba(208,128,63,.10); border-left: 4px solid var(--copper); padding: 14px 16px; margin-bottom: 18px; }
.privacy-box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: .92rem; margin-bottom: 18px; color: var(--muted); }
.privacy-box strong { color: #fff; }
.form-result { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: rgba(76,175,80,.12); border: 1px solid rgba(76,175,80,.5); }
.form-result.show { display: block; }
.form-result.error { background: rgba(200,16,46,.12); border-color: rgba(200,16,46,.55); }

/* 頁尾 */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--muted); padding: 40px 0 24px; font-size: .95rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--copper-2); }
.site-footer .grid { margin-bottom: 20px; }
.site-footer .copy { border-top: 1px solid var(--line); padding-top: 16px; font-size: .85rem; color: #7f878f; }
/* 詢價電話：「詢價」在左，兩行「人名＋電話」對齊 */
.tel-group { display: flex; gap: .8em; align-items: flex-start; }
.tel-list { display: flex; flex-direction: column; border-left: 1px solid rgba(208,128,63,.55); padding-left: .8em; }
.tel-list a { white-space: nowrap; }

.prose { max-width: 820px; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li, .prose p { color: #d6d1ca; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; padding-left: 12px; border-left: 3px solid var(--copper); }

/* 響應式 */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4, .stats .container, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery, .form-layout { grid-template-columns: 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .grid.cols-3.features { grid-template-columns: repeat(3, 1fr); } /* 首頁特色 3 張卡：平板維持一排 3 張 */
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-3.features, .steps, .flow-lanes, .lane-split { grid-template-columns: 1fr; }
  .hero::after { background: rgba(12,13,15,.8); }
  .flow-row { flex-direction: column; align-items: center; gap: 22px; }
  .flow-row .step + .step::before { content: "↓"; left: 50%; top: -20px; transform: translateX(-50%); }
}
/* 手機窄螢幕：首頁數字列不讓單一個字掉到下一行 */
@media (max-width: 480px) {
  .stat { padding: 20px 10px; }
  .stat b { font-size: 1.5rem; white-space: nowrap; }
  .stat span { display: block; font-size: .85rem; text-wrap: balance; }
}
/* 全站：標題、按鈕換行時平均分配，避免最後只剩一個字（支援的瀏覽器才生效，不支援就照舊） */
h1, h2, h3, .btn, .stat span, .step { text-wrap: balance; }
p, li, .notice, .privacy-box { text-wrap: pretty; }
