﻿/* ============================================
   XIAOMI SERVICE TOOL — Tiger Dynasty Theme
   Orange & Black | Chinese Motifs | Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --tiger-orange: #FF6B00;
  --tiger-light: #FF8C00;
  --tiger-dark: #E65100;
  --tiger-deep: #BF4A00;
  --gold: #FFD700;
  --gold-dark: #D4AF37;
  --gold-dim: #B8860B;
  --china-red: #DC143C;
  --china-deep: #8B0000;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-elevated: #1e1e1e;
  --text-primary: #f0f0f0;
  --text-secondary: #999;
  --text-muted: #666;
  --border-color: #2a2a2a;
  --border-accent: #3a2200;
  --glow-orange: rgba(255, 107, 0, 0.3);
  --glow-gold: rgba(255, 215, 0, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--tiger-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tiger-orange); }

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

/* ============ NAVBAR ============ */
.xst-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.xst-nav.scrolled { background: rgba(10,10,10,0.95); box-shadow: 0 4px 30px rgba(255,107,0,0.1); }
.xst-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.xst-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.xst-logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--tiger-orange), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #000;
}
.xst-logo-text { font-size: 16px; font-weight: 800; color: var(--text-primary); letter-spacing: 1px; }
.xst-logo-text span { color: var(--tiger-orange); }

.xst-nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.xst-nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-sm); transition: all 0.2s;
}
.xst-nav-links a:hover { color: var(--tiger-orange); background: rgba(255,107,0,0.08); }

.xst-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.3s; border: none;
  text-decoration: none; white-space: nowrap;
}
.xst-btn-primary {
  background: linear-gradient(135deg, var(--tiger-orange), var(--tiger-light));
  color: #000; box-shadow: 0 4px 15px var(--glow-orange);
}
.xst-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,0,0.4);
}
.xst-btn-outline {
  background: transparent; color: var(--tiger-orange);
  border: 1px solid var(--tiger-dark);
}
.xst-btn-outline:hover { background: rgba(255,107,0,0.1); border-color: var(--tiger-orange); }
.xst-btn-secondary {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.xst-btn-secondary:hover { border-color: var(--tiger-dark); background: var(--bg-card-hover); }
.xst-btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-md); }
.xst-btn-block { width: 100%; }

/* ============ HERO ============ */
.xst-hero {
  padding: 140px 0 80px; text-align: center; position: relative;
}
.xst-hero h1 {
  font-size: clamp(48px, 8vw, 86px); font-weight: 900; line-height: 0.95;
  letter-spacing: -2px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--tiger-orange), var(--gold), var(--tiger-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.xst-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2);
  padding: 6px 16px; border-radius: 100px; font-size: 13px;
  font-weight: 600; color: var(--tiger-orange); margin-bottom: 24px;
}
.xst-hero-subtitle {
  font-size: 18px; font-weight: 600; color: var(--gold-dark);
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px;
}
.xst-hero-desc {
  font-size: 17px; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto 32px; line-height: 1.7;
}
.xst-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.xst-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 700px; margin: 0 auto;
}
.xst-hero-stat-value { font-size: 28px; font-weight: 800; color: var(--tiger-orange); }
.xst-hero-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ============ SECTIONS ============ */
.xst-section { margin-bottom: 64px; }
.xst-section-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
}
.xst-section-header svg { color: var(--tiger-orange); }
.xst-section-header h2 { font-size: 22px; font-weight: 700; }

/* ============ FEATURE CARDS ============ */
.xst-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.xst-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xst-grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.xst-feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px 24px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.xst-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tiger-orange), var(--gold));
  opacity: 0; transition: opacity 0.3s;
}
.xst-feature-card:hover { border-color: var(--tiger-dark); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,107,0,0.1); }
.xst-feature-card:hover::before { opacity: 1; }

