/* ===== 標案雷達 全站樣式 — A 深色情報平台風 =====
   視覺基準：mockup-home-intl.html
   配色：--navy deep dark hero, --accent #3b6ef5 藍紫
   ============================================= */

/* ---------- Inter 字體 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- 設計代幣 ---------- */
:root {
  --ink: #0b1220;
  --ink2: #1e293b;
  --slate: #64748b;
  --slate2: #94a3b8;
  --line: #e2e8f0;
  --line2: #eef2f7;
  --bg: #fff;
  --soft: #f8fafc;
  --navy: #0a1733;
  --navy2: #0f1e44;
  --accent: #3b6ef5;
  --accent-d: #2451d6;
  --pos: #10b981;
  --gold: #f59e0b;
  /* legacy compat */
  --sub: #64748b;
  --radar: #3b6ef5;
}

/* ---------- 基礎重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro TC", "PingFang TC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

a { color: inherit; text-decoration: none; }

/* ---------- 版型 ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- eyebrow 微標籤 ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- nav 毛玻璃 ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand .mk {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  position: relative;
  flex-shrink: 0;
}

.brand .mk::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.brand small {
  font-weight: 600;
  color: var(--slate2);
  font-size: 11px;
  letter-spacing: .08em;
  margin-left: 2px;
}

/* legacy .dot still works (replaced by .mk) */
.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 110, 245, .18);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero 深色 ---------- */
.hero {
  background: radial-gradient(1200px 500px at 70% -20%, #16275c 0, transparent 60%),
              linear-gradient(180deg, var(--navy), var(--navy2));
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(700px 380px at 70% 0, #000, transparent);
}

.hero-in {
  position: relative;
  padding: 74px 0 60px;
}

/* hero pill badge */
.hpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #bcd0ff;
  background: rgba(91, 135, 255, .12);
  border: 1px solid rgba(120, 160, 255, .25);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 22px;
}

.hpill .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
}

.hero h1 {
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  max-width: 760px;
}

.hero h1 .g {
  background: linear-gradient(90deg, #7ea2ff, #b794ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  margin-top: 18px;
  font-size: 18px;
  color: #aab8d8;
  max-width: 620px;
}

/* hero 的標準 p（用 .sub 覆蓋，但 p 也要對） */
.hero p { color: #aab8d8; }

/* ---------- 搜尋框 ---------- */
.search {
  margin-top: 30px;
  max-width: 640px;
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(3, 10, 30, .45);
  border: none;
}

/* hero 外的搜尋框（search 頁） */
.search-outer {
  margin: 28px 0;
  max-width: 640px;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.search input, .search-outer input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  padding: 13px 16px;
  color: var(--ink);
  background: transparent;
}

.search button, .search-outer button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.search button:hover, .search-outer button:hover { background: var(--accent-d); }

.htags { margin-top: 14px; font-size: 13px; color: #8ea0c6; }
.htags a { color: #bcd0ff; }

/* ---------- KPI strip ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  margin-top: 46px;
  overflow: hidden;
}

.kpi {
  background: rgba(10, 20, 45, .6);
  padding: 20px 22px;
}

.kpi .n {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}

.kpi .n b { color: var(--accent); font-weight: 800; }
.kpi .l { font-size: 12px; color: #8ea0c6; margin-top: 3px; }

/* ---------- section 區塊 ---------- */
section.blk { padding: 56px 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.sec-head h2 { font-size: 24px; letter-spacing: -.02em; font-weight: 800; }
.sec-head a { font-size: 13px; font-weight: 600; color: var(--accent); }

.cols {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
}

/* ---------- 資料表格 ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line);
}

.table tbody tr { border-bottom: 1px solid var(--line2); }
.table tbody tr:hover { background: var(--soft); }
.table td { padding: 13px 14px; vertical-align: middle; }
.table .t-title { font-weight: 600; color: var(--ink); }
.table .t-sub { font-size: 12px; color: var(--slate); margin-top: 2px; }
.table .amt {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink2);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: #ecfdf5;
  color: #047857;
}

/* ---------- leaderboard / 機關排行 ---------- */
.board {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}

.board h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.board .cap { font-size: 12px; color: var(--slate); margin-bottom: 16px; }

.lb { display: flex; flex-direction: column; gap: 14px; }

.lb-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.lb-row .top .nm { font-weight: 600; }

.lb-row .top .v {
  font-weight: 700;
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
}

.bar { height: 7px; border-radius: 99px; background: var(--line); }
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
}

/* ---------- profile 卡（廠商/機關/類別頁） ---------- */
.profile {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 30, 70, .05);
  margin-bottom: 32px;
}

.profile .ph {
  background: linear-gradient(120deg, #0f1e44, #1b3170);
  color: #fff;
  padding: 22px 24px;
}

.profile .ph .who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile .ph .logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.profile .ph h3 { font-size: 19px; letter-spacing: -.01em; }
.profile .ph .meta { font-size: 12px; color: #aab8d8; margin-top: 2px; }

.profile .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.profile .stats div { background: #fff; padding: 16px 18px; }
.profile .stats .n { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.profile .stats .l {
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}

.profile .body { padding: 18px 24px 22px; }

.profile .body .sum {
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.6;
}

.profile .body .sum b { color: var(--ink); }

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  list-style: none;
  padding: 0;
}

/* 首頁類別 chips — list items with links */
.chips li a, .chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 7px;
  transition: .15s;
}

.chips li a:hover, .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- feature trust band ---------- */
.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 46px 0;
}

.feat .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eaf0ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 12px;
}

.feat h4 { font-size: 15.5px; margin-bottom: 5px; }
.feat p { font-size: 13.5px; color: var(--slate); }

/* ---------- 通用標題/說明 ---------- */
.feed-h {
  font-size: 22px;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 48px 0 16px;
  color: var(--ink);
}

.lead {
  color: var(--slate);
  font-size: 15px;
  margin: 8px 0 24px;
}

/* ---------- feed 卡片（搜尋/profile 清單） ---------- */
.feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feed-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  transition: .15s;
}

.feed-item:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59, 110, 245, .1);
  padding: 3px 9px;
  border-radius: 20px;
}

