/* 數位救星品牌樣式（依〈品牌規格〉） */
:root {
  --teal: #015959; --yellow: #FBC117; --orange: #F95D00; --aqua: #29B3B6; --cream: #FFF8E5;
  --orange-text: #AD3A00; --ink-2: #2B4F4F; --ink-3: #3E6262;
  --card: #FFFCF2; --warm: #FBEFCF; --line: #F0E3BF;
  --tint-orange: #FFE3CF; --tint-aqua: #D8F0F0; --tint-yellow: #FEEDB5;
  --danger: #B42318;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--teal); font-family: 'Noto Sans TC', 'PingFang TC', sans-serif; font-size: 16px; line-height: 1.7; }
a { color: var(--teal); } a:hover { color: var(--orange-text); }
h1, h2, h3 { line-height: 1.35; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
.serif { font-family: 'Noto Serif TC', serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* 頁首 */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.brand-name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand-name small { font-size: 15px; letter-spacing: .1em; color: var(--orange-text); margin-left: 6px; }
.brand-sub { font-size: 12px; color: var(--ink-3); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a, .nav button.linklike { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a.on { background: var(--teal); color: var(--cream); }

/* 按鈕與表單 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--yellow); color: var(--teal); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(.96); color: var(--teal); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--card); border: 1.5px solid var(--teal); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.danger { background: var(--card); border: 1.5px solid var(--danger); color: var(--danger); }
button.linklike { background: none; border: 0; font: inherit; color: var(--teal); cursor: pointer; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--teal); background: var(--card); border: 1.5px solid #DCCB9C; border-radius: 10px; padding: 10px 12px; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--tint-aqua); border-color: var(--aqua); }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 20px; min-height: 20px; height: 20px; }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag.orange { background: var(--tint-orange); color: var(--orange-text); }
.tag.aqua { background: var(--tint-aqua); color: var(--teal); }
.tag.yellow { background: var(--tint-yellow); color: var(--teal); }
.tag.gray { background: #EFE6CF; color: var(--ink-3); }
.price { font-size: 28px; font-weight: 700; }
.price small { font-size: 14px; font-weight: 500; color: var(--ink-3); }

.notice { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.notice.ok { background: var(--tint-aqua); }
.notice.err { background: #FDE4E1; color: var(--danger); }
.notice.warn { background: var(--tint-yellow); }

.assure { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.assure svg { color: var(--aqua); }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { background: var(--warm); font-weight: 700; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.wrapcell { white-space: normal; min-width: 180px; }

/* 對話框 */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--cream); color: var(--teal); }
dialog::backdrop { background: rgba(1, 89, 89, .45); }
dialog form { padding: 24px; }
dialog h3 { margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.site-footer { margin-top: 64px; background: var(--teal); color: #BFE0E0; text-align: center; padding: 22px 16px; font-size: 14px; }
.site-footer b { color: var(--cream); } .site-footer .en { color: var(--yellow); font-weight: 700; letter-spacing: .08em; }
