/* 兩站＋後台共用的基礎樣式。品牌色取自 logo（#C58C57）。 */
:root {
  --brand: #C58C57; --brand-dark: #A06C3C; --brand-soft: #F3E6D8;
  --bg: #FAF6F0; --surface: #FFFFFF; --ink: #2B2420; --muted: #7A6E66; --line: #E7DDD2;
  --ok: #2F7D4F; --warn: #B7791F; --bad: #B23B3B;
  --radius: 14px; --shadow: 0 6px 24px rgba(60, 40, 20, .08);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.35; margin: 0 0 .5em; letter-spacing: .02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .75em 1.4em; border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--brand-dark); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.line { background: #06C755; border-color: #06C755; }
.btn.sm { padding: .4em .9em; font-size: .9em; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: .1em .7em; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .82em; }
label { display: block; font-weight: 600; font-size: .92em; margin: .9em 0 .3em; }
input, select, textarea { width: 100%; padding: .7em .85em; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 7em; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .5em; font-weight: 400; margin: .3em 0; }
.check input { width: auto; }
.hp { position: absolute; left: -9999px; }

/* 頂部導覽 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 240, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.15em; }
.brand img { width: 38px; height: 38px; }
.nav .links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--ink); text-decoration: none; font-size: .95em; }
.nav .links a:hover { color: var(--brand-dark); }
@media (max-width: 760px) { .nav .links .hide-m { display: none; } }

/* 頁尾：公司資訊（同一法人、統編） */
.foot { margin-top: 80px; padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9em; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }

/* 彈窗、提示 */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(30, 20, 10, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal > .card { width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 28px; position: relative; }
.modal .x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6em; cursor: pointer; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 999px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
