﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
}

    .header::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -10%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    }

.header-top {
    display: flex;
    text-align:center;
    align-items: flex-start;
    margin-bottom: 8px;
}

.header-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.3;
}


.org-info {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.org-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.org-item {
    display: inline;
    font-size: 14px;
}

    .org-item::after {
        content: ' | ';
        color: rgba(255,255,255,0.3);
    }

    .org-item:last-child::after {
        content: '';
    }

/* 主体内容 */
.main-content {
    padding: 12px;
}

/* 模块卡片 */
.module {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.06);
    overflow: hidden;
    position: relative;
}

    .module::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    }

.module-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .module-title::before {
        content: '';
        width: 3px;
        height: 16px;
        background: linear-gradient(180deg, #2563eb, #1e3a8a);
        border-radius: 2px;
    }

.module-badge {
    font-size: 12px;
    padding: 2px 8px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

.module-body {
    padding: 12px 16px;
}
/* 企业信息表格 */
.enterprise-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .enterprise-table th {
        background: #1e3a8a; /*linear-gradient(135deg, #1e3a8a, #2563eb);*/
        color: white;
        padding: 10px;
        text-align: left;
        font-weight: 500;
        position: sticky;
        top: 0;
        z-index: 10;
        border-right: 1px solid #fff;
        text-align: center;
    }

    .enterprise-table td {
        padding: 10px;
        border-bottom: 1px solid #f1f5f9;
        color: #475569;
    }

    .enterprise-table tr:hover {
        background: #f8fafc;
    }

.scroll-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.scroll-inner {
    animation: scrollUp 30s linear infinite;
}
.scroll-inner-price {
    animation: scrollUp 80s linear infinite;
}
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}
/* 统计卡片 */
.stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card {
    flex: 1;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    border-left: 3px solid #2563eb;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.2;
}

.stat-unit {
    font-size: 12px;
    color: #64748b;
    margin-left: 2px;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* 地图 */

.map-box {
    flex: 1;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #dbeafe;
}

.divComName {
    width: 130px;
    /* 改为自动高度，不占满 */
    height: auto;
    /* 渐变背景（你要求的配色） */
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    /* 内边距 */
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    box-sizing: border-box;
    /* 独立悬浮定位 */
    position: absolute;
    z-index: 1000;
    /*left: 20px;
    top: 20px;
    bottom: 20px;*/
    color: #2d3436;
    border-radius: 8px;
    /* 悬浮卡片阴影 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 乡镇列表排版 */
.town-list {
    list-style: none;
    padding-top: 10px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

    /* 列表项小图标 */
    .town-list li {
        display: flex;
        align-items: center;
        gap: 2px;
    }

        .town-list li::before {
            content: "•";
            color: #3b82f6;
            font-size: 16px;
        }


/* 指数模块 */
.index-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.index-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.week-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.gauge-box {
    min-height: 300px;
}

.index-data-row {
    display: flex;
    gap: 10px;
}

.flip-group {
    flex: 1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.flip-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.flip-container {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.flip-box {
    width: 28px;
    height: 38px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    position: relative;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
    overflow: hidden;
}

    .flip-box::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(0,0,0,0.2);
        z-index: 2;
    }

.flip-symbol {
    font-size: 16px;
    color: #1e3a8a;
    font-weight: 700;
    margin-left: 2px;
}

.flip-trend {
    font-size: 12px;
    font-weight: 600;
}

.trend-up {
    color: #dc2626;
}

.trend-down {
    color: #16a34a;
}

/* 企业信息 */
.enterprise-list {
    max-height: 320px;
    overflow-y: auto;
}

    .enterprise-list::-webkit-scrollbar {
        width: 4px;
    }

    .enterprise-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }

.enterprise-item {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .enterprise-item:last-child {
        border-bottom: none;
    }

.enterprise-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
}

.enterprise-info {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 12px;
}

.enterprise-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 4px;
    width: fit-content;
}


/* 指数解读 */
.interpret-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interpret-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

    .interpret-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, #2563eb, #1e3a8a);
    }

.interpret-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.interpret-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.interpret-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.interpret-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

.interpret-highlight {
    color: #2563eb;
    font-weight: 600;
}

.more-btn {
    margin-top: 12px;
    padding: 10px 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* 产业宣传 */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.promo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f0f0f0;
}

    .promo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 8px 8px;
    color: white;
}

.promo-title {
    font-size: 12px;
    font-weight: 600;
}

.promo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 2px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 14px;
}

/* 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end;
}

.modal-box {
    background: white;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 60px);
}

.close-x {
    font-size: 24px;
    cursor: pointer;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #94a3b8;
    font-size: 10px;
    text-decoration: none;
}

    .nav-item.active {
        color: #2563eb;
    }

.nav-icon {
    font-size: 10px;
}

/* 内容间距（为底部导航留空） */
.content-spacer {
    height: 20px;
}

