:root {
  --bg-ground: #080c14;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-surface-hover: #27354f;
  --border-line: #233048;
  --border-glow: rgba(56, 189, 248, 0.4);
  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #7dd3fc;
  --accent-blue: #60a5fa;
  --accent-amber: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

* { box-sizing: border-box; }

html {
  background: var(--bg-ground);
}

body.dayruntiger-body {
  min-width: 0;
  margin: 0;
  background: var(--bg-ground);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.5;
}

#dayruntiger-app a {
  color: inherit;
  text-decoration: none;
}

#dayruntiger-app :focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
}

/* 頂部 Header 與相簿導航 */
.app-header {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--border-line);
  background: linear-gradient(180deg, #0f172a 0%, #080c14 100%);
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.title-area {
  text-align: left;
}

.app-title {
  margin: 0 0 0.25rem;
  color: var(--text-primary);
  font-size: clamp(1.3rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.album-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.album-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.album-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.album-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.album-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.album-text strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.album-text span {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 主內容區與搜尋列 */
.app-main {
  padding: 1.25rem 0 3rem;
}

.search-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.95rem;
  z-index: 2;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 2.4rem 0 2.4rem;
  border: 1px solid var(--border-line);
  border-radius: 6px;
  background: #060911;
  color: var(--text-primary);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  outline: none;
}

.btn-clear {
  position: absolute;
  right: 0.65rem;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.btn-clear:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.btn-search {
  height: 42px;
  padding: 0 1.4rem;
  border: 1px solid var(--accent-cyan);
  border-radius: 6px;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search:hover {
  background: linear-gradient(180deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.utility-links-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.utility-link {
  padding: 0.35rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-radius: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.utility-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* Autocomplete 下拉清單 */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  background: #0b1220;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.15);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.autocomplete-dropdown[hidden] {
  display: none !important;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  gap: 0.75rem;
  transition: background 0.1s ease;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: #19243a;
}

.autocomplete-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.autocomplete-badge {
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.badge-fig {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-part {
  background: rgba(96, 165, 250, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.autocomplete-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-label mark {
  background: transparent;
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: underline;
}

.autocomplete-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 快速過濾標籤 */
.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pills-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.pills-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--border-line);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* 結果狀態與說明 */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.5rem;
  gap: 1rem;
}

.result-context {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.status {
  color: var(--accent-amber);
  font-size: 0.88rem;
  font-weight: 500;
}

/* 高密度零件資料表格 (桌機版) */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}

.parts-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  text-align: left;
}

.parts-data-table thead th {
  position: sticky;
  top: 0;
  padding: 0.7rem 0.85rem;
  background: #162032;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border-line);
  white-space: nowrap;
}

.parts-data-table tbody td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #182338;
  vertical-align: middle;
}

.parts-data-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.6);
}

.parts-data-table tbody tr:hover td {
  background: var(--bg-surface-hover);
}

/* 欄位寬度與換行設定 (桌機) */
.col-kind { white-space: nowrap; width: 140px; text-align: center; }
.col-no { white-space: nowrap; width: 60px; text-align: center; font-weight: 600; }
.col-cname { white-space: nowrap; font-weight: 600; color: var(--text-primary); }
.col-number { white-space: nowrap; width: 190px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.col-howmany { white-space: nowrap; width: 60px; text-align: center; font-weight: 600; }
.col-comments { color: var(--text-secondary); font-size: 0.88rem; min-width: 140px; }
.col-pic { width: 90px; text-align: center; }

.fig-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}

.fig-link {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan) !important;
  font-weight: 500;
  transition: all 0.15s;
}

.fig-link:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-cyan);
  text-decoration: none;
}

.btn-fig-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  cursor: pointer;
  font-size: 0.78rem;
  opacity: 0.75;
  transition: all 0.15s;
}

.btn-fig-view:hover {
  opacity: 1;
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

.item-no-badge {
  display: none; /* 桌機由 col-no 欄位呈現 */
}

.mobile-qty-tag {
  display: none; /* 桌機由 col-howmany 欄位呈現 */
}

.number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.part-num-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.15s;
  flex-shrink: 0;
}

.btn-copy:hover {
  opacity: 1;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

.part-thumb-wrap {
  display: inline-block;
}

.part-thumb {
  display: block;
  width: 72px;
  height: 48px;
  object-fit: contain;
  background: #060911;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.15s;
}

.part-thumb:hover {
  border-color: var(--accent-cyan);
  transform: scale(1.05);
}

/* 浮動大圖預覽 (Desktop Floating Preview) */
.floating-preview {
  position: fixed;
  z-index: 9999;
  max-width: min(60vw, 920px);
  max-height: 85vh;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  background: #0a0f1d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.25);
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.floating-preview[hidden] {
  display: none !important;
}

.preview-figure {
  left: 1.25rem;
  top: 7.5vh;
}

.preview-part {
  right: 1.25rem;
  top: 7.5vh;
}

.preview-header {
  padding: 0.35rem 0.85rem;
  background: #141c2e;
  border-bottom: 1px solid var(--border-line);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.preview-body {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  background: #060911;
  max-height: calc(85vh - 36px);
  overflow: hidden;
}

.preview-body img {
  display: block;
  max-width: 100%;
  max-height: calc(85vh - 46px);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 行動端全螢幕燈箱 Modal */
.mobile-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.mobile-modal[hidden] {
  display: none !important;
}

.mobile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.mobile-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 680px);
  max-height: 92vh;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  background: #0d1424;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #162032;
  border-bottom: 1px solid var(--border-line);
}

.mobile-modal-title {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
}

.mobile-modal-close:hover {
  color: var(--text-primary);
}

.mobile-modal-body {
  padding: 0.5rem;
  background: #060911;
  display: grid;
  place-items: center;
  overflow: auto;
  max-height: calc(92vh - 46px);
}

.mobile-modal-body img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 60px);
  object-fit: contain;
}

/* Toast 提示 */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.copy-toast[hidden] {
  display: none;
}

/* 典藏頁面樣式支援 */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--border-line);
}

