/* =========================================
   Chrome Download Site — site.css
   Design: Magazine/Editorial dark-header style
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a73e8;
  --blue-dk: #1558b0;
  --red:     #ea4335;
  --green:   #34a853;
  --yellow:  #fbbc04;
  --dark:    #1c2536;
  --dark2:   #232d42;
  --text:    #202124;
  --muted:   #5f6368;
  --border:  #e8eaed;
  --bg:      #f8f9fa;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 2px 16px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --font: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---- Layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { padding: 72px 0; background: var(--bg); }

/* ---- TOP NAV ---- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 12px;
}
.topnav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.topnav-brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.topnav-links { display: flex; align-items: center; gap: 4px; }
.topnav-links a {
  color: rgba(255,255,255,.75); font-size: .9rem; padding: 6px 14px;
  border-radius: 6px; transition: background .2s, color .2s;
}
.topnav-links a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.topnav-links a.active {
  background: var(--blue); color: #fff; font-weight: 600;
}
.topnav-dl {
  background: var(--blue); color: #fff !important; border-radius: 20px;
  padding: 7px 18px !important; font-weight: 600 !important;
  transition: background .2s !important;
}
.topnav-dl:hover { background: var(--blue-dk) !important; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger svg { width: 24px; height: 24px; stroke: #fff; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #1e3a5f 100%);
  color: #fff; padding: 90px 0 80px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(66,133,244,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(251,188,4,.15); color: var(--yellow);
  border: 1px solid rgba(251,188,4,.35); border-radius: 20px;
  padding: 4px 12px; margin-bottom: 20px;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.18; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  padding: 14px 28px; border-radius: 30px; font-size: 1rem; font-weight: 700;
  transition: background .2s, transform .15s; font-family: var(--font);
}
.btn-hero-primary:hover { background: var(--blue-dk); transform: translateY(-2px); }
.btn-hero-primary:disabled { opacity: .7; cursor: wait; }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.25); cursor: pointer;
  padding: 14px 28px; border-radius: 30px; font-size: 1rem; font-weight: 600;
  transition: background .2s; font-family: var(--font); text-decoration: none;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero-right { display: flex; justify-content: center; align-items: center; }
.hero-emblem { width: 240px; height: 240px; animation: pulse 3s ease-in-out infinite; }

/* ---- RIBBON ---- */
.ribbon { background: var(--blue); color: #fff; padding: 18px 0; }
.ribbon-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.ribbon-item { text-align: center; }
.ribbon-item strong { display: block; font-size: 1.7rem; font-weight: 800; }
.ribbon-item span { font-size: .82rem; opacity: .85; }

/* ---- SECTION HEADING ---- */
.sec-heading { text-align: center; margin-bottom: 48px; }
.sec-heading h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.sec-heading p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.sec-kicker {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 8px;
}

/* ---- FEATURE BENTO GRID ---- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.bento-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bento-card.span2 { grid-column: span 2; }
.bento-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.bento-icon svg { width: 26px; height: 26px; }
.bento-icon.blue  { background: #e8f0fe; }
.bento-icon.red   { background: #fce8e6; }
.bento-icon.green { background: #e6f4ea; }
.bento-icon.yell  { background: #fef7e0; }
.bento-icon.purple{ background: #f3e8fd; }
.bento-icon.teal  { background: #e6f7f4; }
.bento-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.bento-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bento-tag {
  font-size: .75rem; padding: 3px 10px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); color: var(--muted);
}

/* ---- STEP GUIDE ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 32px; left: calc(12.5% + 24px); right: calc(12.5% + 24px);
  height: 2px; background: linear-gradient(90deg, var(--blue), var(--green));
}
.step { text-align: center; padding: 0 16px; position: relative; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px rgba(26,115,232,.15);
}
.step-num.green { background: var(--green); box-shadow: 0 0 0 6px rgba(52,168,83,.15); }
.step-num.red   { background: var(--red);   box-shadow: 0 0 0 6px rgba(234,67,53,.15); }
.step-num.yell  { background: var(--yellow); color: #333; box-shadow: 0 0 0 6px rgba(251,188,4,.15); }
.step h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--muted); }

/* ---- COMPARE TABLE ---- */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th {
  background: var(--dark); color: #fff; padding: 14px 18px;
  font-size: .88rem; font-weight: 700; text-align: left;
}
.compare-table th:first-child { border-radius: 10px 0 0 0; }
.compare-table th:last-child  { border-radius: 0 10px 0 0; }
.compare-table th.hl { background: var(--blue); }
.compare-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.compare-table tr:nth-child(even) td { background: var(--bg); }
.compare-table tr:hover td { background: #e8f0fe; }
.chk { display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; }
.chk.yes { background: #e6f4ea; }
.chk.no  { background: #fce8e6; }
.chk svg { width: 13px; height: 13px; }

/* ---- PLATFORM CARDS (download page) ---- */
.platform-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; align-items: start; }
.pl-card {
  border-radius: var(--radius); border: 2px solid var(--border);
  padding: 28px 22px; text-align: center; background: var(--white);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.pl-card:hover { box-shadow: var(--shadow); border-color: #aecbfa; transform: translateY(-3px); }
.pl-card.featured { border-color: var(--blue); background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%); }
.pl-icon { width: 64px; height: 64px; margin: 0 auto 14px; }
.pl-icon svg { width: 64px; height: 64px; }
.pl-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.pl-card .pl-ver { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.pl-badge {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 8px;
}
.btn-dl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px; border-radius: 30px; border: none;
  font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s;
  font-family: var(--font);
}
.btn-dl:disabled { opacity: .7; cursor: wait; }
.btn-dl.primary { background: var(--blue); color: #fff; }
.btn-dl.primary:hover { background: var(--blue-dk); transform: translateY(-2px); }
.btn-dl.outline { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-dl.outline:hover { background: #e8f0fe; transform: translateY(-2px); }
.btn-dl svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- SYSTEM REQUIREMENTS ---- */
.sys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sys-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 18px; align-items: flex-start;
}
.sys-icon { width: 44px; height: 44px; flex-shrink: 0; }
.sys-icon svg { width: 44px; height: 44px; }
.sys-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.sys-card ul li {
  font-size: .85rem; color: var(--muted); padding: 3px 0;
  display: flex; align-items: center; gap: 6px;
}
.sys-card ul li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink:0; }

/* ---- FAQ (accordion) ---- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .97rem; font-weight: 600; color: var(--text);
  text-align: left; gap: 16px;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--muted); transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-body-inner { padding: 0 4px 18px; font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ---- TESTIMONIAL STRIP ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.testi-card::before {
  content: '"'; position: absolute; top: 12px; left: 20px;
  font-size: 5rem; line-height: 1; color: var(--border); font-family: Georgia, serif;
  pointer-events: none;
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-stars svg { width: 15px; height: 15px; fill: var(--yellow); stroke: none; }
.testi-text { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%; font-size: .95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink:0;
}
.av-blue   { background: #1a73e8; }
.av-green  { background: #34a853; }
.av-red    { background: #ea4335; }
.av-orange { background: #fa7b17; }
.av-purple { background: #a142f4; }
.av-teal   { background: #12b5cb; }
.testi-name { font-size: .85rem; font-weight: 700; }
.testi-role { font-size: .75rem; color: var(--muted); }

/* ---- VERSION TIMELINE (zh-cn page) ---- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--blue), var(--green), var(--yellow));
  border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-dot {
  position: absolute; left: -36px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  background: var(--blue);
}
.tl-dot.red   { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.tl-dot.green { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.tl-ver { font-size: .78rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tl-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.tl-item p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ---- ARTICLE BODY (zh-cn) ---- */
.article-body { max-width: 800px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 14px; color: var(--text); }
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; color: var(--dark2); }
.article-body p { margin-bottom: 16px; color: #3c4043; line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 16px; }
.article-body ul li { list-style: disc; margin-bottom: 8px; color: #3c4043; line-height: 1.7; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; color: #3c4043; line-height: 1.7; }
.article-body strong { color: var(--text); }
.article-callout {
  background: #e8f0fe; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin: 24px 0;
}
.article-callout p { margin: 0; color: #174ea6; font-size: .92rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #174ea6 100%);
  border-radius: 16px; padding: 48px 40px; text-align: center; color: #fff; margin: 48px 0;
}
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { opacity: .85; margin-bottom: 28px; font-size: 1rem; }
.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  border: none; cursor: pointer; padding: 14px 32px;
  border-radius: 30px; font-size: 1rem; font-weight: 700;
  transition: transform .15s, box-shadow .2s; font-family: var(--font);
  text-decoration: none;
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; }
.btn-cta-dl {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  border: none; cursor: pointer; padding: 14px 32px;
  border-radius: 30px; font-size: 1rem; font-weight: 700;
  transition: transform .15s, box-shadow .2s; font-family: var(--font);
}
.btn-cta-dl:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-cta-dl:disabled { opacity: .7; cursor: wait; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.55); padding: 32px 0;
  font-size: .82rem; line-height: 1.7;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer-safe {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(52,168,83,.15); border: 1px solid rgba(52,168,83,.3);
  border-radius: 20px; padding: 6px 14px; color: #81c995; font-size: .82rem;
}
.footer-safe svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-copy { color: rgba(255,255,255,.4); }

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-right { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span2 { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .platform-row { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topnav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--dark); padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .topnav-links.open { display: flex; }
  .topnav { position: relative; }
  .nav-burger { display: flex; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .ribbon-inner { gap: 8px; }
  .cta-banner { padding: 32px 20px; }
  .compare-wrap { font-size: .82rem; }
  .section { padding: 48px 0; }
  .section-alt { padding: 48px 0; }
}
