/* Clash Hub — 赛博玻璃态模板（与杂志风 LocalSend 站点区分） */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #22d3ee;
  --accent-warm: #f472b6;
  --bg-deep: #0b0f1a;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --bg-glass: rgba(30, 41, 59, 0.55);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-glass: 1px solid rgba(148, 163, 184, 0.18);
  --glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(244, 114, 182, 0.08), transparent);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: var(--border-glass);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1140px; margin: 0 auto;
  gap: 16px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
}
.logo img {
  width: 44px; height: 44px; border-radius: 12px;
  object-fit: contain; flex-shrink: 0;
  box-shadow: var(--glow);
}
.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-secondary); padding: 8px 14px;
  font-size: 0.88rem; font-weight: 600; border-radius: 10px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: var(--bg-glass);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6; pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center; position: relative;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .lead { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge {
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--bg-glass); border: var(--border-glass);
  color: var(--accent);
}
.badge-hot { color: var(--accent-warm); border-color: rgba(244, 114, 182, 0.3); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-weight: 700; font-size: 0.92rem;
  border-radius: 12px; cursor: pointer; transition: var(--transition);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5); color: white; }
.btn-outline {
  background: transparent; color: var(--text);
  border: var(--border-glass); backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }
.hero-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--glow), 0 25px 50px rgba(0,0,0,0.4);
}
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,15,26,0.6));
  pointer-events: none;
}
.hero-image img { width: 100%; border-radius: var(--radius-lg); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: rgba(15, 23, 42, 0.4); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 1.85rem; margin-bottom: 12px; color: var(--text); }
.section-header p { color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-card {
  text-align: center; padding: 28px 16px;
  background: var(--bg-glass); border: var(--border-glass);
  border-radius: var(--radius); backdrop-filter: blur(12px);
}
.stat-number {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Feature cards */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 28px; background: var(--bg-glass);
  border: var(--border-glass); border-radius: var(--radius);
  backdrop-filter: blur(12px); transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
  border-color: rgba(99, 102, 241, 0.35);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 0.92rem; color: var(--text-secondary); }

/* News cards */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
  background: var(--bg-glass); border: var(--border-glass);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.news-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 0; }
.news-card-body { padding: 22px; }
.news-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
  background: rgba(99, 102, 241, 0.2); color: var(--primary-light);
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 14px; }
.news-meta { font-size: 0.78rem; color: var(--text-muted); }

/* Category blocks */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.category-block {
  display: flex; gap: 20px; padding: 24px;
  background: var(--bg-glass); border: var(--border-glass);
  border-radius: var(--radius); align-items: flex-start;
}
.category-block img { width: 140px; height: 100px; object-fit: cover; flex-shrink: 0; }
.category-block h3 { font-size: 1.1rem; margin-bottom: 8px; }
.category-block p { font-size: 0.9rem; color: var(--text-secondary); }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent));
}
.timeline-item { position: relative; margin-bottom: 32px; padding: 20px 24px;
  background: var(--bg-glass); border: var(--border-glass); border-radius: var(--radius);
}
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 24px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* Download platform cards */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.platform-card {
  padding: 32px; background: var(--bg-glass);
  border: var(--border-glass); border-radius: var(--radius-lg);
  display: flex; gap: 24px; align-items: center;
}
.platform-icon { font-size: 3rem; flex-shrink: 0; }
.platform-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.platform-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.platform-card .btn { font-size: 0.85rem; padding: 10px 20px; }

/* Article page */
.article-hero { padding: 48px 0 32px; }
.article-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; line-height: 1.25; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.article-cover { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--glow); }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); }
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h2 { font-size: 1.45rem; margin: 40px 0 16px; color: var(--primary-light); }
.article-content h3 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--accent); }
.article-content p { margin-bottom: 18px; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; color: var(--text-secondary); }
.article-content li { margin-bottom: 8px; }
.article-content code {
  background: rgba(99, 102, 241, 0.15); padding: 2px 8px;
  border-radius: 6px; font-size: 0.88em; color: var(--accent);
}
.article-content pre {
  background: rgba(15, 23, 42, 0.9); border: var(--border-glass);
  border-radius: var(--radius); padding: 20px; overflow-x: auto;
  margin: 20px 0; font-size: 0.85rem; line-height: 1.6; color: #cbd5e1;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px; margin: 24px 0;
  background: var(--bg-glass); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary); font-style: italic;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  padding: 22px 28px; background: var(--bg-glass);
  border: var(--border-glass); border-radius: var(--radius);
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
.faq-item p { font-size: 0.92rem; color: var(--text-secondary); }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: var(--border-glass); font-size: 0.9rem;
}
.compare-table th { color: var(--primary-light); font-weight: 700; background: var(--bg-glass); }
.compare-table td { color: var(--text-secondary); }

/* Footer */
.site-footer {
  padding: 56px 0 32px; margin-top: 48px;
  border-top: var(--border-glass);
  background: rgba(11, 15, 26, 0.6);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 16px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; border-top: var(--border-glass);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 8px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-height: 280px; }
  .feature-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid, .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .feature-grid, .news-grid, .stats-grid { grid-template-columns: 1fr; }
  .category-block { flex-direction: column; }
  .category-block img { width: 100%; height: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { width: 100%; justify-content: center; }
}
