/* ══ 企業基本面 Fundamentals — Enhanced Typography ═══════════════ */

/* ── Section 通用 ─────────────────────────────────────────────── */
.fund-section {
  margin-bottom: 52px;
}
.fund-section-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 28px;
  position: relative;
}
.fund-section-head::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 60px; height: 2px;
  background: var(--gold);
}
.fund-section-head .sec-num {
  font-family: 'Times New Roman', serif;
  font-style: italic;
  font-size: 56px;
  font-weight: 400;
  color: var(--gold);
  line-height: .9;
  letter-spacing: -.03em;
  min-width: 52px;
  flex-shrink: 0;
  margin-top: -4px;
  opacity: .85;
}
.fund-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding-top: 8px;
}
.fund-section-head h2 {
  font-family: 'BiauKai','標楷體',serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .2em;
  margin: 0;
  line-height: 1.2;
}
.fund-section-head .sec-en {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .08em;
}
.fund-section-head .sec-badge {
  margin-left: auto;
  font-size: var(--fs-nano);
  color: var(--paper-bright);
  background: var(--ink-soft);
  padding: 3px 12px;
  border-radius: 1px;
  font-family: 'Times New Roman',serif;
  font-style: italic;
  letter-spacing: .06em;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 10px;
}

/* ── Cover / Stock Header ─────────────────────────────────────── */
.fund-cover {
  padding: 32px 0 30px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  position: relative;
}
.fund-cover-ornament {
  position: absolute;
  right: 0; top: 20px;
  font-family: 'Times New Roman',serif;
  font-size: 72px;
  color: var(--gold);
  opacity: .1;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.fund-cover-left { display: flex; flex-direction: column; gap: 10px; }
.fund-eyebrow {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: var(--fs-nano);
  letter-spacing: .22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.fund-stock-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.fund-code {
  font-family: 'Times New Roman',serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .1em;
}
.fund-name {
  font-family: 'BiauKai','標楷體',serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.fund-name-en {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
}
.fund-sector-tag {
  font-size: var(--fs-nano);
  padding: 3px 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'BiauKai','標楷體',sans-serif;
  letter-spacing: .12em;
  border-radius: 1px;
  align-self: center;
}
.fund-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 2px;
}
.fund-price {
  font-size: 44px;
  font-weight: 700;
  font-family: -apple-system,sans-serif;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.fund-chg { font-size: 17px; font-weight: 600; }
.fund-chg.up { color: var(--bull); }
.fund-chg.dn { color: var(--bear); }

/* ── Metric Tiles ─────────────────────────────────────────────── */
.fund-metric-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--paper-line);
  background: var(--paper-bright);
  margin-top: 18px;
}
.fund-metric-tile {
  padding: 14px 20px;
  border-right: 1px solid var(--paper-line);
  flex: 1;
  min-width: 90px;
  position: relative;
}
.fund-metric-tile:last-child { border-right: none; }
.fund-metric-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
}
.fund-metric-tile.tile-gold::before { background: var(--gold); }
.fund-metric-tile.tile-bull::before { background: var(--bull); }
.fund-metric-tile.tile-bear::before { background: var(--bear); }
.fund-metric-tile .mt-label {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: var(--fs-nano);
  letter-spacing: .15em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.fund-metric-tile .mt-value {
  font-family: -apple-system,sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.fund-metric-tile .mt-value.bull { color: var(--bull); }
.fund-metric-tile .mt-value.bear { color: var(--bear); }
.fund-metric-tile .mt-sub {
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  margin-top: 4px;
  display: block;
  letter-spacing: .04em;
}

/* ── Cover Right (Nav Buttons) ────────────────────────────────── */
.fund-cover-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  padding-top: 28px;
}
.fund-nav-btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  text-decoration: none;
  border-radius: 1px;
  transition: all .14s;
  white-space: nowrap;
}
.fund-nav-btn:hover { background: var(--ink); color: var(--paper); }
.fund-nav-btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.fund-nav-btn.primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* ── Search Bar ───────────────────────────────────────────────── */
.fund-search-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  align-items: center;
  padding: 16px 0 0;
}
.fund-search-input {
  padding: 9px 16px;
  font-size: 15px;
  border: 1px solid var(--paper-line);
  font-family: -apple-system,sans-serif;
  background: var(--paper-bright);
  color: var(--ink);
  border-radius: 1px;
  width: 170px;
  transition: border-color .14s;
}
.fund-search-input:focus {
  outline: none;
  border-color: var(--ink);
}
.fund-search-btn {
  padding: 9px 22px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  border-radius: 1px;
  transition: background .14s;
}
.fund-search-btn:hover { background: var(--gold-deep); }