.archive-main { padding: 1.5rem 0 3rem; }
.archive-hero {
  max-width: 760px;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--border-line);
}
.archive-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.archive-hero p { margin: 0; color: var(--text-secondary); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1fr;
  min-height: 180px;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow: hidden;
  transition: all 0.2s ease;
}

.archive-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.archive-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #060911;
  border-right: 1px solid var(--border-line);
}

.archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem;
}

.archive-folder {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.archive-card-body strong {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.archive-card-body > span:last-child {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.archive-return { margin: 1.5rem 0 0; text-align: right; }
.archive-return a { color: var(--accent-cyan); }

/* RWD 精緻自適應 */
@media (max-width: 900px) {
  .shell { width: min(100% - 20px, 1440px); }
  .album-nav { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
  .archive-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   📱 行動端 (Mobile & Tablet <= 680px) 專屬卡片式排版優化
   將擁擠的 7 欄表格轉化為俐落寬敞的暗黑零件卡片
   ========================================================== */
@media (max-width: 680px) {
  .app-header { padding: 0.75rem 0 0.5rem; }
  .app-title { font-size: 1.18rem; }
  .app-subtitle { font-size: 0.78rem; }
  .header-content { gap: 0.55rem; }

  /* 01~04 經典相簿 2x2 緊湊雙欄卡片 */
  .album-nav {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .album-card {
    padding: 0.4rem 0.55rem;
    gap: 0.45rem;
    border-radius: 6px;
  }
  .album-badge {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }
  .album-text strong {
    font-size: 0.82rem;
  }
  .album-text span {
    display: none; /* 隱藏副標保持卡片整齊 */
  }

  /* 主內容區 */
  .app-main { padding: 0.75rem 0 2rem; }
  .search-section { gap: 0.5rem; margin-bottom: 0.75rem; }

  /* 搜尋列單行排版 */
  .search-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }
  .search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }
  .search-input {
    height: 38px;
    font-size: 0.9rem;
    padding: 0 2rem 0 2rem;
  }
  .search-icon {
    left: 0.65rem;
    font-size: 0.82rem;
  }
  .btn-clear {
    right: 0.45rem;
  }
  .btn-search {
    height: 38px;
    padding: 0 0.9rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    width: auto;
  }
  .utility-links-wrap {
    display: none;
  }

  /* 快選標籤平滑橫向滑動 */
  .filter-pills-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
  }
  .pills-label {
    font-size: 0.78rem;
    flex-shrink: 0;
  }
  .pills-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .pills-list::-webkit-scrollbar {
    display: none;
  }
  .pill-btn {
    padding: 0.18rem 0.5rem;
    font-size: 0.76rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 📱 行動端卡片式零件清單 (消除擁擠與文字斷行) */
  .table-responsive-wrapper {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .parts-data-table {
    display: block;
    width: 100%;
  }

  .parts-data-table thead {
    display: none; /* 手機端隱藏傳統表頭 */
  }

  .parts-data-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }

  .parts-data-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "kind pic"
      "cname pic"
      "number pic"
      "comments comments";
    gap: 0.25rem 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    background: #0f172a !important;
    align-items: start;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    transition: border-color 0.15s, background 0.15s;
  }

  .parts-data-table tbody tr:hover,
  .parts-data-table tbody tr:active {
    border-color: var(--accent-cyan);
    background: #152238 !important;
  }

  .parts-data-table tbody td {
    display: block;
    padding: 0;
    border: none;
    background: transparent !important;
  }

  /* 1. 分類項目 (FIG + 項次 + 分解圖鈕) */
  .col-kind {
    grid-area: kind;
    width: auto;
    text-align: left;
  }
  .fig-wrap {
    justify-content: flex-start;
    gap: 0.4rem;
  }
  .fig-link {
    font-size: 0.78rem;
    padding: 0.15rem 0.45rem;
  }
  .btn-fig-view {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
  .item-no-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
  }

  /* 2. 桌機項次欄位在手機卡片中隱藏 */
  .col-no {
    display: none;
  }

  /* 3. 零件名稱 (粗體大字、不折行) */
  .col-cname {
    grid-area: cname;
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0.1rem 0;
    line-height: 1.4;
  }

  /* 4. 料號與一鍵複製 + 手機用量標籤 */
  .col-number {
    grid-area: number;
    width: auto;
    font-size: 0.88rem;
  }
  .number-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
  }
  .part-num-text {
    color: var(--accent-cyan);
    font-weight: 600;
  }
  .btn-copy {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
  .mobile-qty-tag {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: rgba(96, 165, 250, 0.15);
    color: var(--accent-blue);
    font-size: 0.72rem;
    font-weight: 600;
  }

  /* 5. 桌機用量欄位在手機卡片中隱藏 */
  .col-howmany {
    display: none;
  }

  /* 6. 規格註解備註 (獨立小卡區塊) */
  .col-comments {
    grid-area: comments;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.45;
  }
  .comment-box {
    word-break: break-word;
  }

  /* 7. 實品照片 (右側大縮圖，點擊彈出全螢幕大圖) */
  .col-pic {
    grid-area: pic;
    width: auto;
    align-self: start;
    justify-self: end;
  }
  .part-thumb-wrap {
    display: block;
  }
  .part-thumb {
    width: 78px;
    height: 56px;
    border-radius: 6px;
    border-color: rgba(56, 189, 248, 0.3);
  }

  /* 手機懸停大圖停用，以點擊彈出 Modal 燈箱替代 */
  .floating-preview {
    display: none !important;
  }
}