.xst-feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--tiger-orange);
  background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.15);
}
.xst-feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.xst-feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Color variants */
.feat-orange .xst-feature-icon { color: var(--tiger-orange); background: rgba(255,107,0,0.1); border-color: rgba(255,107,0,0.15); }
.feat-gold .xst-feature-icon { color: var(--gold); background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.15); }
.feat-red .xst-feature-icon { color: var(--china-red); background: rgba(220,20,60,0.1); border-color: rgba(220,20,60,0.15); }
.feat-green .xst-feature-icon { color: #DC143C; background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.15); }

/* ============ STATUS CARDS ============ */
.xst-status-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.3s;
}
.xst-status-card:hover { border-color: var(--border-accent); }
.xst-status-name { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.xst-status-indicator { display: flex; align-items: center; gap: 8px; }
.xst-status-dot {
  width: 10px; height: 10px; border-radius: 50%; position: relative;
  display: inline-block;
}
.xst-status-dot.online { background: #DC143C; }
.xst-status-dot.offline { background: #666; }
.xst-status-dot.online .dot-ping {
  position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(74,222,128,0.4); animation: ping 1.5s infinite;
}
.xst-status-dot .dot-inner {
  position: absolute; inset: 2px; border-radius: 50%;
  background: inherit; filter: brightness(1.3);
}
.xst-status-label { font-size: 12px; font-weight: 600; }
.xst-status-label.online { color: #DC143C; }
.xst-status-label.offline { color: #666; }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* ============ TOOL CARDS ============ */
.xst-tool-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s;
}
.xst-tool-card:hover { border-color: var(--tiger-dark); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,107,0,0.1); }
.xst-tool-header {
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-color);
}
.xst-tool-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--tiger-orange), var(--tiger-dark));
  display: flex; align-items: center; justify-content: center; color: #000;
}
.xst-tool-badge {
  font-size: 11px; font-weight: 700; color: var(--gold);
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.2);
  padding: 3px 10px; border-radius: 100px;
}
.xst-tool-body { padding: 20px; }
.xst-tool-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.xst-tool-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

/* ============ STATS ============ */
.xst-stat-box {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px; text-align: center;
  transition: all 0.4s;
}
.xst-stat-value { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.xst-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.xst-stat-value.xst-green { color: #DC143C; }
.xst-stat-value.xst-orange { color: var(--tiger-orange); }
.xst-stat-value.xst-red { color: var(--china-red); }
.xst-stat-value.xst-gold { color: var(--gold); }

/* ============ LIVE BADGE ============ */
.xst-live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,0,0.08); border: 1px solid rgba(255,107,0,0.15);
  padding: 6px 14px; border-radius: 100px; font-size: 12px;
  font-weight: 600; color: var(--tiger-orange);
}
.xst-live-dot { position: relative; width: 8px; height: 8px; }
.xst-live-dot .pulse {
  position: absolute; inset: -2px; border-radius: 50%;
  background: rgba(255,107,0,0.4); animation: ping 1.5s infinite;
}
.xst-live-dot .inner {
  position: absolute; inset: 0; border-radius: 50%; background: var(--tiger-orange);
}

/* ============ FOOTER ============ */
.xst-footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px; margin-top: 64px;
}
.xst-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.xst-footer-brand h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.xst-footer-brand h3 span { color: var(--tiger-orange); }
.xst-footer-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.xst-footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--tiger-orange);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.xst-footer-col a {
  display: block; font-size: 13px; color: var(--text-secondary);
  text-decoration: none; padding: 4px 0; transition: color 0.2s;
}
.xst-footer-col a:hover { color: var(--tiger-orange); }
.xst-footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 24px;
  text-align: center; font-size: 12px; color: var(--text-muted);
}

/* ============ TIGER STRIPE DECORATION ============ */
.xst-tiger-stripe {
  position: absolute; width: 100%; height: 4px; bottom: 0;
  background: repeating-linear-gradient(90deg,
    var(--tiger-orange) 0px, var(--tiger-orange) 20px,
    transparent 20px, transparent 30px,
    var(--tiger-dark) 30px, var(--tiger-dark) 50px,
    transparent 50px, transparent 60px
  );
  opacity: 0.5;
}

/* ============ CHINESE CLOUD PATTERN ============ */
.xst-cloud-divider {
  height: 40px; width: 100%; margin: 40px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M40,35 C30,35 25,28 25,22 C25,16 20,12 15,12 C10,12 5,16 5,22 C5,15 10,5 20,5 C28,5 32,12 35,12 C38,12 42,5 50,5 C60,5 65,15 65,22 C65,16 60,12 55,12 C50,12 45,16 45,22 C45,28 50,35 40,35Z' fill='none' stroke='%23FF6B00' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E") repeat-x center;
}

/* ============ ANIMATIONS ============ */
.scroll-animate {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.is-visible { opacity: 1; transform: translateY(0); }
.scroll-animate-delay-1 { transition-delay: 0.1s; }
.scroll-animate-delay-2 { transition-delay: 0.2s; }
.scroll-animate-delay-3 { transition-delay: 0.3s; }
.scroll-animate-delay-4 { transition-delay: 0.4s; }
.scroll-animate-delay-5 { transition-delay: 0.5s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .xst-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .xst-grid-stats { grid-template-columns: repeat(3, 1fr); }
  .xst-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .xst-hero h1 { font-size: 42px; }
  .xst-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .xst-grid-4, .xst-grid-3 { grid-template-columns: 1fr; }
  .xst-grid-stats { grid-template-columns: repeat(2, 1fr); }
  .xst-nav-links { display: none; }
  .xst-footer-grid { grid-template-columns: 1fr; }
}
