body:has(.media-news-page) {
    min-width: 1200px;
    background: #fbfcf8;
    color: #25352d;
}

body:has(.media-news-page) #particles-js {
    display: none !important;
}

.media-news-page,
.media-news-page * {
    box-sizing: border-box;
}

.media-news-page {
    overflow: hidden;
    color: #26372e;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.media-news-page a {
    color: inherit;
    text-decoration: none;
}

.media-news-page img {
    display: block;
    max-width: 100%;
}

.media-wrap {
    width: 1220px;
    margin: 0 auto;
}

.media-hero {
    position: relative;
    height: 420px;
    background:
        linear-gradient(90deg, rgba(245,251,247,.98) 0%, rgba(245,251,247,.82) 22%, rgba(245,251,247,.15) 52%, rgba(245,251,247,.03) 100%),
        url("/upload/file/contents/2023/10/653398d68f3bd.jpg") center center / cover no-repeat;
}

.media-hero:before {
    content: "";
    position: absolute;
    left: -42px;
    top: 0;
    width: 335px;
    height: 420px;
    background:
        radial-gradient(ellipse at 18% 42%, rgba(70,132,74,.13), transparent 55%),
        linear-gradient(135deg, rgba(89,151,82,.2), transparent 35%);
    clip-path: polygon(0 0, 72% 0, 54% 100%, 0 100%);
    opacity: .55;
}

.media-hero:after {
    content: "";
    position: absolute;
    right: 70px;
    top: 22px;
    width: 270px;
    height: 160px;
    background:
        radial-gradient(circle at 76% 32%, rgba(85,146,94,.14), transparent 32%),
        radial-gradient(circle at 35% 72%, rgba(93,165,98,.1), transparent 36%);
    border-radius: 42% 58% 44% 56%;
    opacity: .52;
}

.media-hero__inner {
    position: relative;
    z-index: 2;
    height: 100%;
}

.media-hero__copy {
    width: 420px;
    padding-top: 132px;
    margin-left: 48px;
}

