/* ==========================================================================
   奇漫屋画免费下拉式奇漫屋漫画 - 全站样式
   站点：pigyp.cn
   视觉方向：高密度控制台风，表格与状态为主，颜色只表示意义，间距紧凑
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / 基础
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #007acc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #005a99;
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Layout / 布局骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  flex-shrink: 0;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  margin-top: 48px;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

/* 内页统一骨架 */
.site-inner {
  background-color: #f5f5f5;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* --------------------------------------------------------------------------
   Components / 通用组件
   -------------------------------------------------------------------------- */

/* 品牌 */
.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0;
}

.brand-sub {
  font-size: 0.75rem;
  color: #666666;
}

/* 主导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9375rem;
  color: #333333;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-list li a:hover {
  color: #007acc;
  background-color: #f0f7fc;
  text-decoration: none;
}

.nav-list li a.is-current {
  color: #007acc;
  font-weight: 600;
  background-color: #e6f2fa;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1a1a1a;
  align-items: center;
  gap: 8px;
}

.nav-toggle-icon {
  width: 18px;
  height: 2px;
  background-color: #1a1a1a;
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: #1a1a1a;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #888888;
  margin-bottom: 16px;
  padding: 8px 0;
}

.breadcrumb a {
  color: #007acc;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #bbbbbb;
}

.breadcrumb-current {
  color: #555555;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 0.9375rem;
  color: #555555;
  max-width: 780px;
}

/* 区块标题 */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007acc;
  display: inline-block;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h1,
.section-heading h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 0.875rem;
  color: #666666;
}

.section-link {
  margin-top: 16px;
  font-size: 0.875rem;
}

/* 图片容器 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 0.8125rem;
  color: #888888;
  padding: 8px 0 0;
  text-align: center;
}

/* 表格通用 */
.table-wrapper {
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

/* 侧栏卡片 */
.sidebar-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
}

.sidebar-card ul li {
  margin-bottom: 4px;
}

.sidebar-card ul li a {
  display: block;
  padding: 6px 8px;
  font-size: 0.875rem;
  color: #444444;
  border-radius: 4px;
}

.sidebar-card ul li a:hover {
  background-color: #f0f7fc;
  color: #007acc;
  text-decoration: none;
}

/* 页脚 */
.footer-shell {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: #777777;
}

.footer-links-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.footer-links-col ul li {
  margin-bottom: 4px;
}

.footer-links-col ul li a {
  font-size: 0.8125rem;
  color: #555555;
}

.footer-links-col ul li a:hover {
  color: #007acc;
}

.footer-copyright {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eeeeee;
  font-size: 0.75rem;
  color: #999999;
}

/* --------------------------------------------------------------------------
   Pages / 首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* 状态表格区 */
.status-table-section {
  margin-bottom: 40px;
}

.status-table-wrap {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.status-table {
  width: 100%;
}

.status-table th {
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.status-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333333;
}

.status-table tbody tr:last-child td {
  border-bottom: none;
}

.status-table tbody tr:hover {
  background-color: #f8fbfd;
}

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag-new {
  background-color: #e6f7e6;
  color: #1a7a1a;
}

.tag-hot {
  background-color: #fff0e6;
  color: #cc5500;
}

.tag-pause {
  background-color: #f0f0f0;
  color: #666666;
}

.content-media-primary {
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  overflow: hidden;
}

.content-media-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 题材分类导航 */
.category-nav-section {
  margin-bottom: 40px;
}

.category-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-block;
  padding: 8px 18px;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #333333;
  transition: all 0.2s ease;
}

.tag-item:hover {
  background-color: #007acc;
  border-color: #007acc;
  color: #ffffff;
  text-decoration: none;
}

/* 最近更新 */
.recent-updates-section {
  margin-bottom: 40px;
}

.updates-group {
  margin-bottom: 24px;
}

.date-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #ff6600;
}

.update-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cover-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.cover-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 12px 4px;
}

.card-title a {
  color: #1a1a1a;
}

.card-title a:hover {
  color: #007acc;
}

.card-meta {
  font-size: 0.8125rem;
  color: #888888;
  padding: 0 12px 12px;
}

