body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #030712;
  background-image:
    linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.holo-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.03) 0%, transparent 80%);
  perspective: 1000px;
}
.holo-item {
  position: absolute; display: flex; align-items: center; justify-content: center;
  opacity: 0.85; text-shadow: 0 0 10px #00f2fe, 0 0 20px rgba(0, 242, 254, 0.5);
  animation: floatHolo linear infinite;
}
.holo-item.purple { text-shadow: 0 0 10px #8b5cf6, 0 0 20px rgba(139, 92, 246, 0.5); }
.holo-item.gold { text-shadow: 0 0 10px #facc15, 0 0 20px rgba(250, 204, 21, 0.5); }

.c1 { left: 10%; animation-duration: 20s; animation-delay: -5s; font-size: 38px; }
.c2 { left: 85%; animation-duration: 24s; animation-delay: -12s; font-size: 32px; }
.c3 { left: 35%; animation-duration: 18s; animation-delay: -2s; font-size: 42px; }
.c4 { left: 65%; animation-duration: 26s; animation-delay: -18s; font-size: 30px; }
.c5 { left: 20%; animation-duration: 22s; animation-delay: -9s; font-size: 35px; }
.c6 { left: 75%; animation-duration: 21s; animation-delay: -15s; font-size: 40px; }

@keyframes floatHolo {
  0% { top: 110vh; transform: rotateX(10deg) rotateY(-15deg) rotateZ(0deg) scale(0.9); opacity: 0; }
  10% { opacity: 0.9; } 90% { opacity: 0.9; }
  100% { top: -10vh; transform: rotateX(-10deg) rotateY(15deg) rotateZ(360deg) scale(1.1); opacity: 0; }
}

.container {
  width: 100%; max-width: 1000px; margin: 0 auto;
  padding: 30px 20px 40px; box-sizing: border-box;
  position: relative; z-index: 10; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-start;
}

.cyber-dashboard {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  padding-bottom: 12px; margin-bottom: 20px;
}
.dashboard-title {
  font-size: 24px; font-weight: 900; color: #fff; letter-spacing: 2px;
  text-transform: uppercase; text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  display: flex; flex-direction: column; gap: 4px;
}
.dashboard-title span { font-size: 12px; color: #00f2fe; letter-spacing: 4px; font-family: monospace; }

.dashboard-stats {
  text-align: right; font-family: monospace; font-size: 12px;
  color: #00f2fe; font-weight: bold; text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
  display: flex; flex-direction: column; gap: 4px;
}
.ping-status { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: #10b981; }
.ping-dot {
  width: 8px; height: 8px; background: #10b981; border-radius: 50%;
  box-shadow: 0 0 8px #10b981; animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===== 跑马灯基础框架 ===== */
.tech-marquee {
  position: relative; width: 100%; overflow: hidden;
  background: rgba(10, 15, 30, 0.8);
  border-left: 3px solid #00f2fe; border-right: 3px solid #8b5cf6; border-radius: 6px;
  height: 38px; display: flex; align-items: center; margin-bottom: 24px;
}
.tech-marquee::before, .tech-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 50px; z-index: 2; pointer-events: none;
}
.tech-marquee::before { left: 0; background: linear-gradient(90deg, rgba(10, 15, 30, 1), transparent); }
.tech-marquee::after { right: 0; background: linear-gradient(-90deg, rgba(10, 15, 30, 1), transparent); }

.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: scroll-forever 25s linear infinite; }

/* 跑马灯单条数据布局配置 */
.marquee-item { 
  display: flex; 
  align-items: center; 
  gap: 10px; /* 稍微拉开文字和标签的间距 */
  color: #e2e8f0; 
  font-size: 14px; 
  font-weight: bold; 
}

/* ✨ 核心修复：国旗外层包裹组防止被挤压 */
.flag-group { 
  display: inline-flex; 
  align-items: center; 
  gap: 5px; 
  flex-shrink: 0; /* 强制不允许浏览器压缩 */
  margin-right: 2px;
}

/* ✨ 核心修复：重新规范国旗显示比例 */
.flag-svg { 
  height: 18px;    /* 放大高度，对齐文字与黄色标签 */
  width: auto;     /* 让宽度根据 viewBox 比例自适应 */
  flex-shrink: 0;  /* 防压扁 */
  border-radius: 2px; /* 增加轻微圆角显得更精致 */
}

.cyber-28 {
  background: #facc15; color: #000; padding: 0 8px; font-weight: 900;
  font-size: 14px; height: 22px; line-height: 22px; border-radius: 3px;
  transform: skewX(-12deg); box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
  display: inline-block;
}
@keyframes scroll-forever { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.img-responsive { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }

.matrix-tags-wrapper { display: flex; width: 100%; gap: 12px; margin-bottom: 30px; margin-top: 15px; }
.matrix-tag {
  flex: 1; min-width: 0; background: linear-gradient(180deg, rgba(0, 242, 254, 0.1), rgba(10, 15, 30, 0.9));
  border: 1px solid rgba(0, 242, 254, 0.3); border-radius: 8px; padding: 12px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #e2e8f0; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1); transition: all 0.3s;
}
.matrix-tag:hover { background: rgba(0, 242, 254, 0.2); transform: translateY(-3px); }
.matrix-tag span { font-size: 20px; margin-bottom: 6px; text-shadow: 0 0 8px rgba(0, 242, 254, 0.8); }

/* =========================================================
   🚀 平台网格布局
   ========================================================= */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(5, 9, 20, 0.9));
  backdrop-filter: blur(12px); border-radius: 12px;
  text-align: center; border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(0, 242, 254, 0.4); box-shadow: 0 12px 25px rgba(0, 242, 254, 0.15); }

.status-dot { position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; z-index: 2; }

.logo-box { width: 100%; display: flex; align-items: center; justify-content: center; position: relative; border: none; box-shadow: none; background-image: radial-gradient(ellipse 90% 70% at center, rgba(0, 242, 254, 0.15) 0%, rgba(0, 242, 254, 0.05) 45%, transparent 100%); }
.logo-box img { max-width: 85%; max-height: 80%; object-fit: contain; -webkit-box-reflect: below 2px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.05)); filter: brightness(1.1); }