/* ── Company Profile ──────────────────────────────────────────── */
.fund-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.fund-desc {
  font-family: 'BiauKai','標楷體',serif;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}
.fund-biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.fund-biz-tag {
  font-size: var(--fs-nano);
  padding: 4px 12px;
  border: 1px solid var(--paper-line);
  background: var(--paper-bright);
  font-family: 'BiauKai','標楷體',sans-serif;
  color: var(--ink-soft);
  border-radius: 1px;
  letter-spacing: .06em;
}
.fund-meta-list { display: flex; flex-direction: column; gap: 0; }
.fund-meta-row {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
}
.fund-meta-row:last-child { border-bottom: none; }
.fund-meta-key {
  width: 100px;
  flex-shrink: 0;
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  letter-spacing: .08em;
}
.fund-meta-val {
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: .04em;
}

/* ── Revenue Chart ────────────────────────────────────────────── */
.fund-chart-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--paper-bright);
  border: 1px solid var(--paper-line);
  padding: 20px 0 0;
}
.fund-chart-wrap svg { display: block; }

/* ── Stat Bar (below charts) ──────────────────────────────────── */
.fund-stat-bar {
  display: flex;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-top: none;
}
.fund-stat-bar-item {
  padding: 12px 20px;
  border-right: 1px solid var(--paper-line);
  flex: 1;
}
.fund-stat-bar-item:last-child { border-right: none; }
.fund-stat-bar-item .k {
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.fund-stat-bar-item .v {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-family: -apple-system,sans-serif;
}

.fund-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.fund-two-col .fund-chart-wrap {
  padding: 16px 0 0;
}

/* ── Financial Table ──────────────────────────────────────────── */
.fund-table-wrap { overflow-x: auto; }
.fund-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fund-table thead tr {
  border-bottom: 2px solid var(--ink);
}
.fund-table th {
  background: transparent;
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: var(--fs-nano);
  letter-spacing: .1em;
  font-weight: 400;
  padding: 10px 14px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
}
.fund-table th:first-child {
  text-align: left;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .14em;
}
.fund-table td {
  padding: 9px 14px;
  text-align: right;
  border-bottom: 1px solid var(--paper-line);
  font-family: -apple-system,sans-serif;
  color: var(--ink);
  white-space: nowrap;
}
.fund-table td:first-child {
  text-align: left;
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .06em;
}
.fund-table tr:last-child td { border-bottom: none; }
.fund-table tbody tr:hover td { background: var(--paper); }
.fund-table .highlight td {
  background: #fdf3e0;
  font-weight: 700;
}
.fund-table .highlight td:first-child {
  color: var(--gold-deep);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}
.fund-table .pos { color: var(--bull); font-weight: 600; }
.fund-table .neg { color: var(--bear); font-weight: 600; }
.fund-table .trend-up::after { content: ' ↑'; color: var(--bull); font-size: var(--fs-nano); }
.fund-table .trend-dn::after { content: ' ↓'; color: var(--bear); font-size: var(--fs-nano); }

/* ── Fair Value Section ───────────────────────────────────────── */
.fund-valuation {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  margin-bottom: 1px;
}
.fund-val-card {
  padding: 28px 24px 22px;
  background: var(--paper-bright);
  position: relative;
  overflow: hidden;
}
.fund-val-card::after {
  content: attr(data-letter);
  position: absolute;
  right: 10px; bottom: -10px;
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.fund-val-card.bear::before { content: ''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--bear); }
.fund-val-card.base::before { content: ''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--gold-deep); }
.fund-val-card.bull::before { content: ''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--bull); }
.fund-val-card.bear::after { color: var(--bear); opacity: .05; }
.fund-val-card.base::after { color: var(--gold); opacity: .06; }
.fund-val-card.bull::after { color: var(--bull); opacity: .05; }

