/* Clash Verge Official Website - Main Stylesheet */
/* Brand Colors */
:root {
  --primary: #1E2A3A;
  --primary-light: #2a3a4e;
  --accent: #7C3AED;
  --accent-light: #8B5CF6;
  --success: #10B981;
  --warning: #F59E0B;
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #263548;
  --border: #334155;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--success); }

img { max-width: 100%; height: auto; }

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

/* Header */
.site-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--success));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.nav-menu a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-cta {
  background: var(--success) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px !important;
}

.nav-cta:hover { background: #0ea271 !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1040 50%, var(--primary) 100%);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}

.btn-primary:hover {
  background: #0ea271;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--warning);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}

.btn-warning:hover {
  background: #e89109;
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* Platform Icons */
.platform-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.platform-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.platform-item:hover .platform-icon {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

/* Section Styles */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

.section-alt { background: var(--primary); }

/* Download Cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.download-card .os-icon { font-size: 2.5rem; margin-bottom: 16px; }
.download-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.download-card .version { color: var(--success); font-size: 0.9rem; margin-bottom: 16px; }

.download-links { display: flex; flex-direction: column; gap: 8px; }

.download-links a {
  display: block;
  padding: 10px;
  background: var(--bg-dark);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.download-links a:hover { background: var(--bg-card-hover); color: var(--text); }

/* Version Highlights */
.highlights-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.highlight-icon { font-size: 1.5rem; flex-shrink: 0; }
.highlight-item h4 { font-size: 1rem; margin-bottom: 4px; }
.highlight-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Quick Start */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.85rem; }

/* News/Blog Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.news-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(124,58,237,0.2);
  color: var(--accent-light);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.5; }
.news-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.news-meta { color: var(--text-muted); font-size: 0.8rem; display: flex; gap: 16px; }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; }

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item details { padding: 0; }

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary:hover { background: var(--bg-card-hover); }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-light);
  transition: transform 0.3s;
}

.faq-item details[open] summary::after { content: '-'; }

.faq-item .faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-answer ol {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-answer ol li {
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-social a:hover { background: var(--accent); color: #fff; }

/* Disclaimer */
.disclaimer {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 800px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--warning);
  font-size: 0.85rem;
}

/* Blog Page */
.blog-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1040 100%);
  padding: 60px 20px;
  text-align: center;
}

.blog-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.blog-header p { color: var(--text-muted); }

.blog-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.blog-tags a {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.blog-tags a:hover, .blog-tags a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.blog-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.blog-list-item:hover { border-color: var(--accent); }
.blog-list-item h2 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-list-item h2 a { color: var(--text); }
.blog-list-item h2 a:hover { color: var(--accent-light); }
.blog-list-item p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

/* Blog Detail */
.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1040 100%);
  padding: 60px 20px;
  text-align: center;
}

.article-header h1 { font-size: 2rem; max-width: 800px; margin: 0 auto 16px; line-height: 1.4; }

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.article-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.article-content h2 { font-size: 1.4rem; margin: 30px 0 16px; color: var(--text); }
.article-content h3 { font-size: 1.15rem; margin: 24px 0 12px; color: var(--text); }
.article-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li { color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; }

.article-content code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--accent-light);
}

.article-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-content pre code { background: none; padding: 0; }

.article-nav {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

/* Releases Page */
.release-item {
  max-width: 800px;
  margin: 0 auto 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.release-item h2 { font-size: 1.3rem; margin-bottom: 8px; }
.release-item .release-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.release-item .release-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(16,185,129,0.2);
  color: var(--success);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 10px;
}

.release-changes { margin-top: 16px; }
.release-changes li { color: var(--text-muted); margin-bottom: 6px; font-size: 0.9rem; }

/* About Page */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 { font-size: 1.5rem; margin: 30px 0 16px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card p { color: var(--text-muted); font-size: 0.85rem; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pagination a:hover, .pagination a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .section-title { font-size: 1.5rem; }
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }
  .download-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