.feed-date { font-size: 12.5px; color: var(--slate); }

.feed-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-meta {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--slate);
  flex-wrap: wrap;
}

.feed-meta .unit { color: var(--ink2); }
.feed-meta .cat { color: var(--slate2); }

/* ---------- 麵包屑 ---------- */
.crumb {
  font-size: 13px;
  color: var(--slate);
  margin: 16px 0 24px;
}

.crumb a { color: var(--accent); }
.crumb a:hover { text-decoration: underline; }

/* ---------- 個案頁鍵值表格 .kv ---------- */
.kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 32px;
}

.kv th, .kv td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.kv th {
  width: 130px;
  color: var(--slate);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--soft);
}

.kv td { color: var(--ink); }
.kv td a { color: var(--accent); }
.kv td a:hover { text-decoration: underline; }

/* 總決標金額醒目 */
.kv td strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* 投標廠商表格 */
.kv thead th {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- summary-block（廠商/機關/類別綜述） ---------- */
.summary-block {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.summary-text {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.top3 {
  margin-top: 12px;
}

.top3 h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}

.top3 ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top3 ul li {
  font-size: 13px;
  color: var(--ink2);
}

.top3 ul li a {
  color: var(--accent);
  font-weight: 600;
}

.top3 ul li a:hover { text-decoration: underline; }

/* ---------- stat 卡（profile stats 延伸） ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.stat-card .n {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-card .l {
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

/* ---------- vendors 得標廠商區塊 ---------- */
.vendors-section { margin-top: 12px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 40px 0 64px;
  font-size: 13px;
  color: var(--slate);
}

footer .src {
  margin-top: 8px;
  font-size: 12px;
  color: var(--slate2);
}

/* ---------- card（about 頁） ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: .2s;
  background: #fff;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .07);
  border-color: var(--accent);
}

.card .ico { font-size: 26px; }
.card h3 { font-size: 18px; margin: 12px 0 6px; letter-spacing: -.02em; }
.card p { font-size: 14px; color: var(--slate); }
.card .ex { margin-top: 14px; font-size: 13px; color: var(--accent); }

/* ---------- 響應式 ---------- */
@media (max-width: 820px) {
  .hero h1 { font-size: 34px; }
  .cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .profile .stats { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .feed { grid-template-columns: 1fr; }
  .kv th { width: 90px; }
  .kpis { grid-template-columns: 1fr; }
}
