/* === Site 1: Root - Clean Official Style === */
/* White background + Chrome blue, "Secure Download Center" */

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --accent: #34a853;
  --text: #202124;
  --text-secondary: #5f6368;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --border: #dadce0;
  --shadow: 0 1px 2px rgba(60,64,67,0.08), 0 2px 6px rgba(60,64,67,0.06);
  --shadow-hover: 0 4px 12px rgba(60,64,67,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.25s ease;
}

.nav-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-menu a.active {
  background: var(--primary);
  color: #fff;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 50%, #ffffff 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(26,115,232,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Sections --- */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Platform Cards --- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.platform-card svg {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--primary);
}

.platform-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* --- Download Section --- */
.download-hero {
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}

.download-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
}

.download-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 36px;
}

.download-hero .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.download-hero .btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

/* --- Platform Downloads --- */
.platform-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.platform-download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.platform-download-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-download-card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.platform-download-card .meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.platform-download-card .btn {
  margin-top: auto;
  padding: 12px 24px;
  font-size: 14px;
  align-self: flex-start;
}

/* --- Install Steps --- */
.steps {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.step h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 12px;
  padding-right: 32px;
}

/* --- Changelog --- */
.changelog-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
}

.changelog-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  min-width: 100px;
}

.changelog-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.changelog-content ul {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  line-height: 1.8;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-badge svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Animations --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 17px; }
  .section-header h2 { font-size: 28px; }
  .nav-container { padding: 0 16px; }
  .nav-menu a { padding: 6px 14px; font-size: 14px; }
  .section { padding: 56px 16px; }
  .hero { padding: 60px 16px; }
  .download-hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .changelog-item { flex-direction: column; gap: 8px; }
}
