:root {
      --theme-red: #ef483f;
      --theme-red-hover: #d63b33;
      --bg-body: #f4f6f8;
      --bg-card: #ffffff;
      --text-main: #1f2937;
      --text-muted: #6b7280;
      --border-color: #f0f0f0;
      --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0; font-family: var(--font-family); background-color: var(--bg-body);
      color: var(--text-main); line-height: 1.5; -webkit-font-smoothing: antialiased;
    }
    a{-webkit-text-decoration: none;text-decoration: none;color: var(--text-main);transition: color .2s ease, background .2s ease, border-color .2s ease;}
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    blockquote, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, li, ol, p, pre, td, th, ul {
    margin: 0;
    padding: 0;
    }
    ul, ol {
    list-style: none;
  }
    /* 导航栏 */
    header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
    .nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
    .logo {font-size: 24px; font-weight: 800; color: var(--theme-red); text-decoration: none; display: flex;align-items: center;}
    .logo img{max-height: 40px; }
    .nav-links { display: flex; gap: 24px; }
    .nav-links a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 15px; transition: color 0.2s; }
    .nav-links a:hover { color: var(--theme-red); }
    .search-box { display: flex; background: #f3f4f6; border-radius: 20px; padding: 6px 16px; align-items: center; border: 1px solid transparent; transition: 0.2s; }
    .search-box:focus-within { background: #fff; border-color: var(--theme-red); }
    .search-box input { border: none; background: transparent; outline: none; width: 200px; font-size: 14px; }

    /* 两栏布局 */
    .layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin: 30px auto 60px; align-items: start; }



/* --- 1. 列表页头部说明 (Header) --- */
/* --- 1. 列表页头部说明 (Header) 优化：卡片化 --- */
.goodbuy-cate-head {
    background-color: #ffffff; /* 增加白底 */
    border: 1px solid #f0f0f0; /* 与下方卡片保持一致的边框 */
    border-radius: 12px; /* 统一的圆角 */
    padding: 32px 40px; /* 增加四周的内边距，提升呼吸感 */
    margin-bottom: 24px; /* 与下方列表的间距 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); /* 极弱的基础阴影，增加质感 */
}

.goodbuy-cate-head h1 {
    font-size: 26px; /* 稍微放大一点，突出页面大标题的地位 */
    color: #111827;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.goodbuy-cate-head p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* --- 2. 商店卡片列表容器 --- */
.goodbuy-cate-list {
    display: flex;
    flex-direction: column;
    gap: 24px; /* 卡片之间的垂直间距 */
}

/* --- 3. 独立的商店卡片 (Content Card) --- */
.content-card {
    display: flex;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    gap: 24px;
}

/* 鼠标悬浮时产生细微的红色光晕和上浮效果 */
.content-card:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.06);
    transform: translateY(-2px);
    border-color: #fee2e2;
}

