* {
    margin: 0;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

:root {
    --secondary: #2ecc71;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to right bottom, #0864e9 0%, #3cdcc8 60%);
}

#main {
    height: calc(100% - 60px);
    width: 100%;
    max-width: 640px;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    overflow-y: auto;
    overflow-x: hidden;
}

.userinfo {
    margin: 10px 0;
    padding: 0 10px;
    width: 100%;
    height: 40px;
    font-size: 0.9rem;
    color: #28122c;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.headimg {
    height: 40px;
    width: 40px;
    border-radius: 5px;
}

.avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 5px;
}

.user_name {
    width: 120px;
    padding: 0 5px;
}

.showname {
    height: 20px;
    line-height: 20px;
    text-align: left;
}

.username {
    color: #fb4201;
}

.vipinfo {
    height: 20px;
    width: 120px;
    display: flex;
    justify-content: flex-start;
}

.user_vip {
    height: 20px;
    line-height: 20px;
    width: 60px;
    padding: 0 2px;
    font-size: 0.8rem;
    color: #d8f5ff;
    background-color: #656776;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
}

.user_info {
    flex: 1;
    text-align: left;
    padding-left: 5px;
}

.head_sm {
    height: 30px;
    width: 30px;
    margin-left: 5px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    background-image: url("../img/ewm.png");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;
}

