/*======================================*\
  Clash Verge 中文官方网站 - c6
  参考模板: twts149
  设计风格: 简约浅色、现代科技感
\*======================================*/

/* ---------- CSS Variables ---------- */
:root {
  --primary: #4F7CFF;
  --primary-dark: #3A5FCC;
  --primary-light: #7B9FFF;
  --accent: #00D4AA;
  --dark: #1A1E2E;
  --dark-light: #2D3348;
  --text: #4A5568;
  --text-light: #718096;
  --text-lighter: #A0AEC0;
  --bg: #FFFFFF;
  --bg-light: #F7F9FC;
  --bg-grey: #EDF2F7;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-light); }
.section-header .divider {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.bg-light { background: var(--bg-light); }
.bg-grey { background: var(--bg-grey); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,124,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 14px 40px; font-size: 1rem; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.navbar.scrolled .nav-brand { color: var(--dark); }
.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: rgba(79,124,255,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--dark); }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1A1E2E 0%, #2D3348 50%, #3A4A6B 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(79,124,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0,212,170,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-content .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79,124,255,0.2);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(79,124,255,0.3);
}

.hero-content h1 {
  color: #fff;
  font-size: 3.25rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stats .stat-item h3 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 4px;
}
.hero-stats .stat-item span {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #1A1E2E 0%, #2D3348 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(79,124,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 { color: #fff; font-size: 2.5rem; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.0625rem; max-width: 560px; margin: 0 auto; }
.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-header .breadcrumb span { color: var(--primary-light); }

/* ---------- Feature Cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(79,124,255,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.9375rem; }

/* ---------- Download Cards ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.download-card .platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.download-card h3 { margin-bottom: 8px; }
.download-card .version { color: var(--text-light); font-size: 0.875rem; margin-bottom: 4px; }
.download-card .date { color: var(--text-lighter); font-size: 0.8125rem; margin-bottom: 16px; }

.download-card .btn { width: 100%; }

/* ---------- Why Choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-content h2 { margin-bottom: 16px; }
.why-content p { color: var(--text-light); margin-bottom: 24px; }

.why-list { list-style: none; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}
.why-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(0,212,170,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 2px;
}

.why-image {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.why-image .placeholder-icon {
  font-size: 5rem;
  color: var(--primary-light);
  opacity: 0.5;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.step-card .step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.step-card h4 { margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 0.875rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 740px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item.active { border-color: var(--primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  background: #fff;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-light); }

.faq-question .arrow {
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.active .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ---------- Compare Table ---------- */
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.compare-table th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}

.compare-table th:first-child { text-align: left; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--dark); }

.compare-table tr:hover td { background: var(--bg-light); }

.compare-table .highlight {
  background: rgba(79,124,255,0.05);
  color: var(--primary);
  font-weight: 600;
}

.check-icon { color: var(--accent); }
.cross-icon { color: #E53E3E; }

/* ---------- Info Box ---------- */
.info-box {
  background: rgba(79,124,255,0.06);
  border: 1px solid rgba(79,124,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 24px 0;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
}
.info-box p { color: var(--text-light); font-size: 0.9375rem; }

/* ---------- Warning Box ---------- */
.warning-box {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 24px 0;
}

.warning-box h4 {
  color: #D97706;
  margin-bottom: 8px;
}
.warning-box p { color: var(--text-light); font-size: 0.9375rem; }

/* ---------- Content Article ---------- */
.content-article {
  max-width: 780px;
  margin: 0 auto;
}

.content-article h2 { margin-top: 40px; margin-bottom: 16px; }
.content-article h3 { margin-top: 28px; margin-bottom: 12px; }

.content-article p {
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

.content-article ul, .content-article ol {
  margin: 0 0 16px 20px;
  list-style: disc;
}
.content-article ol { list-style: decimal; }
.content-article li {
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.7;
}

.content-article strong { color: var(--dark); }

/* ---------- Platform Feature Grid ---------- */
.platform-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.platform-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.platform-feature .pf-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(79,124,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

.platform-feature h4 { margin-bottom: 4px; font-size: 0.9375rem; }
.platform-feature p { font-size: 0.8125rem; color: var(--text-light); margin: 0; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .brand-name .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
}

.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.125rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.back-to-top.visible { display: flex; }

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .platform-features { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 2.25rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { color: var(--text); }
  .nav-toggle { display: block; }

  .feature-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-buttons { flex-direction: column; }

  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 1.75rem; }

  .compare-table th,
  .compare-table td { padding: 10px 12px; font-size: 0.8125rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero-content h1 { font-size: 1.75rem; }
}
