
/* Global Styles */
body {
    background-color: #f2f2f2;
    font-size: 14px;
    line-height: 1.5;
    max-width: 750px; /* Mobile constraint */
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    padding-top: 52px; /* Offset for fixed header */
}

/* Banner / Top Section (.bjs) */
.bjs {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.bjs img {
    width: 100%;
}
.xiz1 {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}
.xiz1 img {
    width: 30px;
    height: 30px;
}

/* Header */
header {
    background: url('../static/img/header_bg.png') no-repeat center top / cover;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header .appLogo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
header p {
    flex: 1;
    margin-left: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
header .js_down_app {
    display: block;
}
header .js_down_app img {
    height: 30px; /* Adjust height to fit header */
    width: auto;
    display: block;
}

/* Swiper */
.swiper {
    margin-top: 5px;
    padding: 0 10px;
}
.swiper-container {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}
.swiper-wrapper {
    display: flex;
    transition-property: transform;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
}
.swiper-slide img {
    border-radius: 8px;
    width: 100%;
    display: block;
}
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Align to right */
    padding-right: 15px; /* Add some spacing from edge */
    gap: 5px;
}
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff; /* Inactive is white */
    border-radius: 50%;
    transition: background 0.3s;
    opacity: 1; /* Ensure visibility */
}
.swiper-pagination-bullet-active {
    background: #ff0055; /* Active is red */
}

/* Section Titles */
.titH {
    padding: 15px 10px 10px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.titH .status {
    display: inline-block;
    margin-left: 5px;
}
.zb_load {
    display: flex;
    align-items: flex-end;
    height: 16px; /* Slightly taller to fit visual */
    gap: 3px;
}
.zb_load span {
    display: inline-block;
    width: 3px;
    background-color: #ff3d83;
    border-radius: 2px;
    transform-origin: bottom;
    animation: load 1s ease-in-out infinite;
}
.zb_load .z1 { height: 40%; animation-delay: 0s; }
.zb_load .z2 { height: 60%; animation-delay: 0.2s; }
.zb_load .z3 { height: 80%; animation-delay: 0.4s; }
.zb_load .z4 { height: 100%; animation-delay: 0.1s; }

@keyframes load {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1); }
}

/* Global Popup */
.global-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.global-popup .modal-content {
    background: #fff;
    width: 300px;
    border-radius: 12px;
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.global-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.global-popup .popup-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.global-popup .popup-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}
.global-popup .popup-btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    background: linear-gradient(to right, #ff8c00, #ff0055); /* Orange to pink gradient */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 22px;
    box-shadow: 0 4px 10px rgba(255, 0, 85, 0.3);
}
.live .titH {
    color: #ff0055;
}
.live ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0 5px;
    gap: 10px;
}
.live li {
    width: calc(50% - 5px);
    padding: 0;
    margin-bottom: 0; /* Gap handles spacing */
}
.live li a {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.live .pic {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
}
.live .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live .des {
    padding: 8px 10px;
}

/* Overlays */
.live .amount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px);
}
.live .amount::before {
    content: ''; 
    display: inline-block;
    width: 8px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E") no-repeat center/contain;
    margin-right: 4px;
}

.live .tag {
    position: absolute;
    top: 8px;
    right: 0; /* Sticks to right edge */
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px 0 0 4px; /* Rounded left side */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.live .tag1 { background: linear-gradient(to right, #a020f0, #800080); }
.live .tag2 { background: linear-gradient(to right, #ff0055, #ff4d4d); }
.live .tag3 { background: linear-gradient(to right, #ff8800, #ffaa00); }

.live .distance {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px);
}
.live .distance::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center/contain;
    margin-right: 3px;
}

.live .userTagInfo {
    position: absolute;
    bottom: 8px;
    left: 8px;
}
.live .trueuser_badge {
    background: rgba(100, 0, 150, 0.8);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px 2px 20px; /* Left padding for icon */
    border-radius: 12px;
    position: relative;
}
.live .trueuser_badge::before {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #c71585; /* Darker pink/purple */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    border: 1px solid #fff;
}

/* Info Row */
.live .name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.live .name-text {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}
.live .age {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
    margin-right: auto; /* Pushes online status to right */
}
.live .online-status {
    font-size: 10px;
    color: #fff;
    background: #78c06e;
    padding: 1px 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
}
.live .online-status::before {
    content: '●';
    margin-right: 3px;
    font-size: 6px;
}

.live .desc {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Goddess Section */
.goddess {
    background: #fff;
    margin-top: 10px;
    /* padding-bottom removed to let more-btn-wrapper sit flush if needed, or keep it */
    padding-bottom: 0; 
}
.goddess .titH {
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.goddess .title-text {
    font-size: 18px;
    font-weight: bold;
    color: #ff0055; /* Pink color */
}
.goddess .right-tags span {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.goddess ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px;
    gap: 10px;
}

.goddess li {
    width: calc(50% - 5px);
    margin-bottom: 5px;
}

.goddess a {
    display: block;
}

.goddess .pic {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4; /* Vertical rectangle */
}

.goddess .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Count Overlay */
.goddess .count {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.goddess .count .icon-bar {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z'/%3E%3C/svg%3E") no-repeat center/contain;
    margin-right: 4px;
}

/* Play Button Overlay */
.goddess .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
}
.goddess .play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px; /* Optical centering */
}

.goddess .desc {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* More Button */
.more-btn-wrapper {
    text-align: center;
    padding: 15px 0;
    background: #fff; /* Keep white to match section? Or grey? Let's use subtle grey or white with border */
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}
.goddess .more {
    display: inline-block;
    font-size: 14px;
    color: #999; /* Subtle grey */
}

/* Comment Section */
.comment {
    background: #fff;
    margin-top: 10px;
    padding-bottom: 10px;
}
.comment .titH {
    color: #ff0055; /* Hot Comments text red */
}
.comment ul {
    padding: 0 10px;
}
.comment li {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-bottom: 1px solid #eee;
}
.comment .adver {
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.comment .adver img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.comment .tit {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}
.comment h5 {
    font-size: 14px;
    color: #333;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    background: #333; /* Dark background similar to image */
    color: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
}
footer .appLogo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
}
footer .footer-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
footer .app-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}
footer .app-desc {
    font-size: 12px;
    color: #ccc;
    line-height: 1.2;
}
footer .btn_down {
    background: url('../static/img/and_down.png') no-repeat center center;
    background-size: 100% 100%;
    width: 100px; /* Estimate width based on typical button aspect ratio */
    height: 36px;
    line-height: 36px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: block;
    padding: 0 .4rem 0 1.8rem;
    margin-right: 5px; /* Add some margin from the right edge */
    text-decoration: none;
}
/* Removed img styles as it is now a background */

/* Padding for footer */
body {
    padding-bottom: 70px;
}

/* Kefu */
.kefu {
    position: fixed;
    right: 10px;
    bottom: 150px; /* Moved up from 80px */
    width: 50px;
    height: 50px;
    z-index: 99;
}

/* Layers / Popups */
.layer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 300px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: none; /* Hidden by default */
}
.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}
.t_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #ccc; /* Placeholder for close icon */
    border-radius: 50%;
    cursor: pointer;
}
.t_close::before, .t_close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}
.t_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* PC Adaption */
@media (min-width: 768px) {
    body {
        background: #333;
    }
    #app {
        max-width: 480px;
        margin: 0 auto;
        background: #f5f5f5;
        min-height: 100vh;
    }
    footer {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    .layer {
        position: absolute; /* Relative to #app if positioned? No, fixed is better but centered */
    }
}
