/* ==========================================================================
   首页 —— 张掖市阳光村务公开平台
   ========================================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    color: #16255f;
    background: #d5e6fa;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: #3c78da;
}

/* ---------------------------------------------------------------- 头部 ---- */

.main_header {
    position: relative;
    padding: 34px 20px 50px;
    /* 1.jpg 底边正好是 #3c78da，按宽度铺满后下面用同色兜底，衔接无缝 */
    background-color: #3c78da;
    background-image: url('../images/1.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.main_header_logo {
    text-align: center;
}

.main_header_logo img {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.main_header_logo h2 {
    margin: 14px 0 0;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(18, 62, 130, .28);
}

.main_header_logo h4 {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .88);
}

.main_header_logo h3 {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: .5px;
    background: linear-gradient(to bottom, #fffde4 30%, #ffdf4c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------------------------------------------------------------- 主体 ---- */

.main_content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    background: linear-gradient(180deg,
        #3c78da 0%,
        #5f97e6 26%,
        #70a2eb 60%,
        #94bdf8 84%,
        #a8cdff 100%);
}

.main_content1 {
    padding: 0 20px 0;
}

/* 2×2 宫格 */

.list_menu_ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.list_menu_li {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(29, 78, 156, .12);
}

.list_menu_li a {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 12px;
    color: #333333;
    text-decoration: none;
}

.list_menu_li a img {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 5px;
    border-radius: 13px;
    /*background-color: #eef4ff;*/
    object-fit: contain;
}

.list_menu_li a p {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0 0 6px;
    font-size: 4.3vw;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Microsoft YaHei"!important;
}

/* 整行卡片 */

.list_nav_ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.list_nav_li {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(29, 78, 156, .12);
}

.list_nav_li a {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 14px;
    color: #333333;
    text-decoration: none;
}

.list_nav_li a img {
    display: block;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 15px;
    /*background-color: #eef4ff;*/
    object-fit: contain;
}

/* 图标底色（对应效果图里的浅绿 / 浅橙） */
.tint-green a img {
    /*background-color: #edf8ee;*/
}

.tint-orange a img {
    /*background-color: #fff4e8;*/
}

.list_nav_li a h5 {
    margin: 0;
    font-size: 4.3vw;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .5px;
    color: #333333;
}

.list_nav_li a p {
    margin: 4px 0 0;
    font-size: 2.9vw;
    line-height: 1.5;
    color: #888888;
}

/* 整行卡片中间的文字块 */
.nav_text {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 12px;
}

/* 右侧圆形箭头 */
.nav_arrow {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    border: 1px solid #e3ebf7;
    border-radius: 50%;
    color: #b9c6dd;
}

.nav_arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-top: 1.6px solid currentColor;
    border-right: 1.6px solid currentColor;
    transform: translate(-65%, -50%) rotate(45deg);
}

/* ---------------------------------------------------------------- 底部 ---- */

.main_footer {
    margin-top: auto;
    padding: 30px 20px 34px;
    text-align: center;
    font-size: 12.5px;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 1px 3px rgba(58, 110, 190, .22);
}

/* ------------------------------------------------------------ 小屏适配 ---- */

@media (max-width: 360px) {
    .main_header {
        padding: 28px 16px 42px;
    }

    .main_header_logo h2 {
        font-size: 23px;
    }

    .main_content1 {
        padding: 22px 16px 0;
    }

    .list_menu_li a {
        height: 58px;
        padding: 0 6px;
    }

    .list_menu_li a img {
        width: 42px;
        height: 42px;
    }

    .list_menu_li a p {
        font-size: 4.3vw;
    }

    .list_nav_ul {
        gap: 12px;
        margin-top: 12px;
    }

    .list_nav_li a {
        height: 78px;
        padding: 0 12px;
    }

    .list_nav_li a img {
        width: 46px;
        height: 46px;
    }

    .list_nav_li a h5 {
        font-size: 15px;
    }
}
