/* CPU-Z Website - Modern Tech Style */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #34a853;
  --dark: #1e1e2e;
  --darker: #13131f;
  --light: #f8f9fa;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --gradient: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
}

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

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

/* Header */
.header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--dark); }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: bold; font-size: 14px;
}
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; }
.nav a:hover { background: var(--light); color: var(--primary); text-decoration: none; }

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 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='%23ffffff' fill-opacity='0.05'%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");
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.hero .subtitle { font-size: 1.2rem; opacity: 0.95; margin-bottom: 12px; }
.hero .version-tag {
  display: inline-block; background: rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 20px; font-weight: 600;
  font-size: 0.9rem; margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  transition: all 0.2s; cursor: pointer;
}
.btn-primary { background: white; color: var(--primary); }
.btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); text-decoration: none; }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

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

.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; color: var(--dark); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 1.05rem; }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white; border-radius: 12px;
  padding: 30px; text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.feature-icon {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--dark); }
.feature-card p { color: var(--text-light); font-size: 0.925rem; }

/* Info Section */
.info-section { background: white; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.info-image {
  background: var(--gradient);
  border-radius: 16px;
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 350px;
}
.info-image svg { width: 100%; max-width: 400px; }
.info-content h2 { font-size: 2rem; color: var(--dark); margin-bottom: 16px; }
.info-content p { color: var(--text-light); margin-bottom: 16px; font-size: 1.05rem; }
.stats-row { display: flex; gap: 40px; margin-top: 24px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); }

/* Specs Table */
.specs-section { background: var(--light); }
.specs-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.04); }
.specs-table th { background: var(--gradient); color: white; padding: 14px 20px; text-align: left; font-weight: 600; }
.specs-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: rgba(26,115,232,0.02); }

/* Versions Section */
.version-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 768px) {
  .version-cards { grid-template-columns: 1fr; }
}
.version-card {
  background: white; border-radius: 12px; padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.version-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.version-card h4 { color: var(--dark); margin-bottom: 8px; }
.version-card .size { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.version-card p { color: var(--text-light); font-size: 0.9rem; margin-top: 8px; }

/* Download Section */
.download-cta { background: var(--gradient); color: white; text-align: center; }
.download-cta .btn-primary { font-size: 1.1rem; padding: 16px 40px; }
.download-cta p { margin-top: 16px; opacity: 0.85; }

/* Footer */
.footer { background: var(--darker); color: rgba(255,255,255,0.7); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); display: block; font-size: 0.9rem; padding: 4px 0; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; }
.disclaimer { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 12px; }

/* Breadcrumb */
.breadcrumb { background: white; border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.breadcrumb span { color: var(--text-light); }

/* Page-specific */
.page-header {
  background: var(--gradient); color: white;
  padding: 50px 20px; text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }

.content-section { padding: 50px 0; }
.content-card {
  background: white; border-radius: 12px;
  padding: 32px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.content-card h3 { color: var(--dark); margin-bottom: 12px; font-size: 1.2rem; }
.content-card p { color: var(--text-light); margin-bottom: 12px; }
.content-card ul { padding-left: 20px; color: var(--text-light); }
.content-card li { margin-bottom: 6px; }

/* Download page specific */
.download-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.04); }
.download-table th { background: var(--gradient); color: white; padding: 14px 20px; text-align: left; }
.download-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.download-table tr:last-child td { border-bottom: none; }
/* Download buttons */
.download-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
}
.dl-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.dl-btn:hover::before { left: 100%; }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.dl-btn:active { transform: translateY(0); }
.dl-btn .btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Quark button - purple/blue gradient */
.dl-btn-quark {
  background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
}
.dl-btn-quark:hover { box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4); }

/* Baidu button - blue gradient */
.dl-btn-baidu {
  background: linear-gradient(135deg, #3385FF 0%, #1E90FF 100%);
}
.dl-btn-baidu:hover { box-shadow: 0 6px 20px rgba(51, 133, 255, 0.4); }

/* QR Code breathing animation */
.qr-breathing {
  animation: breathing 2.5s ease-in-out infinite;
  border-radius: 8px;
  padding: 4px;
  background: white;
}

@keyframes breathing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(26, 115, 232, 0); }
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: #999; line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-title {
  font-size: 1.2rem; font-weight: 700; color: var(--dark);
  margin-bottom: 16px; text-align: center;
}
.modal-qr {
  display: flex; justify-content: center; margin-bottom: 16px;
}
.modal-qr img {
  width: 150px; height: 150px;
  border-radius: 8px;
}
.modal-info {
  background: #f8f9fa; border-radius: 8px;
  padding: 16px; margin-bottom: 16px;
}
.modal-info ul {
  list-style: none; padding: 0; margin: 0;
}
.modal-info li {
  padding: 4px 0; font-size: 0.9rem; color: var(--text-light);
  display: flex; align-items: flex-start; gap: 8px;
}
.modal-info li::before {
  content: '✓'; color: var(--accent); font-weight: bold;
}
.modal-tip {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 8px; padding: 12px;
  font-size: 0.85rem; color: #856404;
  text-align: center; margin-bottom: 16px;
}
.modal-actions {
  display: flex; gap: 12px; justify-content: center;
}
.modal-btn {
  padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.modal-btn-primary {
  background: var(--gradient); color: white; border: none;
}
.modal-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.modal-btn-outline {
  background: white; color: var(--primary); border: 1px solid var(--primary);
}
.modal-btn-outline:hover { background: rgba(26,115,232,0.05); text-decoration: none; }
.modal-btn-full {
  padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  background: #f8f9fa; color: #333; border: 1px solid #e0e0e0;
  width: 100%; justify-content: center;
}
.modal-btn-full:hover { background: #e9ecef; text-decoration: none; }

/* FAQ specific */
.faq-item { background: white; border-radius: 10px; padding: 24px; margin-bottom: 16px; border: 1px solid var(--border); }
.faq-item h4 { color: var(--dark); margin-bottom: 8px; }
.faq-item p { color: var(--text-light); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .info-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { gap: 20px; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}
