/* HPC.TW index 頁面樣式（自 styles.css 拆出，2026-12-06）*/

.top-market-ticker {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(32, 214, 255, 0.14);
  background: #07111f;
}

.ticker-label {
  margin-right: 14px;
  color: var(--cyan-400);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tradingview-widget-container {
  position: relative;
  min-width: 0;
  height: 42px;
  overflow: hidden;
}

.tradingview-widget-container::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 38px;
  height: 42px;
  content: "";
  pointer-events: none;
  background: #07111f;
}

.tradingview-widget-container__widget {
  height: 42px;
}

body .top-market-ticker{background:linear-gradient(90deg,rgba(0,229,255,.06),rgba(61,126,255,.04) 40%,transparent)!important;border-bottom:1px solid var(--b-line)!important}

body .ticker-label{color:var(--b-accent)!important}

/* Ticker skin (keeps TradingView embed) */
.top-market-ticker.qf-ticker-skin,
.qf-ticker-skin {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.06), rgba(61, 126, 255, 0.04) 40%, transparent);
  overflow: hidden;
  min-height: 44px;
}

.qf-ticker-skin .ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-family: var(--qf-font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
  border-right: 1px solid rgba(0, 229, 255, 0.16);
  background: rgba(5, 10, 18, 0.65);
  white-space: nowrap;
}

.ticker-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
}

.qf-ticker-skin .tradingview-widget-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Homepage Quantum Forge layout */
body.qf-home {
  background: #050a12;
  color: #e8eef7;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.qf-container {
  width: min(100% - (clamp(20px, 5vw, 64px) * 2), 1200px);
  margin-inline: auto;
}

.qf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--qf-font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.qf-eyebrow i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
}

.qf-h1 {
  margin: 0 0 20px;
  font-family: var(--qf-font-display);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #e8eef7;
}

.qf-h1 span {
  background: var(--qf-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qf-h2 {
  margin: 0 0 16px;
  font-family: var(--qf-font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #e8eef7;
}

.qf-lead {
  margin: 0;
  max-width: 36em;
  color: #8ba0b8;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
}

.qf-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 32%, rgba(0, 229, 255, 0.14), transparent 55%),
    radial-gradient(720px 460px at 12% 88%, rgba(61, 126, 255, 0.16), transparent 52%),
    linear-gradient(160deg, #050a12 0%, #0a1628 55%, #07101c 100%);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 88px);
}

.qf-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 72% 40%, #000 18%, transparent 70%);
  pointer-events: none;
}

.qf-hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: min(100%, 1200px);
  margin-inline: auto;
}

.qf-hero-visual {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 229, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(13, 27, 46, 0.92), rgba(5, 10, 18, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 0 60px rgba(0, 229, 255, 0.05);
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.qf-hero-visual img { width: min(100%, 520px); height: auto; display: block; }

.qf-hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px;
}

.qf-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}

.qf-metric {
  border: 1px solid rgba(0, 229, 255, 0.16);
  background: rgba(13, 27, 46, 0.65);
  border-radius: 16px;
  padding: 16px 14px;
}

.qf-metric strong {
  display: block;
  font-family: var(--qf-font-display);
  font-size: 20px;
  margin-bottom: 4px;
  color: #e8eef7;
}

.qf-metric span { color: #8ba0b8; font-size: 12px; }

.qf-section { padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 64px); }

.qf-section-tight { padding-top: 0; }

.qf-section-partners { padding-top: 24px; }

.qf-section-head { max-width: 720px; margin-bottom: 40px; }

.qf-grid-3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}

.qf-card {
  background: rgba(13, 27, 46, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.qf-card:hover {
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 40px rgba(61, 126, 255, 0.18);
}

.qf-card-icon { width: 48px; height: 48px; margin-bottom: 20px; }

.qf-card-kicker {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--qf-font-display); font-size: 13px; color: var(--cyan-400); letter-spacing: 0.06em;
}

.qf-card h3 {
  margin: 0 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; color: #e8eef7;
}

.qf-card p { margin: 0 0 18px; color: #8ba0b8; font-size: 15px; }

.qf-card-link { color: var(--cyan-400); text-decoration: none; font-weight: 600; font-size: 13px; }

.qf-partner-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}

.qf-partner-card {
  border: 1px solid rgba(0, 229, 255, 0.16);
  background: rgba(13, 27, 46, 0.55);
  border-radius: 24px;
  padding: 28px 24px;
}

.qf-partner-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; height: 36px; padding: 0 14px; margin-bottom: 18px;
  border-radius: 8px; border: 1px solid rgba(0, 229, 255, 0.16);
  font-family: var(--qf-font-display); font-size: 12px; letter-spacing: 0.08em;
  color: var(--cyan-400); background: rgba(0, 229, 255, 0.06);
}

.qf-partner-card h3 { margin: 0 0 8px; font-size: 18px; color: #e8eef7; }

.qf-partner-card p { margin: 0; color: #8ba0b8; font-size: 14px; }

.qf-cta-strip {
  margin: 0 clamp(20px, 5vw, 64px) 64px;
  padding: clamp(36px, 5vw, 56px);
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background:
    radial-gradient(600px 240px at 85% 40%, rgba(0, 229, 255, 0.14), transparent 60%),
    linear-gradient(120deg, rgba(13, 27, 46, 0.95), rgba(7, 16, 28, 0.98));
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.qf-cta-title { margin-bottom: 10px; }

html body.qf-home{background:#050a12!important;color:#e8eef7!important;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif!important}

html body .qf-ticker-skin .ticker-label{color:#00e5ff!important}

.qf-office-entry:hover, .qf-office-entry:focus-visible { transform: translateY(-1px); box-shadow: var(--qf-glow-accent, 0 0 28px rgba(0,229,255,.35)); outline: none; }

.qf-office-entry__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--qf-st-working, #00e5ff); box-shadow: 0 0 0 0 rgba(0,229,255,.6); animation: qf-entry-ping 1.8s ease-out infinite; }

html body .qf-card .qf-office-entry { margin-top: 4px; }
