/* LECMS gybs 简约大方模板 */

:root {
  --bg: #f7f6f4;
  --bg-soft: #eeece8;
  --paper: #ffffff;
  --ink: #2c2a26;
  --muted: #7a766e;
  --line: #e6e3de;
  --accent: #5c6b5a;
  --accent-2: #465344;
  --accent-soft: #eef1ed;
  --max: 1140px;
  --side: 300px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 2px 12px rgba(44, 42, 38, 0.04);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; }
.container, .row, [class*="col-md-"], [class*="col-xs-"] {
  width: auto; max-width: none; float: none; margin: 0; padding: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #faf9f7 0%, var(--bg) 50%, #f3f1ed 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}
.brand:hover { color: inherit; }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background:
    linear-gradient(var(--accent) 0 0) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--accent) 0 0) 0 50% / 100% 3px no-repeat,
    linear-gradient(var(--accent-2) 0 0) 0 100% / 70% 3px no-repeat;
  box-shadow: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.brand-sub {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav { flex: 1; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.site-nav a {
  display: block;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.site-nav li.is-active a,
.site-nav a:hover { color: var(--ink); }
.site-nav li.is-active a {
  position: relative;
}
.site-nav li.is-active a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 4px;
  height: 1.5px;
  background: var(--accent);
}
.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--accent); }
.search-form input {
  width: 120px;
  border: 0;
  padding: 8px 4px 8px 0;
  background: transparent;
  outline: none;
}
.search-form button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 0 8px 8px;
  cursor: pointer;
}
.search-form button:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  margin: 6px 0;
  background: var(--ink);
  transition: .25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Layout */