.fund-val-method {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  letter-spacing: .1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.fund-val-label {
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  letter-spacing: .1em;
}
.fund-val-price {
  font-size: 36px;
  font-weight: 700;
  font-family: -apple-system,sans-serif;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1;
  letter-spacing: -.02em;
}
.fund-val-upside {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.fund-val-upside.pos { color: var(--bull); }
.fund-val-upside.neg { color: var(--bear); }
.fund-val-basis {
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  margin-top: 10px;
  font-family: 'Times New Roman',serif;
  font-style: italic;
  letter-spacing: .04em;
}

.fund-val-range {
  padding: 16px 20px;
  border: 1px solid var(--paper-line);
  border-top: none;
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.fund-val-range-label {
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  white-space: nowrap;
}
.fund-val-bar-wrap {
  flex: 1;
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, var(--bear) 0%, var(--gold) 50%, var(--bull) 100%);
  border-radius: 4px;
  opacity: .7;
}
.fund-val-bar-cursor {
  position: absolute;
  top: -5px;
  width: 4px; height: 18px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.fund-verdict {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--paper-line);
  border-top: none;
  background: var(--paper-bright);
  margin-bottom: 12px;
}
.fund-verdict-tag {
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 6px 16px;
  border-radius: 1px;
}
.fund-verdict-tag.expensive { background: #fde8e4; color: var(--bear); }
.fund-verdict-tag.cheap     { background: #e7f2ec; color: var(--bull); }
.fund-verdict-tag.fair      { background: #fdf3e0; color: var(--gold-deep); }
.fund-verdict-detail {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ── Peer Comparison ──────────────────────────────────────────── */
.peer-rank {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  text-align: center;
}
.peer-name {
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
}
.peer-code {
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  letter-spacing: .06em;
}
.peer-self td { background: #fdf3e0 !important; }
.peer-self .peer-rank { color: var(--gold-deep); font-weight: 700; }
.peer-bar {
  display: inline-block;
  height: 6px;
  background: var(--ink);
  border-radius: 1px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: .5;
}

/* ── Supply Chain Map ─────────────────────────────────────────── */
.fund-chain-wrap {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr;
  gap: 0;
  align-items: start;
}
.fund-chain-col { display: flex; flex-direction: column; gap: 8px; }
.fund-chain-label {
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: var(--fs-nano);
  letter-spacing: .14em;
  color: var(--ink-mute);
  text-align: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.fund-chain-node {
  padding: 10px 12px;
  border: 1px solid var(--paper-line);
  background: var(--paper-bright);
  text-align: center;
  border-radius: 2px;
  transition: box-shadow .14s;
}
.fund-chain-node:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.fund-chain-node.self {
  border-color: var(--gold);
  background: #fdf3e0;
  box-shadow: 0 2px 12px rgba(184,146,77,.2);
}
.fund-chain-node .cn-code {
  font-family: 'Times New Roman',serif;
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  letter-spacing: .06em;
}
.fund-chain-node .cn-name {
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}
.fund-chain-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
  padding-top: 44px;
  opacity: .8;
}

/* ── US Relations ─────────────────────────────────────────────── */
.fund-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.fund-us-card {
  padding: 16px 18px;
  border: 1px solid var(--paper-line);
  background: var(--paper-bright);
  border-left: 3px solid var(--ink-mute);
  transition: box-shadow .14s;
}
.fund-us-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.fund-us-card.level-critical { border-left-color: var(--bull); }
.fund-us-card.level-high     { border-left-color: var(--gold-deep); }
.fund-us-card.level-medium   { border-left-color: var(--ink-mute); }
.fund-us-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fund-us-ticker {
  font-family: 'Times New Roman',serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .08em;
}
.fund-us-name {
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
}
.fund-us-role {
  margin-left: auto;
  font-size: var(--fs-nano);
  padding: 3px 8px;
  border-radius: 1px;
  font-family: 'BiauKai','標楷體',sans-serif;
  letter-spacing: .08em;
}
.fund-us-role.customer  { background: #e7f2ec; color: var(--bull); }
.fund-us-role.supplier  { background: #e8eef8; color: #2c5e8e; }
.fund-us-role.partner   { background: #fdf3e0; color: var(--gold-deep); }
.fund-us-role.competitor{ background: #fef0ed; color: var(--bear); }
.fund-us-detail {
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.fund-us-level {
  margin-top: 8px;
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 5px;
}
.fund-us-level-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.fund-us-level.level-critical .fund-us-level-dot { background: var(--bull); }
.fund-us-level.level-high     .fund-us-level-dot { background: var(--gold-deep); }
.fund-us-level.level-medium   .fund-us-level-dot { background: var(--ink-mute); }
.fund-us-level.level-low      .fund-us-level-dot { background: var(--paper-line); }

.fund-summary-box {
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--gold-deep);
  margin-top: 20px;
  position: relative;
}
.fund-summary-box::before {
  content: '❦';
  position: absolute;
  right: 16px; top: 14px;
  font-family: 'Times New Roman',serif;
  font-size: 18px;
  color: var(--gold);
  opacity: .4;
}
.fund-summary-box p {
  font-family: 'BiauKai','標楷體',serif;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink);
  margin: 0;
}

/* ── Loading / Empty ──────────────────────────────────────────── */
.fund-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: .12em;
}
.fund-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-mute);
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 13px;
  border: 1px dashed var(--paper-line);
  border-radius: 2px;
  letter-spacing: .06em;
}

/* ── KV Footnote Strip ────────────────────────────────────────── */
.fund-footnote {
  font-size: var(--fs-nano);
  color: var(--ink-mute);
  font-family: 'Times New Roman',serif;
  font-style: italic;
  margin-top: 10px;
  letter-spacing: .04em;
  line-height: 1.7;
}
.fund-footnote a { color: inherit; }

/* ── Ratio Table ──────────────────────────────────────────────── */
.ratio-table .ratio-green { color: var(--bull); font-weight: 600; }
.ratio-table .ratio-red   { color: var(--bear); font-weight: 600; }

/* ── Cash Flow Table ──────────────────────────────────────────── */
.cf-table td.pos { color: var(--bull); font-weight: 600; }
.cf-table td.neg { color: var(--bear); font-weight: 600; }

/* ── Dividend Table & Summary ─────────────────────────────────── */
.div-summary-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-bottom: none;
  font-family: 'BiauKai','標楷體',sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .06em;
}
.div-table th:first-child,
.div-table th:nth-child(2),
.div-table th:last-child { text-align: left; }

/* ── Chip Table & Bars ────────────────────────────────────────── */
.chip-table td { position: relative; }
.chip-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
}
.chip-bar {
  display: inline-block;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: .7;
  vertical-align: middle;
}
.chip-bar.bull { background: var(--bull); }
.chip-bar.bear { background: var(--bear); }

/* ── RWD ──────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .fund-profile-grid, .fund-two-col  { grid-template-columns: 1fr; }
  .fund-valuation                    { grid-template-columns: 1fr; gap: 0; }
  .fund-cover                        { grid-template-columns: 1fr; }
  .fund-cover-right                  { align-items: flex-start; padding-top: 0; flex-direction: row; flex-wrap: wrap; }
  .fund-chain-wrap                   { grid-template-columns: 1fr; }
  .fund-chain-arrow                  { display: none; }
  .fund-metric-tiles                 { flex-direction: row; }
  .fund-metric-tile                  { border-right: 1px solid var(--paper-line); border-bottom: none; }
  .fund-section-head .sec-num        { font-size: 40px; }
}

/* ============================================================
   基本面美化層 — 2026-06-11
   數字回歸襯線 / 區塊頭工藝 / 估值卡與印章 / 表格墨韻
   原則:Formosa & Co. 雜誌風統一,整塊可回退
   ============================================================ */

/* ── 1. 數字字體統一:-apple-system → Times New Roman 等寬襯線 ── */
.fund-price,
.fund-metric-tile .mt-value,
.fund-stat-bar-item .v,
.fund-val-price,
.fund-table td,
.fund-search-input {
  font-family: 'Times New Roman', serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "lnum";
}
.fund-table td:first-child { font-family: 'BiauKai','標楷體',serif; } /* 首欄維持標楷體 */

/* ── 2. 區塊頭工藝:金線呼吸 + 雙細線 ── */
.fund-section-head::before {
  transition: width .45s cubic-bezier(.22,.8,.36,1);
}
.fund-section:hover .fund-section-head::before { width: 110px; }
.fund-section-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--paper-line);
}
.fund-section-head .sec-num {
  text-shadow: 2px 2px 0 rgba(184,146,77,.14);
}

/* ── 3. 封面:雙細線收尾(呼應 Masthead)+ 股價金色底線 ── */
.fund-cover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: var(--ink);
}
.fund-price {
  position: relative;
  display: inline-block;
}
.fund-price::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -7px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-leaf) 70%, transparent);
}

