/* 關於我們頁面專用樣式 */
.theme-about .hero-chip {
  background: rgba(123, 97, 255, 0.1);
  border-color: rgba(123, 97, 255, 0.28);
  color: var(--accent-purple);
}

.about-mission {
  background: linear-gradient(180deg, rgba(123, 97, 255, 0.04), transparent);
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.mission-stat {
  padding: 20px 16px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.mission-stat:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.mission-stat .ms-val {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-stat .ms-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 五大優勢展示區 */
.showcase-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.showcase-section:nth-child(even) {
  background: var(--bg-secondary);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--accent);
  font-family: 'Consolas', monospace;
  margin-bottom: 16px;
}

.showcase-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.showcase-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.showcase-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.showcase-point:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.04);
}

.showcase-point .sp-icon {
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}

.showcase-visual {
  position: relative;
  background: #020508;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 320px;
  overflow: hidden;
}

.showcase-visual .sv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Consolas', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.showcase-visual .sv-live {
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 5px;
}

.showcase-visual .sv-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* 技術優勢 - 架構層動畫 */
.tech-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-20px);
  animation: layerSlide 0.6s ease forwards;
}

.tech-layer:nth-child(1) { animation-delay: 0.1s; border-left: 3px solid var(--accent); }
.tech-layer:nth-child(2) { animation-delay: 0.25s; border-left: 3px solid var(--accent-purple); }
.tech-layer:nth-child(3) { animation-delay: 0.4s; border-left: 3px solid var(--accent-green); }
.tech-layer:nth-child(4) { animation-delay: 0.55s; border-left: 3px solid #4da6ff; }
.tech-layer:nth-child(5) { animation-delay: 0.7s; border-left: 3px solid #ff6b6b; }

@keyframes layerSlide {
  to { opacity: 1; transform: translateX(0); }
}

.tech-layer .tl-icon { font-size: 1.3rem; }
.tech-layer .tl-name { font-size: 0.85rem; font-weight: 600; }
.tech-layer .tl-desc { font-size: 0.72rem; color: var(--text-muted); }

.tech-layer:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* 硬體設備 - 機架動畫 */
.server-rack {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  height: 220px;
  padding-top: 20px;
}

.rack-unit {
  width: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
}

.rack-unit.u1 { height: 120px; }
.rack-unit.u2 { height: 160px; }
.rack-unit.u3 { height: 200px; }

.rack-led {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.rack-led::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 60%;
  border-radius: 2px;
  animation: ledPulse 2s ease-in-out infinite;
}

.rack-unit.u1 .rack-led:nth-child(odd)::after { background: var(--accent-green); animation-delay: 0s; }
.rack-unit.u1 .rack-led:nth-child(even)::after { background: var(--accent); animation-delay: 0.5s; }
.rack-unit.u2 .rack-led::after { background: var(--accent-purple); }
.rack-unit.u3 .rack-led::after { background: var(--accent); width: 80%; }

@keyframes ledPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.rack-label {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Consolas', monospace;
  margin-top: 8px;
}

.hw-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.hw-spec {
  padding: 8px 12px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: 'Consolas', monospace;
  color: var(--text-secondary);
}

.hw-spec strong { color: var(--accent); }

/* 快速連接 - 延遲圖表 */
.latency-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  margin-bottom: 16px;
}

.latency-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.latency-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(0, 212, 255, 0.2), var(--accent));
  animation: latBarGrow 1.2s ease forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.latency-bar.highlight {
  background: linear-gradient(to top, rgba(0, 255, 170, 0.2), var(--accent-green));
}

.latency-bar:nth-child(1) { animation-delay: 0.1s; }
.latency-bar-wrap:nth-child(1) .latency-bar { animation-delay: 0.1s; height: 85%; }
.latency-bar-wrap:nth-child(2) .latency-bar { animation-delay: 0.2s; height: 30%; }
.latency-bar-wrap:nth-child(3) .latency-bar { animation-delay: 0.3s; height: 45%; }
.latency-bar-wrap:nth-child(4) .latency-bar { animation-delay: 0.4s; height: 55%; }
.latency-bar-wrap:nth-child(5) .latency-bar { animation-delay: 0.5s; height: 25%; }
.latency-bar-wrap:nth-child(6) .latency-bar { animation-delay: 0.6s; height: 90%; }

