/* ============================================
   黄页类型新闻门户首页样式 - 高端版
   类似搜狐、163的布局风格，但更有档次和层次感
   ============================================ */

:root {
    --portal-brand: #c41e3a;
    --portal-brand-dark: #8b0000;
    --portal-brand-light: #fff5f5;
    --portal-accent: #1a5276;
    --portal-accent-light: #ebf5fb;
    --portal-bg: #f8f9fa;
    --portal-card-bg: #ffffff;
    --portal-text: #1a1a2e;
    --portal-text-secondary: #4a4a68;
    --portal-text-muted: #8e8ea0;
    --portal-border: #e8e8ed;
    --portal-hot: #ff2d55;
    --portal-top: #ff6b00;
    --portal-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --portal-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --portal-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --portal-shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --portal-radius-sm: 8px;
    --portal-radius-md: 12px;
    --portal-radius-lg: 16px;
}

/* 全局样式 */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Source Han Sans CN", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    color: var(--portal-text);
    background: var(--portal-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 顶部导航 - 更精致 */
.portal-header {
    background: #fff;
    border-bottom: 1px solid var(--portal-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--portal-shadow-sm);
}

.portal-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.portal-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--portal-text);
}

.portal-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--portal-brand) 0%, var(--portal-brand-dark) 100%);
    color: #fff;
    border-radius: var(--portal-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.portal-logo-text h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: var(--portal-text);
    letter-spacing: -0.5px;
}

.portal-logo-text span {
    font-size: 13px;
    color: var(--portal-text-muted);
    letter-spacing: 0.5px;
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-btn {
    padding: 10px 24px;
    border-radius: var(--portal-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.portal-btn-primary {
    background: linear-gradient(135deg, var(--portal-brand) 0%, var(--portal-brand-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.portal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4);
}

.portal-btn-outline {
    background: transparent;
    border: 2px solid var(--portal-border);
    color: var(--portal-text);
}

.portal-btn-outline:hover {
    border-color: var(--portal-brand);
    color: var(--portal-brand);
    background: var(--portal-brand-light);
}

/* 新闻分类导航 - 更精致 */
.portal-nav {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--portal-border);
    background: #fff;
}

.portal-nav-item {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--portal-text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    position: relative;
}

.portal-nav-item:hover {
    color: var(--portal-brand);
    background: var(--portal-brand-light);
}

.portal-nav-item.active {
    color: var(--portal-brand);
    border-bottom-color: var(--portal-brand);
}

.portal-nav-item.hot {
    color: var(--portal-hot);
}

.portal-nav-item.hot::after {
    content: '热';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    background: var(--portal-hot);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
}

/* 主内容区 */
.portal-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

/* 左侧主内容 */
.portal-content {
    min-width: 0;
}

/* 右侧边栏 */
.portal-sidebar {
    min-width: 0;
}

/* 热点新闻轮播区 - 更有档次 */
.portal-hot-section {
    margin-bottom: 40px;
}

.portal-hot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.portal-hot-main {
    position: relative;
    border-radius: var(--portal-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 380px;
    box-shadow: var(--portal-shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-hot-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--portal-shadow-hover);
}

.portal-hot-main-link {
    display: block;
    height: 100%;
    padding: 40px 32px;
    color: #fff;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.portal-hot-main-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.portal-hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portal-hot-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--portal-hot);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.portal-hot-main h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.portal-hot-main p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.7;
    max-width: 90%;
}

.portal-hot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-hot-item {
    display: block;
    padding: 20px;
    background: var(--portal-card-bg);
    border-radius: var(--portal-radius-md);
    text-decoration: none;
    color: var(--portal-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow-sm);
}

.portal-hot-item:hover {
    box-shadow: var(--portal-shadow-md);
    transform: translateY(-4px);
    border-color: var(--portal-brand);
}

.portal-hot-item-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--portal-text);
}

.portal-hot-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--portal-text-muted);
}

.portal-hot-item-tag {
    padding: 4px 10px;
    background: var(--portal-accent-light);
    color: var(--portal-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* 新闻列表样式 - 更有层次 */
.portal-section {
    margin-bottom: 48px;
}

.portal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 3px solid var(--portal-brand);
    margin-bottom: 24px;
    position: relative;
}

.portal-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--portal-brand-dark);
}

.portal-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--portal-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-section-title::before {
    content: '';
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, var(--portal-brand) 0%, var(--portal-brand-dark) 100%);
    border-radius: 3px;
}

.portal-section-more {
    font-size: 14px;
    color: var(--portal-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.portal-section-more:hover {
    color: var(--portal-brand);
    transform: translateX(4px);
}

.portal-section-more::after {
    content: '→';
    transition: transform 0.3s;
}

/* 新闻卡片网格 - 更精致 */
.portal-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portal-news-card {
    display: block;
    padding: 24px;
    background: var(--portal-card-bg);
    border-radius: var(--portal-radius-md);
    text-decoration: none;
    color: var(--portal-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow-sm);
    position: relative;
    overflow: hidden;
}

.portal-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--portal-brand) 0%, var(--portal-brand-dark) 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: top;
}