/* 人气榜单预览 */
.ranking-preview-section {
  margin-bottom: 40px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ranking-item {
  display: flex;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  align-items: flex-start;
}

.rank-cover {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-title a {
  color: #1a1a1a;
}

.rank-title a:hover {
  color: #007acc;
}

.rank-reason {
  font-size: 0.8125rem;
  color: #666666;
  line-height: 1.5;
}

/* 阅读指南入口 */
.guide-entry-section {
  margin-bottom: 24px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guide-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.guide-card:hover {
  border-color: #007acc;
}

.guide-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-card-title a {
  color: #1a1a1a;
}

.guide-card-title a:hover {
  color: #007acc;
}

.guide-card-desc {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Pages / 题材分类页
   -------------------------------------------------------------------------- */
.layout-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.category-index {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  position: sticky;
  top: 80px;
}

.aside-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007acc;
}

.category-index-list li {
  margin-bottom: 2px;
}

.category-index-list li a {
  display: block;
  padding: 8px 10px;
  font-size: 0.875rem;
  color: #333333;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

.category-index-list li a:hover {
  background-color: #f0f7fc;
  color: #007acc;
  border-left-color: #007acc;
  text-decoration: none;
}

.aside-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
  font-size: 0.75rem;
  color: #999999;
}

.category-detail {
  min-width: 0;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.category-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
}

.category-figure {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.category-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card p {
  font-size: 0.875rem;
  color: #444444;
  margin-bottom: 8px;
  line-height: 1.7;
}

.category-guide-links {
  background-color: #f8fbfd;
  border: 1px solid #d0e4f0;
  border-radius: 6px;
  padding: 16px;
}

.category-guide-links p {
  font-size: 0.875rem;
  color: #444444;
}

.category-guide-links a {
  margin-right: 16px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pages / 阅读指南页
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.guide-main {
  min-width: 0;
}

.guide-section {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.guide-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007acc;
}

.guide-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.guide-section p {
  font-size: 0.875rem;
  color: #444444;
  margin-bottom: 12px;
  line-height: 1.75;
}

.guide-section a {
  font-weight: 500;
}

.guide-figure {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}

.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-links li {
  margin-bottom: 2px;
}

.sidebar-links li a {
  display: block;
  padding: 6px 8px;
  font-size: 0.875rem;
  color: #444444;
  border-radius: 4px;
}

.sidebar-links li a:hover {
  background-color: #f0f7fc;
  color: #007acc;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Pages / 人气榜单页
   -------------------------------------------------------------------------- */
.ranking-content {
  min-width: 0;
}

.ranking-section {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.ranking-section .section-heading {
  margin-bottom: 12px;
}

.ranking-section .section-heading h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.ranking-media {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ranking-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-table th {
  background-color: #f0f7fc;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #007acc;
  white-space: nowrap;
}

.ranking-table td {
  padding: 10px 14px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333333;
}

.ranking-table tbody tr:hover {
  background-color: #fafafa;
}

.table-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: #888888;
}

.ranking-tips {
  background-color: #fff8f0;
  border: 1px solid #ffe0c0;
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
}

.ranking-tips h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.ranking-tips p {
  font-size: 0.875rem;
  color: #444444;
  line-height: 1.7;
}

.ranking-tips a {
  margin-right: 12px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pages / 追更技巧页
   -------------------------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.article-content {
  min-width: 0;
}

.content-section {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.content-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007acc;
}

.content-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.content-section p {
  font-size: 0.875rem;
  color: #444444;
  margin-bottom: 12px;
  line-height: 1.75;
}

.method-step {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.method-step:last-child {
  border-bottom: none;
}

.method-step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #007acc;
  margin-bottom: 6px;
}

.method-step p {
  margin-bottom: 0;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-item {
  background-color: #f8fbfd;
  border: 1px solid #d0e4f0;
  border-radius: 6px;
  padding: 14px;
}

.tool-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.tool-item p {
  font-size: 0.8125rem;
  color: #555555;
  margin-bottom: 0;
  line-height: 1.6;
}

.plan-table {
  margin: 12px 0;
}

.plan-table th {
  background-color: #f0f7fc;
  color: #1a1a1a;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid #007acc;
}

.plan-table td {
  padding: 8px 12px;
  font-size: 0.8125rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333333;
}

.related-links li {
  margin-bottom: 4px;
}

.related-links li a {
  font-size: 0.875rem;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-nav li {
  margin-bottom: 2px;
}

.sidebar-nav li a {
  display: block;
  padding: 6px 8px;
  font-size: 0.875rem;
  color: #444444;
  border-radius: 4px;
}

.sidebar-nav li a:hover {
  background-color: #f0f7fc;
  color: #007acc;
  text-decoration: none;
}

.sidebar-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Pages / 阅读习惯页
   -------------------------------------------------------------------------- */
.article-body {
  max-width: 860px;
  margin: 0 auto;
}

.article-figure {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body .content-section {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.article-body .content-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007acc;
}

.article-body .content-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.article-body .content-section p {
  font-size: 0.875rem;
  color: #444444;
  margin-bottom: 12px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Pages / 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 20px;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 40px;
}

.error-code {
  font-size: 3rem;
  font-weight: 700;
  color: #007acc;
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.btn-back-home {
  background-color: #007acc;
  color: #ffffff;
  border: 1px solid #007acc;
}

.btn-back-home:hover {
  background-color: #005a99;
  color: #ffffff;
  text-decoration: none;
}

.error-actions a:not(.btn-back-home) {
  background-color: #ffffff;
  color: #007acc;
  border: 1px solid #007acc;
}

.error-actions a:not(.btn-back-home):hover {
  background-color: #f0f7fc;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsive / 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .update-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    grid-template-columns: 1fr 260px;
  }

  .article-layout {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 768px) {
  .header-shell {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-nav {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 10px 12px;
    border-radius: 4px;
  }

  .inner-main {
    padding: 16px 16px 40px;
  }

  .home-main {
    padding: 16px 16px 40px;
  }

  .layout-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-index {
    position: static;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copyright {
    grid-column: 1 / -1;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .update-cards {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .status-table-wrap {
    overflow-x: auto;
  }

  .status-table {
    min-width: 560px;
  }

  .category-tag-list {
    gap: 8px;
  }

  .tag-item {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }

  .page-title {
    font-size: 1.375rem;
  }

  .section-title {
    font-size: 1.125rem;
  }

  .ranking-item {
    padding: 10px;
  }

  .rank-cover {
    width: 64px;
    height: 64px;
  }

  .error-panel {
    padding: 24px;
  }

  .error-code {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .header-shell {
    padding: 10px 12px;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-sub {
    font-size: 0.6875rem;
  }

  .inner-main,
  .home-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .category-card,
  .guide-section,
  .ranking-section,
  .content-section {
    padding: 16px 14px;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-shell {
    padding: 24px 16px 16px;
  }

  .ranking-item {
    flex-direction: row;
  }

  .rank-cover {
    width: 56px;
    height: 56px;
  }

  .guide-card {
    padding: 16px 14px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions a {
    text-align: center;
  }
}
