/* ================= 全局重置与基础变量 ================= */
:root {
    --bg-main: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --brand-dark: #1e293b;
    --brand-blue: #2563eb;
    --brand-orange: #ea580c;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;

    --ind-dark: #0f172a;       /* 深邃工业灰蓝 */
    --ind-gray: #1e293b;       /* 面板灰 */
    --ind-light: #f8fafc;      /* 背景白 */
    --ind-accent: #ea580c;     /* 工业警示橙 */
    --ind-blue: #2563eb;       /* 科技蓝 */
    --ind-border: #334155;     /* 边框色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', "Microsoft YaHei", -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= 头部与横幅 (工业风) ================= */
.site-header {
    background-color: var(--brand-dark);
    color: #fff;
    padding: 15px 0;
    border-bottom: 3px solid var(--brand-blue);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo::before {
    content: "🏭";/*⚙*/
    color: var(--brand-orange);
    margin-right: 8px;
}

.header-meta {
    font-size: 0.9rem;
    color: #94a3b8;
}

.hero-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-banner p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* ================= 站群矩阵网格 ================= */
.matrix-main {
    padding: 40px 20px 60px;
}

.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.matrix-header h2 {
    font-size: 1.5rem;
    color: var(--brand-dark);
}

.view-mode {
    font-size: 0.9rem;
    color: var(--text-muted);
    background-color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
}

/* CSS Grid 响应式布局：根据屏幕宽度自动排列 1列 到 4列 */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ================= 卡片设计 ================= */
.station-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 顶部金属切割线效果 */
.station-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--border-color);
    transition: background-color 0.2s;
}

.station-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.station-card:hover::before {
    background-color: var(--brand-orange);
}

.card-head {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px dashed var(--border-color);
    background-color: #f8fafc;
}

.region-badge {
    background-color: var(--brand-blue);
    color: white;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.short-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--brand-dark);
    flex-grow: 1;
}

.short-name:hover {
    color: var(--brand-blue);
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.station-title {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.sub-regions {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    /* 限制显示行数，保持60个卡片在视觉上的整齐度 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-regions strong {
    color: #475569;
}

.card-footer {
    padding: 12px 20px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.action-link {
    font-size: 0.85rem;
    color: var(--brand-blue);
    font-weight: 600;
}

.station-card:hover .action-link {
    color: var(--brand-orange);
}


/* ================= 分页组件 ================= */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    /* 防止在极窄屏幕下溢出 */
    width: 100%;
    overflow-x: auto;
    /* 隐藏滚动条但保留滚动功能 (可选，为了更干净的UI) */
    scrollbar-width: none;
}
.pagination-container::-webkit-scrollbar {
    display: none;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* 确保容器不会被压缩得太小 */
    flex-wrap: nowrap;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 使用 min-width 和 height 保持正方形/长方形的点击区 */
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s;
    /* 核心修复：强制文字不换行，防止“上一页”竖排 */
    white-space: nowrap;
}

.page-item .page-link:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.page-item.active .page-link {
    background-color: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.page-item.disabled .page-link {
    color: #cbd5e1;
    pointer-events: none;
    background-color: #f8fafc;
}

.page-item.dots span {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 36px;
    padding: 0 4px;
    color: var(--text-muted);
}

/* 针对小屏幕 (移动端) 的分页优化 */
@media (max-width: 480px) {
    .pagination {
        gap: 4px; /* 减小按钮间距 */
        padding: 8px 6px;
    }

    .page-item .page-link {
        padding: 0 8px; /* 减小左右内边距 */
        font-size: 0.85rem; /* 字体稍微调小 */
        min-width: 30px; /* 减小最小宽度 */
    }

    /* 在极窄屏幕下，可选择隐藏非关键的中间页码，只留首尾和上下页 */
    /*.page-item:not(.active):not(:first-child):not(:last-child):not(.dots) {
        display: none;
    }*/
}

/* ================= 装饰区块 1：核心优势背书 (Features) ================= */
.b2b-features {
    margin-bottom: 3rem;
    background-color: var(--card-bg);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    /* 给 Emoji 加一点工业阴影 */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.feature-item h4 {
    color: var(--brand-dark);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================= 装饰区块 2：产业规模数据 (Stats - 调整为浅色融合版) ================= */
.b2b-stats {
    /* 与主体背景色一致，取消深色背景，改为柔和过渡 */
    background-color: var(--bg-main);
    padding: 20px 0 60px;
    /* 去掉顶部的橙色边框 */
    margin-top: 2rem;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-box {
    /* 增加白色卡片底，产生轻微悬浮感 */
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 700;
    /* 改回深色字体，更易阅读 */
    color: var(--brand-dark);
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Segoe UI', "Microsoft YaHei", sans-serif;
}

.stat-number span {
    /* 使用品牌蓝代替抢眼的橙色作为数据后缀 */
    color: var(--brand-blue);
    font-size: 1.8rem;
    margin-left: 2px;
}

.stat-label {
    /* 加深标签颜色，提升对比度 */
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ================= 装饰区块 3：采购行动引导 (CTA - 调整为工业深空灰版) ================= */
.b2b-cta {
    /* 改用沉稳的深空灰，搭配微弱的点状纹理降低压迫感 */
    background: linear-gradient(rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.95)),
    url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23334155"/></svg>');
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.05rem;
    /* 使用柔和的浅灰色代替浅蓝色 */
    color: #cbd5e1;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    /* 保持按钮醒目，但去掉过度发光的阴影 */
    background-color: var(--brand-blue);
    color: white;
    border: 1px solid var(--brand-blue);
}

.btn-primary:hover {
    background-color: #1d4ed8; /* 更深的蓝色 */
    border-color: #1d4ed8;
}

.btn-outline {
    background-color: transparent;
    color: white;
    /* 边框变细，降低突兀感 */
    border: 1px solid #cbd5e1;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ================= 页脚 ================= */
.site-footer {
    background-color: var(--brand-dark);
    color: #64748b;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    margin-top: auto;
    line-height: 2rem;
}