/* xingyunjichang.cfd - 官方镜像与全球节点性能监控中心 专属视觉引擎 */
:root {
  --bg-deep: #050811;
  --bg-surface: #0a101f;
  --bg-card: #0f172a;
  --bg-card-hover: #162238;
  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-focus: rgba(6, 182, 212, 0.5);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-amber: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  padding-bottom: 70px;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #38bdf8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部紧急广播条 */
.top-ticker {
  background: linear-gradient(90deg, #022c22, #082f49, #0f172a);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 13px;
  color: #a7f3d0;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.radar-dot {
  width: 9px;
  height: 9px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* 网站头部 */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 16, 31, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #050811;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.brand-badge .title-group h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.brand-badge .title-group p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

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

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  transition: all 0.25s ease;
  border: none;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  filter: brightness(1.1);
}

/* Hero Section */
.hero-radar {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-radar h1.hero-h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-radar h2.hero-h2-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 18px;
}

.hero-radar p.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 36px;
}

/* 核心镜像导航网关 */
.mirror-gateways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.gateway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

.gateway-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.gateway-card.featured {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 100%);
}

.gateway-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gateway-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gateway-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.gateway-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-bottom: 16px;
}

.latency-metric {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  font-weight: 700;
}

.btn-enter-gateway {
  display: block;
  text-align: center;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 10px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
}

.btn-enter-gateway:hover {
  background: var(--accent-cyan);
  color: #050811;
  text-decoration: none;
}

/* 实时链路探针与性能雷达 */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 15px;
}

.radar-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow-x: auto;
  margin-bottom: 60px;
}

table.radar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

table.radar-table th {
  background: rgba(10, 16, 31, 0.95);
  padding: 16px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

table.radar-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

table.radar-table tr:hover td {
  background: rgba(6, 182, 212, 0.03);
  color: #fff;
}

.badge-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 600;
}

/* 套餐配置方案 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.07) 0%, var(--bg-card) 100%);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  color: #050811;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}

.pricing-header h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-header .plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.price-tag .currency {
  font-size: 20px;
  color: var(--accent-cyan);
  font-weight: 700;
}

.price-tag .amount {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.price-tag .period {
  font-size: 14px;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: bold;
}

/* 优惠券领取卡片 */
.coupon-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px dashed var(--accent-cyan);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.coupon-info h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}

.coupon-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.coupon-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coupon-code {
  font-family: var(--font-mono);
  background: #050811;
  border: 1px solid var(--border-subtle);
  color: var(--accent-emerald);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.btn-copy {
  background: var(--accent-cyan);
  color: #050811;
  border: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: #38bdf8;
}

/* 文章集群 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
}

.article-card:hover {
  border-color: var(--border-focus);
}

.article-card .tag {
  font-size: 11px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  display: inline-block;
}

.article-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ 手风琴与解答 */
.faq-wrap {
  max-width: 900px;
  margin: 0 auto 60px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* 页脚 */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-surface);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h5 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 12px;
}

/* 底部常驻悬浮导流条 */
.sticky-conversion-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 16, 31, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(6, 182, 212, 0.3);
  padding: 12px 20px;
  z-index: 999;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sticky-tip {
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-tip span.highlight {
  color: var(--accent-emerald);
  font-weight: 700;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .price-tag .amount { font-size: 34px; }
  .sticky-inner { justify-content: center; text-align: center; }
}

/* 扩展模块专属样式：三网回程跳数、运维日志、实时拨测模拟器 */
.traceroute-section {
  margin-bottom: 60px;
}
.traceroute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.trace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}
.trace-card h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hop-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
}
.hop-list li {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}
.hop-list li .hop-num {
  color: var(--accent-cyan);
  font-weight: 700;
}
.hop-list li .hop-ip {
  color: var(--text-primary);
}
.hop-list li .hop-delay {
  color: var(--accent-emerald);
}

/* 官方链路运维日志 */
.incident-log-section {
  margin-bottom: 60px;
}
.log-timeline {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
}
.log-entry {
  position: relative;
  padding-left: 28px;
  padding-bottom: 24px;
  border-left: 2px solid rgba(6, 182, 212, 0.25);
}
.log-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.log-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.log-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.log-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.log-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 实时本地网络拨测组件 */
.interactive-probe-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border-focus);
  border-radius: 14px;
  padding: 30px;
  margin-bottom: 60px;
  text-align: center;
}
.probe-trigger-btn {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 18px 0;
}
.probe-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}
.probe-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.probe-res-item {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}
.probe-res-item .loc-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.probe-res-item .loc-ms {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}
