/* ============================================
   娱乐头条 - 主样式
   主色：#e74c3c 娱乐红
   ============================================ */

:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --bg-white: #fff;
    --border: #eee;
    --gold: #f39c12;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--text); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 焦点区 ===== */
.focus-area {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
}
.focus-slider { min-width: 0; }
.focus-slider .hero-slider { height: 340px; border-radius: 10px; }
.focus-slider .hero-slider .swiper-slide { height: 340px; }
.focus-news {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 340px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.focus-news-title {
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 12px;
    flex-shrink: 0;
}
.focus-news-title h3 { font-size: 18px; font-weight: 700; color: var(--dark); }
.focus-news-item { margin-bottom: 8px; }
.focus-news-item.first .focus-news-img {
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}
.focus-news-item.first .focus-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.focus-news-item.first h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.focus-news-item:not(.1) {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.focus-news-item:not(.1):last-child { border-bottom: none; }
.focus-num {
    width: 22px;
    height: 22px;
    background: var(--border);
    color: var(--text-light);
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    border-radius: 4px;
}
.focus-news-item:nth-child(3) .focus-num { background: var(--primary); color: #fff; }
.focus-news-item:nth-child(4) .focus-num { background: var(--gold); color: #fff; }
.focus-news-item:nth-child(5) .focus-num { background: #e67e22; color: #fff; }
.focus-news-item:not(.1) a {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 栏目区块 ===== */
.block-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.category-card:last-child { margin-bottom: 0; }
.category-card .section-title { margin-bottom: 20px; }
.block-big-img {
    display: block;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.block-big-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.block-big { display: flex; flex-direction: column; min-width: 0; }
.block-big:hover .block-big-img img { transform: scale(1.05); }
.block-list { display: flex; flex-direction: column; min-width: 0; justify-content: space-between; }
.block-big h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.block-big p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}
.block-list-item {
    display: flex;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.block-list-item:last-child { border-bottom: none; }
.block-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 10px;
}
.block-list-item a {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.block-date {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 10px;
}

/* ===== 侧边CTA ===== */
.side-box.side-cta {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    text-align: center;
}
.side-box.side-cta h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}
.side-box.side-cta p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}
.side-box.side-cta a {
    display: block;
    background: #fff;
    color: #e74c3c;
    padding: 10px 0;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

/* ===== 今日头条滚动 ===== */
.headline-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.headline-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}
.headline-label {
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.headline-scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.headline-scroll span {
    display: inline-block;
    margin-right: 40px;
    font-size: 14px;
    color: var(--text-light);
    animation: headlineScroll 30s linear infinite;
}
.headline-scroll span a { color: var(--text-light); }
.headline-scroll span a:hover { color: var(--primary); }
@keyframes headlineScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== 顶部栏 ===== */
.top-bar {
    background: #1a1a1a;
    color: #999;
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; align-items: center; gap: 14px; }
.top-bar-right { display: flex; align-items: center; gap: 0; }
.top-bar a {
    color: #999;
    padding: 0 12px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s;
}
.top-bar a:last-child { border-right: none; }
.top-bar a:hover { color: var(--primary); }
.top-bar i { margin-right: 4px; }
.top-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.15);
}

/* ===== 主导航 ===== */
.site-header {
    background: #fff !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 76px;
}
.logo { justify-self: start; }
.main-nav { justify-self: center; }
.header-search { justify-self: end; }
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    font-size: 36px;
    color: var(--primary);
    line-height: 1;
}
.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    display: block;
    margin-top: 2px;
    font-weight: 400;
}
.main-nav { display: flex; justify-content: center; align-items: center; height: 100%; }
.main-nav ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; height: 100%; }
.main-nav li { position: relative; height: 100%; display: flex; align-items: center; }
.main-nav a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.header-search { flex-shrink: 0; }
.header-search form { display: flex; }
.header-search input {
    width: 160px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}
.header-search input:focus {
    border-color: var(--primary);
    width: 180px;
}
.header-search button {
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.header-search button:hover { background: var(--primary-dark); }

/* ===== 幻灯片 ===== */
.hero-slider {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--dark);
}
.hero-slider .swiper-slide { position: relative; height: 320px; }
.hero-slider .slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}
.hero-slider .slide-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    color: #fff;
}
.hero-slider .slide-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.hero-slider .slide-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 700px;
}
.hero-slider .slide-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}
.hero-slider .swiper-pagination-bullet {
    width: 36px;
    height: 4px;
    border-radius: 0;
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.hero-slider .swiper-pagination-bullet-active { background: var(--primary); }
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.hero-slider .swiper-button-prev:after,
.hero-slider .swiper-button-next:after {
    font-family: FontAwesome;
    font-size: 18px;
    font-weight: normal;
}
.hero-slider .swiper-button-prev:after { content: "\f104"; }
.hero-slider .swiper-button-next:after { content: "\f105"; }

/* ===== 通用区块 ===== */
.section {margin-top:20px;}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-left: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--primary);
}
.section-title .more { font-size: 14px; color: var(--text-muted); }
.section-title .more:hover { color: var(--primary); }

