/*
Theme Name: 搜狗输入法官网 V5
Theme URI: https://shurufa.sogou.com/
Author: admin
Description: 搜狗输入法官网风格主题，橙色渐变视觉、IP 形象首屏、功能卡片、皮肤展示、多平台下载、完整文章系统与 SEO。
Version: 1.0
Requires at least: 5.8
Tested up to: 6.6
License: GNU General Public License v2 or later
Text Domain: sogou-chat
*/

/* ============ 基础 ============ */
:root {
  --orange: #ff6a00;
  --orange-2: #ff9314;
  --orange-soft: #fff4ea;
  --yellow: #ffd23f;
  --ink: #14171a;
  --ink-2: #2b3036;
  --muted: #6b7280;
  --line: #eaeef3;
  --bg: #ffffff;
  --soft: #f7f9fc;
  --radius: 18px;
  --shadow-sm: 0 6px 18px rgba(20, 23, 26, .06);
  --shadow: 0 18px 50px rgba(255, 106, 0, .16);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 12px 26px rgba(255, 106, 0, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255, 106, 0, .34); }
.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #d7dde6; }
.btn-light { color: var(--orange); background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 24px; font-size: 14px; }

/* ============ 导航 ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20, 23, 26, .06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 20px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 6px; margin-left: 8px; flex: 1 1 auto; }
.nav-menu a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color .18s, background .18s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--orange); background: var(--orange-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(255, 210, 63, .28), transparent 62%),
    radial-gradient(760px 520px at 22% 0%, #ffe9d6, transparent 58%),
    linear-gradient(180deg, #fff8f1 0%, #ffffff 68%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 106, 0, .1);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-tag i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, .16);
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--orange), var(--orange-2) 60%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: #9aa3ae; }
.hero-visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: flex-end; }
.hero-ip {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 26px 44px rgba(255, 138, 0, .22));
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* 输入法候选框 mockup */
.ime-card {
  position: absolute;
  left: -6px;
  bottom: 26px;
  z-index: 3;
  width: 300px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 106, 0, .18);
  box-shadow: 0 20px 44px rgba(20, 23, 26, .14);
  animation: floatY 7s ease-in-out infinite 1s;
}
.ime-words {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 9px;
  border-bottom: 1px solid #f2f4f7;
}
.ime-words span {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f6f8fb;
  color: #47515c;
}
.ime-words span.active {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 106, 0, .3);
}
.ime-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #8b95a1;
}
.ime-bar b {
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ============ 数据条 ============ */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -44px;
  margin-bottom: 74px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 28px 8px;
}
.stat { text-align: center; padding: 6px 12px; }
.stat b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13px; color: var(--muted); }

/* ============ 通用区块 ============ */
.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.sec-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.sec-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 800;
  margin-bottom: 14px;
}
.sec-head p { color: var(--muted); font-size: 16px; }

/* 功能卡片 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  overflow: hidden;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(255, 106, 0, .13); border-color: rgba(255, 106, 0, .24); }
.feature .ico {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 147, 20, .16), rgba(255, 106, 0, .1));
  margin-bottom: 18px;
}
.feature .ico svg { width: 26px; height: 26px; stroke: var(--orange); fill: none; stroke-width: 1.6; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* 皮肤展示 */
.skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skin {
  position: relative;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.skin:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 22px 44px rgba(20, 23, 26, .16); }
