/* 搜狗输入法 · 游戏电竞极速输入 — 清新橙绿效率风 */
:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-soft: #FED7AA;
  --green: #16A34A;
  --green-dark: #15803D;
  --green-soft: #BBF7D0;
  --cream: #FFF7ED;
  --cream-deep: #FFEDD5;
  --ink: #1C1917;
  --ink-soft: #44403C;
  --muted: #78716C;
  --white: #FFFFFF;
  --line: rgba(249, 115, 22, 0.18);
  --shadow: 0 10px 28px rgba(249, 115, 22, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font: "DIN Alternate", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(249, 115, 22, 0.16), transparent 55%),
    radial-gradient(900px 420px at 95% 0%, rgba(22, 163, 74, 0.12), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #FFFBF5 40%, var(--cream-deep) 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}

.brand:hover {
  color: var(--orange);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--green));
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.08);
}

.nav-links a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.nav-links a.active:hover {
  color: var(--white);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  padding: 0.85rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.85;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.42);
}

.btn-green {
  color: var(--white);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--orange-dark);
  background: var(--white);
  border: 2px solid var(--orange);
}

.btn-outline:hover {
  background: rgba(249, 115, 22, 0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--green-dark);
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.btn-ghost:hover {
  background: rgba(22, 163, 74, 0.18);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.08rem;
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  max-width: 18em;
  margin-inline: auto;
  background: linear-gradient(120deg, var(--ink) 20%, var(--orange-dark) 55%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.12rem;
  max-width: 40em;
  margin: 0 auto 1.6rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  margin-top: 2.2rem;
  height: 180px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(249, 115, 22, 0.2), rgba(22, 163, 74, 0.18)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.35) 12px,
      rgba(255, 255, 255, 0.35) 13px
    );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 15% 18% 15%;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.08);
}

.hero-visual-label {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.06em;
}

/* —— Sections —— */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 2rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--ink);
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.45rem;
}

/* —— Feature cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.14), rgba(22, 163, 74, 0.14));
  color: var(--orange-dark);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* —— Platform row —— */
.platform-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.platform-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.platform-card .ico {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  color: var(--green-dark);
}

.platform-card .ico svg {
  width: 100%;
  height: 100%;
}

.platform-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.platform-card p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  min-height: 2.8em;
}

/* —— Deep articles —— */
.article-stack {
  display: grid;
  gap: 1.25rem;
}

.deep-article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.15rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.deep-article .num {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--green));
}

.deep-article h3 {
  font-size: 1.2rem;
}

/* —— Reviews —— */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.review-card:hover {
  border-color: rgba(22, 163, 74, 0.4);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.review-name {
  font-weight: 800;
  color: var(--ink);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--orange);
}

.stars svg {
  width: 16px;
  height: 16px;
}

.review-card p {
  margin: 0;
  font-size: 0.93rem;
}

/* —— Stats —— */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: linear-gradient(120deg, rgba(249, 115, 22, 0.95), rgba(22, 163, 74, 0.92));
  border-radius: 18px;
  padding: 1.5rem 1rem;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.22);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-item .num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-item .label {
  font-size: 0.9rem;
  opacity: 0.92;
}

/* —— Comparison table —— */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.04);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.compare-table th {
  background: linear-gradient(180deg, #FFF7ED, #FFEDD5);
  font-weight: 800;
  color: var(--ink);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .hl {
  color: var(--green-dark);
  font-weight: 800;
}

.compare-table tbody tr:hover td {
  background: rgba(249, 115, 22, 0.05);
}

/* —— FAQ —— */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem 1rem;
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.08);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  list-style: none;
  color: var(--ink);
  position: relative;
  padding-right: 1.75rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p,
.faq-list details ul {
  margin-top: 0;
  padding-bottom: 0.9rem;
}

/* —— Download page —— */
.download-hero {
  padding: 2.75rem 0 1.5rem;
}

.download-hero h1 {
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
}

.featured-dl {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.featured-dl h2 {
  font-size: 1.45rem;
  color: var(--orange-dark);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta-list strong {
  color: var(--ink);
}

.dl-panel {
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.1), rgba(22, 163, 74, 0.1));
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  border: 1px solid var(--line);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 3.4rem;
  position: relative;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--green));
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.steps li strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.changelog {
  display: grid;
  gap: 0.9rem;
}

.change-item {
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.change-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.change-item .ver {
  color: var(--orange-dark);
}

.change-item .date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.security-box {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 16px;
  padding: 1.5rem;
}

.security-box h2 {
  color: var(--green-dark);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.req-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.req-card h3 {
  font-size: 1.05rem;
  color: var(--orange-dark);
}

/* —— zh-cn article —— */
.article-page {
  padding: 2.5rem 0 3rem;
}

.article-page h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  max-width: 18em;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
  color: var(--ink);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(249, 115, 22, 0.25);
}

.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: var(--orange-dark);
}

.tip-box {
  background: rgba(22, 163, 74, 0.08);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.cta-banner {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(120deg, rgba(249, 115, 22, 0.14), rgba(22, 163, 74, 0.14));
  border: 1px solid var(--line);
}

.cta-banner h2 {
  margin-bottom: 0.5rem;
}

.cta-banner p {
  margin-bottom: 1.15rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  background: #1C1917;
  color: #E7E5E4;
}

.site-footer a {
  color: #FDBA74;
}

.site-footer a:hover {
  color: #BBF7D0;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-safe {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #BBF7D0;
  font-weight: 600;
}

.footer-safe svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-copy {
  font-size: 0.88rem;
  color: #A8A29E;
  margin: 0;
  line-height: 1.65;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
}

/* —— Spinner keyframes (required by download.js) —— */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .card-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    gap: 0.55rem;
  }

  .nav-links {
    gap: 0.25rem 0.4rem;
  }

  .nav-links a {
    font-size: 0.86rem;
    padding: 0.3rem 0.45rem;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .card-grid,
  .reviews-grid,
  .platform-row,
  .req-grid,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .deep-article {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    height: 140px;
  }
}