/* ── 4. Metric tiles:懸停浮起 + 頂線舒展 ── */
.fund-metric-tile {
  transition: background .2s ease, box-shadow .25s ease;
}
.fund-metric-tile:hover {
  background: var(--paper);
  box-shadow: inset 0 2px 0 var(--gold);
}

/* ── 5. 表格:金邊書籤懸停(與全站 ed-table 一致)+ 表頭 small-caps ── */
.fund-table th {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: .14em;
  color: var(--gold-deep);
  text-transform: lowercase;
}
.fund-table th:first-child { color: var(--ink); }
.fund-table tbody tr { transition: background .15s ease; }
.fund-table tbody tr:hover td { background: rgba(184,146,77,.07); }
.fund-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: 16px;
}
.fund-table td { transition: padding-left .18s ease; }

/* ── 6. 估值卡:懸停浮起 + 游標滑移動畫 ── */
.fund-val-card {
  transition: transform .28s cubic-bezier(.22,.8,.36,1), box-shadow .28s ease;
}
.fund-val-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,36,56,.10);
  z-index: 1;
}
.fund-val-bar-cursor {
  transition: left .7s cubic-bezier(.22,.8,.36,1);
}

/* ── 7. 結論印章:硃砂/墨印風 verdict ── */
.fund-verdict-tag {
  background: transparent !important;
  border: 2.5px solid currentColor;
  border-radius: 3px;
  transform: rotate(-2.5deg);
  font-family: 'BiauKai','標楷體',serif;
  box-shadow: inset 0 0 6px rgba(0,0,0,.04);
  position: relative;
}
.fund-verdict-tag::after {
  content: "";
  position: absolute; inset: 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .35;
  pointer-events: none;
}
.fund-verdict-tag.expensive { color: var(--bear); }
.fund-verdict-tag.cheap     { color: var(--bull); }
.fund-verdict-tag.fair      { color: var(--gold-deep); }

