/* ============================================
   搜狗高速浏览器官网 - 样式表
   ============================================ */

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: #ff6a00; }
ul { list-style: none; }
img { border: 0; max-width: 100%; }
button { border: none; cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ''; display: block; clear: both; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* === Colors === */
:root {
  --primary: #ff6a00;
  --primary-dark: #e55d00;
  --primary-light: #ff8c38;
  --secondary: #1a73e8;
  --bg-light: #f8f9fa;
  --bg-dark: #1d1d1f;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e5e5e5;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --gradient-primary: linear-gradient(135deg, #ff6a00 0%, #ff8c38 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
}

/* === Header / Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.logo img { height: 36px; width: auto; }
.logo span { color: var(--text); }
.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  padding: 0 18px;
  height: 64px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s;
}
.nav a:hover::after,
.nav a.active::after { width: 60%; }
.nav a:hover, .nav a.active { color: var(--primary); }

/* Download Button in Nav */
.btn-download {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 20px;
  height: auto !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-left: 15px;
}
.btn-download:hover {
  background: var(--primary-dark);
  color: #fff !important;
}
.btn-download::after { display: none !important; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === Hero Section === */
.hero {
  padding: 140px 0 80px;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,106,0,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,140,56,0.1) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero h1 span { color: var(--primary-light); }
.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,106,0,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,106,0,0.5);
}
.btn-outline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}
.hero-image {
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
.hero-image img {
  max-width: 900px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
}
.stat-label {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

/* === Section Styles === */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-light); }
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.section-title p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon img,
.feature-icon svg { width: 56px; height: 56px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* === Version Cards === */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.version-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.version-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.version-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}
.version-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.version-img {
  height: 180px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.version-img img { width: 100%; height: 100%; object-fit: cover; }
.version-info { padding: 24px; }
.version-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.version-info .tag {
  display: inline-block;
  background: rgba(255,106,0,0.1);
  color: var(--primary);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}
.version-info p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}
.version-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.version-size {
  font-size: 13px;
  color: var(--text-muted);
}
.btn-sm {
  background: var(--gradient-primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-sm:hover { background: var(--primary-dark); color: #fff; }

/* === News / Articles === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.news-card-img {
  height: 180px;
  overflow: hidden;
  background: var(--bg-light);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p {
  font-size: 13px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.news-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* === Download Page Specific === */
.download-hero {
  padding: 140px 0 80px;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
}
.download-hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.download-hero p { font-size: 16px; opacity: 0.9; }
.download-section { padding: 60px 0; }
.download-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.download-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.download-list { margin-top: 20px; }
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.download-item:hover {
  border-color: var(--primary);
  background: rgba(255,106,0,0.03);
}
.download-item-info { display: flex; align-items: center; gap: 14px; }
.download-item-info .os-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.download-item-info .info h4 { font-size: 16px; font-weight: 600; }
.download-item-info .info span { font-size: 13px; color: var(--text-muted); }
.btn-download-lg {
  background: var(--gradient-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-download-lg:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* === Sidebar Layout === */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}
.sidebar {
  position: sticky;
  top: 84px;
  height: fit-content;
}
.sidebar-menu {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-menu a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.sidebar-menu a:last-child { border-bottom: none; }
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255,106,0,0.05);
  color: var(--primary);
  padding-left: 24px;
}
.main-content { min-width: 0; }
.content-block { margin-bottom: 40px; }
.content-block h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.content-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}
.content-block p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}
.content-block ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.content-block ul li {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
  list-style: disc;
}

/* === Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 20px;
}
.data-table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}
.data-table tr:hover td { background: rgba(255,106,0,0.03); }

/* === Timeline === */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* === Page Banner === */
.page-banner {
  padding: 120px 0 60px;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
}
.page-banner h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-banner p { font-size: 16px; opacity: 0.9; }

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--border); }

/* === Footer === */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about h3 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-about p {
  font-size: 13px;
  line-height: 1.8;
  color: #888;
  margin-bottom: 16px;
}
.footer-col h4 {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #888;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--primary-light); }

/* === Disclaimer === */
.disclaimer {
  background: rgba(255,106,0,0.05);
  border: 1px solid rgba(255,106,0,0.15);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 30px 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

/* === Back to Top === */
.back-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(255,106,0,0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* === Animation === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* === Responsive === */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .versions-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero h1 { font-size: 36px; }
  .section-title h2 { font-size: 28px; }
}
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: var(--shadow);
    padding: 10px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; height: auto; }
  .nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .versions-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
  .download-card { padding: 24px; }
  .download-item { flex-direction: column; gap: 12px; text-align: center; }
}

/* === Download Modal === */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 10000; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }

.modal-box {
  background: #fff; border-radius: 16px; max-width: 600px; width: 100%;
  padding: 32px 28px 24px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeInUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 28px; color: #999; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.modal-close:hover { color: #333; }

.modal-body { display: flex; align-items: center; gap: 28px; }
@media (max-width: 600px) {
  .modal-body { flex-direction: column; text-align: center; }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,0,0.35); }
  50% { box-shadow: 0 0 0 12px rgba(255,106,0,0); }
}
@keyframes breathe-baidu {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0.35); }
  50% { box-shadow: 0 0 0 12px rgba(26,115,232,0); }
}

.qr-wrap {
  width: 160px; height: 160px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #fff; animation: breathe 2.5s ease-in-out infinite;
}
.qr-wrap.bd { animation: breathe-baidu 2.5s ease-in-out infinite; }
.qr-wrap img { width: 140px; height: 140px; border-radius: 8px; background: #fff; }

.modal-info { flex: 1; min-width: 0; }
.modal-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: #333; }
.modal-info ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.modal-info ul li {
  font-size: 13px; color: #555; line-height: 1.5; padding-left: 22px; position: relative;
}
.modal-info ul li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334a853' stroke-width='2'><path d='M20 6L9 17l-5-5'/></svg>") no-repeat center/contain;
}

.modal-desc { font-size: 12px; color: #e65100; background: #fff8e1; border-radius: 6px; padding: 10px 14px; line-height: 1.6; margin-bottom: 16px; }

.modal-footer { text-align: center; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.modal-footer p { font-size: 13px; color: #666; margin-bottom: 12px; }
.modal-btn {
  display: inline-block; padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: #ff6a00; color: #fff; transition: all 0.2s;
}
.modal-btn:hover { background: #e55d00; color: #fff; transform: translateY(-1px); }
.modal-btn.quark { background: #ff6a00; }
.modal-btn.quark:hover { background: #e55d00; }
.modal-btn.baidu { background: #1a73e8; }
.modal-btn.baidu:hover { background: #0d62c9; }
