/* 型錄頁的樣式 —— brochures.html 與 brochures-en.html 共用。

   原本兩頁各存一份 5 KB、內容完全相同。

   url() 一律用絕對路徑（開頭的 /）：這個檔案位在 assets/portfolio/，
   相對路徑會以它自己的位置為基準，不是以頁面的位置 —— 背景圖就因此改過。
*/

/* 這一頁刻意只帶首頁外殼需要的那幾條規則，不整包複製首頁的設計系統：
     它是補充頁，共用的是視覺調性不是版面。改首頁時這裡不會跟著壞。 */
  @font-face {
    font-family: 'Noto Sans TC';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/noto-sans-tc-subset.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta-sans-subset.woff2') format('woff2');
  }

  :root {
    --bg: #060913;
    --surface-1: rgba(30, 41, 59, 0.5);
    --surface-hover: rgba(30, 41, 59, 0.88);
    --text: #f3f4f6;
    --text-2: #9ca3af;
    --text-accent: #93c5fd;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC",
                 "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  /* 與首頁相同的固定背景（pseudo-element 而非 background-attachment:fixed，
     後者在 iOS Safari 上會有捲動 jank）。 */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(6, 9, 19, 0.85), rgba(6, 9, 19, 0.85)),
      url('/images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .wrap {
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 1;
  }
  .head { text-align: center; margin-bottom: 25px; position: relative; }
  .head h1 {
    font-size: 26px; font-weight: 700; margin: 0; letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--text) 30%, var(--text-accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block;
  }
  .head p { font-size: 14px; color: var(--text-2); margin: 6px 0 0; font-weight: 400; }
  .lang-toggle {
    position: absolute; top: 0; right: 0;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 600; color: var(--text-2);
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 13px; text-decoration: none;
    min-height: 36px;
  }
  .lang-toggle:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-hover); }
  /* 左上角有兩個連結（回首頁、銷售速查），由一個 flex 容器定位；
     連結本身在容器裡不再各自 absolute。 */
  .head-left { position: absolute; top: 0; left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .head-left > a { position: static; }
  .back-link, .page-link {
    position: absolute; top: 0; left: 0;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 600; color: var(--text-2);
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 13px; text-decoration: none;
    min-height: 36px;
  }
  .back-link:hover, .page-link:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-hover); }
  .lead {
    max-width: 920px; margin: 0 auto 22px; text-align: center;
    color: var(--text-2); font-size: 13.5px; line-height: 1.9;
  }
  .lead b { color: var(--text); font-weight: 600; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  /* The two links are absolutely positioned at the header's corners, which is
     fine while the title fits on one line beside them. Once it wraps -- the
     English title is long -- they collide, so reserve a row for them instead. */
  @media (max-width: 900px) {
    .head { padding-top: 46px; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 24px 14px 40px; }
    .head h1 { font-size: 24px; }
    .back-link, .page-link, .lang-toggle { min-height: 44px; padding: 8px 14px; }
  }
/* ---- 型錄清單 ---- */
  .bro-list { list-style: none; max-width: 780px; margin: 0 auto; padding: 0; }
  .bro {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; padding: 14px 18px; margin-bottom: 10px;
    background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  }
  .bro__name { font-size: 14px; font-weight: 600; color: var(--text); }
  .bro__layer {
    display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 20px;
    font-size: 10.5px; font-weight: 500; letter-spacing: .06em;
    color: var(--text-accent); background: rgba(147,197,253,.10);
    border: 1px solid var(--border); vertical-align: 2px;
  }
  .bro__links { display: flex; gap: 8px; flex-wrap: wrap; }
  .bro__dl {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 9px;
    border: 1px solid var(--border); color: var(--text-2);
    font-size: 12.5px; text-decoration: none; white-space: nowrap;
  }
  .bro__dl:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-hover); }
  .bro__dl .ti { font-size: 15px; }
  .bro__size { color: var(--text-2); opacity: .7; font-size: 11px; }
  @media (max-width: 560px) { .bro { flex-direction: column; align-items: flex-start; } }
