/* ============================================
   index.css — index.php 专属样式
   ============================================ */

body{padding-top:140px}

/* ---- 顶部固定栏 ---- */
.fixed-top{
    position:fixed;
    top:0;
    left:50%;
    height:140px;
    transform:translateX(-50%);
    max-width:720px;
    width:100%;
    background:#fff;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}
.header-top{
    height:55px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 15px;
    border-bottom:1px solid #f0f0f0;
    background:linear-gradient(to left,#e83e7a,#f1538b,#f46698,#f775a3,#f46698,#f1538b,#e83e7a);
}
.header-top>div{flex:1;display:flex;align-items:center}
.header-top .jiangtu{justify-content:center}
.header-top .bank{justify-content:flex-end}
.logo img{height:30px;display:block}
.jiangtu img{display:block}
.bank img{display:block}

/* ---- 搜索栏 ---- */
.search-wrap{
    flex:1;
    margin-left:10px;
    margin-right:10px;
    display:flex;
    align-items:center;
}
.search-wrap input{
    flex:1;
    width:0;
    padding:7px 10px;
    border:1px solid #ddd;
    border-radius:4px 0 0 4px;
    outline:0;
    font-size:13px;
    background:#f9f9f9;
}
.btn-search{
    background:#1890ff;
    color:#fff;
    border:none;
    padding:7px 12px;
    border-radius:0 4px 4px 0;
    cursor:pointer;
    font-size:13px;
    flex-shrink:0;
}

/* ---- 登录栏 ---- */
.user-auth-row{
    height:50px;
    display:flex;
    align-items:center;
    padding:0 10px;
    background:#fff;
    gap:6px;
}
.auth-form{display:flex;flex:1;gap:4px;min-width:0}
.auth-form input{
    flex:1;
    width:0;
    padding:6px 5px;
    border:1px solid #eee;
    border-radius:4px;
    font-size:12px;
}
.logged-info{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:13px}
.logged-info .u-detail{display:flex;gap:8px;align-items:center}
.vip-tag{
    background:linear-gradient(145deg,#fadb14,#ffec3d);
    color:#873800;
    font-size:10px;
    padding:1px 5px;
    border-radius:4px;
    font-weight:700;
    margin-right:4px;
    border:1px solid #ffe58f;
    box-shadow:0 1px 2px rgba(0,0,0,.1);
}
.coin-icon{
    display:inline-flex;
    align-items:center;
    background:#fff7e6;
    border:1px solid #ffd591;
    padding:1px 6px;
    border-radius:12px;
    color:#d46b08;
    font-size:12px;
}
.coin-icon::before{content:'金币:';margin-right:3px;font-size:12px}

/* ---- 板块内容 ---- */
.section-title{
    margin:15px 10px 0 10px;
    padding:12px;
    text-align:center;
    font-size:22px;
    font-weight:700;
    color:#fff;
    background:linear-gradient(90deg,#1890ff 0,#722ed1 100%);
    border-radius:10px 10px 0 0;
}
.section-content{
    margin:0 10px 15px 10px;
    background:#fff;
    border:1px solid #e8e8e8;
    border-top:none;
    border-radius:0 0 10px 10px;
    padding:5px 0;
}
.section-zhibo{
    margin:15px 10px 0 10px;
    padding:12px;
    text-align:center;
    font-size:18px;
    font-weight:700;
    color:#fff;
    background:linear-gradient(180deg,#577081 0,#2e1354 100%);
    border-radius:10px 10px 0 0;
}
.section-shuxing{
    margin:15px 10px 0 10px;
    padding:12px;
    text-align:center;
    font-size:18px;
    font-weight:700;
    color:#fff;
    background:linear-gradient(295deg,#d4d751 0,#b99f21 100%);
    border-radius:10px 10px 0 0;
}

/* ---- 帖子列表 ---- */
.post-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:6px 8px;
    padding:12px;
    background:linear-gradient(135deg,#fff 0,#f0f7ff 100%);
    border:1px solid #ddecff;
    border-radius:8px;
    font-weight:700;
}
.p-left{display:flex;align-items:center;flex:1;min-width:0}
.p-icon{margin-right:5px;color:#1890ff;flex-shrink:0;font-size:14px}
.p-qishu{
    background:#2fbb40;
    color:#fff;
    font-size:10px;
    padding:1px 4px;
    border-radius:3px;
    margin-right:6px;
    flex-shrink:0;
}
.p-text{font-size:18px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-right{flex-shrink:0;margin-left:8px;color:#666;font-size:18px}
.pure-row{margin:5px}
.pure-row img{width:100%;border-radius:8px;display:block;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.gaogao{padding:4px 8px;background:#fff3cd;font-size:13px;color:#856404}

/* ---- 公告跑马灯 ---- */
.gaogao marquee{color:#856404}

/* ---- 帖子标签 ---- */
.fb_ztbz{font-size:10px;padding:1px 4px;border-radius:3px;margin-right:6px;flex-shrink:0}
.badge-fb3{
    color:#fff;
    background:linear-gradient(90deg,red,#ff0,red);
    text-shadow:0 0 1px #000,0 0 2px #000,0 0 3px #000,0 0 4px #000;
    display:inline-block;
    background-size:200% auto;
    animation:flowColors 3s linear infinite;
}
@keyframes flowColors{
    0%{background-position:0 50%}
    50%{background-position:100% 50%}
    100%{background-position:0 50%}
}

/* ---- 充值表格 ---- */
.tableCZ th{text-align:center;font-weight:700;padding:5px;color:#ff0;background:#f96}
.tableCZ td{padding:5px;color:#000}
.tableCZ tr:nth-child(2n){background:#fff3e2}

/* ---- 弹窗 ---- */
#pwdModal{
    display:none;
    position:fixed;
    top:0;left:0;
    width:100%;height:100%;
    background:rgba(0,0,0,.6);
    z-index:2000;
    justify-content:center;
    align-items:flex-start;
    padding-top:80px;
    overflow-y:auto;
}
.modal-content{
    background:#fff;
    padding:20px;
    border-radius:12px;
    width:85%;
    max-width:320px;
    margin:0 auto;
    box-shadow:0 5px 20px rgba(0,0,0,.2);
}
.modal-content h3{margin-bottom:15px;font-size:16px;text-align:center}
.modal-content input{width:100%;padding:10px;margin-bottom:15px;border:1px solid #ddd;border-radius:6px}

#recordModal{
    display:none;
    position:fixed;
    top:0;left:0;
    width:100%;height:100%;
    background:rgba(0,0,0,.6);
    z-index:2000;
    justify-content:center;
    align-items:flex-start;
    padding-top:50px;
    overflow-y:auto;
}
.record-box{
    margin-bottom:30px;
    background:#fff;
    padding:0;
    border-radius:12px;
    width:90%;
    max-width:400px;
    overflow:hidden;
}
.record-header{
    background:#f8f9fa;
    padding:15px;
    font-weight:700;
    text-align:center;
    border-bottom:1px solid #eee;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.record-body{max-height:300px;overflow-y:auto;padding:10px}
.record-body::-webkit-scrollbar{width:5px}
.record-body::-webkit-scrollbar-thumb{background:#ccc;border-radius:10px}
.record-item{
    padding:8px 10px;
    border-bottom:1px dashed #eee;
    font-size:13px;
    color:#444;
    display:flex;
    justify-content:space-between;
}
.record-item:last-child{border-bottom:none}
.record-tabs{display:flex;background:#fff;border-bottom:1px solid #eee}
.tab-btn{
    flex:1;
    text-align:center;
    padding:12px;
    font-size:14px;
    cursor:pointer;
    color:#666;
    border-bottom:2px solid transparent;
}
.tab-btn.active{color:#1890ff;border-bottom:2px solid #1890ff;font-weight:700;background:#f0f7ff}
#cz_list{display:none}

/* ---- 响应式 ---- */
@media screen and (max-width:500px){
    .section-title,.p-text{font-size:14px !important}
    .p-right{font-size:12px !important}
}