.portal-news-card:hover {
    box-shadow: var(--portal-shadow-md);
    transform: translateY(-6px);
    border-color: transparent;
}

.portal-news-card:hover::before {
    transform: scaleY(1);
}

.portal-news-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--portal-text);
    transition: color 0.3s;
}

.portal-news-card:hover .portal-news-card-title {
    color: var(--portal-brand);
}

.portal-news-card-summary {
    font-size: 14px;
    color: var(--portal-text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--portal-text-muted);
}

.portal-news-card-tag {
    padding: 4px 12px;
    background: var(--portal-accent-light);
    color: var(--portal-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* 新闻列表样式 - 更有层次 */
.portal-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-news-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--portal-card-bg);
    border-radius: var(--portal-radius-md);
    text-decoration: none;
    color: var(--portal-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow-sm);
}

.portal-news-item:hover {
    box-shadow: var(--portal-shadow-md);
    transform: translateX(8px);
    border-color: var(--portal-brand);
}

.portal-news-item-content {
    flex: 1;
    min-width: 0;
}

.portal-news-item-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--portal-text);
    transition: color 0.3s;
}

.portal-news-item:hover .portal-news-item-title {
    color: var(--portal-brand);
}

.portal-news-item-summary {
    font-size: 15px;
    color: var(--portal-text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-news-item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--portal-text-muted);
}

.portal-news-item-category {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--portal-accent-light) 0%, #d4e6f1 100%);
    color: var(--portal-accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

/* 侧边栏样式 - 更精致 */
.portal-sidebar-card {
    background: var(--portal-card-bg);
    border-radius: var(--portal-radius-md);
    border: 1px solid var(--portal-border);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--portal-shadow-sm);
    transition: all 0.3s;
}

.portal-sidebar-card:hover {
    box-shadow: var(--portal-shadow-md);
}

.portal-sidebar-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--portal-border);
    font-size: 16px;
    font-weight: 700;
    color: var(--portal-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-sidebar-body {
    padding: 20px;
}

/* 热点排行 - 更精致 */
.portal-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-rank-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
}

.portal-rank-item:last-child {
    border-bottom: none;
}

.portal-rank-item:hover {
    background: #fafafa;
    margin: 0 -20px;
    padding: 16px 20px;
    border-radius: var(--portal-radius-sm);
}

.portal-rank-num {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.portal-rank-num.top {
    background: linear-gradient(135deg, var(--portal-hot) 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
}

.portal-rank-num.normal {
    background: #f0f0f0;
    color: var(--portal-text-muted);
}

.portal-rank-title {
    flex: 1;
    font-size: 15px;
    color: var(--portal-text);
    text-decoration: none;
    line-height: 1.5;
    font-weight: 500;
    transition: color 0.3s;
}

.portal-rank-title:hover {
    color: var(--portal-brand);
}

.portal-rank-count {
    font-size: 13px;
    color: var(--portal-text-muted);
    flex-shrink: 0;
    font-weight: 500;
}

/* 企业黄页 - 更精致 */
.portal-enterprise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.portal-enterprise-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--portal-radius-md);
    text-decoration: none;
    color: var(--portal-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.portal-enterprise-item:hover {
    background: #fff;
    border-color: var(--portal-accent);
    box-shadow: var(--portal-shadow-md);
    transform: translateY(-4px);
}

.portal-enterprise-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--portal-accent) 0%, #1a5276 100%);
    color: #fff;
    border-radius: var(--portal-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
}

.portal-enterprise-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 4px;
}

.portal-enterprise-industry {
    font-size: 12px;
    color: var(--portal-text-muted);
}

/* 底部 - 更精致 */
.portal-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 24px 40px;
    margin-top: 60px;
}

.portal-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.portal-footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.portal-footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--portal-brand);
}

.portal-footer-section p,
.portal-footer-section a {
    font-size: 14px;
    color: #a0a0b0;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
    display: block;
}

.portal-footer-section a:hover {
    color: #fff;
}

