/*
Theme Name: 54iter IT Portal
Theme URI: https://www.54iter.cn/
Author: 54iter
Description: A focused technical blog theme for cloud computing, databases and server operations.
Version: 0.6.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: 54iter-tech
*/

:root {
  --ink: #17212b;
  --muted: #667482;
  --line: #dfe6eb;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --blue: #1464c0;
  --blue-dark: #0b3d78;
  --green: #20805b;
  --code: #101820;
  --shadow: 0 12px 32px rgba(24, 42, 58, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .content-wrap, .site-footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 7px; font-weight: 800; letter-spacing: 0; }
.brand-name { font-weight: 750; font-size: 20px; letter-spacing: 0; }
.brand-tagline { color: var(--muted); font-size: 12px; margin-left: 8px; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-size: 14px; font-weight: 650; }
.main-nav a { display: block; padding: 9px 12px; border-radius: 4px; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); background: #edf5fb; text-decoration: none; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 7px 10px; font: inherit; cursor: pointer; }
.subnav-wrap { background: #17212b; border-bottom: 1px solid #253746; }
.channel-bar { width: min(1180px, calc(100% - 40px)); min-height: 36px; display: flex; align-items: center; gap: 3px; margin: 0 auto; overflow-x: auto; }
.channel-bar a { flex: 0 0 auto; padding: 7px 13px; color: #d7e2e9; font-size: 12px; font-weight: 650; }
.channel-bar a:hover { color: #fff; background: #243746; text-decoration: none; }
.breadcrumbs { width: 100%; display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-navigation span { display: block; color: var(--muted); font-size: 12px; }
.post-navigation a { display: inline-block; margin-top: 4px; color: var(--ink); font-size: 14px; font-weight: 700; }
.content-wrap { padding: 30px 0 52px; }
.home-wrap { padding-top: 28px; }
.hero-band { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 36px; align-items: center; padding: 54px 0 38px; }
.hero-copy h1 { margin-top: 14px; font-size: clamp(35px, 5vw, 64px); letter-spacing: -.02em; }
.hero-copy h1 strong { color: var(--blue); font-weight: 800; }
.hero-copy > p { max-width: 600px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button-quiet { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button-quiet:hover { color: var(--blue); background: var(--paper); }
.hero-terminal { overflow: hidden; border-radius: 7px; background: var(--code); box-shadow: 0 18px 40px rgba(16, 24, 32, .18); transform: rotate(1deg); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; color: #94a6b4; background: #1c2b36; font: 12px/1.2 Consolas, monospace; }
.terminal-bar i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #e77d62; }
.terminal-bar i:nth-child(2) { background: #e3bd5f; }
.terminal-bar i:nth-child(3) { background: #6bc48c; }
.terminal-bar span { margin-left: 8px; }
.hero-terminal pre { margin: 0; min-height: 250px; padding: 28px; color: #cce4f4; background: transparent; font-size: 15px; }
.topic-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 12px 0 52px; }
.topic-strip span { padding: 15px 16px; color: var(--muted); font-size: 14px; text-align: center; border-right: 1px solid var(--line); }
.topic-strip span:last-child { border-right: 0; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.home-section-heading h2 { margin: 3px 0 0; }
.home-section-heading > a { margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.tool-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 52px; padding: 30px 34px; color: #fff; background: var(--blue-dark); }
.tool-callout h2 { margin: 4px 0 5px; color: #fff; }
.tool-callout p { margin: 0; color: #c3d9eb; }
.tool-callout .button { flex: 0 0 auto; background: #fff; color: var(--blue-dark); }
.portal-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 30px; align-items: center; padding: 22px 0 24px; }
.portal-hero .hero-copy h1 { margin: 8px 0 8px; font-size: clamp(27px, 3.5vw, 44px); letter-spacing: 0; }
.portal-hero .hero-copy h1 strong { color: var(--blue); }
.portal-hero .hero-copy > p { max-width: 620px; color: var(--muted); font-size: 15px; margin: 0; }
.hero-feature { overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-image { display: block; height: 168px; background: #d9e7ef; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 17px 20px 18px; }
.feature-body h2 { margin: 5px 0 6px; font-size: 21px; }
.feature-body h2 a { color: var(--ink); }
.feature-body p { color: var(--muted); margin: 0 0 12px; }
.read-more { font-size: 13px; font-weight: 750; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.hero-stats b { color: var(--ink); font-size: 20px; margin-right: 3px; }
.portal-nav { display: grid; grid-template-columns: repeat(6, 1fr); margin: 8px 0 34px; border: 1px solid var(--line); background: var(--paper); }
.portal-nav a { display: flex; flex-direction: column; gap: 3px; padding: 14px 15px; border-right: 1px solid var(--line); }
.portal-nav a:last-child { border-right: 0; }
.portal-nav b { color: var(--ink); font-size: 17px; }
.portal-nav span { color: var(--muted); font-size: 12px; }
.portal-nav a:hover { background: #f0f6fa; text-decoration: none; }
.portal-section, .channel-section { margin-top: 34px; }
.news-section { margin-top: 58px; }
.section-note { color: var(--muted); font-size: 13px; }
.signal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.signal-column { padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.signal-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.signal-title h3 { margin: 0; font-size: 21px; }
.signal-title a { font-size: 13px; font-weight: 700; }
.signal-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.signal-item:last-of-type { border-bottom: 0; }
.signal-item span { color: var(--green); font: 12px Consolas, monospace; }
.signal-item b { font-size: 14px; line-height: 1.5; }
.signal-item:hover { color: var(--blue); text-decoration: none; }
.empty-signal { color: var(--muted); font-size: 14px; margin: 20px 0 4px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 4px 0 0; }
.section-heading > a { font-size: 14px; font-weight: 700; }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.channel-card { min-height: 165px; display: flex; flex-direction: column; padding: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.channel-card:hover { border-color: #9bbbd2; text-decoration: none; transform: translateY(-2px); transition: transform .15s ease; }
.channel-index { color: var(--green); font: 12px Consolas, monospace; }
.channel-card h3 { margin: 14px 0 4px; font-size: 18px; }
.channel-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.channel-card .read-more { margin-top: auto; padding-top: 18px; }
.portal-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 58px; padding: 34px 38px; color: #fff; background: linear-gradient(115deg, #0b3d78, #1464c0); }
.portal-callout h2 { margin: 5px 0; color: #fff; }
.portal-callout p { margin: 0; color: #c7dff2; }
.portal-callout .button { flex: 0 0 auto; color: var(--blue-dark); background: #fff; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.page-intro { margin-bottom: 26px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.3; letter-spacing: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); margin: 8px 0 12px; }
h2 { font-size: 25px; margin: 34px 0 14px; }
h3 { font-size: 19px; margin: 25px 0 10px; }
.lead { color: var(--muted); font-size: 18px; max-width: 760px; }
.post-card, .tool-card, .sidebar-section, .article-shell { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); margin-bottom: 20px; }
.post-thumb { min-height: 174px; background: #dce8ef; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 22px 24px; }
.post-card h2 { font-size: 22px; margin: 4px 0 8px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--blue); text-decoration: none; }
.meta { color: var(--muted); font-size: 13px; }
.excerpt { color: #455563; margin: 12px 0 0; }
.article-shell { padding: clamp(24px, 5vw, 58px); }
.article-header { max-width: 820px; margin-bottom: 28px; }
.article-header h1 { font-size: clamp(31px, 5vw, 52px); }
.article-content { max-width: 820px; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 1.15em; }
.article-content li { margin: .35em 0; }
.article-content blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--blue); background: #edf5fc; color: #344a5e; }
pre { overflow-x: auto; background: var(--code); color: #e9f1f6; padding: 18px 20px; border-radius: 5px; line-height: 1.55; font-size: 14px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
:not(pre) > code { color: #9b3b26; background: #fff1ec; padding: 2px 5px; border-radius: 3px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-content th, .article-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: #f0f5f8; }
.sidebar-section { padding: 20px; margin-bottom: 20px; }
.sidebar-section h2 { margin: 0 0 12px; font-size: 17px; }
.sidebar-section ul { margin: 0; padding-left: 18px; }
.sidebar-section li { margin: 5px 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { width: 100%; border: 1px solid var(--line); padding: 9px 10px; font: inherit; }
.button { display: inline-block; border: 0; padding: 9px 14px; color: #fff; background: var(--blue); font-weight: 700; cursor: pointer; }
.button:hover { color: #fff; background: var(--blue-dark); text-decoration: none; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-card { padding: 23px; }
.tool-card h2 { font-size: 21px; margin: 0 0 8px; }
.tool-type { color: var(--green); font-size: 12px; font-weight: 750; }
.pagination { display: flex; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--line); background: var(--paper); }
.site-footer { color: #cad5dd; background: #17212b; }
.site-footer-inner { padding: 42px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; font-size: 13px; }
.site-footer-inner strong { color: #fff; font-size: 15px; }
.site-footer-inner p { margin: 7px 0 0; line-height: 1.8; }
.site-footer-inner a { color: #b6d8f5; }
.channel-page { padding-top: 32px; }
.channel-hero { padding: 36px 0 34px; border-bottom: 1px solid var(--line); }
.channel-hero h1 { margin: 6px 0 10px; font-size: clamp(34px, 5vw, 58px); }
.channel-meta { margin-top: 20px; color: var(--green); font: 13px Consolas, monospace; }
.menu-toggle b { font-size: 0; }
.menu-toggle span { display: block; width: 17px; height: 2px; margin: 3px auto; background: currentColor; }
.site-footer a { color: #b6d8f5; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 17px 0; gap: 14px; }
  .brand-tagline { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { gap: 8px 18px; padding-bottom: 7px; }
  .content-wrap { padding-top: 28px; }
  .hero-band { grid-template-columns: 1fr; padding-top: 20px; }
  .portal-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 22px; }
  .portal-nav { grid-template-columns: repeat(3, 1fr); }
  .portal-nav a:nth-child(3n) { border-right: 0; }
  .portal-nav a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid { grid-template-columns: 1fr; }
  .hero-terminal { transform: none; }
  .topic-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 34px; }
  .topic-strip span:nth-child(2) { border-right: 0; }
  .topic-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tool-callout { align-items: flex-start; flex-direction: column; padding: 25px; }
  .portal-callout { align-items: flex-start; flex-direction: column; padding: 28px 25px; }
  .content-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-thumb { min-height: 190px; }
  .tool-grid { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .channel-grid { grid-template-columns: 1fr; }
  .portal-nav a { padding: 16px; }
  .portal-nav { grid-template-columns: repeat(2, 1fr); }
  .portal-nav a:nth-child(3n) { border-right: 1px solid var(--line); }
  .portal-nav a:nth-child(2n) { border-right: 0; }
  .portal-nav a:nth-child(-n+3) { border-bottom: 0; }
  .portal-nav a:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .hero-stats { gap: 10px 18px; }
}

/* Dense three-column portal homepage */
.portal-home { padding-top: 18px; }
.portal-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.portal-toolbar h1 { margin: 2px 0 0; font-size: 25px; }
.portal-toolbar p { margin: 0 0 2px; color: var(--muted); font-size: 13px; }
.portal-columns {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.portal-column { min-width: 0; }
.portal-panel {
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.panel-heading {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 { margin: 0; font-size: 16px; }
.panel-heading > span, .panel-heading > a { color: var(--muted); font-size: 10px; font-weight: 750; }
.portal-profile { padding: 18px; }
.profile-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}
.portal-profile h2 { margin: 0 0 5px; font-size: 17px; }
.portal-profile p, .tool-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.channel-menu a, .quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.channel-menu a:last-child, .quick-links a:last-child { border-bottom: 0; }
.channel-menu a:hover, .quick-links a:hover { color: var(--blue); background: #f1f6fa; text-decoration: none; }
.channel-menu span { min-width: 23px; color: var(--muted); text-align: right; font: 11px Consolas, monospace; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { border-bottom: 1px solid var(--line); }
.archive-list li:last-child { border-bottom: 0; }
.archive-list a { display: inline-block; padding: 9px 5px 9px 14px; color: var(--ink); font-size: 12px; }
.archive-list a:hover { color: var(--blue); text-decoration: none; }
.portal-numbers > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.portal-numbers span { padding: 13px 5px; color: var(--muted); font-size: 10px; border-right: 1px solid var(--line); }
.portal-numbers span:last-child { border-right: 0; }
.portal-numbers b { display: block; color: var(--ink); font-size: 18px; }
.focus-image { display: block; height: 255px; overflow: hidden; background: #dce8ef; }
.focus-image img { width: 100%; height: 100%; object-fit: cover; }
.focus-copy { padding: 17px 18px 19px; }
.focus-copy h3 { margin: 6px 0 7px; font-size: 24px; }
.focus-copy h3 a, .compact-post h3 a { color: var(--ink); }
.focus-copy h3 a:hover, .compact-post h3 a:hover { color: var(--blue); text-decoration: none; }
.focus-copy p { margin: 0 0 9px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.article-panel { padding-bottom: 2px; }
.compact-post {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}
.compact-post:last-child { border-bottom: 0; }
.compact-thumb { height: 78px; overflow: hidden; background: #dce8ef; }
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-post h3 { margin: 3px 0 3px; font-size: 16px; line-height: 1.45; }
.compact-post p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.timeline-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item time { color: var(--green); font: 11px Consolas, monospace; }
.timeline-item b { font-size: 13px; line-height: 1.5; }
.timeline-item:hover { color: var(--blue); text-decoration: none; }
.rank-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 11px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.rank-item:last-child { border-bottom: 0; }
.rank-item strong { color: var(--blue); font: 700 14px Consolas, monospace; }
.rank-item span { font-size: 13px; line-height: 1.5; }
.rank-item:hover { color: var(--blue); text-decoration: none; }
.side-story { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; padding: 11px 14px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.side-story:last-child { border-bottom: 0; }
.side-story time { color: var(--green); font: 10px Consolas, monospace; text-align: right; }
.side-story:hover { color: var(--blue); text-decoration: none; }
.panel-empty { margin: 0; padding: 18px 14px; color: var(--muted); font-size: 13px; }
.tool-panel { padding-bottom: 15px; }
.tool-panel p { padding: 14px 15px 11px; }
.tool-panel .button { margin-left: 15px; padding: 7px 11px; font-size: 12px; }

@media (max-width: 980px) {
  .portal-columns { grid-template-columns: 190px minmax(0, 1fr); }
  .portal-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 700px) {
  .portal-toolbar { align-items: flex-start; flex-direction: column; gap: 2px; }
  .portal-columns { grid-template-columns: 1fr; }
  .portal-left { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .portal-profile { display: none; }
  .portal-left .portal-panel { margin-bottom: 0; }
  .portal-main { grid-row: 1; }
  .portal-left { grid-row: 2; }
  .portal-right { grid-row: 3; grid-column: auto; grid-template-columns: 1fr; gap: 0; }
  .focus-image { height: 210px; }
  .post-navigation { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portal-left { grid-template-columns: 1fr; }
  .compact-post { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .compact-thumb { height: 68px; }
  .compact-post p { display: none; }
}
/* ============ 响应式加固 responsive hardening ============ */

/* 1. 全局横向溢出防护：任何超出视口的元素不再产生横向滚动条 */
html, body { overflow-x: hidden; }

/* 2. 嵌入媒体自适应（视频/iframe 溢出是移动端常见问题） */
img, video, iframe, embed, object { max-width: 100%; height: auto; }

/* 3. 文章正文长单词/长 URL 自动断行 */
.article-content { overflow-wrap: break-word; }

/* 4. 代码块移动端横向滚动优化 */
pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 5. 频道栏移动端滚动体验（隐藏滚动条、惯性滚动） */
.channel-bar { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.channel-bar::-webkit-scrollbar { display: none; }

/* 6. 文章页移动端优化 */
@media (max-width: 700px) {
  /* 表格改为块级横向滚动，避免撑破视口 */
  .article-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 终端装饰块在手机上收缩 */
  .hero-terminal pre { min-height: 0; padding: 16px 18px; font-size: 13px; }
  /* 文章内边距与标题缩放 */
  .article-shell { padding: 26px 18px; }
  .article-header h1 { font-size: 27px; }
  .article-header { margin-bottom: 20px; }
  .post-navigation a { font-size: 13px; }
}

/* 7. 平板区间（981–1100px）三栏门户改为两栏 + 右栏下沉，主栏不再被挤压 */
@media (min-width: 981px) and (max-width: 1100px) {
  .portal-columns { grid-template-columns: 200px minmax(0, 1fr); }
  .portal-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* 8. 小屏手机（<=480px）微调 */
@media (max-width: 480px) {
  .focus-image { height: 190px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .portal-toolbar h1 { font-size: 21px; }
  .portal-panel .panel-heading h2 { font-size: 15px; }
  .timeline-item, .rank-item, .side-story { padding: 10px 12px; }
  .channel-menu a, .quick-links a { padding: 9px 12px; }
  .portal-numbers b { font-size: 16px; }
}
/* ============ 排版统一 typography unification ============ */

/* 1. 页面主标题统一字号节奏：文章页 / 分类页 / 归档页 / 首页一致 */
.article-header h1,
.channel-hero h1,
.page-intro h1,
.portal-toolbar h1 {
  font-size: clamp(27px, 4vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* 2. 分类页 hero 去掉「横幅感」，与文章页头部对齐 */
.channel-hero { padding: 24px 0 22px; }
.channel-hero .lead, .page-intro .lead { margin: 10px 0 0; }

/* 3. 小标题标签统一为 eyebrow 风格（绿、大写、字距）；面板角标不再用灰色小字 */
.eyebrow { font-size: 11px; }
.panel-heading > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.panel-heading > a { font-size: 12px; font-weight: 700; }

/* 4. 辅助文字颜色/字号统一（消除 #455563 等游离色值） */
.excerpt { color: var(--muted); }
.compact-post p { font-size: 13px; }
.archive-list a { font-size: 13px; }

/* 5. 卡片/面板标题层级对齐 */
.panel-heading h2 { font-size: 16px; font-weight: 750; }
.compact-post h3 { font-size: 16px; line-height: 1.5; }
/* ============ 首页信息密度优化（视觉放大） ============ */

/* 焦点区无图兜底：显示分类名占位，不再空白 */
.focus-image { background: linear-gradient(135deg, #0b3d78, #1464c0); }
.focus-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(16, 24, 32, .28);
}

/* 首页字号与间距整体放大 */
.portal-toolbar p { font-size: 14px; }
.panel-heading h2 { font-size: 17px; }
.channel-menu a, .quick-links a { font-size: 14px; padding: 12px 16px; }
.channel-menu span { font-size: 12px; }
.archive-list a { font-size: 14px; padding: 10px 6px 10px 16px; }
.portal-numbers span { font-size: 11px; }
.portal-numbers b { font-size: 21px; }
.portal-profile p, .tool-panel p { font-size: 14px; }
.focus-copy h3 { font-size: 26px; }
.focus-copy p { font-size: 15px; }
.compact-post h3 { font-size: 17px; }
.compact-post p { font-size: 14px; }
.timeline-item b { font-size: 14px; }
.rank-item span { font-size: 14px; }
.side-story { font-size: 14px; }
.panel-empty { font-size: 14px; }
.timeline-item, .rank-item, .side-story { padding: 13px 16px; }
.portal-panel { margin-bottom: 18px; }
.portal-columns { gap: 18px; }
/* ============ 宽体小门户整体重设计 v2 ============ */

/* 1. 宽体容器：全宽流式（两侧留 24px） */
.header-inner, .content-wrap, .site-footer-inner {
  width: calc(100% - 48px);
  max-width: 1920px;
  margin: 0 auto;
}
/* 文章/分类等内页的正文区收拢到 1280px，保证可读性 */
.content-grid { max-width: 1280px; margin: 0 auto; }
.content-wrap { padding: 34px 0 60px; }
body { background: #f3f6f9; }

/* 2. 顶部深色信息条 */
.topbar { background: #0d1620; border-bottom: 1px solid #1c2b36; }
.topbar-inner {
  width: calc(100% - 48px);
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  font-size: 13px;
  color: #8fa2b3;
}
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: #b6d8f5; font-weight: 600; }
.topbar-links a:hover { color: #fff; text-decoration: none; }

/* 3. 主头部：吸顶 + 更大品牌标 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(24, 42, 58, .05);
}
.header-inner { min-height: 74px; gap: 30px; }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; box-shadow: 0 4px 12px rgba(20, 100, 192, .30); }
.brand-name { font-size: 22px; }
.brand-tagline { font-size: 13px; }
.main-nav a { padding: 10px 15px; border-radius: 9px; font-size: 15px; font-weight: 650; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: #e8f2fa; }

/* 4. 频道栏：更高的圆角链接 */
.subnav-wrap { background: #17212b; border-bottom: 1px solid #253746; }
.channel-bar { min-height: 42px; gap: 4px; }
.channel-bar a { padding: 8px 16px; border-radius: 7px; font-size: 13px; }
.channel-bar a:hover { background: #243746; }

/* 5. 面板卡片化：圆角 + 柔和阴影 */
.portal-panel {
  margin-bottom: 18px;
  background: var(--paper);
  border: 1px solid #e6edf3;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(24, 42, 58, .06);
  overflow: hidden;
}
.panel-heading { min-height: 48px; padding: 0 18px; }
.panel-heading h2 { font-size: 17px; }
.portal-left .panel-heading h2, .portal-right .panel-heading h2 {
  padding-left: 10px;
  border-left: 3px solid var(--blue);
  line-height: 1.1;
}

/* 6. 首页工具栏与列间距 */
.portal-toolbar { margin-bottom: 20px; padding-bottom: 16px; }
.portal-toolbar h1 { font-size: clamp(28px, 3.6vw, 42px); }
.portal-toolbar p { font-size: 14px; }
.portal-columns { gap: 20px; }

/* 7. 焦点模块（桌面端更高） */
@media (min-width: 801px) {
  .focus-panel .focus-image { height: 320px; }
}
.focus-copy { padding: 24px 26px 26px; }
.focus-copy h3 { font-size: 28px; }
.focus-copy p { font-size: 15.5px; }

/* 8. 列表项 hover 反馈 */
.compact-post, .timeline-item, .rank-item, .side-story, .channel-menu a, .quick-links a { transition: background .15s ease; }
.compact-post:hover { background: #f6fafd; }

/* 9. 文章/分类/归档卡片 */
.article-shell { border-radius: 16px; box-shadow: 0 14px 34px rgba(24, 42, 58, .08); }
.article-header h1 { font-size: clamp(30px, 4vw, 46px); }
.post-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(24, 42, 58, .12); }
.post-thumb { min-height: 190px; }
.channel-card, .tool-card { border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.sidebar-section { border-radius: 14px; box-shadow: 0 10px 26px rgba(24, 42, 58, .06); }

/* 10. 分类页：蓝色渐变 hero 面板 */
.channel-page { padding-top: 24px; }
.channel-hero {
  padding: 32px 36px;
  border: 0;
  border-radius: 16px;
  margin-bottom: 26px;
  background: linear-gradient(120deg, #0b3d78, #1464c0);
  color: #fff;
  box-shadow: 0 14px 30px rgba(20, 100, 192, .22);
}
.channel-hero h1 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); margin: 8px 0 12px; }
.channel-hero .lead { color: #cfe3f5; }
.channel-hero .eyebrow { color: #7fd4ae; }
.channel-meta { color: #a9dcf5; margin-top: 16px; }

/* 11. 页脚与版权栏 */
.site-footer { background: #0d1620; }
.site-footer-inner { padding: 48px 0 36px; gap: 40px; }
.site-footer-bottom { border-top: 1px solid #1c2b36; padding: 18px 0; text-align: center; font-size: 12.5px; color: #6d8296; }

/* 12. 按钮 */
.button { border-radius: 9px; padding: 10px 16px; }
.read-more { font-size: 14px; }

/* 13. 移动端适配 */
@media (max-width: 800px) {
  .topbar-tagline { display: none; }
  .topbar-inner { justify-content: flex-end; padding: 6px 0; }
  .header-inner, .content-wrap, .site-footer-inner, .topbar-inner { width: calc(100% - 28px); }
  .content-grid { max-width: 100%; }
  .channel-hero { padding: 26px 22px; }
  .article-shell { border-radius: 12px; }
}
/* ============ 宽体门户 v3：导航精简 + 内容宽体化 ============ */

/* 1. 顶栏搜索框（深色风格，替代重复导航链接） */
.topbar-search .search-form { gap: 6px; }
.topbar-search .search-form input[type="search"] {
  width: 210px;
  background: #16222e;
  border: 1px solid #243746;
  border-radius: 7px;
  color: #d7e2e9;
  padding: 5px 12px;
  font-size: 13px;
}
.topbar-search .search-form input[type="search"]::placeholder { color: #6d8296; }
.topbar-search .search-form input[type="search"]:focus { outline: 0; border-color: var(--blue); }
.topbar-search .search-submit {
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: #fff;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.topbar-search .search-submit:hover { background: var(--blue-dark); }

/* 2. 首页门户列加宽（仅宽屏，平板仍走两栏降级） */
@media (min-width: 1101px) {
  .portal-columns { grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 22px; }
}

/* 3. 焦点模块改为「左图右文」头条卡片（解决宽幅下大图裁剪异常） */
@media (min-width: 801px) {
  .focus-panel { display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .focus-panel .panel-heading { grid-column: 1 / -1; }
  .focus-panel .focus-image { position: relative; grid-column: 1; grid-row: 2; height: 100%; min-height: 340px; }
  .focus-panel .focus-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .focus-panel .focus-fallback { position: absolute; inset: 0; }
  .focus-panel .focus-copy { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: center; padding: 30px 32px; }
  .focus-copy h3 { font-size: 30px; }
  .focus-copy .read-more { align-self: flex-start; margin-top: 6px; }
}

/* 4. 首页最新文章：宽屏两列卡片 */
@media (min-width: 981px) {
  .article-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 14px 14px; }
  .article-panel .panel-heading { grid-column: 1 / -1; margin: 0 -14px; }
  .article-panel .compact-post {
    grid-template-columns: 96px minmax(0, 1fr);
    border: 1px solid #e6edf3;
    border-radius: 12px;
    padding: 14px;
  }
}

/* 5. 内页容器加宽，向首页宽度看齐 */
.content-grid { max-width: 1440px; }
.article-content { max-width: 880px; }
.article-shell { padding: clamp(28px, 4vw, 64px); }

/* 6. 分类页 / 归档页：文章列表改为两列卡片网格（图在上、文在下） */
body.category .content-grid > section,
body.archive .content-grid > section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.post-card { grid-template-columns: 1fr; margin-bottom: 0; }
.post-thumb { min-height: 200px; }
body.category .content-grid > section .pagination,
body.archive .content-grid > section .pagination { grid-column: 1 / -1; justify-content: center; }

/* 7. 小屏回退 */
@media (max-width: 980px) {
  .topbar-search .search-form input[type="search"] { width: 130px; }
}
@media (max-width: 700px) {
  body.category .content-grid > section,
  body.archive .content-grid > section { grid-template-columns: 1fr; gap: 18px; }
  .article-panel { display: block; padding: 0; }
  .topbar-search { display: none; }
}
/* ============ 频道专栏 + 工具面板 v4 ============ */

/* 频道专栏：三列卡片，每个频道一个卡 */
.channel-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px; }
.pick-col { border: 1px solid #e6edf3; border-radius: 12px; padding: 14px; background: #fff; transition: box-shadow .15s ease; }
.pick-col:hover { box-shadow: 0 8px 20px rgba(24, 42, 58, .07); }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); }
.pick-head b { color: var(--ink); font-size: 16px; }
.pick-head span { color: var(--muted); font-size: 12px; }
.pick-head:hover { text-decoration: none; }
.pick-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 9px 0; color: var(--ink); border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.45; }
.pick-item:last-child { border-bottom: 0; }
.pick-item time { color: var(--green); font: 11px Consolas, monospace; }
.pick-item:hover { color: var(--blue); text-decoration: none; }

/* 首页工具面板：列出真实工具 */
.tool-mini { padding: 2px 15px 6px; }
.tool-mini-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tool-mini-item:last-child { border-bottom: 0; }
.tool-mini-item b { display: block; color: var(--ink); font-size: 14px; transition: color .15s ease; }
.tool-mini-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tool-mini-item:hover { text-decoration: none; }
.tool-mini-item:hover b { color: var(--blue); }

/* 工具归档页卡片增强 */
.tool-card { border-radius: 14px; box-shadow: 0 10px 26px rgba(24, 42, 58, .06); transition: transform .18s ease, box-shadow .18s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(24, 42, 58, .12); }

/* 小屏回退 */
@media (max-width: 980px) {
  .channel-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .channel-picks { grid-template-columns: 1fr; padding: 14px; }
}
/* ============ 面包屑显眼化 v5 ============ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(24, 42, 58, .06);
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--blue); font-weight: 650; }
.breadcrumbs a:hover { color: var(--blue-dark); }
.breadcrumbs span { color: #b6c4ce; font-size: 13px; }
.breadcrumbs strong { color: var(--ink); font-weight: 700; }
@media (max-width: 700px) {
  .breadcrumbs { padding: 8px 12px; font-size: 13px; }
}
/* ============ 左栏补充面板 v6 ============ */
.tag-cloud-wrap { padding: 14px 16px; line-height: 2.2; }
.tag-cloud-wrap a { color: var(--blue); margin-right: 8px; font-weight: 600; }
.tag-cloud-wrap a:hover { color: var(--blue-dark); text-decoration: none; }
.rss-panel { padding: 14px 16px; }
.rss-panel p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.rss-panel .button { padding: 7px 14px; font-size: 13px; }
/* ============ 业务合作面板 v7 ============ */
.portal-contact .contact-body { padding: 14px 16px; }
.contact-desc { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.contact-email { margin: 0 0 12px; font-size: 13px; }
.contact-email strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.contact-email a { color: var(--blue); font-weight: 650; word-break: break-all; }
.contact-wechat { margin-bottom: 12px; }
.contact-qr-tip { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.contact-qr { width: 150px; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.contact-btn { display: block; text-align: center; font-size: 13px; }
/* ============ 技术支持面板视觉优化 v8 ============ */
.portal-contact { background: linear-gradient(180deg, #f2f8fc, #ffffff); }
.portal-contact .panel-heading { background: rgba(20, 100, 192, .05); }
.contact-body { padding: 16px 16px 18px; }
.contact-desc { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-email {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact-email strong { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.contact-email a { color: var(--blue); font-size: 14px; font-weight: 700; word-break: break-all; }
.contact-wechat { text-align: center; margin-bottom: 14px; }
.contact-qr-tip { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.contact-qr { width: 132px; height: auto; border-radius: 10px; box-shadow: 0 6px 16px rgba(24, 42, 58, .14); }
.contact-btn { display: block; text-align: center; background: linear-gradient(90deg, #1464c0, #0b3d78); border-radius: 8px; padding: 10px 16px; }
/* ============ 频道专栏加长与紧凑化 v9 ============ */
.channel-picks { padding: 14px; gap: 14px; }
.pick-col { padding: 12px 13px; }
.pick-head { padding-bottom: 8px; margin-bottom: 4px; }
.pick-head b { font-size: 15px; }
.pick-item { padding: 6px 0; gap: 6px; font-size: 13px; }
.pick-item time { font-size: 10px; }
/* ============ 频道专栏 4 列宽屏布局 v10 ============ */
@media (min-width: 1101px) {
  .channel-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* ============ 首页工具栏紧凑化 + 相关文章 v11 ============ */
.portal-toolbar { margin-bottom: 16px; padding-bottom: 12px; }
.portal-toolbar h1 { font-size: clamp(20px, 2.2vw, 28px); margin: 2px 0 0; line-height: 1.3; letter-spacing: 0; }
.portal-toolbar .eyebrow { font-size: 11px; }
.portal-toolbar p { font-size: 13px; }

/* 文章页相关文章 */
.related-posts { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.related-posts > h2 { font-size: 20px; margin: 0 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.related-card:hover { box-shadow: 0 8px 20px rgba(24, 42, 58, .08); transform: translateY(-2px); text-decoration: none; }
.related-thumb { width: 96px; height: 64px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #dce8ef; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body b { display: block; color: var(--ink); font-size: 14px; line-height: 1.5; }
.related-body i { display: block; color: var(--muted); font-size: 12px; font-style: normal; margin-top: 4px; }
@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; }
}
/* ============ 首页横幅工具栏 v12 ============ */
.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 20px 26px;
  border-radius: 16px;
  border-bottom: 0;
  background: linear-gradient(120deg, #0b3d78, #1464c0);
  color: #fff;
  box-shadow: 0 12px 26px rgba(20, 100, 192, .20);
}
.portal-toolbar h1 { color: #fff; font-size: clamp(20px, 2.4vw, 30px); margin: 3px 0 4px; letter-spacing: .01em; }
.portal-toolbar .eyebrow { color: #7fd4ae; }
.portal-toolbar p { color: #cfe3f5; font-size: 13px; margin: 0; }
.portal-stats { display: flex; gap: 30px; flex: 0 0 auto; }
.portal-stats span { text-align: center; color: #cfe3f5; font-size: 12px; }
.portal-stats b { display: block; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.2; }
@media (max-width: 700px) {
  .portal-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; }
  .portal-stats { gap: 20px; }
  .portal-stats b { font-size: 22px; }
}
/* ============ 横幅再压扁 v13 ============ */
.portal-toolbar { padding: 12px 22px; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(20, 100, 192, .16); }
.portal-toolbar h1 { font-size: clamp(18px, 2vw, 24px); margin: 2px 0 2px; }
.portal-toolbar .eyebrow { font-size: 10px; }
.portal-toolbar p { font-size: 12px; }
.portal-stats { gap: 22px; }
.portal-stats b { font-size: 20px; }
.portal-stats span { font-size: 11px; }
@media (max-width: 700px) {
  .portal-toolbar { padding: 12px 16px; }
  .portal-stats b { font-size: 18px; }
}
/* ============ 全站美化与动效 v14 ============ */
/* 平滑过渡 */
a, .post-card, .tool-card, .channel-card, .related-card, .button, .main-nav a, .channel-bar a, .pick-col, .compact-post, .side-story, .timeline-item, .rank-item {
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* 首页横幅与分类页 hero：渐变流光 */
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.portal-toolbar, .channel-hero {
  background-size: 200% 200%;
  animation: gradShift 14s ease infinite;
}

/* 焦点图 hover 缩放 */
.focus-image img { transition: transform .5s ease; }
.focus-panel:hover .focus-image img { transform: scale(1.04); }
.compact-thumb img { transition: transform .4s ease; }
.compact-post:hover .compact-thumb img { transform: scale(1.05); }

/* 按钮 hover 上浮 */
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20, 100, 192, .28); }

/* 卡片 hover 上浮 */
.post-card:hover, .tool-card:hover, .channel-card:hover, .related-card:hover { transform: translateY(-3px); }
.pick-col:hover { transform: translateY(-2px); }

/* 文章页 h2 蓝色强调条 */
.article-content h2 { position: relative; }
.article-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: .85em;
  background: var(--blue);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -.08em;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(120deg, #1464c0, #0b3d78);
  color: #fff;
  font-size: 20px;
  line-height: 42px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  box-shadow: 0 8px 18px rgba(20, 100, 192, .3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #1464c0, #6bc48c);
  transition: width .1s linear;
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .portal-toolbar, .channel-hero { animation: none; }
  .back-to-top { transition: none; }
  .focus-image img, .compact-thumb img { transition: none; }
  .post-card:hover, .tool-card:hover, .channel-card:hover, .related-card:hover, .pick-col:hover { transform: none; }
}
/* ============ 首页焦点轮播 v15 ============ */
.focus-carousel { position: relative; overflow: hidden; }
.carousel-slide {
  display: none;
  position: relative;
  min-height: 280px;
  background-color: #dce8ef;
  background-size: cover;
  background-position: center;
}
.carousel-slide.is-active { display: block; }
.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(16, 24, 32, .08) 0%, rgba(16, 24, 32, .42) 60%, rgba(16, 24, 32, .72) 100%);
  color: #fff;
}
.carousel-overlay .meta { color: #dfeaf3; }
.carousel-overlay .meta a { color: #bcd9f0; }
.carousel-overlay h3 { margin: 6px 0 6px; font-size: 24px; }
.carousel-overlay h3 a { color: #fff; transition: color .18s ease; }
.carousel-overlay h3 a:hover { color: #cfe8ff; text-decoration: none; }
.carousel-overlay p { margin: 0 0 10px; color: #dfeaf3; font-size: 14px; }
.carousel-overlay .eyebrow { color: #7fd4ae; }
.carousel-link { color: #fff; font-weight: 700; font-size: 14px; }
.carousel-link:hover { color: #cfe8ff; }
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 46px;
  border: 0;
  cursor: pointer;
  background: rgba(16, 24, 32, .45);
  color: #fff;
  font-size: 26px;
  line-height: 46px;
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.focus-carousel:hover .carousel-prev, .focus-carousel:hover .carousel-next { opacity: 1; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, .5);
  transition: background .2s ease, transform .2s ease;
}
.carousel-dot.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 700px) {
  .carousel-slide { min-height: 220px; }
  .carousel-overlay { padding: 16px 18px; }
  .carousel-overlay h3 { font-size: 19px; }
  .carousel-overlay p { display: none; }
}
/* ============ 焦点区：轮播 + 速览列表 v16 ============ */
.focus-wrap { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.focus-list {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fbfdff;
  min-height: 280px;
}
.focus-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease, color .15s ease;
}
.focus-list-item:last-child { border-bottom: 0; }
.focus-list-item time { color: var(--green); font: 11px Consolas, monospace; flex: 0 0 auto; }
.focus-list-item span { flex: 1 1 auto; }
.focus-list-item:hover { color: var(--blue); background: #f0f7fc; text-decoration: none; }
.focus-list-item.is-active { color: var(--blue); background: #edf5fb; font-weight: 650; }
@media (max-width: 700px) {
  .focus-wrap { grid-template-columns: 1fr; }
  .focus-list { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .focus-list-item { padding: 8px 14px; }
}
/* ============ 焦点区修复 v17 ============ */
/* 右侧速览条目拉伸填满，消除下方空白 */
.focus-list { justify-content: stretch; }
.focus-list-item { flex: 1 1 auto; }

/* 桌面端隐藏遮罩里重复的标题（图片已印有标题），仅移动端显示以免裁剪后无标题 */
@media (min-width: 701px) {
  .carousel-overlay h3 { display: none; }
  .carousel-overlay { justify-content: flex-end; }
}
@media (max-width: 700px) {
  .carousel-overlay h3 { display: block; }
}
/* ============ 机房在线终端 v18 ============ */
.focus-terminal {
  background: #0d1520;
  color: #d7e2e9;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: #16222e;
  color: #94a6b4;
  border-bottom: 1px solid #22303c;
  font-size: 12px;
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.term-dot:nth-child(1) { background: #e77d62; }
.term-dot:nth-child(2) { background: #e3bd5f; }
.term-dot:nth-child(3) { background: #6bc48c; }
.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  line-height: 1.7;
  scrollbar-width: thin;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-hi { color: #6bc48c; font-weight: 700; }
.term-cmd { color: #b6d8f5; }
.term-err { color: #e77d62; }
.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #22303c;
}
.term-prompt { color: #6bc48c; white-space: nowrap; }
.terminal-input-line input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #d7e2e9;
  font: inherit;
  caret-color: #6bc48c;
}
@media (max-width: 700px) {
  .focus-terminal { min-height: 0; }
}
/* ============ 焦点区高度修复 v19 ============ */
/* 固定行高，让轮播和终端在行内自适应，终端 body 内部滚动而非撑高窗口 */
.focus-wrap { grid-template-rows: 280px; align-items: stretch; }
@media (max-width: 700px) {
  .focus-wrap { grid-template-rows: auto; }
  .focus-carousel { height: 220px; min-height: 220px; }
  .focus-terminal { height: 240px; min-height: 0; }
}
/* ============ 焦点区改 flexbox，确保两栏铺满无空格 v20 ============ */
.focus-wrap {
  display: flex !important;
  align-items: stretch;
}
.focus-carousel { flex: 2 1 0; min-width: 0; height: auto; min-height: 280px; }
.focus-terminal { flex: 1 1 0; min-width: 0; height: auto; min-height: 0; }
@media (max-width: 700px) {
  .focus-wrap { flex-direction: column; }
  .focus-carousel { min-height: 220px; }
  .focus-terminal { height: 240px; }
}
/* ============ 修复：focus-panel 改为块级，去掉残留网格 v21 ============ */
.focus-panel { display: block !important; }
.focus-wrap { width: 100%; }
/* ============ 终端固定高度，内部滚动不长大 v22 ============ */
.focus-carousel { height: 280px; min-height: 280px; }
.focus-terminal { height: 280px; min-height: 280px; }
@media (max-width: 700px) {
  .focus-carousel { height: 220px; min-height: 220px; }
  .focus-terminal { height: 240px; min-height: 240px; }
}
/* ============ 终端「活起来」v23 ============ */
.term-tip { color: #6d8296; }
/* ============ 仿真开机色 v24 ============ */
.term-warn { color: #e3bd5f; }
/* ============ 工具页两板块 v25 ============ */
.local-tools-panel, .open-tools-panel { margin-bottom: 30px; }
.local-tools-head { background: linear-gradient(90deg, #0b3d78, #1464c0); color: #fff; border-bottom: 0; }
.local-tools-head h2 { color: #fff; }
.local-tools-head > span { color: #9fd7f2; }
.local-tools-note { color: var(--muted); font-size: 14px; margin: 14px 4px 0; }
.local-card { border: 1px solid #e6edf3; box-shadow: 0 10px 26px rgba(24,42,58,.06); }
.local-card code { display: block; background: #101820; color: #cce4f4; padding: 8px 10px; border-radius: 6px; font-size: 12px; margin: 10px 0 12px; overflow-x: auto; }
.local-card .button { margin-top: 4px; }
.tool-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.tool-filter a {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); font-size: 13px; transition: all .15s ease;
}
.tool-filter a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.tool-filter a.is-active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 650; }
/* ============ 本站工具页 v26 ============ */
.local-tools-page .lead { margin-bottom: 22px; }


/* 文章目录 TOC */
.article-toc-wrap{position:relative}
.article-toc{position:absolute;right:-236px;top:8px;width:220px;background:#fff;border:1px solid #e4ebf2;border-radius:12px;padding:14px 14px;box-shadow:0 6px 18px rgba(20,100,192,.07);display:none;font-size:14px}
.article-toc .toc-title{font-weight:800;color:#0b3d78;margin-bottom:10px}
.article-toc .toc-item{display:block;padding:6px 8px;color:#42556a;line-height:1.5;text-decoration:none;border-left:2px solid transparent}
.article-toc .toc-item:hover{color:#1464c0;background:#f0f6fc;border-left-color:#1464c0}
.article-toc .toc-item.lv1{font-weight:700}
.article-toc .toc-item.lv2{padding-left:20px;color:#6b7d90}
.article-toc.open{display:block;position:fixed;right:16px;top:90px;max-height:70vh;overflow:auto;z-index:2100;box-shadow:0 14px 34px rgba(0,0,0,.18)}
.toc-toggle{position:fixed;right:16px;top:56%;z-index:2099;background:#1464c0;color:#fff;border:0;border-radius:30px;padding:10px 15px;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(20,100,192,.35)}
@media (max-width:1400px){.article-toc{position:static;display:none;margin:0 0 16px}}
@media print{.article-toc-wrap,.toc-toggle{display:none!important}}


/* 分类页：紧凑头部 + 子分类 chips */
.channel-page{padding-top:24px}
.channel-head{border:1px solid var(--line);border-radius:14px;background:#fff;padding:22px 26px;margin-bottom:26px;box-shadow:0 8px 22px rgba(20,100,192,.05)}
.ch-head-top{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.ch-title{font-size:26px;font-weight:800;color:#17212b;margin:0;line-height:1.3}
.ch-title::after{content:"";display:block;width:56px;height:4px;background:linear-gradient(90deg,#1464c0,#5bb0e8);border-radius:3px;margin-top:10px}
.ch-desc{flex:1 1 100%;margin:12px 0 0;color:#5a6b7c;font-size:14px;line-height:1.7}
.ch-count{display:inline-block;margin-left:auto;color:#15804a;background:#e3f6ec;padding:5px 12px;border-radius:16px;font-size:12px;font-weight:700;white-space:nowrap}
.ch-subs{display:flex;align-items:flex-start;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid #eef3f8}
.ch-sub-label{font-size:12px;font-weight:800;color:#8ba0b6;white-space:nowrap;padding-top:6px;letter-spacing:.05em}
.ch-sub-chips{display:flex;flex-wrap:wrap;gap:8px}
.ch-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1px solid #dfe7ef;border-radius:20px;background:#f7fafc;color:#42556a;font-size:13px;text-decoration:none;transition:.14s}
.ch-chip:hover{border-color:#1464c0;color:#1464c0;background:#fff}
.ch-chip em{font-style:normal;color:#15804a;font-weight:700;font-size:12px}
@media (max-width:800px){
  .channel-head{padding:18px 18px}
  .ch-title{font-size:22px}
  .ch-sub-label{display:none}
}


/* 分类页：紧凑标题行 + 子分类 tab（与首页一致的下方卡片） */
.channel-page{padding-top:18px}
.cat-bar{border-bottom:1px solid var(--line);padding:6px 0 18px;margin-bottom:24px}
.cat-bar-top{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.cat-title{font-size:26px;font-weight:800;color:#17212b;margin:0;line-height:1.3}
.cat-count{color:#15804a;font-size:13px;font-weight:700;background:#e3f6ec;padding:4px 12px;border-radius:16px}
.cat-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cat-tab{padding:7px 15px;border:1px solid #e0e7ee;border-radius:20px;background:#fff;color:#42556a;font-size:13px;text-decoration:none;transition:.14s}
.cat-tab:hover{border-color:#1464c0;color:#1464c0}
.cat-tab.on{background:#1464c0;color:#fff;border-color:#1464c0;font-weight:700}
.cat-desc{margin:14px 0 0;color:#5a6b7c;font-size:13.5px;line-height:1.7}
.cat-list{min-width:0}
@media (max-width:800px){ .cat-title{font-size:22px} .cat-tab{padding:6px 12px} }


/* 分类页全宽混合列表：主区占满 + 侧栏 */
.cat-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}
.cat-list{min-width:0}
/* 第1篇大卡之后用紧凑列表：与首页 latest 一致 */
.cat-list .compact-post{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;padding:14px;margin-bottom:14px;display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;transition:box-shadow .16s}
.cat-list .compact-post:hover{box-shadow:0 12px 26px rgba(20,100,192,.10)}
.cat-list .compact-post .meta{font-size:12px;color:#8ba0b6;margin-bottom:4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cat-list .compact-post h3{margin:2px 0 5px;font-size:16px;line-height:1.45}
.cat-list .compact-post h3 a{color:var(--ink)}
.cat-list .compact-post h3 a:hover{color:#1464c0}
.cat-list .compact-post p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.6}
@media (max-width:980px){ .cat-layout{grid-template-columns:1fr} }


/* 分类页：多列小卡片网格(两行四列的小卡片) */
.cat-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}
.cat-list{min-width:0}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.g-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .16s,transform .16s;display:flex;flex-direction:column}
.g-card:hover{box-shadow:0 12px 26px rgba(20,100,192,.10);transform:translateY(-2px)}
.g-thumb{display:block;height:130px;overflow:hidden;background:#e9f0f6}
.g-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.g-noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#8ba0b6;font-size:13px;font-weight:700;background:linear-gradient(120deg,#eef3f9,#e3ecf5)}
.g-body{padding:14px 14px 16px;display:flex;flex-direction:column;flex:1}
.g-meta{margin-bottom:6px}
.g-meta .cat-badge{font-size:12px;font-weight:700;color:#1464c0;background:#eef4fd;padding:3px 8px;border-radius:5px}
.g-title{font-size:15px;font-weight:800;line-height:1.4;margin:0 0 8px}
.g-title a{color:var(--ink)}
.g-title a:hover{color:#1464c0}
.g-ex{color:var(--muted);font-size:12.5px;line-height:1.6;margin:0;flex:1}
.g-date{display:block;margin-top:10px;font-size:12px;color:#9aa8b6}
@media (max-width:1180px){ .cat-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:980px){ .cat-layout{grid-template-columns:1fr} .cat-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .cat-grid{grid-template-columns:repeat(2,1fr);gap:10px} .g-thumb{height:96px} }


/* 主分类：最新一行卡 + 子分类列表 */
.cat-block{margin-bottom:28px}
.cat-block-title{font-size:19px;font-weight:800;color:#17212b;margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.cat-block-title::after{content:"";display:block;width:44px;height:3px;background:#1464c0;border-radius:3px;margin-top:8px}
.subcat-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.subcat-item{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);text-decoration:none;transition:.15s}
.subcat-item:hover{border-color:#1464c0;box-shadow:0 10px 22px rgba(20,100,192,.10);transform:translateY(-2px)}
.subcat-name{font-size:16px;font-weight:800;color:#17212b}
.subcat-count{font-size:12px;color:#15804a;font-weight:700}
.subcat-desc{font-size:12.5px;color:var(--muted);line-height:1.6;margin-top:4px}

/* 子分类：文章列表 + 摘要 */
.art-list{display:flex;flex-direction:column;gap:16px}
.art-item{display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow);transition:box-shadow .15s}
.art-item:hover{box-shadow:0 12px 26px rgba(20,100,192,.10)}
.art-thumb{display:block;height:130px;overflow:hidden;border-radius:9px;background:#e9f0f6}
.art-thumb img{width:100%;height:100%;object-fit:cover}
.art-meta{font-size:12px;color:#8ba0b6;margin-bottom:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.art-title{font-size:19px;font-weight:800;line-height:1.4;color:var(--ink);margin:0 0 8px}
.art-title a{color:var(--ink)}
.art-title a:hover{color:#1464c0}
.art-ex{color:var(--muted);font-size:13px;line-height:1.7;margin:0}
@media (max-width:980px){ .subcat-list{grid-template-columns:1fr} .art-item{grid-template-columns:1fr} .art-thumb{height:160px} }


/* 主分类：每个子分类一个区块，展示该子分类下 5 篇文章 */
.subcat-block{margin-bottom:22px}
.subcat-block .cat-block-title{display:flex;align-items:baseline;gap:10px}
.subcat-block .cat-block-title a{color:#17212b}
.subcat-block .cat-block-title a:hover{color:#1464c0}
.subcat-block .cat-block-title em{font-style:normal;font-size:12px;color:#15804a;font-weight:700}
.subcat-arts{display:flex;flex-direction:column;gap:6px}
.subcat-art{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;background:var(--paper);border:1px solid var(--line);border-radius:9px;text-decoration:none;transition:.13s}
.subcat-art:hover{border-color:#1464c0;background:#f5faff}
.subcat-art-t{font-size:14px;color:var(--ink);line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subcat-art:hover .subcat-art-t{color:#1464c0}
.subcat-art-d{font-size:12px;color:#9aa8b6;white-space:nowrap}
.subcat-art-empty{color:#9aa8b6;font-size:13px;padding:6px 0}


/* 子分类区块：多列文章卡(摘要) */
.subcat-block{margin-bottom:24px}
.subcat-block .cat-block-title{display:flex;align-items:baseline;gap:10px}
.subcat-block .cat-block-title a{color:#17212b}
.subcat-block .cat-block-title a:hover{color:#1464c0}
.subcat-block .cat-block-title em{font-style:normal;font-size:12px;color:#15804a;font-weight:700}
.subcat-arts{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.subcat-art{display:flex;flex-direction:column;gap:8px;padding:14px 16px;background:var(--paper);border:1px solid var(--line);border-radius:11px;text-decoration:none;transition:.14s}
.subcat-art:hover{border-color:#1464c0;box-shadow:0 10px 22px rgba(20,100,192,.10);transform:translateY(-2px)}
.subcat-art-t{font-size:15px;font-weight:800;color:var(--ink);line-height:1.45}
.subcat-art:hover .subcat-art-t{color:#1464c0}
.subcat-art-ex{font-size:12.5px;color:var(--muted);line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.subcat-art-foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto}
.subcat-art-foot time{font-size:12px;color:#9aa8b6}
.subcat-art-more{font-size:12px;font-weight:700;color:#1464c0;font-style:normal}
.subcat-art-empty{color:#9aa8b6;font-size:13px;grid-column:span 2;padding:6px 0}
@media (max-width:640px){ .subcat-arts{grid-template-columns:1fr} }
