/* ===== 360极速浏览器 官网样式 ===== */
:root {
  --primary: #1aad19;
  --primary-dark: #158f14;
  --primary-light: #e8f8e8;
  --accent: #ff6b00;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-gray: #f5f7fa;
  --border: #e8e8e8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #2ecc71);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-download {
  padding: 8px 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.header-download:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  margin-top: 0;
  background: linear-gradient(135deg, #f0faf0 0%, #e8f5e9 50%, #fff 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 173, 25, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 173, 25, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 173, 25, 0.4);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.browser-mockup {
  width: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow), 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.mockup-bar {
  background: #f0f0f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-url {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.mockup-body {
  padding: 40px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa, #fff);
}

.mockup-body .speed-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.mockup-body h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}

.mockup-body p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== Section ===== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== Page Banner ===== */
.page-banner {
  margin-top: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #2ecc71 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.9;
}

/* ===== Download Page ===== */
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.download-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.download-card.recommended {
  border-color: var(--primary);
  position: relative;
}

.download-card.recommended::before {
  content: "推荐";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 2px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.download-card .platform-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.download-card .version {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.download-card .desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ===== About Page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-image {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 60px;
  text-align: center;
  font-size: 80px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 59px;
  top: 40px;
  bottom: -32px;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-year {
  width: 80px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.timeline-content h3 {
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== News Page ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}

.news-item:hover {
  box-shadow: var(--shadow);
}

.news-date {
  width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.news-date .day {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.news-date .month {
  font-size: 13px;
  color: var(--text-muted);
}

.news-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.news-body p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.news-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}

/* ===== Support Page ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-gray);
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 200px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.contact-card {
  text-align: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #27ae60 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
  background: #f0f0f0;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  margin-top: 8px;
}

/* ===== 合规声明条 ===== */
.disclaimer-bar {
  margin-top: var(--header-height);
  background: #fff8e6;
  border-bottom: 1px solid #ffe0a3;
  padding: 8px 0;
  font-size: 13px;
  color: #8a6914;
  text-align: center;
}

.disclaimer-bar strong {
  color: #664d00;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid,
  .download-cards,
  .stats-row,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .features-grid,
  .download-cards,
  .stats-row,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .browser-mockup {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