.media-hero__copy h1 {
    margin: 0;
    color: #1f7b45;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

.media-hero__copy span {
    display: block;
    width: 72px;
    height: 3px;
    margin: 24px 0 24px;
    background: #267746;
    border-radius: 999px;
}

.media-hero__copy p {
    margin: 0;
    color: #22362c;
    font-size: 21px;
    line-height: 1.5;
}

.media-channel {
    position: relative;
    z-index: 5;
    display: flex;
    /* KXC(2026-08-23): 原来是写死的 6 列网格，因为当时只服务媒体动态那一个栏目。
       现在这个模板服务所有文章与图文栏目，导航项数是动态的（草粉圈那组只有 2 项，
       媒体动态那组有 6 项）。

       网格不适合可变项数：auto-fit 下 2 项会各自撑到 581px，中间空出一大片；
       写死 6 列则会让 2 项挤在左边三分之一。改用 flex 居中排列 ——
       项数多时自然铺开，项数少时聚在中间，两种情况都成立。 */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 52px;
    height: 92px;
    margin-top: -45px;
    padding: 0 28px;
    border: 1px solid rgba(54,93,68,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 18px 36px rgba(57,83,64,.12);
}

.media-channel a {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #4c5751;
    font-size: 16px;
    transition: color .3s cubic-bezier(.22,.61,.36,1);
}

/* KXC(2026-08-23): 下划线改精致 —— 金色 2px，收窄一半。
   宽度原来写死 132px，那是因为当年 6 项是等宽栅格；
   现在项宽随文字变化（"品牌·广东"和"联系我们"就不一样宽），
   改成跟随本项宽度。 */
.media-channel a:after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 2px;
    background: var(--kxc-gold, #c18747);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}

.media-channel a:hover,
.media-channel a.is-active {
    color: #247545;
    font-weight: 600;
}

.media-channel a.is-active:after,
.media-channel a:hover:after {
    transform: scaleX(1);
}

/* KXC(2026-08-23): 导航改为纯文字后的排版。
   原来每项是"图标+文字"两行居中；图标无法随栏目动态取得（栏目表的 icon 字段全站为空），
   与其给新栏目留一个空图标位，不如统一成克制的文字导航。
   选中态的下划线由上面的 a:after 负责，这里不再单独画一条 —— 我第一版
   在 span 上又加了一条，结果同一项出现两道下划线。 */
.media-channel a > span {
    font-size: 16px;
    letter-spacing: .02em;
}

.media-icon {
    position: relative;
    width: 28px;
    height: 28px;
    color: #59625d;
}

.media-icon:before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid currentColor;
    border-radius: 8px;
}

.media-icon-shield:before {
    border-radius: 50% 50% 46% 46%;
    transform: rotate(45deg) scale(.78);
}

.media-icon-culture:before {
    border-radius: 50%;
    box-shadow: 9px 0 0 -5px currentColor, -9px 0 0 -5px currentColor;
}

.media-icon-map:before {
    border-radius: 50%;
}

.media-icon-map:after {
    content: "";
    position: absolute;
    left: 12px;
    top: 7px;
    width: 5px;
    height: 10px;
    border-radius: 5px;
    background: currentColor;
}

.media-icon-phone:before {
    border-radius: 16px;
    transform: rotate(-32deg);
}

.media-icon-medal:before {
    border-radius: 50%;
}

.media-icon-medal:after,
.media-icon-news:after {
    content: "";
    position: absolute;
    left: 9px;
    top: 9px;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.media-icon-news:before {
    border-radius: 3px;
}

.media-main {
    margin-top: -47px;
    padding: 112px 0 78px;
    background:
        radial-gradient(circle at 8% 6%, rgba(222,235,226,.5), transparent 24%),
        radial-gradient(circle at 92% 17%, rgba(223,235,226,.46), transparent 20%),
        linear-gradient(180deg,#fbfcf9 0%,#fff 48%,#fbfcf9 100%);
}

.media-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.media-filters,
.media-sort {
    display: flex;
    align-items: center;
    gap: 26px;
}

.media-filters a,
.media-sort a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 4px;
    color: #4b5750;
    font-size: 15px;
    border-radius: 999px;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
}

.media-filters a.is-active,
.media-sort a.is-active {
    min-width: 56px;
    padding: 0 18px;
    color: #fff;
    background: #1f6b45;
    box-shadow: 0 8px 18px rgba(37,116,68,.18);
}

.media-sort {
    gap: 12px;
    color: #69736d;
    font-size: 14px;
}

.media-sort a:not(.is-active) {
    min-width: 56px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #dfe7e1;
}

.media-featured {
    display: grid;
    grid-template-columns: 590px 1fr;
    gap: 38px;
    height: 390px;
    padding: 24px;
    margin-bottom: 34px;
    overflow: hidden;
    border: 1px solid rgba(31,88,54,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 42px rgba(44,64,49,.1);
}

.media-featured__image {
    display: block;
    height: 330px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef4f0;
}

.media-featured__image img,
.media-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .45s cubic-bezier(.22,.61,.36,1);
}

.media-featured:hover img,
.media-card:hover img {
    transform: scale(1.035);
}

.media-featured__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 26px 10px 0;
}

.media-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    padding: 0 17px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    background: #287c49;
    border-radius: 999px;
}

.media-featured h2 {
    max-width: 480px;
    margin: 22px 0 14px;
    color: #17251e;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: 0;
}

.media-featured h2 a:hover,
.media-card h3 a:hover {
    color: #1f6b45;
}

.media-meta {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #7a857e;
    font-size: 14px;
}

.media-meta span {
    position: relative;
    padding-left: 20px;
}

.media-meta span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 1px solid #8e9992;
    border-radius: 50%;
}

.media-meta__views:before {
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px #fff;
}

