/* ==========================================================================
   AMNews SEO / Responsive Theme  -  YzmCMS V7.x
   单套模板自适应 PC / 平板 / 手机，零外部字体、零 jQuery
   ========================================================================== */

:root {
  --navy: #0d2438;
  --navy-2: #14395a;
  --ink: #1d2a38;
  --muted: #6d7c8d;
  --line: #e5ebf2;
  --bg: #f3f6fa;
  --card: #ffffff;
  --accent: #ff6a1f;
  --accent-dark: #dd520c;
  --accent-soft: #fff3ec;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(12, 36, 56, .06);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------------------------------------------------------------- topbar */
.topbar { background: var(--navy); color: #a8b8c9; font-size: 12.5px; }
.topbar .wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar b { color: var(--accent); font-weight: 700; letter-spacing: .4px; }
.topbar a { color: #cbd6e3; margin-left: 18px; }
.topbar a:hover { color: var(--accent); }
.topbar-right { display: flex; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { max-height: 48px; width: auto; }
.logo-text { line-height: 1.15; }
.logo-text strong { display: block; font-size: 27px; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.logo-text strong em { font-style: normal; color: var(--accent); }
.logo-text span { display: block; font-size: 10px; letter-spacing: 2.4px; color: var(--muted); margin-top: 5px; }

.search { flex: 1 1 420px; max-width: 520px; margin-left: auto; }
.search form { display: flex; height: 42px; border: 2px solid var(--accent); border-radius: 6px; overflow: hidden; background: #fff; }
.search input {
  flex: 1; min-width: 0; border: 0; padding: 0 14px; outline: none;
  color: var(--ink); background: transparent;
}
.search button { flex: 0 0 92px; border: 0; background: var(--accent); color: #fff; font-size: 15px; letter-spacing: 2px; }
.search button:hover { background: var(--accent-dark); }
.search-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.search-hint a { color: var(--muted); margin-right: 12px; }
.search-hint a:hover { color: var(--accent); }

/* ------------------------------------------------------------------- nav */
.main-nav { background: var(--navy-2); }
.main-nav .wrap { position: relative; display: flex; align-items: stretch; min-height: 50px; }
.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff; font-size: 22px;
  padding: 8px 12px; line-height: 1;
}
.nav-list { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; height: 50px; padding: 0 20px;
  color: #e8eef5; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { background: rgba(255,255,255,.09); color: #fff; }
.nav-list > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.subnav {
  display: none; position: absolute; left: 0; top: 50px; z-index: 30; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--accent);
  box-shadow: 0 10px 26px rgba(8, 26, 44, .16); padding: 6px 0;
}
.nav-list > li:hover > .subnav, .nav-list > li:focus-within > .subnav { display: block; }
.subnav a { display: block; padding: 9px 18px; font-size: 14px; color: var(--ink); }
.subnav a:hover { background: var(--accent-soft); color: var(--accent); }

/* --------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 24px; align-items: start; padding: 24px 0 40px; }
.layout-flush { padding-top: 0; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.page-title { font-size: 26px; line-height: 1.4; color: var(--navy); }
.search-wide { max-width: none; margin: 0; }
.search-wide form { max-width: 520px; }
.content { min-width: 0; }
.sidebar { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.sidebar > * { min-width: 0; }
/* grid gap 已负责间距，避免与 .card + .card / .ad-box 的 margin 叠加 */
.sidebar > .card + .card, .sidebar > .ad-box { margin-top: 0; }
main:focus { outline: none; }

/* --------------------------------------------------------------- crumb */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumb li + li::before { content: "/"; color: #bcc7d3; margin-right: 8px; }
.crumb a:hover { color: var(--accent); }
.crumb [aria-current="page"] { color: var(--ink); }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.card-head h2, .section-head h2 { font-size: 19px; font-weight: 700; color: var(--navy); position: relative; padding-left: 13px; }
.card-head h2::before, .section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px; background: var(--accent);
}
.more { font-size: 13px; color: var(--muted); }
.more:hover { color: var(--accent); }

.section { margin-bottom: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------- home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 20px; margin: 24px 0 28px; }
.hero-lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.hero-lead a.hero-img { display: block; aspect-ratio: 16/8.2; overflow: hidden; background: #e9eef4; }
.hero-lead a.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-lead:hover a.hero-img img { transform: scale(1.03); }
.hero-lead .hero-txt { padding: 18px 22px 22px; }
.hero-lead h2 { font-size: 22px; line-height: 1.45; font-weight: 700; color: var(--navy); }
.hero-lead h2 a:hover { color: var(--accent); }
.hero-lead p { color: var(--muted); font-size: 14px; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }

.hero-feed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.hero-feed h2 { font-size: 17px; color: var(--navy); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hero-feed li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.hero-feed li:last-child { border-bottom: 0; }
.hero-feed li .dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-feed li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-feed time { flex: 0 0 auto; font-size: 12px; color: #9aa8b7; }

.home-h1 { font-size: 27px; line-height: 1.4; color: var(--navy); margin: 26px 0 4px; }
.home-desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; max-width: 900px; }

/* ------------------------------------------------------------- tile grid */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tile a.tile-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: #e9eef4; }
.tile a.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover a.tile-img img { transform: scale(1.04); }
.tile-body { padding: 14px 16px 16px; }
.tile-body h3 { font-size: 15.5px; line-height: 1.55; font-weight: 600; min-height: 48px; }
.tile-body h3 a:hover { color: var(--accent); }
.tile-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #98a6b6; margin-top: 10px; }

/* ----------------------------------------------------------- news rows */
.news-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.news-row { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-row:first-child { padding-top: 0; }
.news-row:last-child { border-bottom: 0; padding-bottom: 0; }
.news-row-img { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 6px; background: #e9eef4; }
.news-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-row:hover .news-row-img img { transform: scale(1.04); }
.news-row h3 { font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--navy); }
.news-row h3 a:hover { color: var(--accent); }
.news-row p { color: var(--muted); font-size: 13.5px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12.5px; color: #98a6b6; margin-top: 12px; }
.news-meta a { color: var(--muted); }
.news-meta a:hover { color: var(--accent); }
.inline-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.inline-tags a { background: var(--accent-soft); color: var(--accent-dark); border-radius: 3px; padding: 1px 8px; font-size: 12px; }

/* -------------------------------------------------------------- textlist */
.text-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.text-list li:last-child { border-bottom: 0; }
.text-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-list time { flex: 0 0 auto; font-size: 12px; color: #9aa8b7; }
.text-list .num { flex: 0 0 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 4px; background: #eef2f7; color: var(--muted); font-size: 12px; font-weight: 700; }
.text-list li:nth-child(1) .num { background: var(--accent); color: #fff; }
.text-list li:nth-child(2) .num { background: #ff9a5c; color: #fff; }
.text-list li:nth-child(3) .num { background: #ffc49b; color: #fff; }

/* --------------------------------------------------------- company list */
.company-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.company-list li { min-width: 0; }
.company-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfe; font-size: 13.5px; transition: border-color .18s ease, background .18s ease; }
.company-list a:hover { border-color: var(--accent); background: var(--accent-soft); }
.company-list img { flex: 0 0 56px; width: 56px; height: 42px; object-fit: cover; border-radius: 4px; background: #eef2f7; }
.company-list span { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }

.flag { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; line-height: 1.6; padding: 0 6px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }

/* ------------------------------------------------------------- tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 5px; background: #f4f7fb; border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 13px; font-size: 13.5px; color: #40536a;
}
.tag-cloud a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-cloud a small { color: #9aa8b7; font-size: 11px; }
.tag-cloud a:hover small { color: #ffe4d3; }
.tag-cloud-lg a { font-size: 15px; padding: 8px 18px; }

/* ------------------------------------------------------------ pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pagination a, .pagination .curpage { display: inline-block; min-width: 34px; padding: 6px 11px; text-align: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #47596e; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .curpage, .pagination .listpage.curpage { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .pageinfo { color: var(--muted); margin-right: 10px; }
.pagination .pageinfo strong { color: var(--accent); }

/* --------------------------------------------------------------- article */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.article > h1 { font-size: 29px; line-height: 1.45; font-weight: 800; color: var(--navy); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--muted); margin: 16px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-meta a { color: var(--muted); }
.article-meta a:hover { color: var(--accent); }
.article-summary { background: #f6f9fc; border-left: 3px solid var(--accent); padding: 14px 18px; color: #4a5b6d; font-size: 14.5px; margin: 20px 0 0; border-radius: 0 6px 6px 0; }
.article-body { font-size: 16px; line-height: 1.95; color: #24313f; padding-top: 18px; overflow-wrap: break-word; }
.article-body p { margin: 0 0 18px; }
.article-body img { max-width: 100%; height: auto; margin: 12px auto; border-radius: 6px; }
.article-body h2 { font-size: 22px; color: var(--navy); margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 18px; color: var(--navy); margin: 24px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 6px 0; }
.article-body a { color: var(--accent-dark); text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; }
.article-body blockquote { margin: 0 0 18px; padding: 12px 18px; background: #f6f9fc; border-left: 3px solid var(--accent); color: #4a5b6d; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-tags .label { font-size: 13px; color: var(--muted); }
.article-tags a { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #ffddc8; border-radius: 20px; padding: 4px 14px; font-size: 13.5px; }
.article-tags a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.prenext { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.prenext a { color: var(--ink); }
.prenext a:hover { color: var(--accent); }
.read-tips { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 6px; padding: 18px; text-align: center; color: var(--accent-dark); }

.related-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.related-box li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
.related-box li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-box time { flex: 0 0 auto; font-size: 12px; color: #9aa8b7; }

/* -------------------------------------------------------- channel / page */
.cat-intro { color: var(--muted); font-size: 14px; margin-top: 10px; }
.page-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.page-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.page-side a { display: block; padding: 13px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.page-side a:last-child { border-bottom: 0; }
.page-side a.current { background: var(--navy); color: #fff; font-weight: 700; }
.page-side a:hover:not(.current) { background: var(--accent-soft); color: var(--accent-dark); }
.page-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.page-main h1 { font-size: 26px; color: var(--navy); margin-bottom: 18px; }
.page-content { font-size: 16px; line-height: 1.95; }
.page-content img { max-width: 100%; height: auto; }

.channel-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.channel-block h2 { font-size: 18px; color: var(--navy); }
.channel-block .tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.channel-block .tile-grid a { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-block .tile-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; margin-bottom: 8px; background: #e9eef4; }

/* ------------------------------------------------------ product / download */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e9eef4; }
.product-card .p-body { padding: 14px 16px 18px; }
.product-card h3 { font-size: 15.5px; line-height: 1.5; }
.product-card .price { color: var(--accent); font-size: 18px; font-weight: 700; margin-top: 10px; }
.down-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.down-row:last-child { border-bottom: 0; }
.down-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: #e9eef4; }
.down-row h3 { font-size: 18px; color: var(--navy); }
.down-row .d-meta { font-size: 12.5px; color: #98a6b6; margin: 8px 0; }
.down-row p { font-size: 14px; color: var(--muted); }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 11px 26px; border-radius: 6px; font-size: 15px; }
.btn:hover { background: var(--accent-dark); color: #fff; }

/* ------------------------------------------------------------- sitemap */
.sitemap-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sitemap-cats h2 { font-size: 17px; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.sitemap-cats li { font-size: 14px; padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------- notice */
.notice { text-align: center; padding: 60px 20px; color: var(--muted); }
.notice h1 { font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.notice .btn { margin-top: 20px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 14px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #9fb0c2; margin-top: 20px; }
.site-footer .wrap { padding: 36px 0 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; }
.footer-brand { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; line-height: 1.9; max-width: 620px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; }
.footer-links a { color: #c9d6e4; font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer-tags a { font-size: 12.5px; color: #a9b9ca; background: rgba(255,255,255,.06); padding: 3px 11px; border-radius: 14px; }
.footer-tags a:hover { background: var(--accent); color: #fff; }
.footer-tags h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 22px; font-size: 12.5px; color: #8395a9; }
.footer-bottom a { color: #a9b9ca; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom .beian { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer-bottom .beian span { white-space: normal; }
.site-footer .wrap + .wrap { padding-top: 0; }

.backtop {
  position: fixed; right: 22px; bottom: 26px; z-index: 60; width: 42px; height: 42px;
  border: 0; border-radius: 8px; background: var(--navy); color: #fff; font-size: 18px;
  box-shadow: 0 6px 18px rgba(8, 26, 44, .25); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.backtop.show { opacity: 1; visibility: visible; }
.backtop:hover { background: var(--accent); }

/* ---------------------------------------------------------- breakpoints */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .channel-block .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-list > li > a { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitemap-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, var(--maxw)); }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar-left { display: none; }
  .site-header .wrap { min-height: 0; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .logo img { max-height: 38px; }
  .logo-text strong { font-size: 23px; }
  .search { flex: 1 1 100%; max-width: none; order: 3; }
  .main-nav .wrap { min-height: 0; flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-list { display: none; flex: 1 1 100%; flex-direction: column; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { height: auto; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.09); }
  .nav-list > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .subnav { display: block; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--accent); padding: 0 0 0 12px; background: rgba(255,255,255,.04); }
  .subnav a { color: #d4e0ec; padding: 8px 10px; }
  .subnav a:hover { background: transparent; color: var(--accent); }
  .layout { padding-top: 18px; }
  .home-h1 { font-size: 22px; }
  .card { padding: 18px; }
  .article { padding: 20px; }
  .article > h1 { font-size: 23px; }
  .article-body { font-size: 15.5px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-side { display: flex; flex-wrap: wrap; }
  .page-side a { border-bottom: 0; border-right: 1px solid var(--line); }
  .news-row { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
  .news-row h3 { font-size: 16px; }
  .news-row p { display: none; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .related-box { grid-template-columns: minmax(0, 1fr); }
  .sitemap-cats { grid-template-columns: minmax(0, 1fr); }
  .channel-block .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .tiles, .product-grid, .sidebar { grid-template-columns: minmax(0, 1fr); }
  .news-row { grid-template-columns: 108px minmax(0, 1fr); }
  .news-row h3 { font-size: 15px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .down-row { grid-template-columns: 100px minmax(0, 1fr); }
  .hero-lead h2 { font-size: 19px; }
  .section-head h2 { font-size: 19px; }
  .card-head h2 { font-size: 17px; }
  .tile-body h3 { min-height: 0; }
  .tag-cloud a { font-size: 12.5px; padding: 4px 10px; }
  .pagination { gap: 4px; }
  .pagination a, .pagination .curpage { min-width: 30px; padding: 5px 8px; }
  .page-main { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .main-nav, .site-footer, .sidebar, .backtop, .search, .pagination { display: none !important; }
  body { background: #fff; }
  .layout { display: block; }
  .card, .article { box-shadow: none; border: 0; }
}

/* 侧栏广告/公告位 */
.ad-box { margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; font-size: 13px; line-height: 1.75; color: var(--muted); }
.ad-box a { color: var(--navy); font-weight: 600; text-decoration: none; }
.ad-box a:hover { text-decoration: underline; }
.topbar-slogan { margin-left: 12px; }

/* 单页底部：版权声明 / 免责声明 */
.legal-block { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-block h2 { font-size: 20px; color: var(--navy); margin: 28px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.legal-block h2:first-child { margin-top: 0; }
.legal-block ol { margin: 0; padding-left: 22px; }
.legal-block li { margin-bottom: 11px; font-size: 15px; line-height: 1.85; color: #4b5c6e; }
.legal-block li::marker { color: var(--accent); font-weight: 700; }
.legal-block li strong { color: var(--navy); }
.legal-block a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.legal-wechat { color: var(--accent-dark); background: var(--accent-soft); padding: 1px 7px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .5px; }
@media (max-width: 520px) {
  .legal-block { margin-top: 24px; padding-top: 20px; }
  .legal-block li { font-size: 14px; }
}