/* ── 8. 圖表容器:內細框 + 懸停內框鍍金(呼應 frame-card)── */
.fund-chart-wrap { position: relative; }
.fund-chart-wrap::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .3s ease;
  z-index: 1;
}
.fund-chart-wrap:hover::before { border-color: rgba(212,179,112,.45); }

/* ── 9. 供應鏈節點 / 美國關係卡:懸停浮起 ── */
.fund-chain-node {
  transition: transform .22s cubic-bezier(.22,.8,.36,1), box-shadow .22s ease, border-color .22s ease;
}
.fund-chain-node:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.fund-us-card {
  transition: transform .22s cubic-bezier(.22,.8,.36,1), box-shadow .22s ease;
}
.fund-us-card:hover { transform: translateY(-2px); }

/* ── 10. 公司簡介:首字下沉(雜誌頭版工藝)── */
.fund-desc::first-letter {
  font-size: 2.6em;
  float: left;
  line-height: .95;
  padding: 2px 8px 0 0;
  color: var(--gold-deep);
  font-weight: 700;
}

/* ── 無障礙:減少動態 ── */
@media (prefers-reduced-motion: reduce) {
  .fund-section-head::before,
  .fund-val-card, .fund-chain-node, .fund-us-card,
  .fund-val-bar-cursor, .fund-table td { transition: none; }
  .fund-val-card:hover, .fund-chain-node:hover, .fund-us-card:hover { transform: none; }
}