.media-featured p {
    max-width: 500px;
    max-height: 82px;
    margin: 18px 0 24px;
    overflow: hidden;
    color: #5c6a62;
    font-size: 16px;
    line-height: 1.75;
}

.media-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 128px;
    height: 38px;
    padding: 0 22px;
    color: #287246;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #8db69b;
    border-radius: 999px;
    background: rgba(255,255,255,.66);
    transition: all .3s cubic-bezier(.22,.61,.36,1);
}

.media-more b {
    font-size: 17px;
    font-weight: 400;
}

.media-more:hover {
    color: #fff;
    background: #1f6b45;
    border-color: #1f6b45;
    box-shadow: 0 12px 24px rgba(38,113,68,.2);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 28px;
}

.media-card {
    overflow: hidden;
    min-height: 486px;
    border: 1px solid rgba(34,84,55,.09);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(47,65,51,.07);
    transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(47,65,51,.12);
}

.media-card__image {
    position: relative;
    display: block;
    height: 226px;
    overflow: hidden;
    background: #edf3ef;
}

.media-date-badge {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 66px;
    height: 66px;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg,#2b8a52,#1f7040);
    border-radius: 0 0 12px 0;
    box-shadow: 0 10px 18px rgba(16,79,42,.2);
}

.media-date-badge span,
.media-date-badge strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.05;
}

.media-card__body {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px 26px 25px;
}

.media-card h3 {
    height: 62px;
    margin: 14px 0 13px;
    overflow: hidden;
    color: #17241e;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: 0;
}

.media-card p {
    height: 56px;
    margin: 17px 0 23px;
    overflow: hidden;
    color: #6a766f;
    font-size: 14px;
    line-height: 1.95;
}

.media-card .media-more {
    min-width: 120px;
    height: 36px;
    margin-top: auto;
    font-size: 13px;
}

.media-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 54px;
}

.media-paging,
.media-paging * {
    font-size: 15px;
}

.media-paging a,
.media-paging span,
.media-paging .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 6px;
    color: #53625a;
    border: 1px solid #e0e8e2;
    border-radius: 5px;
    background: #fff;
}

.media-paging .current,
.media-paging span.current {
    color: #fff;
    border-color: #1f6b45;
    background: #1f6b45;
}

.media-paging .prev,
.media-paging .next,
.media-paging .prev_disabled,
.media-paging .next_disabled {
    color: #2f7a4f;
}

.media-paging .prev_disabled,
.media-paging .next_disabled {
    color: #b8c4bd;
    background: #fbfdfc;
}

.media-paging .prev:before,
.media-paging .next:before,
.media-paging .prev_disabled:before,
.media-paging .next_disabled:before {
    content: "";
    width: 8px;
    height: 8px;
    border-bottom: 2px solid currentColor;
}

.media-paging .prev:before,
.media-paging .prev_disabled:before {
    margin-left: 3px;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}

.media-paging .next:before,
.media-paging .next_disabled:before {
    margin-right: 3px;
    border-right: 2px solid currentColor;
    transform: rotate(-45deg);
}

.media-paging a:hover {
    color: #1f6b45;
    border-color: rgba(40, 121, 71, .45);
    background: #f4faf6;
}

.media-footer {
    position: relative;
    padding: 66px 0 30px;
    color: #dfece4;
    background:
        radial-gradient(circle at 14% 0%, rgba(74,141,93,.45), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(73,126,83,.3), transparent 32%),
        linear-gradient(135deg,#0b5a36 0%,#063f2a 48%,#06361f 100%);
}

.media-footer:before,
.media-footer:after {
    content: "";
    position: absolute;
    width: 260px;
    height: 220px;
    pointer-events: none;
    opacity: .16;
    background:
        radial-gradient(ellipse at 42% 45%, transparent 30%, rgba(255,255,255,.55) 31%, transparent 34%),
        radial-gradient(ellipse at 62% 64%, transparent 30%, rgba(255,255,255,.5) 31%, transparent 34%);
}

.media-footer:before {
    left: -30px;
    bottom: 12px;
    transform: rotate(-18deg);
}

.media-footer:after {
    right: -34px;
    top: 22px;
    transform: rotate(25deg);
}

.media-footer__top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 360px 1fr 218px;
    gap: 72px;
    align-items: start;
}