/* ===== 首页布局 ===== */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}
.main-col { min-width: 0; }
.side-col { min-width: 0; }

/* ===== 头条卡片 ===== */
.news-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.news-card.featured {
    display: grid;
    grid-template-columns: 320px 1fr;
}
.news-card.featured .card-img { height: 220px; overflow: hidden; }
.news-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .card-body { padding: 24px; }
.news-card .card-tag {
    display: inline-block;
    background: #fdf0ef;
    color: var(--primary);
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.news-card .card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-card .card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}
.news-card .card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 18px;
}
.news-card .card-meta i { margin-right: 4px; }

/* ===== 文章列表项 ===== */
.article-item {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.article-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.article-item .item-img {
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}
.article-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-item .item-body { min-width: 0; }
.article-item .item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}
.article-item .item-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.3px;
}
.article-item .item-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== 侧边栏 ===== */
.side-box {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.side-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* 热门排行 */
.mini-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.mini-list li:last-child { border-bottom: none; }
.mini-list li > div { flex: 1; min-width: 0; }
.mini-list .rank {
    width: 24px;
    height: 24px;
    background: var(--border);
    color: var(--text-light);
    text-align: center;
    line-height: 24px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.mini-list li:nth-child(1) .rank { background: var(--primary); color: #fff; }
.mini-list li:nth-child(2) .rank { background: var(--gold); color: #fff; }
.mini-list li:nth-child(3) .rank { background: #e67e22; color: #fff; }
.mini-list .mini-title {
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-list .mini-heat {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 广告位 */
.ad-space {
    background: linear-gradient(135deg, #fdf0ef, #fff5f5);
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}
.ad-space .ad-label {
    font-size: 12px;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    display: inline-block;
    margin-bottom: 8px;
}
/* 有广告图片时铺满整个区域 */
.ad-space > a {
    display: block;
    width: calc(100% + 44px);
    height: calc(100% + 64px);
    margin: -32px -22px;
}
.ad-space > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.ad-space-large {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.ad-space-sidebar {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.ad-space-inline {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    font-size: 13px;
}

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    background: var(--bg);
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    color: var(--text-light);
    transition: all 0.3s;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; }

/* ===== 列表页头部 ===== */
.list-header {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    padding: 40px 0;
    margin-bottom: 10px;
    color: #fff;
}
.list-header .breadcrumb { color: rgba(255,255,255,0.6); }
.list-header .breadcrumb a { color: rgba(255,255,255,0.6); }
.list-header .breadcrumb a:hover { color: #fff; }
.list-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
}
.pagination a:hover, .pagination a:active {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 文章详情 ===== */
.article-detail {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.article-detail .detail-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--dark);
}
.article-detail .detail-meta {
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.article-detail .detail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}
.article-detail .detail-content p { margin-bottom: 16px; }
.article-detail .detail-content img { margin: 16px auto; border-radius: 8px; }
.article-detail .detail-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article-detail .detail-nav,
.gallery-detail .detail-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 16px;
}
.article-detail .detail-nav > div,
.gallery-detail .detail-nav > div {
    flex: 1;
    width: 50%;
    min-width: 0;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}
.article-detail .detail-nav span,
.gallery-detail .detail-nav span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.article-detail .detail-nav a,
.gallery-detail .detail-nav a {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    display: block;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    line-height: 1.6;
}
.article-detail .detail-nav a:hover,
.gallery-detail .detail-nav a:hover { color: var(--primary); }
.article-detail .detail-nav .nav-next,
.gallery-detail .detail-nav .nav-next { text-align: right; }
.nav-prev .no-nav, .nav-next .no-nav { color: var(--text-muted); font-size: 14px; }

/* ===== 图集 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item .gallery-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.gallery-item .gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover .gallery-img img { transform: scale(1.08); }
.gallery-item .gallery-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 10px;
}
.gallery-item .gallery-body { padding: 14px 16px; }
.gallery-item .gallery-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-item .gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.gallery-detail {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.gallery-detail .gallery-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}
.gallery-detail .gallery-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.gallery-detail .gallery-photos { display: grid; gap: 16px; }
.gallery-detail .gallery-photos img { width: 100%; border-radius: 8px; }

/* ===== 关于/留言/评论 ===== */
.about-page, .message-page, .comment-section {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.about-page .about-content { font-size: 15px; line-height: 2; }

.message-form {
    background: var(--bg);
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.message-form .form-group { margin-bottom: 16px; }
.message-form .form-row { display: flex; flex-wrap: wrap; margin-left: 0; margin-right: 0; gap: 12px; }
.message-form .form-row > .form-group { flex: 1 1 140px; min-width: 0; }
@supports selector(:has(*)) {
    .message-form .form-row > .form-group:has(.codeimg) { flex: 0 0 auto; }
}
.message-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}
.message-form input, .message-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
.message-form input:focus, .message-form textarea:focus { border-color: var(--primary); }
.message-form textarea { min-height: 120px; resize: vertical; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover { background: var(--primary-dark); }

.message-list .message-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.message-list .message-item:last-child { border-bottom: none; }
.message-list .msg-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.message-list .msg-user { font-weight: 600; color: var(--dark); }
.message-list .msg-time { font-size: 12px; color: var(--text-muted); }
.message-list .msg-content { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.message-list .msg-reply {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-light);
}
.message-list .msg-reply b { color: var(--primary); }

/* 留言页新样式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover { background: var(--primary-dark); }
.message-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.message-item:last-child { border-bottom: none; }
.message-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}
.message-body { flex: 1; }
.message-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.message-name { font-weight: 600; color: var(--dark); }
.message-date { font-size: 12px; color: var(--text-muted); }
.message-content { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.message-reply {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fdf0ef;
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: var(--text-light);
}
.message-reply strong { color: var(--primary); }

/* 侧边导航 */
.side-nav { list-style: none; }
.side-nav li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.side-nav li:last-child { border-bottom: none; }
.side-nav a {
    color: var(--text-light);
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}
.side-nav a:hover { color: var(--primary); padding-left: 6px; }

/* ===== 页脚 ===== */
.site-footer {
    background: var(--dark);
    color: #aaa;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}
.site-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}
.site-footer p, .site-footer li {
    font-size: 13px;
    line-height: 2;
    color: #999;
}
.site-footer a { color: #999; }
.site-footer a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ===== 评论区 ===== */
.comment-section { margin-top: 10px; }
.comment-form {
    background: var(--bg);
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.comment-form h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}
.comment-form .form-group { margin-bottom: 14px; }
.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-light);
}
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comment-name { font-weight: 600; color: var(--dark); font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}
.comment-actions {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.comment-actions a { color: var(--text-muted); }
.comment-actions a:hover { color: var(--primary); }

/* 评论区块标题（对齐留言页 h3 层级） */
.comment-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}
/* 头像容器：无真实头像（系统默认logo）时，用红色渐变图标圆兜底，对齐留言页头像 */
.comment-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.comment-avatar-wrap::before {
    content: "\f007";
    font-family: FontAwesome;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.comment-avatar-wrap .comment-avatar {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
}
.comment-avatar-wrap .comment-avatar[src*='default/images/logo.png'] { visibility: hidden; }
.comment-sub .comment-avatar-wrap,
.comment-sub .comment-avatar-wrap .comment-avatar { width: 32px; height: 32px; }
.comment-sub .comment-avatar-wrap::before { font-size: 14px; }

/* ===== 列表页头条 ===== */
.list-featured {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.list-featured-img {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}
.list-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.list-featured-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 12px;
    line-height: 1.4;
}
.list-featured-body p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.list-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 8px;
}

/* ===== 面包屑栏 ===== */
.breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb-bar .breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb-bar .breadcrumb a { color: var(--text-muted); }
.breadcrumb-bar .breadcrumb a:hover { color: var(--primary); }
.breadcrumb-bar .breadcrumb .fa-angle-right { font-size: 10px; color: #ccc; }

/* ===== 二级栏目导航 ===== */
.sub-sortnav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}
.sub-sortnav .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.ssn-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.25s;
}
.ssn-item:hover { color: var(--primary); border-color: var(--primary); }
.ssn-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.ssn-active:hover { color: #fff; }
.ssn-count {
    font-size: 11px;
    line-height: 16px;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.35);
}

/* ===== 文章正文排版 ===== */
.detail-content h1, .detail-content h2, .detail-content h3, .detail-content h4 {
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 14px;
    line-height: 1.4;
}
.detail-content h2 {
    font-size: 22px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}
.detail-content h3 { font-size: 19px; }
.detail-content h4 { font-size: 17px; }
.detail-content p {
    margin-bottom: 18px;
    text-align: justify;
}
.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.detail-content ul, .detail-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.detail-content li { margin-bottom: 8px; line-height: 1.8; }
.detail-content ul li { list-style: disc; }
.detail-content ol li { list-style: decimal; }
.detail-content blockquote {
    border-left: 4px solid var(--primary);
    background: #fdf0ef;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-light);
    font-style: italic;
}
.detail-content a {
    color: var(--primary);
    text-decoration: underline;
}
.detail-content strong { color: var(--dark); font-weight: 600; }
.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.detail-content th, .detail-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}
.detail-content th { background: var(--bg); font-weight: 600; }
.detail-content pre {
    background: var(--dark);
    color: #e0e0e0;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 20px 0;
}
.detail-content code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
}
.detail-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}
.detail-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .home-layout { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-card.featured { grid-template-columns: 1fr; }
    .news-card.featured .card-img { height: 200px; }
    .article-item { grid-template-columns: 1fr; }
    .article-item .item-img { height: 180px; }
    .header-search { display: none; }
    .focus-area { grid-template-columns: 1fr; }
    .block-layout { grid-template-columns: 1fr; }
    .list-featured { grid-template-columns: 1fr; }
    .list-featured-img { height: 200px; }
    .article-detail .detail-nav,
    .gallery-detail .detail-nav { flex-direction: column; }
    .article-detail .detail-nav > div,
    .gallery-detail .detail-nav > div { width: 100%; }
    .article-detail .detail-nav .nav-next,
    .gallery-detail .detail-nav .nav-next { text-align: left; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero-slider { height: 300px; }
    .hero-slider .swiper-slide { height: 300px; }
    .hero-slider .slide-title { font-size: 22px; }
    .hero-slider .slide-content { bottom: 30px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-detail, .gallery-detail, .about-page, .message-page, .comment-section { padding: 20px; }
    .article-detail .detail-title { font-size: 22px; }
}

/* ===== 评论子评论 ===== */
.comment-sub {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8f9fb;
    border-radius: 8px;
}
.comment-sub .comment-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.comment-sub .comment-item:first-child { padding-top: 0; }
.comment-sub .comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.comment-sub .comment-avatar { width: 32px; height: 32px; }
.comment-sub .comment-replyto { color: var(--primary); font-size: 13px; margin-right: 4px; }

/* ===== 评论回复弹框（模板风格定制） ===== */
.comment-modal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}
.comment-modal .modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}
.comment-modal .modal-title { color: #fff; font-size: 16px; font-weight: 600; }
.comment-modal .modal-header .close { color: rgba(255,255,255,0.8); text-shadow: none; }
.comment-modal .modal-header .close:hover { color: #fff; }
.comment-modal .modal-body { padding: 20px; }
.comment-modal textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}
.comment-modal textarea:focus { border-color: var(--primary); }

/* ===== 评论分页按钮 ===== */
.btn-page {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.btn-page:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

/* 分页数字条（{page:numbar} 输出 .page-num，当前页为 .page-num-current） */
.page-num {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s;
}
a.page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}
.page-num-current,
a.page-num-current,
a.page-num-current:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* ===== 移动端汉堡菜单 ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.mobile-nav-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1090;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1100;
    /* 用 transform 移出视口：不占布局空间，避免手机 WebView 把它计入页面宽度撑出右侧空白 */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s, visibility 0.3s;
    overflow-y: auto;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
}
body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }
body.nav-open .mobile-nav-mask { display: block; opacity: 1; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-search {
    display: flex;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-search input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
}
.mobile-nav-search input:focus { border-color: var(--primary); }
.mobile-nav-search button {
    padding: 9px 14px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-nav ul li a {
    display: block;
    padding: 13px 20px;
    color: var(--dark);
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid #f2f3f7;
}
.mobile-nav ul li a:hover { background: #f8f9fb; color: var(--primary); }
.mobile-nav ul li a i { width: 22px; color: var(--primary); }
.mobile-nav-extra { background: #f8f9fb; }

@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    /* 手机/平板端 header 改 flex：logo 居左、菜单按钮靠右 */
    .header-inner { display: flex; align-items: center; }
    .logo { flex: 1; }
    .nav-toggle { margin-left: auto; }
}

/* ===== 顶部 logo 图片（后台"站点信息-站点logo"可控，无图时回退文字logo） ===== */
.logo-img { max-height: 46px; width: auto; display: inline-block; }

/* ===== 图集相册（图集详情页多图画廊） ===== */
.pic-gallery {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 18px;
}
.pic-gallery .pic-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f1f5;
}
.pic-gallery .pic-main .swiper-slide img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}
.pic-gallery .pic-main .swiper-button-next,
.pic-gallery .pic-main .swiper-button-prev {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.35);
    background-image: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pic-gallery .pic-main .swiper-button-next::after,
.pic-gallery .pic-main .swiper-button-prev::after {
    font-family: FontAwesome;
    font-size: 16px;
    color: #fff;
}
.pic-gallery .pic-main .swiper-button-next::after { content: "\f105"; }
.pic-gallery .pic-main .swiper-button-prev::after { content: "\f104"; }
.pic-gallery .pic-main .swiper-button-next:hover,
.pic-gallery .pic-main .swiper-button-prev:hover { background-color: var(--primary); }
.pic-gallery .pic-thumbs {
    margin-top: 10px;
    overflow: hidden;
}
.pic-gallery .pic-thumbs .swiper-slide {
    width: 88px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: all 0.2s;
}
.pic-gallery .pic-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pic-gallery .pic-thumbs .swiper-slide:hover { opacity: 1; }
.pic-gallery .pic-thumbs .swiper-slide.active-thumb {
    border-color: var(--primary);
    opacity: 1;
}
.pic-gallery .pic-count {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}
.pic-gallery .pic-count i { color: var(--primary); margin-right: 4px; }

/* ===== 列表扩展字段筛选条（产品/图集列表页） ===== */
.filter-bar {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
}
.filter-row + .filter-row { border-top: 1px dashed var(--border); }
.filter-label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 30px;
}
.filter-label i { color: var(--primary); margin-right: 4px; }
.filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-item {
    display: inline-block;
    padding: 5px 16px;
    background: #f5f6f8;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.filter-item:hover {
    background: rgba(231,76,60,0.08);
    color: var(--primary);
    text-decoration: none;
}
.filter-item.active {
    background: var(--primary);
    color: #fff;
}

/* ===== 列表角标（置顶/推荐/头条，对齐 default 模板） ===== */
.item-badge {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    vertical-align: 2px;
    line-height: 18px;
}
.badge-top { background: var(--primary); color: #fff; }
.badge-rec { background: var(--gold); color: #fff; }
.badge-hot { background: var(--dark); color: #fff; }

/* ===== 页脚二维码（扫一扫手机访问，对齐 default 模板） ===== */
.footer-qrcode {
    margin-top: 14px;
    display: inline-block;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}
.footer-qrcode .code {
    width: 96px;
    height: 96px;
    background: #fff;
}
.footer-qrcode .code img { width: 96px; height: 96px; }
.footer-qrcode span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 页脚微信二维码弹出层 ===== */
.footer-wx-pop {
    position: fixed;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    z-index: 1200;
}
.footer-wx-pop img { width: 160px; height: 160px; display: block; }
.footer-wx-pop.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== 返回顶部 ===== */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 60px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    text-align: center;
    line-height: 44px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(231,76,60,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s;
    z-index: 1150;
}
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-top:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
    .pic-gallery .pic-main .swiper-slide img { max-height: 300px; }
    .back-top { right: 14px; bottom: 90px; }
    .filter-row { flex-direction: column; gap: 6px; }
}

/* ============================================
   视频模板样式（video.html / videolist.html）
   ============================================ */

/* ===== 视频播放区 ===== */
.video-hero {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.video-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
}
.video-hero .detail-meta { margin-bottom: 14px; }

/* 播放器容器：16:9 黑底圆角，与娱乐模板卡片风格统一 */
.video-player-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--dark);
}
.video-player-wrap .video-player {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

/* 封面浮层：播放前遮罩，点击进入播放 */
.video-cover {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(26,26,46,0.55);
}
.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.video-cover .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(231,76,60,0.92);
    color: #fff;
    text-align: center;
    line-height: 72px;
    font-size: 28px;
    box-shadow: 0 0 0 10px rgba(231,76,60,0.25), 0 8px 24px rgba(0,0,0,0.35);
    transition: transform 0.2s;
}
.video-cover:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-cover .video-cover-tip {
    position: absolute;
    left: 50%;
    top: calc(50% + 52px);
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* 正文内嵌 iframe 外链视频：16:9 自适应 */
.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.video-embed iframe,
.video-embed embed,
.video-embed object {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-embed p { color: #fff; padding: 12px; }

/* ===== 视频卡片网格（列表页 + 相关视频） ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}
.video-card .video-thumb {
    position: relative;
    height: 130px;
    overflow: hidden;
    background: var(--dark);
}
.video-card .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-card .video-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(231,76,60,0.9);
    color: #fff;
    text-align: center;
    line-height: 38px;
    font-size: 14px;
    box-shadow: 0 0 0 6px rgba(231,76,60,0.2);
    transition: transform 0.2s;
}
.video-card:hover .video-badge { transform: translate(-50%, -50%) scale(1.12); }
.video-card .item-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    margin-left: 0;
}
.video-card .video-body { padding: 10px 12px 12px; }
.video-card .video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    height: 40px;
    overflow: hidden;
    margin-bottom: 6px;
}
.video-card .video-title a { color: var(--dark); }
.video-card .video-title a:hover { color: var(--primary); }
.video-card .video-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}
.video-card .video-meta i { color: var(--primary); margin-right: 3px; }

@media (max-width: 992px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .video-player-wrap .video-player { min-height: 200px; }
}

/* ============================================
   图片模型模板样式（imagelist.html / product.html 瀑布流墙）
   ============================================ */

/* ===== 列表瀑布流：不等高卡片按列排布，图片保持原始比例 ===== */
.masonry {
    column-count: 3;
    column-gap: 16px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}
.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}
.masonry-item .masonry-img {
    position: relative;
    overflow: hidden;
}
.masonry-item .masonry-img img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}
.masonry-item:hover .masonry-img img { transform: scale(1.04); }
.masonry-item .masonry-img .item-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    margin-left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.masonry-item .masonry-body { padding: 10px 12px 12px; }
.masonry-item .masonry-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.masonry-item .masonry-title a { color: var(--dark); }
.masonry-item .masonry-title a:hover { color: var(--primary); }
.masonry-item .masonry-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}
.masonry-item .masonry-meta i { color: var(--primary); margin-right: 3px; }

@media (max-width: 992px) {
    .masonry { column-count: 2; }
}
@media (max-width: 576px) {
    .masonry { column-count: 2; column-gap: 10px; }
}

/* ===== 详情页图片瀑布流墙（product.html，与主轮播联动） ===== */
.photo-wall {
    column-count: 4;
    column-gap: 10px;
    margin-bottom: 18px;
}
.photo-wall .photo-wall-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}
.photo-wall .photo-wall-item img {
    width: 100%;
    display: block;
}
.photo-wall .photo-wall-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .photo-wall { column-count: 3; }
}
@media (max-width: 576px) {
    .photo-wall { column-count: 2; }
}

/* ===== 侧栏小图集网格（imagelist.html 侧栏"最新发布"） ===== */
.side-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.side-gallery a {
    display: block;
    aspect-ratio: 1/1;
    border-radius: 6px;
    overflow: hidden;
}
.side-gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.side-gallery a:hover img { transform: scale(1.08); }

/* ============================================
   移动端深度优化 v1.0.5（手机访问友好）
   ============================================ */
/* 横向溢出防御：clip 不创建滚动容器，吸顶头部不受影响 */
html { overflow-x: clip; }
/* 老版本手机 WebView 不支持 clip 时的兜底（hidden 兼容性最好） */
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
a, button, .pagination a, .pagination span { -webkit-tap-highlight-color: transparent; }

/* 正文表格窄屏横向滚动容器（foot.html 自动包裹 .detail-content 表格） */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
.table-scroll table { margin: 0; }
.detail-content { overflow-wrap: break-word; word-break: break-word; }
.detail-content iframe { max-width: 100%; }

/* ===== 移动端底部导航 ===== */
.m-tabbar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1080;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom);
}
.m-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    font-size: 11px;
    color: var(--text-light);
    text-decoration: none;
    min-height: 54px;
}
.m-tabbar a i { font-size: 20px; line-height: 1; flex-shrink: 0; transform: translateZ(0); }
.m-tabbar a span { flex-shrink: 0; white-space: nowrap; line-height: 1.2; transform: translateZ(0); }
.m-tabbar a.active,
.m-tabbar a:active { color: var(--primary); }
.m-tabbar a.active i { font-size: 21px; }

