/* ===== WinSCP 中文网 · 全站样式 ===== */
:root {
  --brand: #0f8a5f;
  --brand-dark: #0a6b48;
  --brand-light: #e6f4ee;
  --navy: #10243c;
  --text: #2b3a52;
  --muted: #5f7189;
  --bg: #f6f9f8;
  --card: #ffffff;
  --line: #e2eae6;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(16, 36, 60, .07);
  --shadow-hover: 0 12px 30px rgba(16, 36, 60, .14);
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 22px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.4; }
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--navy); }
.brand svg { flex: none; }
.brand small { font-size: 12px; font-weight: 400; color: var(--muted); }
.nav-links { display: flex; gap: 26px; list-style: none; padding: 0; }
.nav-links a { color: var(--text); font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #e7f4ee 0%, #f6f9f8 58%, #ffffff 100%);
  padding: 68px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 17px; color: var(--muted); }
.hero-badge {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--brand-dark);
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: .2s; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(15, 138, 95, .28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-meta b { color: var(--navy); font-size: 17px; display: block; }

/* 首页主视觉截图 */
.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 18px 40px rgba(16, 36, 60, .22);
}
.hero-shot figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .25s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--brand);
}

/* 协议标签 */
.proto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proto {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.proto b { display: block; color: var(--navy); font-size: 16px; }
.proto span { font-size: 13.5px; color: var(--muted); }

/* ===== 步骤 ===== */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li {
  position: relative; padding-left: 56px; margin-bottom: 24px;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #f2f7f4; color: var(--navy); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcfb; }

/* ===== 下载主卡 ===== */
.dl-hero {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow);
}
.dl-tag {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.dl-hero h2 { font-size: 26px; margin-bottom: 8px; }
.dl-hero .dl-meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.dl-hero > p { color: var(--text); font-size: 15px; }
.dl-hero .btn-row { justify-content: center; margin-top: 22px; }
.dl-checks {
  list-style: none; padding: 0; margin-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
  font-size: 14px; color: var(--muted);
}
.dl-checks li { position: relative; padding-left: 20px; }
.dl-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
@media (max-width: 620px) { .dl-hero { padding: 28px 20px; } .dl-hero h2 { font-size: 22px; } }
/* 锚点跳转时避开吸顶导航 */
section[id], h2[id], h3[id] { scroll-margin-top: 84px; }

/* ===== 网盘镜像卡片 ===== */
.mirror h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.mirror p { margin-bottom: 16px; font-size: 14.5px; color: var(--muted); }
.disk-tag { flex: none; font-size: 12px; font-weight: 600; color: #fff; padding: 3px 9px; border-radius: 6px; }
.disk-tag.baidu { background: #2e6be6; }
.disk-tag.quark { background: #4d6bfe; }
.disk-tag.xunlei { background: #ff6a00; }
.mirror .btn { width: 100%; text-align: center; padding: 11px 18px; font-size: 14.5px; margin-top: 6px; }
.mirror .btn-ghost { border-color: var(--brand); color: var(--brand); }
.mirror .btn-ghost:hover { background: var(--brand); color: #fff; }

/* ===== 代码 ===== */
pre {
  background: #10243c; color: #d6e6de; padding: 18px 20px; border-radius: 12px;
  overflow-x: auto; font-family: Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 1.9;
  margin: 14px 0;
}
code { background: #eef3f0; padding: 2px 6px; border-radius: 5px; font-size: 14px; color: var(--brand-dark); }
pre code { background: none; padding: 0; color: inherit; }

/* ===== 常见问题 ===== */
details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 14px;
}
details[open] { border-color: var(--brand); }
summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--brand); font-size: 20px; line-height: 1.2; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ===== 面包屑 ===== */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; color: #b6c4d2; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #0f8a5f 0%, #0a6b48 100%);
  color: #fff; text-align: center; padding: 60px 20px;
}
.cta h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .88); margin-bottom: 24px; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta .btn-primary:hover { background: #eef7f2; color: var(--brand-dark); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ===== 页脚 ===== */
.site-footer { background: var(--navy); color: #9db0c6; padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9db0c6; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7f93ab;
}
/* 页脚友链 */
.friendlinks { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 22px; }
.friendlinks h4 { font-size: 14px; }
.friendlinks ul { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; }
.friendlinks li { margin: 0; }
.friendlinks a { display: inline-block; font-size: 13.5px; }

/* ===== 内容区排版 ===== */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow); }
.article h2 { font-size: 24px; margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 22px 0 8px; }
.article p { margin-bottom: 12px; }
.article ul, .article ol { margin: 10px 0 16px; }
.article li { margin-bottom: 6px; }
.toc { background: #f2f7f4; border-radius: 12px; padding: 18px 22px; margin-bottom: 26px; }
.toc strong { display: block; color: var(--navy); margin-bottom: 8px; }
.toc ol { margin: 0; }

/* 提示框 */
.tip { background: #fff8e6; border-left: 4px solid #f0b429; border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 14.5px; margin: 14px 0; }
.warn { background: #fdecec; border-left: 4px solid #e05252; border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 14.5px; margin: 14px 0; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .g-3, .g-4, .proto-grid { grid-template-columns: repeat(2, 1fr); }
  .g-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0 20px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 340px; padding: 8px 20px 16px; }
  .nav-links li { border-bottom: 1px solid #f0f4f2; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 12px 0; }
}
@media (max-width: 620px) {
  .g-3, .g-4, .proto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 24px; }
  .article { padding: 24px 20px; }
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 27px; }
  .btn { width: 100%; text-align: center; }
}
