/* ==========================================================================
   品牌首頁樣式 — MLDI-88（對齊 mockups/home.html）
   僅在 page-home.php（body.mldi-home）載入；不影響落地頁 landing.css
   ========================================================================== */

:root {
    --bg: #f4f1ea;
    --bg-deep: #e6dfd4;
    --ink: #1c1a17;
    --muted: #6a645c;
    --line: #ddd4c6;
    --card: #faf7f2;
    --shadow: 0 10px 24px rgba(60, 42, 24, .08);
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scrollbar-color: #cfc6b8 transparent; }
  body.mldi-home {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Noto Sans TC", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip;
  }
  a { color: inherit; }
  button, input, textarea { font-family: inherit; }
  ::selection { background: var(--ink); color: var(--bg); }
  .skip {
    position: absolute; left: 12px; top: 12px; transform: translateY(-160%);
    background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20;
    text-decoration: none;
  }
  .skip:focus { transform: none; }

  .top {
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    background: rgba(244,241,234,.92);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 5;
  }
  .brand { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
  .top nav { display: flex; gap: 22px; font-size: 14px; }
  .top nav a {
    color: var(--muted); text-decoration: none;
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .top nav a[aria-current="page"], .top nav a:hover { color: var(--ink); }
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--ink); outline-offset: 3px;
  }

  .primary {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 28px; border: 0; border-radius: 4px;
    background: var(--ink); color: #f4f1ea; font-size: 16px; font-weight: 700;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    box-shadow: var(--shadow);
    transition: transform .2s ease, background .2s ease;
  }
  .primary:hover { background: #2a261f; }
  .primary:active { transform: scale(.98); }
  .ghost {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 4px;
    background: transparent; color: var(--ink); font-size: 16px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: transform .2s ease, background .2s ease;
  }
  .ghost:hover { background: rgba(28,26,23,.06); }
  .ghost:active { transform: scale(.98); }
  .textlink {
    color: var(--ink); font-weight: 500;
    text-decoration: underline; text-underline-offset: 3px;
  }
  .money {
    font-family: Outfit, "Noto Sans TC", sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700; letter-spacing: -.03em;
  }

  /* 首屏：偏左編輯式，無居中口號、無自造旁白 */
  .hero {
    max-width: 1440px; margin: 0 auto;
    padding: 56px 32px 40px;
  }
  .hero-copy { max-width: 36em; }
  .hero h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.12;
    font-size: clamp(34px, 4.6vw, 52px);
    text-wrap: balance;
  }
  .hero .lede {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 34em;
  }
  .hero-actions {
    margin-top: 28px;
    display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center;
  }

  /* 兩樣商品：大圖並排，文案全文 */
  .picks {
    max-width: 1440px; margin: 0 auto;
    padding: 8px 32px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
  }
  .pick {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    min-height: 44px;
  }
  .pick-media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--bg-deep);
    overflow: hidden;
    border-radius: 4px;
  }
  .pick-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .pick:hover .pick-media img { transform: scale(1.02); }
  .pick-media img { transition: transform .35s ease; }
  .pick-body { padding: 22px 2px 0; display: flex; flex-direction: column; flex: 1; }
  .pick-body h2 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.2;
  }
  .pick-body .blurb {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
  }
  .pick-meta {
    margin-top: auto;
    padding-top: 18px;
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    border-top: 1px solid var(--line);
  }
  .pick-meta .money { font-size: 26px; }
  .pick-meta .unit { color: var(--muted); margin-left: 6px; font-size: 14px; font-weight: 500; }
  .pick-meta .pay { color: var(--muted); font-size: 14px; }
  .pick-badge { align-self: flex-start; margin-bottom: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.6; }
  .pick-go {
    margin-top: 14px;
    font-size: 14px; font-weight: 700;
    color: var(--ink);
  }
  .pick:hover .pick-go { text-decoration: underline; text-underline-offset: 3px; }

  /* -- 下單前須知：老闆逐條，非三欄 -- */
  .know {
    background: var(--bg-deep);
  }
  .know-in {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 32px 64px;
  }
  .know h2 {
    margin: 0 0 28px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.2;
  }
  .know-list {
    margin: 0; padding: 0; list-style: none;
  }
  .know-list li {
    padding: 18px 0;
    border-top: 1px solid #d2c8b8;
    color: #4a453e;
    font-size: 16px;
    line-height: 1.7;
  }
  .know-list li:last-child { border-bottom: 1px solid #d2c8b8; }
  .know-list a {
    color: var(--ink); font-weight: 500;
    text-decoration: underline; text-underline-offset: 3px;
  }

  /* -- 關於：單欄散文 -- */
  .about {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 32px 56px;
  }
  .about h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.2;
  }
  .about p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
  }
  .about p:last-child { margin-bottom: 0; }

  /* -- 客服 -- */
  .contact {
    background: var(--ink);
    color: #f4f1ea;
  }
  .contact-in {
    max-width: 1440px; margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px 48px;
    align-items: center;
  }
  .contact h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.2;
  }
  .contact p {
    margin: 12px 0 0;
    color: #d4cbbf;
    max-width: 42em;
    font-size: 15px;
    line-height: 1.7;
  }
  .contact .primary {
    background: #f4f1ea; color: var(--ink);
    box-shadow: none;
  }
  .contact .primary:hover { background: #fff; }

  footer {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px 24px; flex-wrap: wrap;
    padding: 22px 32px 28px; font-size: 13px; color: var(--muted);
    max-width: 1440px; margin: 0 auto;
  }
  footer a {
    color: var(--muted); text-decoration: none;
    min-height: 44px; display: inline-flex; align-items: center;
  }
  footer a:hover { color: var(--ink); }
  .links { line-height: 2.6; }
  .links a + a { margin-left: 8px; }
  .links a + a::before { content: "·"; margin-right: 8px; color: var(--muted); }

  @media (max-width: 960px) {
    .hero { padding-top: 36px; padding-bottom: 28px; }
    .picks { grid-template-columns: 1fr; gap: 40px; }
    .pick-media { aspect-ratio: 1 / 1; }
    .contact-in { grid-template-columns: 1fr; }
  }
  @media (max-width: 800px) {
    .top { padding: 0 16px; }
    .top nav { gap: 14px; }
    .top nav a:not(.keep) { display: none; }
    .hero, .picks, .know-in, .about, .contact-in, footer {
      padding-left: 16px; padding-right: 16px;
    }
    footer { align-items: flex-start; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      transition: none !important;
      scroll-behavior: auto !important;
    }
    .pick:hover .pick-media img { transform: none; }
  }