/* 搜索页搜索框（移动端直达搜索入口） */
.search-page-box {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.search-page-box form { display: flex; }
.search-page-box input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}
.search-page-box input:focus { border-color: var(--primary); }
.search-page-box button {
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
.search-page-box button:hover { background: var(--primary-dark); }

/* ===== 平板与手机（≤992px） ===== */
@media (max-width: 992px) {
    .focus-news { height: auto; }
    /* 首页美图片场：6 列 → 4 列 */
    .gallery-grid-6 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 手机（≤768px） ===== */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-inner { height: 60px; }
    .m-tabbar { display: grid; }
    .site-footer { padding: 22px 0 calc(68px + env(safe-area-inset-bottom)); }
    .footer-bottom p { font-size: 12px; line-height: 1.9; word-break: break-word; }
    /* 手机端底部简化：隐藏四栏导航区，仅保留版权行 + 底部导航栏 */
    .footer-grid { display: none; }
    .footer-bottom { border-top: none; padding-top: 0; }
    .message-form input, .message-form textarea,
    .comment-form input, .comment-form textarea,
    .mobile-nav-search input { font-size: 16px; }
    /* 手机端正文阅读：更大字号、行距舒展、左对齐 */
    .article-detail .detail-content { font-size: 17px; line-height: 1.9; }
    .article-detail .detail-content p { text-align: left; }
    .article-detail .detail-title { font-size: 21px; }
    .gallery-grid { gap: 12px; }
    .gallery-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .video-hero { padding: 14px; }
    .ad-space-sidebar { height: 130px; margin-bottom: 16px; }
    .side-box { padding: 16px; }
    .tag-cloud a { padding: 8px 16px; font-size: 14px; }
    .list-header { padding: 26px 0; }
    .list-title { font-size: 24px; }
    .detail-nav > div { padding: 12px 14px; }
    .detail-nav a { font-size: 15px; }
    .filter-items .filter-item { padding: 8px 16px; }
    .message-form, .comment-form { padding: 16px; }
    .gallery-detail .gallery-title { font-size: 22px; }
    .mobile-nav { width: 280px; }
}

/* ===== 小屏手机（≤576px） ===== */
@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .logo-icon { font-size: 26px; }
    .logo-text { font-size: 21px; }
    .logo-img { max-height: 38px; }
    .headline-bar { padding: 8px 0; }
    .headline-label { font-size: 12px; padding: 4px 10px; }
    .headline-scroll span { font-size: 13px; margin-right: 28px; }
    .focus-slider .hero-slider,
    .focus-slider .hero-slider .swiper-slide { height: 220px; }
    .hero-slider .slide-title { font-size: 18px; margin-bottom: 6px; }
    .hero-slider .slide-content { bottom: 18px; }
    .hero-slider .slide-desc { display: none; }
    .hero-slider .slide-tag { font-size: 12px; padding: 3px 12px; margin-bottom: 10px; }
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next { display: none; }
    .focus-news { padding: 14px; }
    .focus-news-item.first .focus-news-img { height: 120px; }
    .section-title h2 { font-size: 18px; }
    .news-card .card-body { padding: 16px; }
    .news-card .card-title { font-size: 18px; }
    .news-card.featured .card-img { height: 180px; }
    .block-big-img { height: 150px; }
    .block-big h3 { font-size: 16px; }
    .block-big p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* 列表项：左图右文紧凑布局 */
    .article-item { grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; }
    .article-item .item-img { height: 84px; border-radius: 6px; }
    .article-item .item-title {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .article-item .item-desc { display: none; }
    .article-item .item-meta { gap: 10px; font-size: 11px; }
    .list-featured { padding: 14px; }
    .list-featured-img { height: 170px; }
    .list-featured-body h2 { font-size: 19px; }
    .list-featured-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* 首页美图 3 列 → 2 列；相关推荐保持 2 列；图片高度统一 */
    .gallery-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid .gallery-img { height: 120px !important; }
    .gallery-item .gallery-body { padding: 10px 12px; }
    .gallery-item .gallery-title { font-size: 13px; }
    .gallery-detail { padding: 16px; }
    .pic-gallery { padding: 8px; }
    .pic-thumbs .swiper-slide { width: 62px; height: 46px; }
    .ad-space-large { height: 90px; padding: 18px 12px; }
    .ad-space-inline { height: 70px; }
    .pagination { gap: 4px; }
    .page-num { min-width: 40px; padding: 10px 0; }
    .pagination a, .pagination span { padding: 10px 14px; }
    .breadcrumb-bar { padding: 10px 0; }
    .breadcrumb-bar .breadcrumb { font-size: 12px; }
    .list-header { padding: 20px 0; }
    .list-title { font-size: 22px; }
    .list-subtitle { display: none; }
    .detail-meta { gap: 10px; font-size: 12px; padding-bottom: 12px; margin-bottom: 18px; }
    .detail-tags a { font-size: 13px; padding: 6px 12px; }
    .video-hero-title { font-size: 19px; }
    .video-grid { gap: 10px; }
    .video-card .video-thumb { height: 100px; }
    .side-gallery a { aspect-ratio: 1/1; }
    .filter-bar { padding: 12px; }
    .filter-items { gap: 6px; }
    .masonry { column-count: 2; column-gap: 10px; }
    .photo-wall { column-count: 2; column-gap: 8px; }
    .comment-item, .message-item { gap: 10px; }
    .comment-form, .message-form { padding: 14px; }
}

/* ===== 图集横滑条（首页红毯造型/剧照海报） ===== */
.gallery-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 4px 2px 12px;
}
.gallery-strip-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: block;
}
.gallery-strip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.gallery-strip-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.gallery-strip-item span {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 三列视频网格（首页/频道封面） ===== */
.video-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
    .video-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 频道封面页 ===== */
.channel-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 36px 32px;
    color: #fff;
}
.channel-banner h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}
.channel-banner p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 640px;
    margin-bottom: 0;
}
.channel-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.85;
}
.channel-stats span i { margin-right: 4px; }

.channel-module {
    margin-bottom: 30px;
}
.channel-module-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
}
.channel-module-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
}
.channel-module-title h2 i { color: var(--primary); margin-right: 8px; }
.channel-module-title .more {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
}
.channel-module-title .more:hover { color: var(--primary); }