.portal-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* 响应式 */
@media (max-width: 1024px) {
    .portal-main {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portal-header-top {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .portal-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .portal-nav-item {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 14px;
    }

    .portal-main {
        padding: 20px 16px;
    }

    .portal-hot-grid {
        grid-template-columns: 1fr;
    }

    .portal-hot-main {
        min-height: 280px;
    }

    .portal-news-grid {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        grid-template-columns: 1fr;
    }

    .portal-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portal-enterprise-grid {
        grid-template-columns: 1fr;
    }

    .portal-section-title {
        font-size: 18px;
    }

    .portal-news-item {
        flex-direction: column;
        gap: 16px;
    }
}

/* 动画 - 默认显示，JavaScript添加动画效果 */
.portal-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-fade-in.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.portal-fade-in.visible,
.portal-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 备用方案：如果JavaScript没有执行，确保元素仍然显示 */
@media (prefers-reduced-motion: reduce) {
    .portal-fade-in,
    .portal-fade-in.animate-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.portal-fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.portal-fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.portal-fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

/* 滚动条样式 */
.portal-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.portal-scroll::-webkit-scrollbar {
    width: 6px;
}

.portal-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.portal-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.portal-scroll::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* 特殊效果 */
.portal-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.portal-gradient-text {
    background: linear-gradient(135deg, var(--portal-brand) 0%, var(--portal-brand-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}/* ============================================================
   新增：温州名企广告位、产业带横幅与顶部公告条 (2026-09-29)
   ============================================================ */

/* 顶部公告条 */
.portal-notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 24px;
    background: #fff9e6;
    border: 1px solid #ffe58f;
    border-radius: var(--portal-radius-md);
    color: #d46b08;
    font-size: 13px;
    font-weight: 500;
}
.portal-notice-icon {
    font-size: 16px;
}

/* 企业黄页：名企徽章与图片支持 */
.portal-enterprise-item.is-partner {
    border-color: rgba(196, 30, 58, 0.15);
    background: linear-gradient(135deg, #fff9f9 0%, #fff 100%);
}
.portal-enterprise-item.is-partner:hover {
    border-color: var(--portal-brand);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.12);
}
.portal-partner-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-brand) 0%, #8e1a2c 100%);
    border-radius: 4px;
    vertical-align: middle;
}
.portal-enterprise-img {
    width: 48px;
    height: 48px;
    border-radius: var(--portal-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 温州产业带广告横幅 (Belt Banner) */
.portal-belt-banner {
    margin: 40px 0 24px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--portal-radius-lg);
    color: #fff;
    box-shadow: 0 12px 32px rgba(22, 33, 62, 0.2);
}
.portal-belt-header {
    margin-bottom: 20px;
    border-left: 4px solid var(--portal-brand);
    padding-left: 12px;
}
.portal-belt-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-belt-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 4px 0 0;
}
.portal-belt-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.portal-belt-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--portal-radius-md);
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
    text-align: center;
}
.portal-belt-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: #fff;
}
.portal-belt-icon {
    font-size: 22px;
    margin-bottom: 6px;
}
.portal-belt-tag strong {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.portal-belt-tag em {
    font-size: 11px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .portal-belt-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 576px) {
    .portal-belt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============ 2026-09-30 第三批改造：锚点偏移 · 移动端科技感导航 · Live RFQ · 汇运速览 ============ */

/* 锚点跳转不被 sticky header 遮挡 */
.portal-section,
.portal-belt-banner,
[id^="portal-anchor-"] {
    scroll-margin-top: 150px;
}

/* 手机端 sticky 头部极度压缩 + 微交互 */
@media (max-width: 768px) {
    .portal-header {
        max-height: none;
    }
    .portal-header-inner {
        padding: 6px 14px;
        gap: 0;
    }
    .portal-header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 4px 0;
    }
    .portal-logo { gap: 8px; }
    .portal-logo-icon { width: 30px; height: 30px; font-size: 15px; }
    .portal-logo-text h1 { font-size: 16px; line-height: 1.2; }
    .portal-logo-text span { display: none; }  /* 手机端隐藏副标 */
    .portal-header-actions .portal-btn { padding: 6px 10px; font-size: 12px; }
    .portal-header-actions .portal-btn-outline { display: none; } /* 手机端只保留主CTA */
    .portal-nav {
        gap: 4px;
        padding: 4px 0 8px;
        margin-top: 2px;
        border-top: 1px solid rgba(255,255,255,0.06);
        position: relative;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
                mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }
    .portal-nav-item {
        padding: 7px 14px;
        font-size: 13px;
        border-radius: 999px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.07);
        transition: all .2s ease;
    }
    .portal-nav-item.active,
    .portal-nav-item:hover {
        background: linear-gradient(135deg, rgba(196,30,58,.95) 0%, rgba(142,26,44,.95) 100%);
        border-color: rgba(196,30,58,.6);
        box-shadow: 0 0 14px rgba(196,30,58,.35);
        color: #fff;
    }
    .portal-nav::-webkit-scrollbar { display: none; }
    .portal-nav { scrollbar-width: none; }
    /* 锚点偏移在移动端相应下调 */
    .portal-section, .portal-belt-banner { scroll-margin-top: 110px; }
}