@keyframes latBarGrow {
  to { transform: scaleY(1); }
}

.latency-bar-wrap .lb-val {
  font-size: 0.7rem;
  font-family: 'Consolas', monospace;
  color: var(--accent);
  font-weight: 700;
}

.latency-bar-wrap .lb-city {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.latency-bar-wrap:nth-child(2) .lb-val { color: var(--accent-green); }

.ping-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 255, 170, 0.06);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 8px;
  font-family: 'Consolas', monospace;
  font-size: 0.78rem;
  margin-top: 12px;
}

.ping-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pingPulse 1s ease infinite;
}

@keyframes pingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 170, 0); }
}

/* 機房和線路 - 節點地圖 */
.network-map {
  position: relative;
  height: 220px;
}

.map-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.map-node .mn-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: nodePulse 2s ease infinite;
}

.map-node.hub .mn-dot {
  width: 22px;
  height: 22px;
  background: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

.map-node .mn-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Consolas', monospace;
  white-space: nowrap;
}

.map-node .mn-ping {
  font-size: 0.6rem;
  color: var(--accent-green);
  font-weight: 700;
}

.map-node:nth-child(1) { top: 40%; left: 45%; }
.map-node:nth-child(2) { top: 15%; left: 30%; }
.map-node:nth-child(3) { top: 20%; left: 65%; }
.map-node:nth-child(4) { top: 65%; left: 25%; }
.map-node:nth-child(5) { top: 70%; left: 70%; }
.map-node:nth-child(6) { top: 50%; left: 15%; }

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-lines line {
  stroke: rgba(0, 212, 255, 0.15);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: dashFlow 3s linear infinite;
}

.map-lines line.active {
  stroke: rgba(0, 255, 170, 0.4);
  stroke-width: 1.5;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -20; }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.dc-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.dc-info-item {
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
}

.dc-info-item .di-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Consolas', monospace;
}

.dc-info-item .di-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 安全和防護 - 盾+流量 */
.shield-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.shield-icon-wrap {
  position: relative;
  width: 120px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-svg {
  width: 100px;
  height: 120px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 170, 0.3));
}

.shield-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 255, 170, 0.3);
  border-radius: 50%;
  animation: shieldExpand 2s ease infinite;
}

.shield-pulse:nth-child(2) { animation-delay: 0.6s; }

@keyframes shieldExpand {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.defense-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.defense-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.defense-bar-row .dbr-label {
  width: 70px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Consolas', monospace;
  text-align: right;
  flex-shrink: 0;
}

.defense-bar-row .dbr-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.defense-bar-row .dbr-fill {
  height: 100%;
  border-radius: 4px;
  animation: barFill 1.5s ease forwards;
  transform-origin: left;
  transform: scaleX(0);
}

.defense-bar-row:nth-child(1) .dbr-fill { background: linear-gradient(90deg, #ff4444, #ff6b6b); width: 95%; animation-delay: 0.2s; }
.defense-bar-row:nth-child(2) .dbr-fill { background: linear-gradient(90deg, var(--accent-green), #00d4ff); width: 99%; animation-delay: 0.4s; }
.defense-bar-row:nth-child(3) .dbr-fill { background: linear-gradient(90deg, var(--accent-purple), var(--accent)); width: 88%; animation-delay: 0.6s; }
.defense-bar-row:nth-child(4) .dbr-fill { background: linear-gradient(90deg, #4da6ff, var(--accent)); width: 92%; animation-delay: 0.8s; }

@keyframes barFill {
  to { transform: scaleX(1); }
}

.defense-bar-row .dbr-pct {
  width: 36px;
  font-size: 0.68rem;
  color: var(--accent-green);
  font-family: 'Consolas', monospace;
  font-weight: 700;
}

/* 核心價值 */
.values-enhanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-card:hover::before { opacity: 1; }

.value-card .vc-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .showcase-row { grid-template-columns: 1fr; gap: 40px; }
  .showcase-row.reverse { direction: ltr; }
  .mission-stats { grid-template-columns: 1fr 1fr; }
  .values-enhanced { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mission-stats { grid-template-columns: 1fr 1fr; }
  .server-rack { gap: 8px; }
  .rack-unit { width: 60px; }
  .dc-info { grid-template-columns: 1fr; }
}