/* ── 釋義層（基本面意義介紹）─────────────────────────── */
.sec-note { display: inline-block; margin-left: 10px; vertical-align: baseline; }
.sec-note-btn {
  background: none; border: 1px solid var(--paper-line); cursor: pointer;
  font-family: 'BiauKai','標楷體',serif; font-size: var(--fs-nano); letter-spacing: .12em;
  color: var(--gold-deep); padding: 2px 9px; transition: all .18s;
}
.sec-note-btn:hover { border-color: var(--gold); background: rgba(184,146,77,.06); }
.sec-note-body {
  position: relative; margin-top: 10px; padding: 12px 16px 10px;
  border: 1px solid var(--paper-line); border-left: 2px solid var(--gold);
  background: var(--paper-bright); max-width: 680px;
  font-family: 'BiauKai','標楷體',serif; font-size: 12px; line-height: 1.9;
  letter-spacing: .04em; color: var(--ink-soft);
  animation: noteIn .25s ease both;
}
@keyframes noteIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sec-note-body p { margin: 0 0 6px; }
.sec-note-body p:last-child { margin-bottom: 0; }
.sec-note-body b {
  display: inline-block; margin-right: 8px; padding: 0 6px;
  font-weight: 400; font-size: var(--fs-nano); color: var(--paper-bright);
  background: var(--ink); letter-spacing: .2em;
}
@media (prefers-reduced-motion: reduce) { .sec-note-body { animation: none; } }