.head_kf {
    height: 30px;
    width: 60px;
    margin-left: 5px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.kf_img {
    width: 25px;
    height: 25px;
    background-image: url("../img/kf.png");
    background-size: 23px 23px;
    background-repeat: no-repeat;
    background-position: center center;
}

.kf_title {
    height: 25px;
    line-height: 25px;
    color: #ffffff;
    flex: 1;
}

.dcname {
    height: 150px;
    width: 100%;
    margin: 20px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dc_name {
    height: 35px;
    line-height: 35px;
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 15px #000, 0 0 5px rgba(255, 17, 0, 0.2);
}

.dc_xy {
    height: 25px;
    line-height: 25px;
    width: 100%;
    font-size: 1rem;
    background: linear-gradient(to right, #0a0c37, #1c295e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.addfriend {
    margin-top: 20px;
    height: 30px;
    width: 65%;
    background-color: #ffffff;
    border-radius: 35px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 1px;
}

.headimg1,
.headimg2,
.headimg3 {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.headimg1 {
    background-image: url("../headimg/6.jpg");
}

.headimg2 {
    background-image: url("../headimg/7.jpg");
    position: absolute;
    left: 14px;
}

.headimg3 {
    background-image: url("../headimg/8.jpg");
    position: absolute;
    left: 28px;
}

.addfriend_button {
    height: 28px;
    line-height: 28px;
    display: inline-block;
    padding: 0 5px;
    border-radius: 28px;
    font-size: 0.75rem;
    background-color: #33b194;
    color: #ffffff;
}

.dcinfo {
    width: 95%;
    padding-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px 16px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.dcinfo_text {
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dcinfo_title {
    height: 30px;
    line-height: 30px;
    width: 35%;
    font-size: 1rem;
    color: #ffffff;
    padding-left: 14px;
    border-radius: 16px 0 12px;
    background-color: #3cdcc8;
    background-image: url("../img/indent.png");
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: 17px center;
}

.tq {
    height: 25px;
    line-height: 25px;
    flex: 1;
    font-size: 0.9rem;
    color: #999999;
    word-spacing: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.dcinfo_xx {
    margin: 15px 0;
    height: 55px;
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xx_info {
    height: 100%;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #b6b5f3;
    border-radius: 6px;
}

.xx_info_nr {
    height: 30px;
    line-height: 30px;
    width: calc(100% - 2px);
    font-size: 0.9rem;
    font-weight: bold;
    color: #0b1547;
    background-color: #ffffff;
    border-radius: 6px 6px 0 0;
    opacity: 0.8;
}

.xx_info_bt {
    height: 24px;
    line-height: 24px;
    width: 100%;
    font-size: 0.9rem;
    font-weight: bold;
    color: #0b1547;
    opacity: 0.7;
}

.yy-time {
    background-color: #3cdcc8;
}

.charge_dz {
    height: 50px;
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.fy {
    height: 50px;
    flex: 1;
    border-radius: 6px;
    padding-left: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(163, 162, 246, 0.9) 0%, rgba(84, 239, 214, 0.9) 100%);
}

.fy_title {
    height: 48px;
    line-height: 20px;
    width: 55px;
    border-radius: 6px 0 0 6px;
    font-size: 0.9rem;
    padding: 5px 0 4px;
    font-weight: bold;
    color: #c41429;
    background-color: #ffffff;
    word-spacing: 6px;
    letter-spacing: 1px;
    opacity: 0.7;
}

.fy_text {
    height: 100%;
    line-height: 20px;
    flex: 1;
    padding: 6px 0 5px;
    font-size: 0.95rem;
    color: #ffffff;
    text-align: center;
    word-spacing: 6px;
    letter-spacing: 1px;
}

.dc_yl {
    height: 45px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.yl_hz {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hz_bg {
    height: 30px;
    width: 100%;
    background-image: url("../img/tw.png");
    background-size: 30px 25px;
    background-repeat: no-repeat;
    background-position: center center;
}

.hz_text {
    height: 20px;
    line-height: 20px;
    padding-top: 2px;
    font-size: 0.9rem;
    color: #0b1547;
    opacity: 0.8;
}

.yl_gz {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gz_bg {
    height: 30px;
    width: 100%;
    background-image: url("../img/gz.png");
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: center center;
}

.gz_text {
    height: 20px;
    line-height: 20px;
    padding-top: 2px;
    font-size: 0.9rem;
    color: #0b1547;
    opacity: 0.8;
}

.dc_address {
    height: 30px;
    line-height: 30px;
    padding: 5px 0;
    font-size: 0.95rem;
    width: 95%;
    color: #1c295e;
    overflow-wrap: break-word;
    opacity: 0.8;
}

.fy_xx {
    padding: 4px;
    width: 91%;
    color: #0b4062;
    border-radius: 0 0 20px 20px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;
}

.gg {
    margin: 10px 0;
    height: 50px;
    width: 95%;
    border-radius: 25px;
    padding: 5px;
    background-color: rgba(25, 47, 92, 0.4);
}

.gg_bg {
    height: 40px;
    width: 100%;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gg_text {
    height: 40px;
    line-height: 35px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff0238;
    flex: 1;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.font_size {
    font-size: 1.8rem;
}

.gg_button {
    height: 40px;
    line-height: 40px;
    width: 25%;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff5000;
    border-radius: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    box-shadow: -5px 0 1px rgba(36, 119, 124, 0.9);
    opacity: 0.9;
}

.fw_main {
    width: 95%;
    border-radius: 8px;
    padding: 0 6px 6px 6px;
    background-color: rgba(23, 30, 39, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    display: none;
}

.fw_title {
    height: 40px;
    width: 100%;
    padding: 0 5px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fw_title_text {
    height: 40px;
    line-height: 40px;
    width: fit-content;
    font-size: 1rem;
    color: #ffffff;
    padding-left: 28px;
    background-image: url("../img/dp.png");
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: 0 7px;
    opacity: 0.9;
}

.fw_title_fl {
    height: 40px;
    line-height: 40px;
    flex: 1;
    font-size: 0.9rem;
    text-align: right;
    color: #ffffff;
    word-spacing: 12px;
    opacity: 0.95;
}

.fw_content {
    height: 210px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.fw_item {
    height: 100px;
    width: 100%;
    padding-right: 5px;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fw_item:nth-child(2) {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.fw_lx {
    height: 100px;
    width: 65px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fw_lx_img {
    height: 50px;
    width: 50px;
    background-image: url("../img/kcyl.png");
    background-size: auto auto;
    background-repeat: no-repeat;
    background-position: center center;
}

.yj_lx_img {
    height: 50px;
    width: 50px;
    background-image: url("../img/yjel.png");
    background-size: auto auto;
    background-repeat: no-repeat;
    background-position: center center;
}

.fw_lx_title {
    height: 20px;
    line-height: 23px;
    font-size: 0.9rem;
    margin-top: 3px;
    color: #151515;
}

.fw_lx_sm {
    height: 17px;
    line-height: 17px;
    font-size: 0.7rem;
    color: #999999;
}

.fw_fg {
    height: 100px;
    width: 15px;
    background-image: url("../img/fw_fg.png");
    background-size: auto 100px;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fw_show {
    height: 100px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-y: hidden;
    overflow-x: auto;
}

.show_item {
    height: 100px;
    width: 75px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.show_item_img {
    height: 65px;
    width: 65px;
}

.show_item_img img {
    height: 65px;
    width: 65px;
}

.show_jg {
    height: 25px;
    line-height: 25px;
    width: 100%;
    font-size: 0.9rem;
    font-weight: bold;
    color: #d63229;
}

.news {
    width: 95%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.news_title {
    height: 35px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.news_title_text {
    height: 35px;
    line-height: 35px;
    padding: 0 25px 0 40px;
    border-radius: 5px 5px 0 0;
    background-color: #ffffff;
    background-image: url("../img/news.png");
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: 10px center;
    width: fit-content;
    font-size: 1rem;
    font-weight: bold;
    color: #292a25;
}

.news_title_more {
    height: 31px;
    line-height: 31px;
    margin-top: 3px;
    border-radius: 0 5px 0 0;
    flex: 1;
    text-align: right;
    padding-right: 15px;
    font-size: 0.9rem;
    color: #ffffff;
    background: linear-gradient(to right, #5083dc 0%, #52c5fc 100%);
    opacity: 0.9;
}

.news_content {
    height: auto;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
}

.news_item {
    height: 70px;
    width: 100%;
    padding: 10px 5px;
    border-bottom: 1px dashed #aaaaaa;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.news_item:last-child {
    border-bottom: none;
}

.list_num {
    height: 50px;
    line-height: 50px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #d63229;
}

.news_info {
    height: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.title_body {
    height: 30px;
    line-height: 30px;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title_info {
    height: 20px;
    line-height: 20px;
    text-align: left;
    width: 100%;
    font-size: 0.9rem;
    color: #666666;
}

.news_img {
    height: 50px;
    width: 80px;
}

.news_img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px 5px 0 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item.active {
    color: #e65c19;
}

.nav-item.active .nav-icon {
    color: #e65c19;
    transform: translateY(-5px);
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 3px;
    color: #95a5a6;
    transition: all 0.3s ease;
    /* 为图片添加样式支持 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 初始为灰色调 */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon img {
    /* 激活状态为彩色 */
    filter: grayscale(0%);
    opacity: 1;
}

.nav-text {
    font-size: 0.7rem;
    color: #95a5a6;
    transition: all 0.3s ease;
}

.nav-item.active .nav-text {
    color: #e65c19;
    font-weight: 600;
}

.nav-indicator {
    position: absolute;
    top: -5px;
    width: 6px;
    height: 6px;
    background: #e65c19;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item.active .nav-indicator {
    opacity: 1;
}