.media-footer__contact span {
    display: block;
    color: rgba(229,242,234,.82);
    font-size: 14px;
    line-height: 1.2;
}

.media-footer__contact strong {
    display: block;
    margin: 12px 0 26px;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.media-footer__contact p {
    margin: 11px 0 32px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.media-footer__badges {
    display: flex;
    gap: 28px;
    padding-top: 8px;
}

.media-footer__badges i {
    position: relative;
    display: block;
    width: 58px;
    padding-top: 46px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-style: normal;
    text-align: center;
    line-height: 1.1;
}

.media-footer__badges i:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}

.media-footer__badges i:after {
    position: absolute;
    left: 50%;
    top: 9px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.media-footer__badges i:nth-child(1):after { content: "✓"; }
.media-footer__badges i:nth-child(2):after { content: "∴"; }
.media-footer__badges i:nth-child(3):after { content: "◎"; }
.media-footer__badges i:nth-child(4):after { content: "↗"; }

.media-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 62px;
}

.media-footer__links dl {
    margin: 0;
}

.media-footer__links dt {
    margin-bottom: 22px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.media-footer__links dd {
    margin: 0 0 12px;
}

.media-footer__links a {
    color: rgba(232,242,236,.76);
    font-size: 14px;
    line-height: 1.2;
}

.media-footer__links a:hover {
    color: #fff;
}

.media-footer__qr {
    width: 214px;
    padding: 18px 18px 16px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0,0,0,.14);
}

.media-footer__qr strong {
    display: block;
    color: #246a42;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.media-footer__qr span {
    display: block;
    margin: 5px 0 12px;
    color: #63806d;
    font-size: 13px;
}

.media-footer__qr img {
    width: 148px;
    height: 148px;
    margin: 0 auto 12px;
    object-fit: cover;
}

.media-footer__qr a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 32px;
    color: #2b7148;
    font-size: 13px;
    border-radius: 999px;
    background: #eef6f0;
}

.media-footer__bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
}

.media-footer__bottom p {
    margin: 0;
    color: rgba(235,246,239,.76);
    font-size: 12px;
}

.media-footer__bottom a {
    margin-left: 34px;
    color: rgba(235,246,239,.8);
    font-size: 13px;
}

body:has(.media-news-page) .media-footer {
    display: none !important;
}

/* ============================================================
   图文展示列表的变体与空状态（2026-08-23）

   list_photo.php 现在与 list_article.php 共用这一个样式文件 ——
   全站 19 个图文栏目（草粉圈、发展历程、形象奖牌、质检报告、
   各年份归档…）由此获得与文章列表一致的观感，不另造一套。

   差别只在：图文栏目以图为主，卡片正文只有标题和日期，
   所以网格可以密一点、卡片正文区更矮。
   ============================================================ */

.media-grid--photo {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.media-grid--photo .media-card__body {
    padding: 18px 20px 20px;
}

.media-grid--photo .media-card__body h3 {
    font-size: 16px;
    line-height: 1.55;
    /* 标题最多两行，超出省略 —— 图文栏目标题长短差异很大，
       不限行数会让同一行的卡片高度参差不齐。 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 空栏目：给一句说明和一个出口，别渲染成只有标题的空壳 */
.media-empty {
    align-items: center;
    background: #fff;
    border: 1px dashed var(--kxc-green-line, #cfe0d5);
    border-radius: var(--kxc-radius, 12px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    margin: 8px 0 24px;
    padding: 70px 24px;
    text-align: center;
}
.media-empty p {
    color: var(--kxc-ink-faint, #8b968e);
    font-size: 16px;
    margin: 0;
}
