/* 首頁專用樣式 */

/* ===== Hero 科技視覺強化 ===== */
.hero-tech-viz {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.viz-noc-panel {
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.06);
  backdrop-filter: blur(20px);
}

.viz-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  gap: 12px;
  flex-wrap: wrap;
}

.vsb-left, .vsb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vsb-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.vsb-led.on {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(0, 255, 170, 0.6);
}

.vsb-icon { font-size: 0.75rem; opacity: 0.8; }
.vsb-cluster { color: var(--text-secondary); font-family: 'Microsoft JhengHei', sans-serif; }
.vsb-region { color: var(--text-muted); font-family: 'Microsoft JhengHei', sans-serif; }
.vsb-sep { color: rgba(255, 255, 255, 0.15); }
#viz-clock { color: var(--accent); }
.vsb-session { color: var(--text-muted); font-family: 'Microsoft JhengHei', sans-serif; }

.viz-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 0.85;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.04), transparent 70%);
}

#hero-viz-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viz-core-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.viz-core-hud {
  text-align: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
}

.viz-core-icon {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 2px;
}

.viz-hud-corner {
  position: absolute;
  font-family: 'Consolas', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  z-index: 3;
  pointer-events: none;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.viz-hud-corner .hud-ico { margin-right: 3px; font-size: 0.7rem; }
.viz-hud-corner span:not(.hud-ico) { color: var(--accent); font-weight: 600; }
.viz-hud-corner { font-family: 'Microsoft JhengHei', 'Consolas', sans-serif; }
.viz-hud-corner.tl { top: 8px; left: 8px; }
.viz-hud-corner.tr { top: 8px; right: 8px; }
.viz-hud-corner.bl { bottom: 8px; left: 8px; }
.viz-hud-corner.br { bottom: 8px; right: 8px; }

.viz-core-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-green);
  font-family: 'Consolas', monospace;
}

.viz-core-label {
  font-size: 0.55rem;
  color: var(--accent);
  font-family: 'Microsoft JhengHei', sans-serif;
  letter-spacing: 0.5px;
}


.viz-node-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.viz-node-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-family: 'Consolas', monospace;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: border-color 0.3s;
  line-height: 1.35;
}

.viz-node-tag .nt-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: 'Microsoft JhengHei', sans-serif;
}

.viz-node-tag .nt-icon { font-size: 0.75rem; }

.viz-node-tag .nt-ip {
  display: block;
  font-size: 0.55rem;
  color: var(--text-muted);
}

.viz-node-tag .nt-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.55rem;
  color: var(--accent-green);
  margin-top: 2px;
  font-family: 'Microsoft JhengHei', sans-serif;
}

.viz-node-tag .nt-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
}

.viz-node-tag.active {
  border-color: rgba(0, 255, 170, 0.4);
}

.viz-node-tag.warn {
  border-color: rgba(255, 171, 0, 0.5);
}

.viz-node-tag.warn .nt-status { color: var(--warning); }
.viz-node-tag.warn .nt-led { background: var(--warning); }

.viz-attack-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 80, 60, 0.12);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.15s;
}

.viz-attack-flash.show {
  opacity: 1;
}

.viz-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.vm-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 8px;
  text-align: center;
}

.vm-ico {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.vm-lbl {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-family: 'Microsoft JhengHei', sans-serif;
}

.vm-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Consolas', monospace;
}

.vm-val.green { color: var(--accent-green); }

.viz-spark-wrap {
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.spark-label {
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 0.58rem;
  color: var(--text-muted);
  font-family: 'Microsoft JhengHei', sans-serif;
  z-index: 1;
}

.viz-sparkline {
  width: 100%;
  height: 52px;
  display: block;
}

.viz-terminal-live {
  background: #020508;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  height: 80px;
  overflow: hidden;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.62rem;
  line-height: 1.55;
}

.viz-log-line {
  color: var(--text-secondary);
  animation: logFadeIn 0.4s ease;
  font-family: 'Microsoft JhengHei', 'Consolas', sans-serif;
}

.viz-log-line .log-time { color: rgba(255, 255, 255, 0.25); margin-right: 6px; }
.viz-log-line .log-ok { color: #8ba3c7; }
.viz-log-line .log-warn { color: #e68260; }
.viz-log-line .log-info { color: #6a9ec7; }

@keyframes logFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-status-chip.alert-flash {
  border-color: rgba(255, 80, 60, 0.5);
  animation: alertPulse 0.6s ease;
}

@keyframes alertPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 24px rgba(255, 80, 60, 0.4); }
}

.hero-status-chip {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Microsoft JhengHei', sans-serif;
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-status-chip.badge-top {
  top: -5px;
  right: -15px;
}

.hero-status-chip.badge-bottom {
  bottom: 40px;
  left: -25px;
}

.chip-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.chip-led.on {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.chip-led.warn {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.5);
  animation: pulse 1s infinite;
}

.chip-val {
  font-weight: 600;
  color: var(--accent-green);
  font-size: 0.72rem;
  font-family: 'Consolas', monospace;
}

.chip-sub {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 1px;
  font-family: 'Microsoft JhengHei', sans-serif;
}

/* ===== 主機方案區塊 ===== */
.plan-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.plan-category-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.plan-category-block:hover {
  border-color: var(--border-hover);
}

.pcb-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(123, 97, 255, 0.04));
}

.pcb-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
}