/* --- 4. 卡片左侧：品牌图片 --- */
.content-card__media {
    flex-shrink: 0;
    width: 160px; /* 固定图片容器宽度 */
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* --- 5. 卡片右侧：内容区与排版 --- */
.content-card__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.content-card__title {
    font-size: 18px; /* 与焦点卡片标题字号一致 */
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.4;
}

.content-card__title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.content-card__title a:hover {
    color: #ef4444; /* 悬浮时标题变主题色 */
}

/* 描述文字：缩小字号并限制行数 */
.content-card__summary {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    /* 超过 3 行自动显示省略号，保持列表整洁 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 6. 卡片底部：元信息与行动按钮 --- */
.content-card__meta {
    margin-top: auto; /* 自动将底部区域推到最下方 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f9fafb;
    padding-top: 16px;
}

/* 左侧分类名 (Best Online Stores) 采用标签化设计 */
.content-card__meta > a:not(.shop-action) {
    display: inline-block;
    color: #ef4444; 
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    background-color: #fef2f2;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.content-card__meta > a:not(.shop-action):hover {
    background-color: #fee2e2;
}

/* 右侧直达按钮 (Visit Shop) */
.shop-action {
    display: inline-block;
    background-color: #ef4444;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.shop-action:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
}

/* --- 7. 移动端适配 (响应式) --- */
@media (max-width: 768px) {
    .layout { grid-template-columns: minmax(0, 1fr);max-width: 100%;}
    /* ==========================================================================
   ========================================================================== */

    .content-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 14px;
        row-gap: 8px;
        align-items: start;
        padding: 14px;
    }

    /* 让 body 内部元素直接参与 content-card 网格 */
    .content-card__body {
        display: contents;
    }

    .content-card__media {
        grid-column: 1;
        grid-row: 1 / 3;
        display: block;
        width: 120px;
        aspect-ratio: 4 / 3;
        padding: 5px;
        overflow: hidden;
        border: 1px solid var(--border-color, #dfe3e6);
        border-radius: 6px;
        background: #fff;
    }

    .content-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 4px;
        object-fit: contain;
    }

    .content-card__title {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        margin: 0;
        font-size: 16px;
        line-height: 1.35;
        letter-spacing: 0;
    }

    .content-card__title a {
        color: var(--text-main, #17232b);
        text-decoration: none;
    }

    .content-card__summary {
        grid-column: 2;
        grid-row: 2;
        display: -webkit-box;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        color: var(--text-muted, #66737c);
        font-size: 12px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .content-card__meta {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 5px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color, #dfe3e6);
    }

    .content-card__meta > a:first-child {
        min-width: 0;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-card__meta .shop-action {
        flex: 0 0 auto;
        min-width: 108px;
        padding: 9px 14px;
        border-radius: 4px;
        background: var(--theme-red, #ef483f);
        color: #fff;
        font-size: 13px;
        line-height: 1.2;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    .content-card__meta .shop-action:hover {
        background: var(--theme-red-hover, #d63b33);
        color: #fff;
    }
}
@media (max-width: 420px) {
    .content-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 12px;
    }

    .content-card__media {
        width: 96px;
    }

    .content-card__title {
        font-size: 15px;
    }

    .content-card__summary {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .content-card__meta {
        gap: 8px;
    }

    .content-card__meta .shop-action {
        min-width: 96px;
        padding-inline: 10px;
    }
}
/* ==========================================================
   Content article: header and reading area
   ========================================================== */

.shopping-article {
  width: 100%;
}

.article-offer {
  display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #ef483f;
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.04);
    gap: 32px;
}

.article-offer__media {
  width: 180px;
  min-height: 150px;
  flex: 0 0 180px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 5px;
  overflow: hidden;

  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #f8faf9;
}

.article-offer__media img {
  width: 100%;
  height: 100%;
  max-height: 170px;

  object-fit: contain;
  border-radius: 6px;
}

.article-offer__content {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
}

/* 第一行：标题 */
.article-offer__title {
  margin: 0;

  color: var(--text-main, #1f2937);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
}

.article-offer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;

  margin-top: 12px;

  color: var(--text-muted, #6b7280);
  font-size: 13px;
}

.article-offer__meta a {
  color: var(--theme-red, #ef483f);
}

.article-offer__meta time {
  color: var(--text-muted, #6b7280);
}

.article-offer__action {
  display: flex;
  justify-content: flex-end;

  margin-top: auto;
  padding-top: 16px;
}

.visit-shop-button {
  min-width: 140px;
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 22px;

  border-radius: 6px;
  background: var(--theme-red, #ef483f);
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.visit-shop-button:hover {
  background: var(--theme-red-hover, #d63b33);
  color: #ffffff;
}

.article-reading {
  background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #f0f0f0;
}

.article-reading__body {
  color: var(--text-main, #1f2937);
  font-size: 16px;
  line-height: 1.8;
}

.article-reading__body p {
  margin: 0 0 20px;
}

.article-reading__body h2 {
  margin: 32px 0 15px;

  color: var(--text-main, #1f2937);
  font-size: 24px;
  line-height: 1.35;
}

.article-reading__body h3 {
  margin: 26px 0 12px;

  color: var(--text-main, #1f2937);
  font-size: 20px;
  line-height: 1.4;
}

.article-reading__body ul,
.article-reading__body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  list-style: initial;
}

.article-reading__body li {
  margin-bottom: 8px;
}

.article-reading__body img {
  max-width: 100%;
  height: auto;

  display: block;
  margin: 20px auto;

  border-radius: 8px;
}

.article-reading__image {
  margin: 30px 0 0;
  padding-top: 30px;

  border-top: 1px solid var(--border-color, #e5e7eb);
}

.article-reading__image img {
  width: 100%;
  height: auto;

  display: block;
  margin: 0 auto;

  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
}

@media (max-width: 991px) {
  .article-offer__title {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .article-offer {
    flex-direction: column;

    gap: 18px;
    padding: 18px;
  }

  .article-offer__media {
    width: 100%;
    height: 190px;
    min-height: 190px;
    flex-basis: auto;
  }

  .article-offer__title {
    font-size: 21px;
  }

  .article-offer__action {
    padding-top: 18px;
  }

  .visit-shop-button {
    width: 100%;
  }

  .article-reading {
    padding: 20px;
  }

  .article-reading__body {
    font-size: 15px;
  }

  .article-reading__body h2 {
    font-size: 21px;
  }

  .article-reading__image {
    margin-top: 22px;
    padding-top: 22px;
  }
}

 /* right */
    .goodbuy-block { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
    .goodbuy-block h3 { margin: 0 0 16px 0; font-size: 16px; border-bottom: 2px solid var(--bg-body); padding-bottom: 10px; }
    .category-list { list-style: none; padding: 0; margin: 0; }
    .category-list li { margin-bottom: 12px; }
    .category-list a { color: var(--text-main); text-decoration: none; font-size: 14px; display: flex; justify-content: space-between; }
    .category-list a:hover { color: var(--theme-red); }
    .category-list span { color: var(--text-muted); background: var(--bg-body); padding: 2px 8px; border-radius: 10px; font-size: 12px; }

    .tag-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tag-list a { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 7px 8px; border: 1px solid var(--border-color); border-radius: 6px; background: #f8faf9;color:var(--text-muted ); text-align: center; font-size: 12px; font-weight: 600; line-height: 1.35; }
    .tag-list a:hover { border-color: #3b535a; background: #3b535a; color: #fff; }

.brands ul{display: flex;flex-wrap: wrap;border-radius: 10px;justify-content: space-between;}
.brands img{width: 100%;height: 60px;object-fit: contain;}
.brands ul li{width: 48%;margin-bottom: 10px;}
.brands ul li div{margin: 0;border-radius: 10px;}
.brands ul li div a{display: block;border: 1px solid var(--border-color);border-radius: 8px;color: var(--text-main);}
.brands ul li span{text-align: center;display: block;padding: 10px;border-top: 1px #f0f0f0 solid;}
.goodbuy-late { list-style: none; padding: 0; margin: 0; }
    .goodbuy-late li { margin-bottom: 16px; }
    .goodbuy-late li:last-child { margin-bottom: 0; }
    
    .goodbuy-late a {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      padding: 6px;
      margin: -6px;
      border-radius: 6px;
      transition: background 0.2s;
    }
    .goodbuy-late a:hover {
      background: var(--bg-body);
    }
    .store-icon {
      width: 44px;
      height: 44px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0; 
      overflow: hidden;
    }
    
    .store-details {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      overflow: hidden; 
    }
    .store-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-main);
      line-height: 1.3;
      margin-bottom: 2px;
      transition: color 0.2s;
      display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .goodbuy-late a:hover .store-name { color: var(--theme-red); }
    
    .store-icon figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.store-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ==========================================================================
   Joomla Pagination
   ========================================================================== */

.pagination__wrapper {
    width: 100%;
    margin: 30px 0 10px;
}

/* 页码总数说明 */
.pagination__wrapper .text-end {
    margin: 0 0 12px;
    color: var(--text-muted, #66737c);
    font-size: 13px;
    text-align: center;
}

/* links.php 中的外层工具栏 */
.pagination__wrapper .pagination-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 页码列表 */
.pagination__wrapper ul.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 每一个页码 */
.pagination__wrapper .page-item {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 普通页码 */
.pagination__wrapper .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--border-color, #dfe3e6);
    border-radius: 5px;
    background: #fff;
    color: var(--text-main, #17232b);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

/* 鼠标经过 */
.pagination__wrapper a.page-link:hover {
    color: var(--theme-red, #ef483f);
    border-color: var(--theme-red, #ef483f);
    background: #fff7f6;
}

/* 当前页 */
.pagination__wrapper .page-item.active .page-link {
    color: #fff;
    border-color: var(--theme-red, #ef483f);
    background: var(--theme-red, #ef483f);
    font-weight: 600;
    pointer-events: none;
}

/* 不可点击的上一页和下一页 */
.pagination__wrapper .page-item.disabled .page-link {
    color: #a9b0b5;
    border-color: var(--border-color, #dfe3e6);
    background: #f3f5f6;
    cursor: default;
    pointer-events: none;
}

/* 每页显示数量 */
.pagination__wrapper .limit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    color: var(--text-muted, #66737c);
    font-size: 13px;
}

.pagination__wrapper .limit select {
    height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--border-color, #dfe3e6);
    border-radius: 5px;
    background-color: #fff;
    color: var(--text-main, #17232b);
}
/* 分页方向符号：不依赖 Joomla 图标字体 */
.pagination__wrapper .icon-angle-double-left::before {
    content: "«";
}

.pagination__wrapper .icon-angle-left::before {
    content: "‹";
}

.pagination__wrapper .icon-angle-right::before {
    content: "›";
}

.pagination__wrapper .icon-angle-double-right::before {
    content: "»";
}

.pagination__wrapper [class*="icon-angle"]::before {
    font-family: Arial, sans-serif !important;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}
/* ==========================================================================
   Finder Search
   ========================================================================== */

.com-finder {
    width: 100%;
}

.com-finder > h1 {
    margin: 0 0 22px;
    color: var(--text-main, #17232b);
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: 0;
}

/* 搜索框 */
.com-finder__form {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--border-color, #dfe3e6);
    border-radius: 6px;
    background: #fff;
}

.com-finder__form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.com-finder__form .form-inline,
.com-finder__form .input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.com-finder__form label {
    margin-right: 12px;
    color: var(--text-main, #17232b);
    font-size: 14px;
    font-weight: 600;
}

.com-finder__form input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 15px;
    border: 1px solid var(--border-color, #dfe3e6);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: #fff;
    color: var(--text-main, #17232b);
    font: inherit;
    outline: none;
}

.com-finder__form input[type="text"]:focus {
    border-color: var(--theme-red, #ef483f);
}

.com-finder__form button[type="submit"] {
    height: 42px;
    padding: 0 22px;
    border: 1px solid var(--theme-red, #ef483f);
    border-radius: 0 5px 5px 0;
    background: var(--theme-red, #ef483f);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.com-finder__form button[type="submit"]:hover {
    border-color: var(--theme-red-hover, #d63b33);
    background: var(--theme-red-hover, #d63b33);
}

/* 搜索结果列表 */
.good-search-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 单个搜索结果 */
.good-search-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border-color, #dfe3e6);
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.good-search-item--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.good-search-img {
    display: block;
    width: 150px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-color, #dfe3e6);
    border-radius: 5px;
    background: #fff;
}

.good-search-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.good-search-content {
    min-width: 0;
}

.good-search-url {
    display: block;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--text-muted, #66737c);
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.good-search-url:hover {
    color: var(--theme-red, #ef483f);
}

.good-search-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0;
}

.good-search-title a {
    color: var(--text-main, #17232b);
    text-decoration: none;
}

.good-search-title a:hover {
    color: var(--theme-red, #ef483f);
}

/* 无结果信息 */
.com-finder__empty {
    padding: 28px;
    border: 1px solid var(--border-color, #dfe3e6);
    border-radius: 6px;
    background: #fff;
}

/* 手机 */
@media (max-width: 600px) {
    .com-finder__form {
        padding: 14px;
    }

    .com-finder__form label {
        display: none;
    }

    .good-search-item {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 13px;
        padding: 12px;
    }

    .good-search-img {
        width: 92px;
    }

    .good-search-title {
        font-size: 15px;
    }

    .good-search-url {
        margin-bottom: 5px;
        font-size: 11px;
    }
}

/* 手机 */
@media (max-width: 600px) {
    .pagination__wrapper {
        margin-top: 22px;
    }

    .pagination__wrapper ul.pagination {
        gap: 4px;
    }

    .pagination__wrapper .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .pagination__wrapper .limit {
        width: 100%;
        justify-content: center;
        margin: 12px 0 0;
    }
}

@media (max-width: 767px) {
  .content-category__header { padding: 18px; }
  .content-card { min-height: 148px; gap: 12px; padding: 12px; }
  .content-card__media { flex-basis: 34%; min-height: 112px; }
  .content-card__body { max-width: 66%; }
  .content-card__title { font-size: 17px; }
  .content-card__summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; }
  .content-card__meta { flex-wrap: wrap; gap: 8px; }
  .content-card__more { display: none; }
  .content-article { padding: 20px; }
  .content-article__header h1 { font-size: 25px; }
  .content-article__body { font-size: 15px; }
}
/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

/* 桌面端隐藏菜单按钮 */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 1px;
    background: var(--text-main, #17232b);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 打开时变成关闭符号 */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
    header {
        position: relative;
        z-index: 100;
    }

    .nav-inner {
        position: relative;
        min-height: 64px;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 40px;
        margin-left: auto;
    }

    /* 手机端下拉菜单 */
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        display: none;
        width: 100%;
        background: #1d1d1d;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .nav-links,
    .primary-nav ul {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .primary-nav .nav-item,
    .primary-nav li {
        display: block;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .primary-nav li:last-child {
        border-bottom: 0;
    }

    .primary-nav a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        color: #fff;
        font-size: 14px;
        line-height: 1.4;
        font-weight: 500;
        text-decoration: none;
        box-sizing: border-box;
    }

    .primary-nav a:hover,
    .primary-nav .current > a,
    .primary-nav .active > a {
        color: #fff;
        background: var(--theme-red, #ef483f);
    }

    /* 手机端隐藏顶部搜索框，需要保留时删除这段 */
    .search-box {
        display: none;
    }
}
/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    width: 100%;
    margin-top: 50px;
    border-top: 1px solid var(--border-color, #dfe3e6);
    background: #fff;
    color: var(--text-muted, #66737c);
}

.site-footer .site-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 24px;
    box-sizing: border-box;
}

.footer-copy {
    width: 100%;
}

.footer-copy p {
    margin: 0;
    letter-spacing: 0;
}

.foot-desc-1 {
    max-width: 900px;
    color: var(--text-muted, #66737c);
    font-size: 14px;
    line-height: 1.7;
}

.foot-desc-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 18px !important;
    color: var(--text-main, #17232b);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.foot-desc-2 a {
    position: relative;
    margin-right: 0 !important;
    color: var(--text-muted, #66737c);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.foot-desc-2 a:hover {
    color: var(--theme-red, #ef483f);
}

.foot-desc-2 a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 1px;
    height: 12px;
    background: var(--border-color, #dfe3e6);
    transform: translateY(-50%);
}

.foot-desc-3 {
    margin-top: 22px !important;
    padding-top: 18px;
    border-top: 1px solid var(--border-color, #dfe3e6);
    color: var(--text-muted, #66737c);
    font-size: 12px;
    line-height: 1.5;
}
/* Mobile Footer */
@media (max-width: 767px) {
    .site-footer {
        margin-top: 36px;
    }

    .site-footer .site-shell {
        padding: 26px 16px 20px;
    }

    .foot-desc-1 {
        font-size: 13px;
        line-height: 1.65;
    }

    .foot-desc-2 {
        gap: 10px 16px;
        margin-top: 16px !important;
        font-size: 12px;
    }

    .foot-desc-2 a:not(:last-child)::after {
        right: -8px;
    }

    .foot-desc-3 {
        margin-top: 18px !important;
        padding-top: 15px;
        font-size: 11px;
    }
}