/* CrystalDiskInfo Website Styles */
:root {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-card: #1E293B;
  --bg-card-hover: #273548;
  --border: #334155;
  --border-light: #475569;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --green: #22C55E;
  --green-bg: rgba(34, 197, 94, 0.15);
  --yellow: #F59E0B;
  --yellow-bg: rgba(245, 158, 11, 0.15);
  --red: #EF4444;
  --red-bg: rgba(239, 68, 68, 0.15);
  --purple: #8B5CF6;
  --purple-bg: rgba(139, 92, 246, 0.15);
  --cyan: #06B6D4;
  --cyan-bg: rgba(6, 182, 212, 0.15);
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.logo img { width: 32px; height: 32px; }
.logo span { background: linear-gradient(135deg, var(--accent), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav a:hover, .nav a.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
}

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

/* Hero Section */
.hero {
  padding: 48px 0 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text .subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-badges span {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--accent); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-cyan { background: var(--cyan-bg); color: var(--cyan); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image { flex: 1; min-width: 320px; }
.hero-image img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-download {
  padding: 5px 16px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 0.15s ease;
}
.btn-download:hover { transform: none; }
.btn-quark { background: #1677FF; color: #fff; }
.btn-quark:hover { background: #0958D9; color: #fff; }
.btn-baidu { background: #E8F0FE; color: #1967D2; border: 1px solid #D2E3FC; }
.btn-baidu:hover { background: #D2E3FC; color: #1967D2; }

/* Section */
.section { padding: 48px 0; }
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Feature Cards Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}
.feature-card .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.feature-card .card-icon img { width: 100%; height: 100%; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--text-primary); }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-secondary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight { background: rgba(59,130,246,0.05); }
.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .cross { color: var(--red); }
.compare-table .partial { color: var(--yellow); }

/* Steps */
.steps { display: flex; gap: 16px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step h4 { font-size: 15px; margin-bottom: 4px; color: var(--text-primary); }
.step p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.step .step-img { margin-top: 10px; }
.step .step-img img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Terminal / Code block */
.terminal {
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: var(--green);
  overflow-x: auto;
  margin: 12px 0;
}
.terminal .prompt { color: var(--accent); }
.terminal .comment { color: var(--text-muted); }

/* Info cards */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.info-card h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card p, .info-card li { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.info-card ul { padding-left: 20px; margin-top: 6px; }

/* Version Cards */
.version-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.version-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.version-card:hover { border-color: var(--accent); }
.version-card.recommended { border-color: var(--accent); position: relative; }
.version-card .recommend-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.version-card h3 { font-size: 20px; margin-bottom: 4px; }
.version-card .ver-type { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.version-card .ver-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.version-card .ver-size { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.version-card .dl-group { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.version-card .pwd-hint { font-size: 11px; color: var(--yellow); margin-top: 6px; }

/* FAQ */
.faq-category { margin-bottom: 32px; }
.faq-category h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q .arrow { transition: transform 0.2s; font-size: 12px; color: var(--text-muted); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  max-width: 680px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-close:hover { background: var(--bg-card); color: var(--text-primary); }
.modal h3 { font-size: 18px; margin-bottom: 20px; text-align: center; }

/* Two-column layout */
.modal-body {
  display: flex;
  gap: 24px;
}
.modal-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.modal-right {
  flex: 1;
  min-width: 0;
}

/* QR items on left */
.qr-item {
  text-align: center;
}
.qr-img-wrap {
  display: inline-block;
  padding: 4px;
  border: 2px solid var(--border);
  border-radius: 8px;
  animation: breathe 2s ease-in-out infinite;
}
.qr-img-wrap img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 4px;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.qr-item .qr-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
}
.qr-item .qr-guide {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* Right column */
.modal-right .resource-info {
  padding: 0;
  margin-bottom: 16px;
}
.modal-right .resource-info li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.9;
  list-style: none;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.modal-right .resource-info li::before { content: '\2713 '; color: var(--green); font-weight: 700; }
.modal-right .reminder {
  font-size: 11px;
  color: var(--yellow);
  text-align: left;
  padding: 8px 10px;
  background: var(--yellow-bg);
  border-radius: 4px;
  line-height: 1.5;
  margin-top: 12px;
}

/* Download page install steps */
.install-steps { display: flex; flex-direction: column; gap: 16px; }
.install-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.install-step .is-num {
  width: 32px; height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.install-step .is-content h4 { font-size: 15px; margin-bottom: 4px; }
.install-step .is-content p { font-size: 13px; color: var(--text-muted); }
.install-step .is-img { margin-top: 8px; }
.install-step .is-img img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-inner .disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding: 32px 0; }
  .hero-actions { justify-content: center; }
  .hero-text h1 { font-size: 26px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .version-grid { grid-template-columns: 1fr; }
  .nav a { padding: 4px 10px; font-size: 13px; }
  .modal-body { flex-direction: column; }
  .modal-left { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .modal { max-width: 480px; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .nav { margin-top: 4px; }
}
