/* ===== AI 教程站 共享样式 ===== */
:root {
  --brand: #76b51b;        /* 菜鸟系绿 */
  --brand-dark: #5c8f14;
  --brand-soft: #f2f8e6;
  --ink: #3e3e3e;
  --ink-soft: #555;
  --border: #e6e6e6;
  --bg: #f5f5f5;
  --card: #fff;
  --code-bg: #f7f7f7;
  --nav-bg: #3c4142;
  --nav-fg: #ddd;
  --nav-active: #76b51b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.75 "PingFang SC","Microsoft YaHei","Hiragino Sans GB",Arial,sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ===== 站点头部导航 ===== */
.site-header { background: var(--nav-bg); }
.navbar {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; height: 58px;
}
.brand { display:flex; align-items:center; color:#fff; font-size:20px; font-weight:700; text-decoration:none; margin-right: 34px; white-space:nowrap;}
.brand svg { margin-right: 8px; }
.brand em { font-style: normal; color: #b7ec5a; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  color: var(--nav-fg); text-decoration: none; padding: 7px 13px; border-radius: 6px;
  font-size: 15px; transition: .15s; white-space: nowrap;
}
.nav-links a:hover { color:#fff; background:#4d5456; }
.nav-links a.active { color:#fff; background: var(--nav-active); font-weight:600; }
.nav-toggle { display:none; margin-left:auto; color:#fff; font-size:22px; background:none;border:none;cursor:pointer; }

/* ===== 分组下拉导航 ===== */
.nav-links .group { position:relative; }
.nav-links .g-label {
  color:var(--nav-fg); padding:7px 13px; border-radius:6px; font-size:15px; cursor:pointer;
  display:inline-block; transition:.15s; white-space:nowrap;
}
.nav-links .g-label .arr {
  display:inline-block; margin-left:5px; border:4px solid transparent; border-top-color:currentColor; transform:translateY(3px);
}
.nav-links .group:hover .g-label, .nav-links .g-label:hover { color:#fff; background:#4d5456; }
.nav-links .g-label.active { color:#fff; background:var(--nav-active); font-weight:600; }
.nav-links .g-menu {
  position:absolute; top:calc(100% + 6px); left:0; background:#fff; border:1px solid var(--border);
  border-radius:8px; min-width:186px; padding:6px; box-shadow:0 10px 26px rgba(0,0,0,.16);
  opacity:0; visibility:hidden; transform:translateY(8px); transition:.18s; z-index:90;
}
.nav-links .group:hover .g-menu { opacity:1; visibility:visible; transform:none; }
.nav-links .g-menu a {
  display:block; color:var(--ink); padding:8px 12px; border-radius:6px; font-size:14px; text-decoration:none; white-space:nowrap;
}
.nav-links .g-menu a:hover { background:var(--brand-soft); color:var(--brand-dark); }
.nav-links .g-menu a.active { color:var(--brand-dark); font-weight:600; background:var(--brand-soft); }

/* ===== 导航搜索框 ===== */
.searchbox { position:relative; margin-left:auto; align-items:center; padding:6px 0; }
.searchbox input {
  width:185px; padding:7px 14px 7px 32px; border:1px solid #4a5356; border-radius:999px;
  background:#32393b; color:#eee; font-size:13px; outline:none; transition:.2s;
}
.searchbox input::placeholder { color:#9aa6a8; }
.searchbox input:focus { background:#fff; color:#333; border-color:var(--brand); width:230px; }
.searchbox::before {
  content:""; position:absolute; left:11px; top:50%; width:9px; height:9px;
  border:1.6px solid #9aa6a8; border-radius:50%; transform:translateY(-62%); pointer-events:none;
}
.searchbox::after {
  content:""; position:absolute; left:18px; top:50%; width:5px; height:1.6px;
  background:#9aa6a8; transform:rotate(45deg) translate(2px,4px); pointer-events:none;
}
.sres {
  position:absolute; top:calc(100% + 8px); right:-90px; width:330px; max-height:430px; overflow:auto;
  background:#fff; border:1px solid var(--border); border-radius:10px; box-shadow:0 12px 30px rgba(0,0,0,.18);
  display:none; z-index:99;
}
.sres.open { display:block; padding:6px; }
.sres a { display:block; text-decoration:none; color:var(--ink); padding:8px 11px; border-radius:7px; font-size:13.5px; }
.sres a:hover { background:var(--brand-soft); }
.sres a i { display:block; font-style:normal; font-size:11.5px; color:#9aa3a3; margin-top:2px; }
.sres-empty { padding:12px; color:#999; font-size:13px; text-align:center; }

/* ===== 内容容器 ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 16px 46px; }
.crumbs { font-size:13px; color:#888; margin-bottom:14px; }
.crumbs a { color:#76a83a; text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }

/* ===== 教程页正文卡片 ===== */
.doc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 30px 38px 38px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.article-body { max-width: 100%; }

/* ===== 正文排版：一比一还原菜鸟正文样式 ===== */
.article-body h1 {
  font-size: 28px; line-height:1.4; color:#333; margin: 0 0 16px;
  padding-bottom: 14px; border-bottom: 2px solid var(--brand); font-weight:700;
}
.article-body h2 {
  font-size: 23px; line-height:1.4; color:#2f2f2f; margin: 30px 0 14px;
  padding-left: 12px; border-left: 5px solid var(--brand); font-weight:700;
}
.article-body h3 {
  font-size: 18px; color:#333; margin: 24px 0 10px; font-weight:700;
}
.article-body h4 { font-size: 16px; color:#333; margin:18px 0 8px; font-weight:700; }
.article-body p { margin: 12px 0; text-align: justify; }
.article-body strong { color:#0a0a0a; font-weight:700; }
.article-body em { color:#c0392b; }
.article-body a { color:#0570d6; text-decoration:none; word-break:break-all;}
.article-body a:hover { text-decoration:underline; }
.article-body hr { border:none; border-top:1px dashed #c8c8c8; margin:26px 0; }
.article-src { margin-top:28px; padding-top:14px; border-top:1px solid var(--border); font-size:13px; color:#888; }
.article-src a { color:#0570d6; text-decoration:none; word-break:break-all; }
.article-src a:hover { text-decoration:underline; }
.article-body ul, .article-body ol { margin: 12px 0; padding-left: 26px; }
.article-body li { margin: 6px 0; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body blockquote {
  margin: 16px 0; padding: 10px 16px; background: var(--brand-soft);
  border-left: 4px solid var(--brand); color:#4a4a4a; border-radius:0 6px 6px 0;
}
.article-body blockquote p { margin: 4px 0; }
.article-body img {
  max-width: 100%; height:auto; display:block; margin: 16px auto;
  border-radius: 6px; box-shadow:0 1px 6px rgba(0,0,0,.10);
}
.article-body img[width] { height:auto; }
.article-body table {
  width:100%; border-collapse: collapse; margin: 16px 0;
  border:1px solid var(--border); font-size:14px;
}
.article-body th, .article-body td {
  border: 1px solid var(--border); padding: 9px 13px; text-align:left; vertical-align:top;
}
.article-body th { background: var(--brand-soft); color:#3c3c3c; font-weight:700; }
.article-body tr:nth-child(even) td { background:#fafafa; }
.article-body pre {
  background: var(--code-bg); border:1px solid var(--border); border-left:4px solid var(--brand);
  padding: 14px 16px; border-radius: 6px; overflow-x:auto; margin:14px 0;
  font: 13px/1.7 Consolas,"Courier New",monospace; color:#333; white-space:pre;
}
.article-body code {
  background:#f3f3f3; border:1px solid #e2e2e2; border-radius:3px;
  padding:1px 6px; font:13px Consolas,monospace; color:#c7254e;
}
.article-body pre code { background:none;border:none;padding:0;color:inherit; }
.article-body .note, .article-body .warn, .article-body .tut-info { border-radius:6px; }

/* ===== 站点底部 ===== */
.site-footer { background:#2c3132; color:#aaa; margin-top: 30px; }
.footer-inner { max-width:1180px; margin:0 auto; padding: 34px 16px; display:flex; flex-wrap:wrap; gap:34px; }
.footer-col h4 { color:#fff; font-size:15px; margin:0 0 12px; font-weight:600; }
.footer-col a { display:block; color:#aaa; text-decoration:none; padding:4px 0; }
.footer-col a:hover{ color:#b7ec5a; }
.footer-bottom { border-top:1px solid #3a4041; text-align:center; padding:14px; font-size:12px; color:#777; }
.footer-bottom a{color:#8fcf3d;text-decoration:none;}

/* ===== 首页 ===== */
.hero {
  text-align:center; padding: 54px 16px 30px;
  background: linear-gradient(135deg,#3c5a10 0%, #76b51b 100%);
  color:#fff;
}
.hero h1 { font-size:34px; margin:0 0 10px; color:#fff; }
.hero p { font-size:16px; margin:0; color:#eaf5d8; }
.grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(255px,1fr)); gap:20px; padding:34px 0 20px; }
.card {
  background:var(--card); border:1px solid var(--border); border-radius:10px; overflow:hidden;
  text-decoration:none; color:inherit; transition:.18s; display:flex; flex-direction:column;
}
.card:hover { transform:translateY(-4px); box-shadow:0 8px 22px rgba(0,0,0,.12); border-color:#cde3a2; }
.card .thumb { height:165px; background:#eef4e0; display:flex; align-items:center; justify-content:center; overflow:hidden;}
.card .thumb img{ width:100%; height:100%; object-fit:cover; margin:0; display:block; box-shadow:none; border-radius:0;}
.card .body { padding:16px 18px 18px; flex:1; }
.card h3 { margin:0 0 6px; font-size:18px; color:#2f2f2f; }
.card p { margin:0; font-size:13px; color:#777; line-height:1.6; }
.card .tag { display:inline-block; margin-top:12px; color:var(--brand-dark); font-size:13px; font-weight:600; }
.section-title { font-size:22px; color:#333; margin:30px 0 6px; text-align:center;}
.section-sub{text-align:center;color:#888;margin:0 0 6px; font-size:14px;}
.stat-bar{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin:18px 0 8px;}
.stat{ display:flex; flex-direction:column; align-items:center; background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px 22px; text-decoration:none; color:#333; }
.stat b{ font-size:22px; color:var(--brand-dark); }
.stat span{ font-size:12px; color:#888; }
.stat-total { background:linear-gradient(135deg,var(--brand),var(--brand-dark)); border-color:transparent; }
.stat-total b{ color:#fff; font-size:26px; }
.stat-total span{ color:#eaf6d4; font-size:12px; }

/* ===== 下载中心 / 首页下载横幅 ===== */
.dl-banner{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:26px auto 4px; padding:14px 18px;
  background:linear-gradient(135deg,#3c5a10,#5c8f14); color:#fff; border-radius:10px; text-decoration:none;
  box-shadow:0 3px 12px rgba(0,0,0,.15); transition:.18s;
}
.dl-banner:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.18); }
.dl-banner strong{ font-size:17px; }
.dl-banner em{ font-style:normal; color:#d9f2b3; margin-left:auto; font-size:13px; }
.dl-ad{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; max-width:1180px; margin:20px auto 0;
  padding:14px 18px; background:linear-gradient(135deg,#f7bf2a,#f0980c); color:#3b2500; border-radius:10px;
  box-shadow:0 3px 12px rgba(0,0,0,.14);
}
.dl-ad-tag{ background:#3b2500; color:#ffd76b; font-size:12px; font-weight:700; padding:3px 9px; border-radius:999px; }
.dl-ad div{ flex:1; min-width:200px; }
.dl-ad a{ color:#3b2500; font-weight:700; text-decoration:none; border-bottom:2px dashed #3b2500; }

/* 下载页头部 */
.dl-head{ text-align:center; padding:8px 16px 6px; }
.dl-head-tag{ display:inline-block; background:var(--brand); color:#fff; font-size:13px; font-weight:700; padding:4px 14px; border-radius:999px; margin-bottom:10px; }
.dl-head h2{ font-size:30px; color:#2f2f2f; margin:0 0 8px; }
.dl-head p{ margin:0 auto; max-width:680px; color:#777; font-size:14px; line-height:1.7; }

/* 平台分节与卡片网格 */
.dl-wrap{ display:grid; grid-template-columns:216px 1fr; gap:24px; align-items:start; margin-top:6px; }
.dl-side{ position:sticky; top:76px; background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px 10px; display:flex; flex-direction:column; gap:2px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.dl-side-title{ font-size:12px; color:#999; font-weight:700; padding:2px 10px 8px; }
.dl-side a{ color:#555; font-size:13.5px; padding:7px 10px; border-radius:6px; text-decoration:none; display:flex; justify-content:space-between; align-items:center; transition:.13s; }
.dl-side a:hover{ background:var(--brand-soft); color:var(--brand-dark); }
.dl-side a b{ color:#a7a7a7; font-weight:600; font-size:12px; }
.dl-cat{ margin-bottom:34px; }
.dl-cat h3{ font-size:19px; color:#2f2f2f; margin:0 0 4px; display:flex; align-items:center; }
.dl-dot{ width:12px; height:12px; background:var(--brand); border-radius:3px; margin-right:10px; display:inline-block; }
.dl-count{ font-size:12px; color:#999; font-weight:400; margin-left:8px; }
.pkg-plat{ font-size:11px; color:#5c8f14; background:var(--brand-soft); border-radius:4px; padding:1px 8px; font-weight:700; }
.dl-callout{ margin:0 0 16px; padding:13px 16px; border:1px solid #cde3a2; background:#f5fbea; border-left:4px solid var(--brand); border-radius:8px; color:#3a4a15; font-size:13.5px; line-height:1.9; }
.dl-callout b{ color:var(--brand-dark); }
.pkg-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:16px; }
.pkg{
  background:var(--card); border:1px solid var(--border); border-radius:12px; padding:15px 17px;
  display:flex; flex-direction:column; gap:9px; box-shadow:0 1px 3px rgba(0,0,0,.05); transition:.18s;
  min-width:0;
}
.pkg:hover{ transform:translateY(-3px); box-shadow:0 8px 22px rgba(0,0,0,.11); border-color:#cde3a2; }
.pkg-head{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.pkg-name{
  font-size:13.5px; font-weight:700; color:#2f2f2f; line-height:1.45; flex:1; min-width:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.pkg-size{ white-space:nowrap; background:var(--brand-soft); color:var(--brand-dark); font-size:11.5px; font-weight:700; padding:2px 9px; border-radius:999px; align-self:flex-start; }
.pkg-desc{ font-size:12.5px; color:#777; margin:0; line-height:1.6; min-height:40px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pkg-meta{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-size:12px; color:#888; border-top:1px dashed var(--border); padding-top:9px; }
.pkg-ver{ color:var(--brand-dark); font-weight:700; }
.pkg .dl-btn{ margin-top:auto; text-align:center; }
.dl-side{ max-width:230px; }
.dl-btn{
  display:inline-block; background:var(--brand); color:#fff; padding:8px 0; width:100%;
  border-radius:8px; font-size:13.5px; font-weight:600; text-decoration:none; transition:.15s; box-sizing:border-box;
}
.dl-btn:hover{ background:var(--brand-dark); }
.dl-note{ margin:26px 0 8px; color:#888; font-size:13px; line-height:1.8; }
.dl-more{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:26px; padding:16px 18px;
  background:linear-gradient(135deg,#2f8fe0,#5fb0f0); color:#fff; border-radius:12px; text-decoration:none;
  box-shadow:0 3px 12px rgba(47,143,224,.22); transition:.18s;
}
.dl-more:hover{ transform:translateY(-2px); box-shadow:0 6px 20px rgba(47,143,224,.30); }
.dl-more-ico{ background:rgba(255,255,255,.22); font-size:12px; font-weight:700; padding:4px 11px; border-radius:999px; }
.dl-more-tx{ flex:1; min-width:200px; display:flex; flex-direction:column; }
.dl-more-tx b{ font-size:16px; }
.dl-more-tx em{ font-style:normal; font-size:12.5px; opacity:.85; }
.dl-more-btn{ background:#fff; color:#2f8fe0; font-size:13px; font-weight:700; padding:8px 18px; border-radius:8px; }
@media (max-width: 900px){ .dl-wrap{ grid-template-columns:1fr; } .dl-side{ position:static; flex-direction:row; flex-wrap:wrap; gap:6px; } .dl-side-title{ width:100%; padding:0 2px 6px; } .dl-side a{ border:1px solid var(--border); border-radius:999px; padding:4px 11px; } }
@media (max-width: 640px){ .pkg-grid{ grid-template-columns:1fr; } }
@media (max-width: 820px) {
  .nav-links { display:none; width:100%; position:absolute; top:58px; left:0; background:var(--nav-bg); padding:8px; flex-direction:column; z-index:50;}
  .nav-links.open { display:flex; }
  .navbar { flex-wrap:wrap; position:relative;}
  .nav-toggle { display:block; }
  .nav-links .group { position:static; }
  .nav-links .g-menu { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; margin:2px 0 8px 10px; background:#3a4041; border:none; }
  .nav-links .g-menu a { color:var(--nav-fg); }
  .nav-links .g-menu a:hover { background:#4d5456; color:#fff; }
  .searchbox { order:8; width:100%; margin:10px 0 6px; }
  .searchbox input, .searchbox input:focus { width:100%; }
  .searchbox::before, .searchbox::after { left:16px; }
  .searchbox::before { top:13px; }
  .searchbox::after { top:21px; }
  .sres { left:0; right:auto; width:100%; }
  .article-body h1{font-size:23px;}
  .doc-card{ padding:22px 18px; }
}

/* ===== 栏目带侧边栏布局 ===== */
.layout { display:flex; gap:22px; align-items:flex-start; }
.sidebar {
  width:236px; flex-shrink:0; background:var(--card); border:1px solid var(--border);
  border-radius:8px; overflow:hidden; position:sticky; top:14px; max-height: calc(100vh - 30px);
  display:flex; flex-direction:column;
}
.sidebar .s-head { background:var(--brand); color:#fff; font-size:15px; font-weight:700; padding:11px 14px; }
.sidebar nav { overflow-y:auto; padding:8px 0; }
.sidebar nav a {
  display:block; padding:7px 14px; font-size:13.5px; color:#444; text-decoration:none;
  border-left:3px solid transparent; line-height:1.4;
}
.sidebar nav a:hover { background:#f4f9ec; color:#5c8f14; }
.sidebar nav a.active { background:#f0f7e2; color:var(--brand-dark); border-left-color:var(--brand); font-weight:600; }
.sidebar-toggle{display:none;}
@media (max-width: 900px) {
  .layout { flex-direction:column; }
  .sidebar { width:100%; position:static; max-height:none; }
  .sidebar nav { max-height:340px; }
}