.pcb-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  animation: iconPulse 2s ease-in-out infinite;
}

.pcb-icon-wrap.shield {
  background: rgba(123, 97, 255, 0.1);
  border-color: rgba(123, 97, 255, 0.25);
}

.pcb-icon-wrap.shield::after {
  border-color: rgba(123, 97, 255, 0.15);
}

@keyframes iconPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.pcb-header h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.pcb-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pcb-header .pcb-link {
  margin-left: auto;
  flex-shrink: 0;
}

.home-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.home-plan-card {
  padding: 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.home-plan-card:last-child {
  border-right: none;
}

.home-plan-card:hover {
  background: rgba(0, 212, 255, 0.03);
}

.home-plan-card.hot::before {
  content: '熱門';
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  background: var(--gradient);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.hpc-cpu {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Consolas', monospace;
}

.hpc-score {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.hpc-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hpc-price span {
  font-size: 0.85rem;
  -webkit-text-fill-color: var(--text-muted);
}

.hpc-specs {
  flex: 1;
  margin-bottom: 20px;
}

.hpc-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hpc-specs li::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.7rem;
}

.hpc-specs li.defense {
  color: var(--accent-green);
}

.hpc-specs li.defense::before {
  content: '🛡';
  font-size: 0.75rem;
}

/* ===== 客戶推薦區 ===== */
.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: var(--bg-secondary);
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(123, 97, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(0, 212, 255, 0.06), transparent);
  pointer-events: none;
}

.testimonials-deco {
  position: absolute;
  pointer-events: none;
}

.testimonials-deco.deco-1 {
  top: 10%;
  left: 5%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 50%;
  animation: decoSpin 20s linear infinite;
}

.testimonials-deco.deco-2 {
  bottom: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(123, 97, 255, 0.2);
  border-radius: 50%;
  animation: decoSpin 30s linear infinite reverse;
}

@keyframes decoSpin {
  to { transform: rotate(360deg); }
}

.testimonial-banner {
  text-align: center;
  padding: 32px 40px;
  margin-bottom: 48px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(123, 97, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.testimonial-banner::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 6rem;
  color: rgba(0, 212, 255, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-banner h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.testimonial-banner p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.tb-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-green);
  font-family: 'Consolas', monospace;
  margin-bottom: 16px;
}

.tb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.5s infinite;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  min-height: 260px;
}

.testimonial-card.tc-fade-out {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.testimonial-card.tc-fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.tc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 97, 255, 0.15));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
}

.tc-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  animation: avatarRing 3s ease-in-out infinite;
}

@keyframes avatarRing {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.tc-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.tc-info .tc-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tc-date {
  font-size: 0.7rem;
  color: var(--accent);
  font-family: 'Consolas', monospace;
  margin-top: 2px;
}

.tc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-stars {
  color: #ffab00;
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.tc-quote {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
}

.tc-quote::before {
  content: '「';
  color: var(--accent);
  font-size: 1.2rem;
}

.tc-quote::after {
  content: '」';
  color: var(--accent);
  font-size: 1.2rem;
}

.tc-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--accent-green);
  font-family: 'Consolas', monospace;
}

.clients-showcase {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.client-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(10, 18, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.client-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.client-badge .cb-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .home-plan-cards {
    grid-template-columns: 1fr;
  }

  .home-plan-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .home-plan-card:last-child {
    border-bottom: none;
  }

  .pcb-header {
    flex-wrap: wrap;
  }

  .pcb-header .pcb-link {
    margin-left: 0;
    width: 100%;
    margin-top: 12px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-tech-viz {
    max-width: 360px;
    margin-top: 40px;
  }

  .viz-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .viz-hud-corner { font-size: 0.55rem; }

  .viz-node-tag {
    font-size: 0.5rem;
    padding: 2px 5px;
  }
}