.stars { color: #00f2fe; letter-spacing: 3px; text-shadow: 0 0 6px rgba(0, 242, 254, 0.6); }
.card-label { color: #94a3b8; background: rgba(0, 0, 0, 0.6); border-radius: 4px; display: inline-block; border-left: 3px solid #8b5cf6; letter-spacing: 1px; }
.btn-action-tech {
  display: block; width: 100%; background: rgba(0, 242, 254, 0.08);
  color: #00f2fe; font-weight: 800; border-radius: 6px; text-decoration: none;
  border: 1px solid rgba(0, 242, 254, 0.5); cursor: pointer; letter-spacing: 2px; transition: all 0.2s;
}
.btn-action-tech:hover { background: rgba(0, 242, 254, 0.2); box-shadow: 0 0 15px rgba(0, 242, 254, 0.4); }
.btn-action-tech:active { transform: scale(0.97); }

.card-featured { grid-column: span 3; padding: 20px 15px; }
.card-featured .logo-box { height: 85px; margin-bottom: 12px; }
.card-featured .logo-box img { max-width: 45%; }
.card-featured .stars { font-size: 14px; margin-bottom: 12px; }
.card-featured .card-label { font-size: 13px; padding: 8px 16px; margin-bottom: 18px; }
.card-featured .btn-action-tech { font-size: 15px; padding: 12px 0; max-width: 320px; margin: 0 auto; }

.card-normal { padding: 15px 10px; }
.card-normal .logo-box { height: 75px; margin-bottom: 10px; }
.card-normal .stars { font-size: 11px; margin-bottom: 8px; }
.card-normal .card-label { font-size: 11px; padding: 4px 8px; margin-bottom: 15px; }
.card-normal .btn-action-tech { font-size: 13px; padding: 10px 0; }

.live-outer-wrap { width: 100%; margin-top: 24px; box-sizing: border-box; }
.live-stream-btn-box {
  width: 100%; background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(5, 9, 20, 0.95)) !important;
  border: 1px solid #ff7300 !important; border-radius: 12px; padding: 30px 20px;
  text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); cursor: pointer !important;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-sizing: border-box; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.live-stream-btn-box:hover { transform: translateY(-4px); border-color: #ffaa00 !important; box-shadow: 0 12px 25px rgba(255, 115, 0, 0.25); }
.live-title { font-size: 38px; font-weight: 900; color: #ff7300; letter-spacing: 6px; text-shadow: 0 0 10px rgba(255, 115, 0, 0.5); margin-bottom: 12px; }
.live-sub { font-size: 13px; color: #94a3b8; background: rgba(0, 0, 0, 0.5); padding: 8px 16px; border-radius: 4px; border-left: 3px solid #ff7300; line-height: 1.5; }

.sponsor-section { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 25px; text-align: center; margin-top: 30px; }
.sponsor-title { font-size: 12px; color: #475569; letter-spacing: 4px; margin-bottom: 16px; font-family: monospace; }
.sponsor-logos { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.sponsor-logos span { font-size: 16px; font-weight: 900; color: #475569; font-family: "Arial Black", sans-serif; opacity: 0.5; transition: opacity 0.3s, color 0.3s; letter-spacing: 1px; text-transform: uppercase; }
.sponsor-logos span:hover { opacity: 1; color: #e2e8f0; }

.cyber-fixed-kefu {
  position: fixed; top: 68%; right: 25px; transform: translateY(-50%); width: 60px;          
  background: transparent; display: flex; flex-direction: column; align-items: center;
  text-decoration: none; z-index: 99; cursor: pointer; transition: transform 0.2s;
}
.cyber-fixed-kefu:hover { transform: translateY(-50%) scale(1.05); }
.cyber-kefu-text {
  font-size: 20px; font-weight: 900; color: #00f0ff; writing-mode: vertical-rl; 
  letter-spacing: 4px; text-align: center; font-family: "Microsoft YaHei", -apple-system, sans-serif;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7), 0 0 15px rgba(0, 240, 255, 0.4);
}
.cyber-kefu-arrow {
  font-size: 24px; font-weight: 900; color: #00f0ff; margin-top: 8px; font-family: sans-serif;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7); animation: cyberBounce 1.5s infinite ease-in-out;
}
@keyframes cyberBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.cyber-modal-overlay, .qrcode-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(3, 7, 18, 0.92); backdrop-filter: blur(10px);
  z-index: 99999; display: none; justify-content: center; align-items: center;
  animation: overlayFadeIn 0.3s ease forwards;
}
.qrcode-modal-overlay { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 100000; }

.cyber-modal-content {
  background: #070f1e; border: 2px solid #ff7300; box-shadow: 0 0 35px rgba(255, 115, 0, 0.3);
  width: 92%; max-width: 480px; border-radius: 16px; padding: 25px 20px; position: relative; box-sizing: border-box;
  animation: modalFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.qrcode-modal-content {
  background: #0b1528; border: 2px solid #00f2fe; box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
  width: 85%; max-width: 340px; border-radius: 12px; padding: 25px; text-align: center; position: relative; box-sizing: border-box;
  animation: modalFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-close-btn { position: absolute; top: 14px; right: 18px; font-size: 28px; color: #ff7300; cursor: pointer; font-weight: bold; transition: transform 0.2s; }
.modal-close-btn:hover { transform: rotate(90deg); }
.modal-header-title { text-align: center; font-size: 22px; color: #ffffff; font-weight: 900; margin-bottom: 22px; }

.sub-btn-list { display: flex; flex-direction: column; gap: 12px; }
.sub-btn-item {
  display: flex; align-items: center; background: rgba(255, 115, 0, 0.03);
  border: 1px solid rgba(255, 115, 0, 0.25); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: all 0.2s;
}
.sub-btn-item:hover { background: rgba(255, 115, 0, 0.1); border-color: #ff7300; transform: translateX(5px); }
.sub-btn-img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; margin-right: 14px; background: #111a2e; }
.sub-btn-info { flex: 1; }
.sub-btn-title { font-size: 15px; color: #ffffff; font-weight: bold; margin-bottom: 4px; }
.sub-btn-desc { font-size: 11px; color: #94a3b8; line-height: 1.4; }

.qrcode-img { width: 220px; height: 220px; margin: 15px auto; display: block; border: 4px solid #102542; border-radius: 8px; }
.qrcode-tips { color: #00f2fe; font-size: 14px; font-weight: bold; margin-top: 10px; }

/* =========================================================
   📱 终极移动端自适应 (重点适配1大3小结构)
   ========================================================= */
@media (max-width: 768px) {
  .container { padding: 3vh 12px 20px; justify-content: flex-start; }
  .cyber-dashboard { padding-bottom: 10px; margin-bottom: 15px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .dashboard-title { font-size: 18px; }
  .dashboard-title span { font-size: 10px; }
  .dashboard-stats { text-align: left; align-items: flex-start; font-size: 10px; }
  .ping-status { justify-content: flex-start; }
  
  .tech-marquee { height: 34px; margin-bottom: 15px; }
  .marquee-track { gap: 40px; font-size: 13px; }
  
  /* 移动端国旗大小微调 */
  .flag-svg { height: 15px; }
  .cyber-28 { height: 18px; line-height: 18px; font-size: 12px; }
  
  .matrix-tags-wrapper { gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
  .matrix-tag { flex: 1 1 calc(33.333% - 6px); padding: 8px 0; font-size: 11px; border-radius: 6px; }
  .matrix-tag span { font-size: 16px; margin-bottom: 4px; }
  
  .platform-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  
  .card-featured { grid-column: span 2; padding: 15px 10px; }
  .card-featured .logo-box { height: 60px; margin-bottom: 10px; }
  .card-featured .stars { font-size: 12px; margin-bottom: 8px; }
  .card-featured .card-label { font-size: 11px; padding: 6px 10px; margin-bottom: 12px; }
  .card-featured .btn-action-tech { font-size: 13px; padding: 10px 0; max-width: 70%; }

  .card-normal { padding: 12px 6px; border-radius: 8px; }
  .card-normal .logo-box { height: 50px; margin-bottom: 6px; }
  .card-normal .stars { font-size: 9px; margin-bottom: 6px; }
  .card-normal .card-label { font-size: 9px; padding: 4px; margin-bottom: 10px; letter-spacing: 0; line-height: 1.2; }
  .card-normal .btn-action-tech { font-size: 11px; padding: 8px 0; }
  
  .card-normal:last-child { grid-column: span 2; }
  .card-normal:last-child .logo-box { height: 60px; }
  
  .live-title { font-size: 24px; letter-spacing: 3px; }
  .live-sub { font-size: 11px; padding: 6px 10px; }
  .live-stream-btn-box { padding: 20px 15px; }

  .cyber-fixed-kefu { right: 5px; top: 65%; transform: translateY(-50%) scale(0.8); }
  .cyber-fixed-kefu:hover { transform: translateY(-50%) scale(0.85); }

  .sponsor-section { padding-top: 15px; margin-top: 25px; }
  .sponsor-title { font-size: 10px; margin-bottom: 12px; }
  .sponsor-logos span { font-size: 12px; }
}

@media (max-width: 400px) {
  .matrix-tag { flex: 1 1 calc(50% - 6px); }
  .live-title { font-size: 20px; }
}