/* ============================================================
   搜狗五笔输入法 · 第4套站点
   极简白底 + 橙点缀 · 杂志式排版
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1A1A1A;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

:root {
  --white: #FFFFFF;
  --orange: #FF6A00;
  --orange-light: #FFF4EC;
  --black: #1A1A1A;
  --gray: #666666;
  --gray-light: #999999;
  --line: #E8E8E8;
  --line-dark: #D0D0D0;
  --container: 1120px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
}

.brand svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--gray);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-links a.active {
  color: var(--orange);
  font-weight: 500;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
}

.nav-links a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: #E55F00;
  border-color: #E55F00;
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--line-dark);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-ghost {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-ghost:hover {
  background: var(--orange-light);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ----- Stats ----- */
.stats-section {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-num small {
  font-size: 18px;
  font-weight: 600;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ----- Magazine Hero ----- */
.mag-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.mag-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}

.mag-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.mag-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
}

.mag-hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.mag-lead {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.85;
  max-width: 560px;
}

.mag-side {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}

.mag-side p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.mag-side p:last-child {
  margin-bottom: 0;
}

.mag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mag-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--orange);
  border: 1px solid var(--orange);
}

/* ----- Sections ----- */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 36px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
}

.section-intro {
  margin-top: 12px;
  font-size: 15px;
  color: var(--gray);
  max-width: 680px;
}

/* ----- Numbered Features ----- */
.feature-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.feature-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.feature-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* ----- Column Articles ----- */
.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.article-block {
  border: 1px solid var(--line);
  padding: 32px;
}

.article-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.article-block p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 12px;
}

.article-block p:last-child {
  margin-bottom: 0;
}

/* ----- Compare Table ----- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: none;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  background: #FAFAFA;
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
}

.compare-table .highlight {
  background: var(--orange-light);
  font-weight: 500;
}

.compare-table .check {
  color: var(--orange);
  font-weight: 600;
}

/* ----- Download Cards ----- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.download-card {
  border: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.download-card svg {
  width: 32px;
  height: 32px;
  color: var(--orange);
}

.download-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.download-card p {
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.6;
  flex: 1;
}

.download-card .btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
}

/* ----- Reviews ----- */
.review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-item {
  border: 1px solid var(--line);
  padding: 24px;
}

.review-item blockquote {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: normal;
}

.review-author {
  font-size: 13px;
  color: var(--black);
  font-weight: 500;
}

.review-meta {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 4px;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

/* ----- FAQ ----- */
.faq-list {
  border: 1px solid var(--line);
}

.faq-item {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black);
}

.faq-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* ----- Download Page ----- */
.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.page-hero .page-desc {
  font-size: 15px;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  border: 1px solid var(--line);
  color: var(--gray);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.download-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.win-panel {
  border: 2px solid var(--orange);
  padding: 36px;
  background: var(--orange-light);
}

.win-panel .platform-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.win-panel h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.win-panel .version-info {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.win-panel .spec-list {
  margin: 20px 0 28px;
}

.win-panel .spec-list li {
  font-size: 13px;
  color: var(--gray);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 106, 0, 0.15);
  display: flex;
  justify-content: space-between;
}

.win-panel .spec-list li span:last-child {
  color: var(--black);
  font-weight: 500;
}

.other-platforms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform-row {
  border: 1px solid var(--line);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-info svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
  flex-shrink: 0;
}

.platform-info h3 {
  font-size: 15px;
  font-weight: 600;
}

.platform-info p {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 2px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-item {
  border: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.7;
}

/* ----- zh-cn Article Page ----- */
.article-page {
  padding: 48px 0 56px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-main h1 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--gray-light);
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
}

.article-body p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 16px;
}

.article-body ul {
  margin: 12px 0 20px 20px;
}

.article-body ul li {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

.article-sidebar {
  position: sticky;
  top: 72px;
  border: 1px solid var(--line);
  padding: 24px;
}

.article-sidebar h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-links a {
  display: block;
  font-size: 13px;
  color: var(--gray);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.sidebar-links a:hover {
  color: var(--orange);
}

.sidebar-links a:last-child {
  border-bottom: none;
}

.cta-box {
  margin-top: 48px;
  padding: 36px;
  border: 1px solid var(--orange);
  background: var(--orange-light);
  text-align: center;
}

.cta-box h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ----- Footer ----- */
.site-footer {
  padding: 40px 0 48px;
  background: #FAFAFA;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--gray);
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.footer-safe svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.7;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .mag-hero-inner,
  .columns-2,
  .download-main,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .mag-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }

  .download-grid,
  .review-list,
  .install-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .stats-grid,
  .download-grid,
  .review-list,
  .install-steps {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .feature-item {
    grid-template-columns: 48px 1fr;
    padding: 20px;
  }

  .platform-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-sidebar {
    position: static;
  }
}