/* ============ 🌍 Live RFQ 看板 ============ */
.rfq-live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(16,185,129,.7);
    animation: rfqPulse 1.6s infinite;
}
@keyframes rfqPulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
    70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.rfq-list { max-height: 340px; overflow-y: auto; }
.rfq-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 6px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease, transform .2s ease;
    border-radius: 8px;
}
.rfq-item:hover {
    background: linear-gradient(135deg, #fff9f9 0%, #f8fafc 100%);
    transform: translateX(3px);
}
.rfq-flag { font-size: 20px; flex-shrink: 0; line-height: 1; }
.rfq-info { flex: 1; min-width: 0; }
.rfq-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rfq-meta { font-size: 11.5px; color: #6b7280; margin-top: 3px; }
.rfq-meta strong { color: #c41e3a; font-weight: 700; }
.rfq-time {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============ 💹 汇率 · 海运运价速览 ============ */
.fx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.fx-item {
    padding: 12px 14px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #eef0f3;
    border-radius: 10px;
    transition: all .2s ease;
}
.fx-item:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 14px rgba(196,30,58,.08);
    transform: translateY(-2px);
}
.fx-label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.fx-value-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fx-value {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    font-variant-numeric: tabular-nums;
}
.fx-change { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.fx-change.up { background: #ecfdf5; color: #059669; }
.fx-change.down { background: #fef2f2; color: #dc2626; }
.fx-change.flat { background: #f3f4f6; color: #6b7280; }
.fx-tip {
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
}






/* ═══════════ 2026-09-30 一体化通栏 Dock 与超轻量顶栏 ═══════════ */
/* 电脑端强制隐藏移动端常驻 Dock（杜绝大图标误显） */
.portal-mobile-dock {
    display: none !important;
}

@media (max-width: 768px) {
    /* ── 1. 彻底根除“整屏大图标”：固定 50px iOS 磨砂 Dock ── */
    .portal-mobile-dock {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 50px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
        z-index: 99999 !important;
        padding: 4px 6px max(4px, env(safe-area-inset-bottom)) !important;
        align-items: center !important;
        justify-content: space-around !important;
    }
    .pm-dock-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #64748b !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .pm-dock-item svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        margin-bottom: 2px !important;
        stroke-width: 2 !important;
        display: block !important;
    }
    .pm-dock-item.is-active {
        color: #c41e3a !important;
    }
    .pm-dock-item.is-active svg {
        color: #c41e3a !important;
    }

    /* 居中发布按键：40px 圆形红胶囊 */
    .pm-dock-publish {
        position: relative !important;
        top: -6px !important;
    }
    .pm-dock-pub-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, #c41e3a 0%, #991b1b 100%) !important;
        display: grid !important;
        place-items: center !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4) !important;
        margin-bottom: 1px !important;
        border: 2px solid #ffffff !important;
    }
    .pm-dock-pub-btn svg {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2.5 !important;
        color: #fff !important;
    }
    .pm-dock-publish span {
        color: #c41e3a !important;
        font-weight: 800 !important;
    }

    /* ── 2. 一体化超轻量顶栏：深色通栏 + 单行极细导轨 ── */
    .portal-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: #070d19 !important; /* 深色背景，避免黑白断层 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 0 !important;
    }
    .portal-header .portal-container {
        padding: 4px 12px 3px !important;
    }
    .portal-header-main {
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 2px !important;
    }
    .portal-logo-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
        margin-right: 6px !important;
    }
    .portal-logo-text h1 {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
    }
    .portal-logo-text span {
        display: none !important; /* 隐藏副标长字 */
    }
    .portal-header-actions {
        display: flex !important;
        gap: 6px !important;
    }
    .portal-header-actions .portal-btn {
        padding: 3px 9px !important;
        font-size: 10.5px !important;
        border-radius: 6px !important;
        height: 24px !important;
        line-height: 16px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    .portal-header-actions .portal-btn-outline {
        display: none !important; /* 手机端只留一个主操作 */
    }

    /* 分类横滑栏：28px 极薄深色导轨 */
    .portal-nav {
        margin: 0 !important;
        padding: 2px 0 4px !important;
        gap: 5px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        border-top: none !important;
        background: transparent !important;
    }
    .portal-nav::-webkit-scrollbar { display: none; }
    .portal-nav-item {
        padding: 2px 8px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        color: #cbd5e1 !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        line-height: 1.3 !important;
    }
    .portal-nav-item.active {
        background: #c41e3a !important;
        border-color: #c41e3a !important;
        color: #fff !important;
    }

    /* 锚点偏移量同步下调为 68px */
    .portal-section, .portal-belt-banner {
        scroll-margin-top: 68px !important;
    }

    /* 页面底边垫高，防止内容被常驻 Dock 遮挡 */
    .portal-footer {
        padding-bottom: 74px !important;
    }
}


@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
}