/* 横向滚动标签 */
.tab-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

    .tab-scroll::-webkit-scrollbar {
        display: none;
    }

.tab-item {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

    .tab-item.active {
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
        color: #fff;
        border-color: transparent;
    }


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 5px 0;
    text-align: center;
    font-size: 12px;
    color: black;
}

    .footer-bottom a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
    }
/* Tab按钮组 */
.mul-tab-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
    /* 按钮默认浅渐变底色 */
    .mul-tab-btns input {
        padding: 7px 18px;
        border: none;
        border-radius: 6px;
        background: linear-gradient(135deg, #7298d8, #507bc2);
        color: #ffffff;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(21, 59, 128, 0.2);
        opacity: 0.85;
    }
        /* hover轻微加深 */
        .mul-tab-btns input:hover {
            opacity: 0.95;
            transform: translateY(-1px);
            box-shadow: 0 3px 7px rgba(21, 59, 128, 0.3);
        }
        /* 选中按钮深色突出高亮 */
        .mul-tab-btns input.active {
            background: linear-gradient(135deg, #1d4cad, #0f306b);
            transform: translateY(0);
            box-shadow: 0 3px 9px rgba(15, 48, 107, 0.5);
            opacity: 1;
            font-weight: 600;
        }
/*数据采集时段提示*/
.tips {
    line-height: 20px;
    border-radius: 5px;
    padding: 5px 5px;
    background-color: #f8fafc;
    font-family: 微软雅黑;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}
/* 同比环比外层缩小高度 */
.mul-rate-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.mul-rate-title {
    font-size: 14px;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.mul-rate-num-box {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}
/* 字符逐个深蓝色背景 */
.mul-char-wrap {
    display: flex;
    gap: 4px;
}

.mul-single-char {
    background: #153b80;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    width: 30px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
}
    /* 中间水平隔断横线（替换之前竖线） */
    .mul-single-char::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 1px;
        background: rgba(255,255,255,0.25);
        transform: translateY(-50%);
    }
/*同比环比小数点，去掉背景*/
.dot-char {
    color: #153b80;
    bottom: 0px;
    font-size: 26px;
    font-weight: bold;
    width: 6px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mul-percent-text {
    font-size: 16px;
    color: #333;
}
/* 涨跌箭头颜色大小 */
.mul-icon-up {
    color: #ef4444;
    font-size: 20px;
}

.mul-icon-down {
    color: #10b981;
    font-size: 20px;
}

/* 结束--多按钮，同个仪表盘*/

/* 走势图 */
.chart-container {
    width: 100%;
    height: 240px;
}
/* Tab按钮组2 */
.shangpin-tab-btns {
    display: flex;
    gap: 10px;
    /*margin-bottom: 5px;*/
}
    /* 按钮默认浅渐变底色 */
    .shangpin-tab-btns input {
        padding: 7px 18px;
        border: none;
        border-radius: 6px;
        background: linear-gradient(135deg, #7298d8, #507bc2);
        color: #ffffff;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(21, 59, 128, 0.2);
        opacity: 0.85;
    }
        /* hover轻微加深 */
        .shangpin-tab-btns input:hover {
            opacity: 0.95;
            transform: translateY(-1px);
            box-shadow: 0 3px 7px rgba(21, 59, 128, 0.3);
        }
        /* 选中按钮深色突出高亮 */
        .shangpin-tab-btns input.active {
            background: linear-gradient(135deg, #1d4cad, #0f306b);
            transform: translateY(0);
            box-shadow: 0 3px 9px rgba(15, 48, 107, 0.5);
            opacity: 1;
            font-weight: 600;
        }
/*region单条翻滚文字*/

/* 翻滚容器：固定高度 + 隐藏超出内容 */
.roll-container {
    height: 40px;
    overflow: hidden;
    /* 你要求的样式 */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* 柔和阴影 */
    line-height: 40px;
    padding: 0 15px;
    font-size: 14px;
    color: #64748b;
    width: 350px;
    margin-bottom: 15px;
    text-align: center;
}

/* 滚动列表：垂直排列所有内容 */
.roll-list {
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.5s ease; /* 这里控制动画速度 */
}

/* 每一项高度和容器保持一致 */
.roll-item {
    height: 40px;
    white-space: nowrap;
}
/*均价显示框SZY*/
.avepricecontainer {
    height: 55px;
    width: 100%;
    display: grid;
    place-items: center; /* 同时水平和垂直居中 */
}
/*endregion单条翻滚文字*/