/* ============================================
   Chrome Download Landing - Shared Styles
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #fdfbf7;
  --bg-white: #ffffff;
  --text-primary: #1a1a1c;
  --text-secondary: #7c7c7c;
  --color-blue: #94d8ff;
  --color-blue-deep: #5eb1e6;
  --color-blue-dark: #005fb7;
  --color-purple: #f5c1ff;
  --color-purple-soft: #e1e1ff;
  --color-coral: #ff8484;
  --color-yellow: #ffe287;
  --radius-full: 100px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, #94d8ff 0%, #f5c1ff 30%, #ff8484 60%, #ffe287 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Navigation ---- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 500;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-gradient {
  background: linear-gradient(135deg, #94d8ff 0%, #f5c1ff 30%, #ff8484 60%, #ffe287 100%);
  color: var(--text-primary);
  font-weight: 600;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.card h3 {
  margin-bottom: 12px;
}

/* ---- Section Layout ---- */
.section {
  padding: 120px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Footer ---- */
.main-footer {
  background: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 80px 32px 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-cta {
  text-align: center;
  margin-bottom: 48px;
}

.footer-cta h2 {
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ---- Badge / Pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  color: var(--text-secondary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Spinner / Loading ---- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

/* ---- Gradient Background ---- */
.gradation-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradation-bg > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.gradation-bg .blue-1 {
  width: 180vw;
  height: 180vw;
  opacity: 0.2;
  background: radial-gradient(circle, #94d8ff 30%, transparent 70%);
}

.gradation-bg .blue-2 {
  width: 180vw;
  height: 180vw;
  opacity: 0.2;
  background: radial-gradient(circle, #5eb1e6 30%, transparent 70%);
}

.gradation-bg .blue-3 {
  width: 180vw;
  height: 180vw;
  opacity: 0.2;
  background: radial-gradient(circle, #005fb7 30%, transparent 70%);
}

.gradation-bg .purple-1 {
  width: 60vw;
  height: 60vw;
  opacity: 0.4;
  background: radial-gradient(circle, #e1e1ff 30%, transparent 70%);
}

.gradation-bg .purple-2 {
  width: 60vw;
  height: 60vw;
  opacity: 0.5;
  background: radial-gradient(circle, #ffb0f4 30%, transparent 70%);
}

.gradation-bg .orange-1 {
  width: 200vw;
  height: 200vw;
  opacity: 0.25;
  background: radial-gradient(circle, #ffe287 30%, transparent 70%);
}

/* ---- Browser Mockup ---- */
.browser-mockup {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

/* ---- Settings Panel ---- */
.settings-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 480px;
}

.sidebar-list {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 0;
}

.sidebar-list li {
  position: relative;
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-list li.active::before {
  opacity: 1;
}

.sidebar-list li.active .item-title {
  font-weight: 500;
  color: var(--text-primary);
}

.sidebar-list li .item-title {
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.sidebar-list li .item-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.sidebar-list li.active .item-subtitle {
  opacity: 1;
  max-height: 20px;
}

.sidebar-list li .setting-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.sidebar-list li.active .setting-details {
  opacity: 1;
  max-height: 200px;
}

.main-display {
  position: relative;
  padding: 32px;
}

.setting-card {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.setting-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 24px;
  background: var(--text-primary);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
  max-width: 360px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ---- Article Styles ---- */
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.7;
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

/* ---- News Card ---- */
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 280px 1fr;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 28px 32px;
}

.news-card-body h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.news-card-body p {
  font-size: 15px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 15px;
}

/* ---- Platform Card ---- */
.platform-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
}

.platform-card h3 {
  margin-bottom: 6px;
}

.platform-card .version {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.platform-card .os-require {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-panel {
    grid-template-columns: 1fr;
  }

  .sidebar-list {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
  }

  .sidebar-list li {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.03);
  }

  .sidebar-list li::before {
    display: none;
  }

  .sidebar-list li.active {
    background: var(--text-primary);
  }

  .sidebar-list li.active .item-title {
    color: var(--bg-white);
    font-weight: 400;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 20px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    padding: 16px 32px;
    font-size: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