.page-home, .page-list, .page-article { padding: 36px 0 56px; }
.layout {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 300px;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.main { min-width: 0; }
.side { min-width: 0; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-head { padding: 24px 28px 0; }
.panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.panel-title::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--accent);
}
.panel-desc { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }
.breadcrumb {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.breadcrumb span { margin: 0 8px; color: #c8c4bc; }

/* Focus */
.focus-panel {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1.25fr 1fr;
  grid-template-columns: 1.25fr 1fr;
}
.focus-panel .panel-title { margin-bottom: 16px; }
.focus-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  background: var(--bg-soft);
  overflow: hidden;
  color: #fff;
}
@supports (aspect-ratio: 16 / 10) {
  .focus-cover { height: auto; aspect-ratio: 16 / 10; }
}
.focus-cover-default { height: 300px; }
.focus-cover:hover { color: #fff; }
.focus-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
  filter: brightness(0.92);
}
.focus-cover:hover img { transform: scale(1.03); filter: brightness(0.96); }
.focus-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(transparent, rgba(44, 42, 38, 0.72));
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.portal-banner, .portal-banner .swiper-slide { height: 100%; }
.focus-list {
  padding: 24px 28px 18px;
  border-left: 1px solid var(--line);
  min-height: 280px;
}
.focus-list ul:not(:empty) + .empty-tip { display: none; }
.focus-list .empty-tip { margin-top: 8px; }

.empty-tip {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}
.post-item ~ .post-empty-tip { display: none; }
.post-empty-tip { margin: 20px 28px 28px; }
.widget-rank:not(:empty) + .widget-empty-tip,
.widget-recent:not(:empty) + .widget-empty-tip,
.widget-tags:not(:empty) + .widget-empty-tip { display: none; }
.widget .widget-empty-tip { margin: 0 18px 18px; padding: 14px; }
.focus-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.focus-list li:last-child { border-bottom: 0; }
.focus-list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}
.focus-list time {
  flex-shrink: 0;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.thumb-ph {
  width: 100%;
  height: 100%;
  min-height: 80px;
  background: linear-gradient(135deg, #d8d5ce, #b8b4aa);
}

/* Posts */
.post-list { padding: 8px 0; }
.post-item {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 200px 1fr;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.post-item:last-child { border-bottom: 0; }
.post-item:hover { background: #faf9f7; }
.post-thumb {
  width: 200px;
  height: 134px;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
@supports (aspect-ratio: 3 / 2) {
  .post-thumb { width: auto; height: auto; aspect-ratio: 3 / 2; }
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-item:hover .post-thumb img { transform: scale(1.03); }
.post-body h2, .post-body h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.post-meta .cat {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.post-meta .tags a { margin-right: 8px; }
.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category grid */
.cate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cate-block {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.cate-block:nth-child(2n) { border-right: 0; }
.cate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cate-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.cate-head .more {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cate-head .more:hover { color: var(--accent); }
.cate-block li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: 0.9rem;
}
.cate-block a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cate-block time { flex-shrink: 0; color: var(--muted); font-size: 0.74rem; }

.sibling-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 28px 16px;
}
.sibling-cats a {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid transparent;
}
.sibling-cats a.is-active,
.sibling-cats a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Sidebar */
.side .widget,
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  margin: 0;
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--line);
  background: #faf9f7;
  color: var(--ink);
}
.widget-about-body { padding: 24px 20px; text-align: center; }
.widget-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.widget-about-name {
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.widget-about-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}
.widget-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.widget-stats li { text-align: center; }
.widget-stats span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.widget-stats strong {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
}

.widget-rank li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.widget-rank li:last-child { border-bottom: 0; }
.widget-rank em {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.widget-rank li:nth-child(-n+3) em {
  background: var(--accent);
  color: #fff;
}
.widget-rank a { flex: 1; font-size: 0.9rem; color: var(--ink); }

.widget-recent li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.widget-recent li:last-child { border-bottom: 0; }
.widget-recent a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}
.widget-recent time {
  flex-shrink: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.widget-tags {
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.widget-tags a {
  padding: 5px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  letter-spacing: 0.02em;
  transition: all .2s;
}
.widget-tags a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.widget-rand { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.widget-rand a {
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.widget-rand img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.widget-rand span {
  display: block;
  padding: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
}

/* Article */
.article-panel { padding: 40px 44px 48px; }
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-header h1 {
  margin: 16px 0 0;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.article-summary {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: var(--bg);
  border-left: 2px solid var(--accent);
  color: var(--accent-2);
  font-size: 0.94rem;
  line-height: 1.7;
}
.article-content {
  font-size: 1.05rem;
  line-height: 2.05;
  color: #3a3834;
}
.article-content p { margin: 0 0 1.3em; }
.article-content img { margin: 1.4em auto; }
.article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-tags { margin-bottom: 18px; }
.article-tags a {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 4px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.article-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.article-nav {
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.related-list { padding: 8px 0 12px; }
.related-list li {
  display: flex;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.related-list li:last-child { border-bottom: 0; }
.related-list a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.related-list time { color: var(--muted); font-size: 0.78rem; flex-shrink: 0; }

/* Comments */
.comment-panel .comment-list { padding: 8px 0; }
.comment-item {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.comment-head .avatar { border-radius: 50%; }
.comment-head strong { display: block; font-size: 0.9rem; font-weight: 600; }
.comment-head time { font-size: 0.74rem; color: var(--muted); }
.comment-head .reply_comment { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.comment-head .reply_comment:hover { color: var(--accent); }
.comment-reply {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: var(--bg);
  border-left: 2px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.comment-body { font-size: 0.95rem; line-height: 1.75; }
.load-more {
  display: block;
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}
.load-more:hover { color: var(--accent); }
.comment-form { padding: 24px 28px 28px; }
.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: #faf9f7;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.comment-form button {
  padding: 12px 32px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  font-weight: 500;
}
.comment-form button:hover { background: var(--accent-2); }
.reply-box {
  display: none;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--bg);
  border-left: 2px solid var(--accent);
}
.vcode-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.vcode-row input { flex: 1; margin: 0; }

/* Pagination */
.pagination, .pagebar {
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.pagination a, .pagination span,
.pagebar a, .pagebar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 2px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff;
}
.pagination .current, .pagebar .current,
.pagination a:hover, .pagebar a:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

/* Links */
.links-panel { padding-bottom: 40px; }
.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 20px 28px 28px;
}
.links-list a {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.links-list a:hover { color: var(--accent); }

/* Tags page */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 28px 28px;
}
.tag-cloud a {
  padding: 7px 16px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tag-cloud a:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

/* Search page */
.so-panel { padding: 28px; }
.so-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.so-form select,
.so-form input[type="text"] {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #faf9f7;
  outline: none;
}
.so-form select { min-width: 100px; }
.so-form input[type="text"] { flex: 1; min-width: 160px; }
.so-form input[type="text"]:focus,
.so-form select:focus {
  border-color: var(--accent);
  background: #fff;
}
.so-form input[type="submit"] {
  padding: 12px 28px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.1em;
}
.so-form input[type="submit"]:hover { background: var(--accent-2); }

/* Message / page */
.page-content-panel { padding: 36px 40px 44px; }
.page-content-panel h1 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.detail-con {
  font-size: 1.02rem;
  line-height: 2;
  color: #3a3834;
}
.detail-con p { margin: 0 0 1.2em; }

/* 404 */
.error-page {
  padding: 96px 24px;
  text-align: center;
}
.error-page .error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 18px;
}
.error-page h2 {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.error-page .back-home {
  display: inline-block;
  padding: 12px 36px;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
}
.error-page .back-home:hover { background: var(--accent-2); color: #fff; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.footer-nav {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-nav a:hover { color: var(--ink); }
.footer-beian {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.back-top.is-show { opacity: 1; visibility: visible; }

/* Swiper */
.portal-banner .swiper-pagination-bullet {
  background: #fff;
  opacity: .45;
  border-radius: 0;
  width: 20px;
  height: 2px;
}
.portal-banner .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .layout {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .side {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .side .widget { margin-bottom: 0; }
  .focus-panel {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .focus-list { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .cate-grid { grid-template-columns: 1fr; }
  .cate-block { border-right: 0; }
}

@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .search-form { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 12px; }
  .site-nav a { padding: 14px 12px; }
  .site-nav li.is-active a::after { display: none; }
  .site-nav li.is-active a {
    background: var(--accent-soft);
    color: var(--ink);
  }
  .header-inner { position: relative; gap: 12px; min-height: 60px; }
  .post-item {
    -ms-grid-columns: 100px 1fr;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    padding: 18px;
  }
  .post-thumb { width: 100px; height: 75px; }
  .post-body h2, .post-body h3 { font-size: 1rem; }
  .side {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .article-panel { padding: 24px 18px; }
  .page-content-panel { padding: 24px 18px; }
  .panel-head { padding: 18px 18px 0; }
  .brand-name { font-size: 1.15rem; letter-spacing: 0.08em; }
  .widget-rand { grid-template-columns: 1fr; }
  .focus-cover, .focus-cover-default { height: 180px; }
  .page-home, .page-list, .page-article { padding: 20px 0 40px; }
  .so-form { flex-direction: column; align-items: stretch; }
  .so-form select, .so-form input[type="text"], .so-form input[type="submit"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ===== sk-gybs: 单栏宽版 + 底栏三列 ===== */
.sk-gybs .focus-wide { margin-bottom: 28px; }
.sk-gybs .focus-wide .focus-cover { height: 340px; }
@supports (aspect-ratio: 21 / 8) {
  .sk-gybs .focus-wide .focus-cover { height: auto; aspect-ratio: 21 / 8; }
}
.sk-gybs .post-list-wide .post-item {
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 32px;
}
.side-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.side-row .widget { margin-bottom: 0; }
@media (max-width: 960px) {
  .side-row { grid-template-columns: 1fr; gap: 16px; }
  .sk-gybs .focus-wide .focus-cover { height: 220px; }
  .sk-gybs .post-list-wide .post-item { grid-template-columns: 160px 1fr; gap: 18px; padding: 22px; }
}
@media (max-width: 720px) {
  .sk-gybs .focus-wide .focus-cover { height: 180px; }
  .sk-gybs .post-list-wide .post-item { grid-template-columns: 100px 1fr; gap: 14px; padding: 16px; }
}
