/* 汎汎紀阿網站共用樣式（米色＋咖啡色系，版面參考 teddy-house.tw） */
:root {
  --bg: #f5f1eb;
  --paper: #fffdf8;
  --beige: #ece5d9;
  --ink: #2c2522;
  --muted: #6b5d52;
  --brown: #7a5630;
  --brown-2: #6b4a26;
  --gold: #c9a87c;
  --border: #e2d8c8;
  --dark: #2c2522;
  --dark-ink: #f5f1eb;
  --darker: #241f1a;
  --line-green: #0c8540;
  --red: #b3261e;
  --shadow: 0 10px 24px rgba(44, 37, 34, .12);
}
:root[data-theme="dark"] {
  --bg: #1f1b18;
  --paper: #29231f;
  --beige: #332b25;
  --ink: #f2ebe1;
  --muted: #bfb2a4;
  --brown: #d9b98d;
  --brown-2: #e6c89c;
  --gold: #c9a87c;
  --border: #3d342d;
  --dark: #15120f;
  --darker: #110e0c;
  --shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.3; }
h2 { font-size: clamp(24px, 6vw, 34px); margin: 0 0 16px; font-weight: 900; }
section { padding: 56px 0; }
.kicker { color: var(--brown); font-weight: 700; letter-spacing: .12em; font-size: 13px; margin: 0 0 4px; }
.lead { color: var(--muted); }
.alt { background: var(--beige); }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand .logo { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; }
.brand .logo img { width: 30px; height: 30px; }
.brand b { font-size: 19px; letter-spacing: .04em; white-space: nowrap; }
.brand small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.head-nav { display: none; gap: 20px; font-size: 15px; }
.head-nav a { text-decoration: none; color: var(--muted); }
.head-nav a:hover, .head-nav a.on { color: var(--brown); }
.icons { display: flex; gap: 8px; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--brown); background: transparent; color: var(--brown); display: grid; place-items: center; cursor: pointer; text-decoration: none; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.menu { display: none; border-top: 1px solid var(--border); background: var(--paper); }
.menu.open { display: block; }
.menu a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 700; }
.menu a small { font-weight: 400; color: var(--muted); margin-left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.btn-brown { background: var(--brown); color: var(--paper); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-ghost { border: 1.5px solid var(--brown); color: var(--brown); background: transparent; }
.text-link { color: var(--brown); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.item { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.item .pic { position: relative; aspect-ratio: 9 / 16; background: var(--beige); }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item .pic.contain { background: var(--dark); }
.item .pic.contain img { object-fit: contain; }
.flags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.flag { font-size: 12px; font-weight: 700; color: #fff; border-radius: 6px; padding: 1px 8px; }
.flag.new { background: #7a5630; }
.flag.drop { background: var(--red); }
.item .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.item .where { font-size: 12px; color: var(--muted); }
.item h3 { margin: 0; font-size: 17px; }
.item .lay { font-size: 14px; color: var(--muted); }
.price { font-weight: 700; color: var(--brown-2); line-height: 1.2; }
.item .price { font-size: 22px; }
.price small { font-size: .6em; }
.price s { font-size: .55em; color: var(--muted); font-weight: 400; margin-left: 6px; }
.item .go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--brown); }

/* checklist */
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* dark block */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .kicker { color: var(--gold); }
.dark .lead { color: rgba(245, 241, 235, .75); }
.dark .btn-ghost { border-color: var(--gold); color: var(--gold); }

/* footer */
.site-foot { background: var(--darker); color: rgba(255, 255, 255, .72); font-size: 13px; padding: 32px 0 96px; line-height: 1.9; }
.site-foot b { color: #fff; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.site-foot .links a { color: #fff; text-decoration: none; font-size: 14px; }

/* floating LINE */
.float-line { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: var(--line-green); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 99px; padding: 12px 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.float-line svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .head-nav { display: flex; }
  .icons .menu-btn { display: none; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .site-foot { padding-bottom: 40px; }
}
