/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul, li {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部信息条 ========== */
.top-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 12px;
    color: #666;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}

.top-left .phone {
    color: #333;
    font-weight: 500;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-right a {
    color: #666;
}

.top-right a:hover {
    color: #1976d2;
}

.vip-link {
    color: #1976d2 !important;
}

.msg-badge {
    color: #e53935;
    font-weight: 500;
}

/* ========== Logo 和搜索区 ========== */
.header {
    padding: 24px 0;
    background-color: #fff;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.logo-text .slogan {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
}

.search-area {
    flex: 1;
    max-width: 600px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #1976d2;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}

.search-type {
    border: none;
    background-color: #fafafa;
    padding: 0 16px;
    height: 100%;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    border-right: 1px solid #e0e0e0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    height: 100%;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #b0b0b0;
}

.search-btn {
    background-color: #1976d2;
    color: #fff;
    border: none;
    padding: 0 32px;
    height: 100%;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #1565c0;
}

/* ========== 主导航 ========== */
.main-nav {
    background-color: #1976d2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-item a {
    display: block;
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    transition: background-color 0.2s;
}

.nav-item:hover a {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active a {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

/* ========== 筛选区 ========== */
.filter-section {
    padding: 20px 0 0 0;
}

.province-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
}

.province-item {
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    background-color: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.province-item:hover {
    border-color: #1976d2;
    color: #1976d2;
}

.province-item.active {
    border-color: #e53935;
    color: #e53935;
    background-color: #fff5f5;
}

.time-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.time-range {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    outline: none;
}

.filter-stats {
    font-size: 13px;
    color: #888;
}

/* ========== 招标信息列表 ========== */
.tender-list {
    padding: 10px 0 40px 0;
}

.tender-items {
    margin-bottom: 30px;
}

.tender-item {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.tender-item:hover {
    background-color: #fafbfc;
}

.tender-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.tender-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.tender-title:hover {
    color: #1976d2;
}

.tender-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.tender-content {
    margin-bottom: 14px;
}

.tender-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 4px;
}

.tender-content .label {
    color: #999;
    margin-right: 6px;
}

.tender-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tender-tag {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 2px;
    background-color: #f0f4f8;
    color: #555;
}

.tender-tag.location {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tender-tag.industry {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.tender-tag.type {
    background-color: #fff3e0;
    color: #e65100;
}

.tender-tag.deadline {
    background-color: #fce4ec;
    color: #c2185b;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 16px;
}

.page-select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 13px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn,
.page-num {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    background-color: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.page-btn:hover,
.page-num:hover {
    border-color: #1976d2;
    color: #1976d2;
}

.page-num.active {
    background-color: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-info {
    font-size: 13px;
    color: #888;
}

.page-info strong {
    color: #e53935;
    font-weight: 600;
}

/* ========== 页脚 ========== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 24px 0;
}

.footer-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-text {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

.footer-info {
    padding-top: 4px;
}

.footer-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 2;
    text-align: left;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .search-area {
        max-width: 100%;
        width: 100%;
    }

    .nav-list {
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-item {
        flex: 0 0 auto;
    }

    .footer-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .top-bar {
        font-size: 11px;
    }

    .top-bar .container {
        height: auto;
        padding: 6px 16px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .logo-area {
        gap: 10px;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .logo-text h1 {
        font-size: 22px;
    }

    .logo-text .slogan {
        font-size: 10px;
    }

    .search-box {
        height: 40px;
    }

    .search-type {
        padding: 0 10px;
        font-size: 13px;
    }

    .search-input {
        padding: 0 10px;
        font-size: 13px;
    }

    .search-btn {
        padding: 0 20px;
        font-size: 14px;
    }

    .nav-item a {
        padding: 12px 14px;
        font-size: 14px;
    }

    .province-item {
        padding: 5px 12px;
        font-size: 12px;
    }

    .tender-item {
        padding: 18px 0;
    }

    .tender-title {
        font-size: 15px;
    }

    .tender-header {
        flex-direction: column;
        gap: 8px;
    }

    .tender-tags {
        gap: 6px;
    }

    .tender-tag {
        padding: 3px 10px;
        font-size: 11px;
    }

    .time-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pagination {
        justify-content: center;
    }

    .page-size {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .page-info {
        order: 2;
    }

    .footer-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-item {
        padding: 6px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-text {
        font-size: 13px;
    }

    .footer-info p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .top-right {
        gap: 12px;
        font-size: 11px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text .slogan {
        display: none;
    }

    .province-filter {
        gap: 6px;
    }

    .footer-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== 面包屑 ========== */
.breadcrumb {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #1976d2;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
}

.breadcrumb-count {
    float: right;
    color: #999 !important;
    font-size: 12px;
}

/* ========== Logo 链接 ========== */
.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ========== 子分类筛选 ========== */
.sub-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
}

.sub-cat-item {
    padding: 7px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    background-color: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.sub-cat-item:hover {
    border-color: #1976d2;
    color: #1976d2;
    background-color: #f0f7ff;
}

.sub-cat-item.active {
    background-color: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

/* ========== 展开按钮 ========== */
.expanded-btn {
    border-style: dashed !important;
    color: #1976d2 !important;
}

.expanded-btn:hover {
    background-color: #f0f7ff;
}

/* ========== 统计卡片行 ========== */
.stats-row {
    padding: 20px 0 0 0;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 12px;
    padding: 2px 0;
}

.stat-trend.up {
    color: #e53935;
}

.stat-trend.green {
    color: #2e7d32;
}

/* ========== 预测列表项 ========== */
.predict-items {
    margin-bottom: 30px;
}

.predict-item {
    display: flex;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    transition: background-color 0.2s;
}

.predict-item:hover {
    background-color: #fafbfc;
}

.predict-probability {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 3px solid #e0e0e0;
}

.predict-probability.high {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.predict-probability.mid {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.predict-probability.low {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1565c0;
}

.predict-probability .prob-num {
    font-size: 22px;
    line-height: 1;
}

.predict-probability .prob-label {
    font-size: 10px;
    margin-top: 2px;
}

.predict-info {
    flex: 1;
    min-width: 0;
}

.predict-info .predict-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    cursor: pointer;
}

.predict-info .predict-title:hover {
    color: #1976d2;
}

.predict-info .predict-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.predict-meta {
    flex-shrink: 0;
    text-align: right;
}

.predict-amount {
    font-size: 18px;
    font-weight: 600;
    color: #e53935;
    margin-bottom: 4px;
}

.predict-date {
    font-size: 12px;
    color: #999;
}

.predict-comment {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ========== 资源卡片网格 ========== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.resource-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #1976d2;
}

.resource-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 26px;
}

.resource-icon.type-pdf {
    background-color: #fce4ec;
    color: #d32f2f;
}

.resource-icon.type-word {
    background-color: #e3f2fd;
    color: #1976d2;
}

.resource-icon.type-excel {
    background-color: #e8f5e9;
    color: #388e3c;
}

.resource-icon.type-zip {
    background-color: #fff3e0;
    color: #f57c00;
}

.resource-icon.type-link {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.resource-icon.type-tool {
    background-color: #e0f7fa;
    color: #00838f;
}

.resource-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
    flex: 1;
}

.resource-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.5;
}

.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #aaa;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.resource-footer .download-count {
    color: #1976d2;
}

.resource-footer .file-size {
    color: #888;
}

/* ========== 资源列表响应式 ========== */
@media (max-width: 992px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .predict-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .predict-probability {
        width: 64px;
        height: 64px;
    }

    .predict-probability .prob-num {
        font-size: 18px;
    }

    .predict-meta {
        width: 100%;
        text-align: left;
        display: flex;
        gap: 16px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-value {
        font-size: 22px;
    }

    .sub-cat-item {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }

    .breadcrumb-count {
        float: none;
        display: block;
        margin-top: 4px;
    }
}

/* ========== 建设开发中提示 ========== */
.under-construction {
    text-align: center;
    padding: 100px 20px 120px;
}

.under-construction .uc-icon {
    margin-bottom: 30px;
}

.under-construction .uc-icon svg {
    width: 120px;
    height: 120px;
}

.under-construction .uc-title {
    font-size: 32px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 16px;
}

.under-construction .uc-desc {
    font-size: 16px;
    color: #999;
}