/* 官網樣式。主色在後台「公司資訊與外觀」改，會帶進 --accent */
:root { --ink: #111418; --ground: #F5F6F2; --panel: #FFFFFF; --line: #DEE0D8; --muted: #4A4F57; --soft: #C9CDC4; --dark2: #1C2026; --dark3: #2C3138; --hl: #C2410C; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; color: var(--ink); background: var(--ground); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--ink); } a:hover { color: var(--hl); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.latin { font-family: "Space Grotesk", system-ui, sans-serif; }

/* 導覽 */
.top { background: var(--ink); color: var(--ground); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ground); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.brand:hover { color: var(--ground); }
.brand img { height: 32px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; }
.nav a { color: #D9DCD3; text-decoration: none; }
.nav a:hover { color: #fff; }
.pill-btn { background: var(--accent); color: var(--ink) !important; font-weight: 700; padding: 9px 18px; border-radius: 999px; }
@media (max-width: 760px) { .nav .hide-m { display: none; } }

/* 主視覺 */
.hero { background: var(--ink); color: var(--ground); padding: 64px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-main { flex: 999 1 520px; min-width: 0; }
.badge { display: inline-block; border: 1px solid #3A3F46; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #D9DCD3; margin: 0 0 18px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.12; font-weight: 900; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin: 28px 0 0; font-size: 19px; color: var(--soft); max-width: 560px; }
.btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; font-weight: 700; font-size: 17px; padding: 14px 26px; border-radius: 12px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(1.05); }
.btn-line { border-color: var(--ground); color: var(--ground); background: transparent; }
.btn-line:hover { color: var(--ink); background: var(--ground); }
.hero-side { flex: 1 1 340px; min-width: 0; display: grid; gap: 14px; }
.hero-side img { border-radius: 18px; }
.pillar { background: var(--dark2); border: 1px solid var(--dark3); border-radius: 18px; padding: 22px 24px; display: flex; gap: 16px; }
.pillar .num { font-weight: 700; font-size: 30px; color: var(--accent); line-height: 1; }
.pillar b { display: block; font-size: 20px; }
.pillar span { color: #B8BDB3; font-size: 15px; }

/* 區塊 */
.sec { padding: 96px 0; }
.sec.white { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.dark { background: var(--ink); color: var(--ground); }
.kicker { margin: 0; font-weight: 700; color: var(--hl); letter-spacing: .12em; font-size: 14px; }
.dark .kicker { color: var(--accent); }
.sec h2 { margin: 8px 0 14px; font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1.2; }
.sec .intro { margin: 0 0 40px; color: var(--muted); font-size: 18px; max-width: 680px; }

/* 產品 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 22px; font-weight: 900; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .pimg { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.tags { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.tags span { background: var(--ground); border-radius: 999px; padding: 4px 10px; }
.card .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid #ECEDE7; padding-top: 14px; }
.card .foot a { font-weight: 700; font-size: 15px; }
.card.inv { background: var(--ink); color: var(--ground); border: 0; justify-content: center; }
.card.inv p { color: var(--soft); }

/* 客製 */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > div { flex: 1 1 380px; min-width: 0; }
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checks li { display: flex; gap: 10px; }
.checks svg { flex: 0 0 auto; margin-top: 2px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 440px; }
caption { text-align: left; font-weight: 700; font-size: 18px; padding-bottom: 14px; }
th, td { text-align: left; padding: 15px 12px; border-bottom: 1px solid #ECEDE7; vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); }
td.a, th.a { color: #5D626A; }
td.b, th.b { background: #FFF1E8; font-weight: 700; }

/* 優勢 */
.why { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.why h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* 流程 */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.steps li { border-top: 3px solid var(--accent); padding-top: 18px; }
.steps .n { font-weight: 700; font-size: 34px; color: var(--accent); }
.steps h3 { margin: 6px 0; font-size: 19px; }
.steps p { margin: 0; color: #B8BDB3; font-size: 15px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); white-space: pre-line; }

/* 聯絡 */
.contact { background: var(--accent); padding: 88px 0; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.contact .say { flex: 1 1 380px; min-width: 0; }
.contact h2 { margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; line-height: 1.15; }
.contact .say p { margin: 0 0 10px; font-size: 18px; }
.form { flex: 1 1 420px; min-width: 0; background: var(--ink); color: var(--ground); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 13px 14px; border-radius: 10px; border: 1px solid #3A3F46; background: var(--dark2); color: var(--ground); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); }
.hp { position: absolute; left: -9999px; }
.ok { background: #E6F4EA; color: #14532D; border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.flash { background: #FDECEC; color: #8A1C1C; border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.foot-bar { background: var(--ink); color: #A9AEA4; padding: 36px 0; font-size: 14px; }
.foot-bar .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot-bar a { color: #A9AEA4; }

/* ---------- LINE（全站） ---------- */
:root { --line-green: #06C755; }
.line-pill { background: var(--line-green); color: #fff !important; display: inline-flex; align-items: center; gap: 6px; }
.line-pill:hover { filter: brightness(1.06); }
.btn-linegreen { background: var(--line-green); color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn-linegreen:hover { color: #fff; filter: brightness(1.06); }
.btn.sm { font-size: 15px; padding: 10px 18px; }
.btn.big { font-size: 19px; padding: 16px 30px; }
.hero-line { margin: 18px 0 0; color: var(--soft); font-size: 15px; }
.hero-line a { color: #fff; font-weight: 700; }
.line-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; background: var(--line-green);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.line-float:hover { color: #fff; filter: brightness(1.06); }
@media (max-width: 560px) {
  .line-float { left: 12px; right: 12px; bottom: 12px; justify-content: center; font-size: 17px; }
  body { padding-bottom: 76px; }
}
.line-card { display: flex; gap: 18px; align-items: center; background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; max-width: 460px; }
.line-card img { width: 150px; height: 150px; flex: 0 0 auto; border-radius: 10px; }
.line-card div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.line-card b { font-size: 18px; }
.line-card span { color: var(--muted); font-size: 14px; }
.line-card .lid { font-weight: 700; color: var(--ink); }
@media (max-width: 420px) { .line-card { flex-direction: column; text-align: center; } .line-card div { align-items: center; } }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.cta-row span { color: #B8BDB3; font-size: 15px; }
.faq-more { margin-top: 20px; font-size: 17px; }
.faq-more a { font-weight: 700; color: var(--line-green); }
.form-alt { margin: 0; font-size: 14px; color: #B8BDB3; font-weight: 400; }
.contact .form-alt { color: var(--ink); }
.contact .form .form-alt { color: #B8BDB3; }
.contact .say .line-card { margin-top: 18px; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--hl); }
.card .foot a.go { color: var(--hl); }

/* ---------- 產品頁 ---------- */
.p-hero { padding: 48px 0 72px; }
.crumb { margin: 0 0 14px; }
.crumb a { color: var(--soft); text-decoration: none; font-size: 15px; }
.crumb a:hover { color: #fff; }
.p-hero h1 { font-size: clamp(36px, 5.4vw, 64px); }
.dark-tags { margin-top: 18px; }
.dark-tags span { background: var(--dark2); border: 1px solid var(--dark3); color: #D9DCD3; }
.p-note { margin: 14px 0 0; color: #B8BDB3; font-size: 14px; }
.p-price { margin: 10px 0 0; color: var(--soft); }
.p-price b { color: #fff; font-size: 20px; }
.trial-box { background: var(--dark2); border: 1px solid var(--dark3); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.trial-box > b { font-size: 20px; }
.trial-box ol { margin: 0; padding-left: 22px; color: #D9DCD3; display: flex; flex-direction: column; gap: 6px; }
.trial-box .line-card { max-width: none; }
.steps.light li { border-top-color: var(--line-green); }
.steps.light .n { color: var(--line-green); }
.steps.light p { color: var(--muted); font-size: 16px; }
.steps.light { margin-bottom: 28px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.p-final { align-items: center; }

/* 微調：按鈕文字不換行、試用框裡的 QR 卡片直排、手機版只留按鈕（手機掃不到自己螢幕上的 QR Code） */
.line-card .btn, .line-pill, .btn-linegreen { white-space: nowrap; }
.trial-box .line-card { flex-direction: column; align-items: center; text-align: center; }
.trial-box .line-card div { align-items: center; }
@media (max-width: 560px) {
  .top .wrap { flex-wrap: nowrap; }
  .brand { font-size: 17px; min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav { flex-wrap: nowrap; }
  .line-pill { padding: 8px 12px; font-size: 14px; }
  .line-card img { display: none; }
  .line-card { max-width: none; width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
  .line-card div { align-items: center; }
}
