﻿/* 全局基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background: #f7f8fa;
    color: #333;
    padding-bottom: 30px;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.text-center {
    text-align: center;
}

[v-cloak] {
    display: none !important;
}

/* 头部 */
.header {
    position: relative;
    background: linear-gradient(135deg, #2B85FF, #5B9DFF);
    color: #fff;
    padding: 25px 0;
    overflow: hidden;
}

.header-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 42px;
    width: auto;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 13px;
    opacity: 0.9;
}

/* 主体间距 */
.ix-main {
    padding: 25px 0;
}

/* 页面标题 */
.page__title {
    font-size: 24px !important;
    color: #2B85FF !important;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

    .page__title::after {
        content: "";
        width: 50px;
        height: 3px;
        background: #2B85FF;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 3px;
    }

/* 查询表单 */
.weui-cells_form {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 8px 0;
    margin-top: 15px;
}

.weui-cell {
    display: flex;
    align-items: center;
    padding: 14px 20px;
}

.weui-label {
    min-width: 70px;
    font-size: 15px;
    color: #444;
    font-weight: 500;
    margin-right: 12px;
}

.weui-cell__bd {
    flex: 1;
}

.weui-input,
.weui-select {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

    .weui-input:focus,
    .weui-select:focus {
        border-color: #2B85FF;
        box-shadow: 0 0 0 2px rgba(43,133,255,0.15);
    }

/* 自定义查询按钮 */
.query-btn {
    display: inline-block;
    width: 250px;
    height: 50px;
    line-height: 50px;
    background: linear-gradient(135deg, #2B85FF, #4D94FF);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(43, 133, 255, 0.3);
    transition: all 0.3s ease;
    user-select: none;
}

    .query-btn:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #1E73E5, #3B87F5);
        box-shadow: 0 8px 20px rgba(43, 133, 255, 0.4);
    }

    .query-btn:active {
        transform: translateY(0);
    }

/* 政策文件标题栏 */
.policy-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 18px;
}

    .policy-title-bar h2 {
        font-size: 20px;
        font-weight: bold;
        color: #222;
        margin-left: 20px;
    }

.more-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f7fa;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

    .more-btn:hover {
        background: #2B85FF;
        color: #fff;
    }

/* 政策卡片容器 */
.policy-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    padding: 25px;
}

/* ================================== */
/* 【原冲突类名 .file-item 1：行内样式】 */
/* ================================== */
.file-item {
    padding: 16px 0;
    border-bottom: 1px solid #f2f2f2;
    transition: all 0.2s;
}

    .file-item:last-child {
        border-bottom: none;
    }

    .file-item:hover {
        background-color: #f9fbff;
        border-radius: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

.file-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.file-name {
    color: #2B85FF;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
}

.file-download {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}

    .file-download:hover {
        color: #2B85FF;
    }

.file-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
}

/* 空数据提示 */
.empty-file {
    text-align: center;
    padding: 40px 0;
    color: #bbb;
    font-size: 15px;
    background: #fafbfc;
    border-radius: 10px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2B85FF, #5B9DFF);
    padding: 22px 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    margin-top: 30px;
    border-top: none;
}

/* 工具类间距 */
.pt4 {
    padding-top: 15px;
}

.pb4 {
    padding-bottom: 15px;
}

.pt20 {
    padding-top: 20px;
}

.pb20 {
    padding-bottom: 20px;
}

.mb20 {
    margin-bottom: 20px;
}

/* ================================== */
/* 顶部标签切换栏 */
/* ================================== */
.tab-bar {
    display: flex;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    color: #666;
    position: relative;
    cursor: pointer;
}

    .tab-item.active {
        color: #2B85FF;
        font-weight: 600;
    }

        .tab-item.active::after {
            content: '';
            width: 35px;
            height: 3px;
            background: #2B85FF;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 3px;
        }

/* 列表容器 */
.list-wrap {
    padding: 15px;
}

/* 补贴信息卡片样式 */
.frame-list-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.weui-media-box__title {
    font-size: 17px;
    font-weight: bold;
    color: #2B85FF;
    margin-bottom: 10px;
}

.frame-list-item hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

/* 排版核心：长内容单行，短内容双行并排 */
.info-row-full {
    width: 100%;
    font-size: 15px;
    margin: 6px 0;
    color: #444;
}

.info-row-double {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    margin: 6px 0;
}

.info-item {
    width: 49%;
    font-size: 15px;
    margin: 5px 0;
    color: #444;
}

    .info-item span, .info-row-full span {
        color: #222;
        font-weight: 500;
    }

.status-text {
    color: #06b360;
    font-weight: bold;
}

.file-card-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

    .file-card-item .file-name {
        font-size: 16px;
        color: #2B85FF;
        font-weight: 500;
        margin-bottom: 10px;
    }

.file-desc {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.file-down-btn {
    display: inline-block;
    padding: 5px 16px;
    background: #eaf3ff;
    color: #2B85FF;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

/* 加载提示 */
.load-tips {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #999;
}

/* 手机端自适应 */
@media (max-width: 768px) {
    .header {
        padding: 20px 0;
    }

        .header h1 {
            font-size: 19px;
        }

    .logo {
        height: 36px;
    }

    .page__title {
        font-size: 21px !important;
    }

    .weui-cell {
        padding: 12px 15px;
    }

    .query-btn {
        width: 85% !important;
        height: 48px;
        line-height: 48px;
        font-size: 17px;
    }

    .policy-title-bar h2 {
        font-size: 17px;
    }

    .policy-card {
        padding: 15px;
    }

    .file-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-download {
        margin-top: 6px;
    }

    .info-item {
        width: 100%;
    }
}
