/* 专题详情页 — 参考腾讯新闻专题布局 */

.zt-page {
    background: #f5f6f8;
    padding-bottom: 48px;
}

/* ---- Hero Banner ---- */
.zt-hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2a3a 0%, #2d4a6a 100%);
    color: #fff;
}

.zt-hero-banner--has-img {
    background: #1a2a3a;
}

.zt-hero-banner__bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.55);
    transform: scale(1.08);
}

.zt-hero-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 44px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.zt-hero-banner__main {
    flex: 1;
    min-width: 0;
}

.zt-hero-banner__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #fff;
}

.zt-hero-banner__subtitle {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 12px;
    opacity: 0.95;
    line-height: 1.5;
}

.zt-hero-banner__lead {
    font-size: 15px;
    line-height: 1.85;
    margin: 0;
    opacity: 0.88;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zt-hero-banner__cover {
    flex-shrink: 0;
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.zt-hero-banner__cover img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 主题色微调 */
.zt-theme-featured .zt-hero-banner:not(.zt-hero-banner--has-img) {
    background: linear-gradient(135deg, #3d2a1a, #6b4423);
}
.zt-theme-culture .zt-hero-banner:not(.zt-hero-banner--has-img) {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
}
.zt-theme-market .zt-hero-banner:not(.zt-hero-banner--has-img) {
    background: linear-gradient(135deg, #1a3a2a, #40916c);
}
.zt-theme-activity .zt-hero-banner:not(.zt-hero-banner--has-img) {
    background: linear-gradient(135deg, #6b1a1a, #c0392b);
}
.zt-theme-supplier .zt-hero-banner:not(.zt-hero-banner--has-img) {
    background: linear-gradient(135deg, #1a3a5c, #2980b9);
}

/* ---- Tab 导航 ---- */
.zt-tabs {
    position: sticky;
    top: var(--header-h, 88px);
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.zt-tabs__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.zt-tabs__inner::-webkit-scrollbar { display: none; }

.zt-tabs__item {
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 15px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.zt-tabs__item:hover {
    color: #3377ff;
}

.zt-tabs__item.is-active {
    color: #3377ff;
    font-weight: 600;
    border-bottom-color: #3377ff;
}

/* ---- 主内容区 ---- */
.zt-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.zt-panel {
    background: #fff;
    margin-top: 16px;
    padding: 28px 32px 32px;
    border-radius: 8px;
    scroll-margin-top: calc(var(--header-h, 88px) + 56px);
}

.zt-panel__title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

/* 正文 */
.zt-article-body {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    word-break: break-word;
}

.zt-article-body p { margin: 0 0 16px; }
.zt-article-body p:last-child { margin-bottom: 0; }
.zt-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}
.zt-article-body h2,
.zt-article-body h3 {
    margin: 24px 0 12px;
    color: #222;
    font-weight: 700;
}
.zt-article-body ul,
.zt-article-body ol {
    padding-left: 1.5em;
    margin: 0 0 16px;
}
.zt-article-body li { margin-bottom: 6px; }
.zt-article-body a { color: #3377ff; }
.zt-article-body blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 4px solid #3377ff;
    background: #f7f9ff;
    color: #666;
}

.zt-article-body--muted {
    font-size: 14px;
    color: #666;
}

/* ---- 信息流列表 ---- */
.zt-feed {
    display: flex;
    flex-direction: column;
}

.zt-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.zt-feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zt-feed-item:first-child {
    padding-top: 0;
}

.zt-feed-item:hover .zt-feed-item__title {
    color: #3377ff;
}

.zt-feed-item--static {
    cursor: default;
}

.zt-feed-item__body {
    flex: 1;
    min-width: 0;
}

.zt-feed-item__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #222;
    margin: 0 0 8px;
    transition: color 0.15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zt-feed-item__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zt-feed-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

.zt-feed-item__meta span:not(:last-child)::after {
    content: '·';
    margin: 0 8px;
    color: #ddd;
}

.zt-feed-item__price {
    color: #e85d04;
    font-weight: 600;
}

.zt-feed-item__tel {
    color: #3377ff;
}

.zt-feed-item__tag {
    display: inline-block;
    padding: 1px 8px;
    margin-right: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #3377ff;
    background: #eef3ff;
    border-radius: 3px;
    vertical-align: middle;
}

.zt-feed-item__thumb {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.zt-feed-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.zt-feed-item:hover .zt-feed-item__thumb img {
    transform: scale(1.04);
}

.zt-feed--buy .zt-feed-item {
    padding: 14px 0;
}

/* ---- 问答卡片 ---- */
.zt-qa-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zt-qa-card {
    padding: 20px 24px;
    background: #f7f8fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.zt-qa-card__q {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.zt-qa-card__badge {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #3377ff;
    border-radius: 4px;
}

.zt-qa-card__q a {
    font-size: 16px;
    font-weight: 600;
    color: #3377ff;
    line-height: 1.5;
    text-decoration: none;
}

.zt-qa-card__q a:hover {
    text-decoration: underline;
}

.zt-qa-card__a {
    font-size: 14px;
    line-height: 1.75;
    color: #666;
    padding-left: 32px;
}

.zt-qa-card__meta {
    margin-top: 10px;
    padding-left: 32px;
    font-size: 12px;
    color: #999;
}

/* ---- 附注 ---- */
.zt-panel--note {
    background: #fafbfc;
    border: 1px solid #eee;
}

.zt-panel--footnote {
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 20px 32px;
    background: transparent;
}

/* ---- 专题列表页 ---- */
.zt-page--list {
    padding-top: 8px;
}

.zt-list-header {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 24px 8px;
}

.zt-list-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}

.zt-list-header p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.zt-feed--topics {
    background: #fff;
    border-radius: 8px;
    padding: 8px 32px;
}

.zt-feed--topics .zt-feed-item:first-child {
    padding-top: 18px;
}

.zt-empty-tip {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 14px;
}

.zt-page--list .pagination-wrap {
    margin-top: 24px;
    padding-bottom: 16px;
}

@media (max-width: 768px) {
    .zt-list-header {
        padding: 16px 16px 4px;
    }

    .zt-feed--topics {
        padding: 4px 16px;
    }
}
@media (max-width: 768px) {
    .zt-hero-banner__inner {
        flex-direction: column;
        padding: 28px 16px 32px;
        gap: 24px;
    }

    .zt-hero-banner__title {
        font-size: 22px;
    }

    .zt-hero-banner__cover {
        width: 100%;
        max-width: 360px;
    }

    .zt-hero-banner__cover img {
        height: 200px;
    }

    .zt-tabs__inner {
        padding: 0 12px;
    }

    .zt-tabs__item {
        padding: 12px 14px;
        font-size: 14px;
    }

    .zt-main {
        padding: 0 12px;
    }

    .zt-panel {
        padding: 20px 16px 24px;
        border-radius: 6px;
    }

    .zt-panel__title {
        font-size: 18px;
    }

    .zt-feed-item {
        gap: 12px;
    }

    .zt-feed-item__thumb {
        width: 110px;
        height: 72px;
    }

    .zt-feed-item__title {
        font-size: 15px;
    }

    .zt-qa-card {
        padding: 16px;
    }

    .zt-qa-card__a,
    .zt-qa-card__meta {
        padding-left: 0;
    }
}

/* ---- 自定义 HTML 专题 ---- */
.zt-custom-page {
    background: #fff;
    min-height: 400px;
}

.zt-custom-html {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
    word-break: break-word;
}

.zt-custom-html img {
    max-width: 100%;
    height: auto;
}

.zt-custom-empty {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