/* ═══ Section 00 企業段位總評 ═══════════════════════ */
.tier-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 18px;
}
@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-seal-card {
  border: 1px solid var(--paper-line); background: var(--paper-bright, #fbf8ef);
  padding: 20px 18px; text-align: center; position: relative;
}
.tier-seal {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; margin: 4px auto 8px;
  border: 3px solid; border-radius: 6px; position: relative;
  transform: rotate(-2.5deg); background: rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.tier-seal::after {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid currentColor; border-radius: 4px; opacity: .5;
}
.tier-seal-label {
  font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: .06em;
}
.tier-seal-score { font-size: 15px; margin-top: 2px; opacity: .85; }
.tier-seal-score::after { content: ' / 100'; font-size: var(--fs-nano); opacity: .7; }
.tier-seal-en {
  font-family: 'Times New Roman', serif; font-style: italic; font-size: 12px;
  color: var(--ink-mute); letter-spacing: .18em; margin-top: 2px;
}
.tier-seal-desc { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 12px; letter-spacing: .05em; }
.tier-dims { text-align: left; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tier-dim { display: flex; align-items: center; gap: 8px; }
.tier-dim-name { font-size: 12px; width: 34px; flex: none; letter-spacing: .1em; }
.tier-dim-bar {
  flex: 1; height: 7px; background: var(--paper-line); position: relative; overflow: hidden;
}
.tier-dim-fill { position: absolute; left: 0; top: 0; bottom: 0; transition: width .6s ease; }
.tier-dim-val { font-size: var(--fs-nano); color: var(--ink-mute); width: 44px; text-align: right; flex: none; }
.tier-why { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 10px; }
.tier-chip {
  font-size: var(--fs-nano); padding: 2px 8px; border: 1px solid; letter-spacing: .03em;
}
.tier-chip.good { color: var(--bull); border-color: rgba(74,166,84,.4); background: rgba(74,166,84,.06); }
.tier-chip.bad  { color: var(--bear); border-color: rgba(229,57,53,.35); background: rgba(229,57,53,.05); }
.tier-prs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  border-top: 1px dashed var(--paper-line); padding-top: 10px;
}
.tier-pr { font-size: 11.5px; color: var(--ink-soft); }
.tier-pr b { font-weight: 700; }
.tier-right {
  border: 1px solid var(--paper-line); background: var(--paper-bright, #fbf8ef);
  padding: 16px 18px;
}
.tier-lights-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
}
.tier-lights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px 14px;
}
@media (max-width: 1100px) { .tier-lights { grid-template-columns: repeat(2, 1fr); } }
.tier-light { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 -1px 1px rgba(0,0,0,.18); }
.tl-label { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══ Section M 企業護城河:五型痕跡比對 ═══════════════ */
.moat-types { display: flex; flex-direction: column; gap: 2px; }
.moat-type {
  display: flex; gap: 10px; padding: 8px 10px;
  border-left: 3px solid transparent;
  transition: background .15s ease;
}
.moat-type:hover { background: rgba(184,146,77,.05); }
.moat-type.hit {
  border-left-color: var(--gold);
  background: rgba(184,146,77,.07);
}
.moat-type-icon { font-size: 16px; line-height: 1.4; flex: none; width: 20px; text-align: center; }
.moat-type-main { min-width: 0; flex: 1; }
.moat-type-head { display: flex; align-items: baseline; gap: 8px; }
.moat-type-name { font-size: 13.5px; letter-spacing: .1em; font-weight: 700; }
.moat-type-en {
  font-family: 'Times New Roman', serif; font-style: italic;
  font-size: var(--fs-nano); color: var(--ink-mute); letter-spacing: .06em;
}
.moat-type-state { margin-left: auto; font-size: var(--fs-nano); flex: none; }
.moat-type-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.moat-type-rule { font-size: var(--fs-nano); color: var(--ink-mute); margin-top: 2px; }

/* ── 技術版圖 Technology Platforms ── */
.techm-list { display: flex; flex-direction: column; gap: 8px; }
.techm-card {
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--paper-line);
  padding: 9px 12px;
  background: rgba(255,255,255,.3);
  transition: box-shadow .2s ease;
}
.techm-card:hover { box-shadow: 0 4px 14px rgba(26,36,56,.07); }
.techm-card.lead { border-left-color: var(--gold); background: rgba(184,146,77,.05); }
.techm-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.techm-en {
  font-family: 'Times New Roman', serif; font-style: italic; font-weight: 700;
  font-size: 14px; letter-spacing: .03em;
}
.techm-zh { font-size: 12px; color: var(--ink-soft); letter-spacing: .08em; }
.techm-status {
  margin-left: auto; flex: none;
  font-family: 'BiauKai', '標楷體', serif;
  font-size: var(--fs-nano); letter-spacing: .12em;
  padding: 1px 8px; border: 1px solid;
}
.techm-note { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin-top: 4px; }
.techm-rivals { font-size: var(--fs-nano); color: var(--ink-mute); margin-top: 3px; letter-spacing: .03em; }
