:root {
  --cn-red: #E11D48;
  --cn-red-dark: #BE123C;
  --cn-gold: #F59E0B;
  --cn-bg: #FFF1F2;
  --cn-card: #FFFFFF;
  --cn-border: #FFE4E6;
  --cn-text: #0F172A;
  --cn-muted: #64748B;
  --cn-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #FFF;
  color: var(--cn-text);
  line-height: 1.6;
}

a { color: var(--cn-red); text-decoration: none; }
a:hover { color: var(--cn-red-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
header.cn-header {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF; border-bottom: 2px solid var(--cn-red);
}
.cn-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.cn-brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #0F172A; }
.logo-icon-svg {
  width: 28px; height: 28px; border-radius: 6px; background: var(--cn-red);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.cn-brand span { color: var(--cn-red); }
.cn-links { display: flex; gap: 24px; list-style: none; }
.cn-links a { font-size: 15px; font-weight: 600; color: #475569; }
.cn-links a:hover, .cn-links a.active { color: var(--cn-red); text-decoration: none; }

.btn-cn {
  padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none;
  transition: all .2s; text-decoration: none !important;
}
.btn-cn-primary { background: var(--cn-red); color: #fff !important; box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3); }
.btn-cn-primary:hover { background: var(--cn-red-dark); transform: translateY(-1px); }

/* Hero */
.cn-hero {
  padding: 60px 0 44px;
  background: linear-gradient(180deg, #FFF1F2 0%, #FFFFFF 100%);
  border-bottom: 1px solid #FFE4E6;
}
.speed-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  background: #FFE4E6; border-radius: 20px; font-size: 13px; color: var(--cn-red); font-weight: 700; margin-bottom: 16px;
}
.cn-hero h1 { font-size: clamp(28px, 3.8vw, 38px); font-weight: 850; line-height: 1.25; margin-bottom: 16px; color: #0F172A; }
.cn-hero p { font-size: 16px; color: var(--cn-muted); max-width: 740px; margin-bottom: 24px; line-height: 1.75; }

/* 测速对比面板 */
.speed-test-box {
  background: #FFFFFF; border: 1px solid #FECDD3; border-radius: var(--cn-radius);
  padding: 26px; margin: 30px 0; box-shadow: 0 4px 14px rgba(225, 29, 72, 0.06);
}
.speed-bar-row { margin-bottom: 16px; }
.speed-bar-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.speed-track { height: 22px; background: #F1F5F9; border-radius: 4px; overflow: hidden; }
.speed-fill-fast { height: 100%; background: linear-gradient(90deg, #10B981, #059669); width: 95%; display: flex; align-items: center; padding-left: 10px; font-size: 11.5px; color: #fff; font-weight: 700; }
.speed-fill-slow { height: 100%; background: #EF4444; width: 15%; display: flex; align-items: center; padding-left: 10px; font-size: 11.5px; color: #fff; font-weight: 700; }

/* 下载页独有布局：高速分流下载卡片 */
.cn-dl-section { padding: 50px 0 70px; }
.speed-dl-card {
  background: #fff; border: 1px solid #FFE4E6;
  border-radius: var(--cn-radius); padding: 36px; margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* 页脚 */
footer.cn-footer { background: #0F172A; color: #94A3B8; padding: 50px 0 24px; font-size: 13.5px; }
.cn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.cn-footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 14.5px; font-weight: 700; }
.cn-footer-col ul { list-style: none; }
.cn-footer-col li { margin-bottom: 8px; }
.cn-footer-col a { color: #94A3B8; transition: color .2s; }
.cn-footer-col a:hover { color: #FDA4AF; }

@media (max-width: 850px) {
  .cn-footer-grid { grid-template-columns: 1fr; }
  .cn-links { display: none; }
}