.skin span {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.skin-1 { background: linear-gradient(135deg, #ff7a1a, #ffd23f); }
.skin-2 { background: linear-gradient(135deg, #8ec5ff, #d3e7ff); }
.skin-3 { background: linear-gradient(135deg, #2b3036, #5b6470); }
.skin-4 { background: linear-gradient(135deg, #ffb3c1, #ffdfe5); }
.skin-5 { background: linear-gradient(135deg, #7ee0b8, #c8f3e0); }
.skin-6 { background: linear-gradient(135deg, #b39ddb, #e7ddff); }
.skin-7 { background: linear-gradient(135deg, #ffd3b6, #fff0e0); }
.skin-8 { background: linear-gradient(135deg, #a7d8ff, #f0f9ff); }

/* 平台下载 */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.platform {
  padding: 26px 20px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.platform:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(255, 106, 0, .12); border-color: rgba(255, 106, 0, .22); }
.platform .pico {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--orange);
}
.platform .pico svg { width: 22px; height: 22px; fill: var(--orange); }
.platform h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.platform small { display: block; font-size: 12px; color: #9aa3ae; margin-bottom: 14px; }
.platform .dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}
.platform .dl:hover { text-decoration: underline; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q i {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-style: normal;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .25s;
}
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}
.faq-a p { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #ff7a1a, #ff5b00 55%, #ff9314);
  box-shadow: 0 28px 60px rgba(255, 106, 0, .28);
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.cta::before { width: 260px; height: 260px; left: -80px; top: -90px; }
.cta::after { width: 180px; height: 180px; right: -50px; bottom: -70px; }
.cta h2 { position: relative; font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin-bottom: 14px; }
.cta p { position: relative; font-size: 15px; opacity: .92; margin-bottom: 28px; }
.cta .btn { position: relative; }

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 90px;
  background: #14171a;
  color: #b7bfc9;
  padding: 62px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 20px; margin-bottom: 16px; opacity: .95; }
.footer-brand p { font-size: 13px; line-height: 1.9; color: #8b95a1; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: #8b95a1; transition: color .18s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #6f7883;
}
.footer-bottom a { color: #8b95a1; }
.footer-bottom a:hover { color: var(--yellow); }
.icp-note { display: flex; align-items: center; gap: 8px; }
.icp-note img { width: 16px; height: 16px; }
.warn-line { margin-top: 12px; font-size: 12px; color: #59616b; text-align: center; }

/* ============ 文章系统 ============ */
.article-wrap { max-width: 900px; padding-top: 48px; padding-bottom: 20px; }
.crumbs { font-size: 13px; color: #9aa3ae; margin-bottom: 20px; }
.crumbs a { color: #9aa3ae; }
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { margin: 0 6px; }
.crumbs .current { color: var(--ink); }

.post-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.post-meta { font-size: 13px; color: #9aa3ae; margin-bottom: 28px; }
.post-meta a { color: #9aa3ae; }
.post-meta .dot { margin: 0 6px; }
.post-thumb { margin: 0 0 28px; }
.post-thumb img { width: 100%; border-radius: 16px; }

.post-content { font-size: 16px; line-height: 1.95; color: #333a42; }
.post-content p { margin: 0 0 18px; }
.post-content h2 { font-size: 22px; color: var(--ink); margin: 34px 0 14px; padding-left: 14px; border-left: 4px solid var(--orange); }
.post-content h3 { font-size: 18px; color: var(--ink); margin: 26px 0 10px; }
.post-content h4 { font-size: 16px; color: var(--ink); margin: 20px 0 8px; }
.post-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: 12px; margin: 22px auto; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { margin: 24px 0; padding: 16px 20px; background: var(--soft); border-left: 4px solid var(--orange-2); border-radius: 0 10px 10px 0; color: #4a535c; }
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content table { border-collapse: collapse; width: 100%; margin: 22px 0; font-size: 15px; }
.post-content th, .post-content td { border: 1px solid #e6ebf1; padding: 10px 12px; }
.post-content th { background: #f6f9fc; font-weight: 600; }
.post-content pre { background: #14171a; color: #e6e8eb; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.post-content code { background: #f2f5f9; padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.post-content pre code { background: none; padding: 0; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.post-tags { margin-top: 32px; font-size: 13px; color: #9aa3ae; }
.post-tags a { display: inline-block; margin: 0 8px 8px 0; padding: 3px 12px; border-radius: 999px; background: var(--soft); color: #5c6672; }
.post-tags a:hover { background: var(--orange-soft); color: var(--orange); }

.post-nav {
  display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap;
  margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.post-nav > div { flex: 1 1 45%; min-width: 240px; }
.post-nav-next { text-align: right; }
.post-nav .label { display: block; font-size: 12px; color: #9aa3ae; margin-bottom: 6px; }
.post-nav a { color: var(--orange); font-weight: 600; }

.related { margin-top: 46px; }
.block-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; padding-left: 14px; border-left: 4px solid var(--orange); }

.archive-head { margin-bottom: 28px; }
.archive-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; }
.archive-desc { color: var(--muted); font-size: 14px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(20,23,26,.09); border-color: rgba(255,106,0,.2); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 { font-size: 16px; line-height: 1.5; font-weight: 700; margin-bottom: 8px; }
.post-card-body p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; flex: 1; }
.post-card-body time { font-size: 12px; color: #a7b0ba; }

.pager { margin-top: 44px; text-align: center; font-size: 14px; }
.pager .page-numbers {
  display: inline-block; min-width: 38px; padding: 8px 12px; margin: 0 4px 8px;
  border: 1px solid var(--line); border-radius: 10px; color: #5c6672; background: #fff;
}
.pager .page-numbers.current, .pager .page-numbers:hover {
  background: linear-gradient(135deg, var(--orange-2), var(--orange)); border-color: transparent; color: #fff;
}
.empty { color: var(--muted); padding: 40px 0; }

/* 搜索 / 404 */
.search-box { display: flex; gap: 10px; max-width: 520px; margin: 0 auto 40px; }
.search-box input[type="search"] {
  flex: 1; height: 50px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input[type="search"]:focus { border-color: rgba(255,106,0,.45); box-shadow: 0 0 0 4px rgba(255,106,0,.1); }
.search-box button { height: 50px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--orange-2), var(--orange)); }
.page-404 { padding: 100px 0 60px; text-align: center; }
.page-404 b { display: block; font-size: 96px; line-height: 1; font-weight: 800; background: linear-gradient(135deg, var(--orange), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-404 p { color: var(--muted); margin: 18px 0 28px; }

/* 下载页 */
.dl-hero { padding: 64px 0 40px; text-align: center; }
.dl-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 14px; }
.dl-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.dl-tabs { display: flex; justify-content: center; gap: 10px; margin: 30px 0 40px; flex-wrap: wrap; }
.dl-tabs button {
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .2s;
}
.dl-tabs button.active { background: linear-gradient(135deg, var(--orange-2), var(--orange)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(255,106,0,.26); }
.dl-panel { display: none; }
.dl-panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dl-card {
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 34px 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.dl-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.dl-card p { font-size: 13.5px; color: var(--muted); }
.dl-card .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: #9aa3ae; }

/* ============ 动效 ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 10px 24px rgba(20, 23, 26, .14);
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s, color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); color: #fff; }

/* 下载页架构链接 */
.dl-card .meta a {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12.5px;
  transition: background .2s;
}
.dl-card .meta a:hover { background: #ffe0c7; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ip, .ime-card { animation: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .skins { grid-template-columns: repeat(3, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 56px 0 80px; }
  .hero-visual { min-height: auto; order: 2; margin-top: 10px; }
  .hero-ip { max-width: 460px; margin: 0 auto; }
  .ime-card { left: 50%; transform: translateX(-50%); bottom: -10px; width: min(320px, 92%); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20,23,26,.08);
  }
  .nav-menu.open a { padding: 12px 14px; border-radius: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dl-card { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .skins { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .cta { padding: 46px 24px; border-radius: 22px; }
  .hero-sub { font-size: 15.5px; }
  .btn { height: 48px; padding: 0 22px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}
