* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    max-width: 540px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    padding-bottom: 120px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 1. 顶部白色横幅 */
.top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.top-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.peach-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.top-banner-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #e91e63;
    font-size: 13px;
    font-weight: 600;
}

.brand-slogan {
    color: #999;
    font-size: 11px;
}

.top-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-app-btn-top {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* 2. 五色导航条 */
.color-nav {
    display: flex;
}

.color-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.color-nav .nav-item.purple {
    background-color: #8B5CF6;
}

.color-nav .nav-item.pink {
    background-color: #EC4899;
}

.color-nav .nav-item.blue {
    background-color: #3B82F6;
}

.color-nav .nav-item.red {
    background-color: #EF4444;
}

.color-nav .nav-item.violet {
    background-color: #7C3AED;
}

/* 3. 粉紫渐变Header */
.main-header {
    background: linear-gradient(to right, #a855f7, #ec4899);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.header-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-link .icon {
    width: 22px;
    height: 22px;
    color: #fff;
}

.download-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.header-nav {
    display: flex;
    align-items: center;
    padding: 0 5px 10px;
}

.nav-arrow {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-scroll {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 0 5px;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-link {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 15px;
    transition: background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
}

/* 4. 黄色公告栏 */
.notice-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #fffde7;
    gap: 10px;
    overflow: hidden;
}

.notice-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
}

.notice-icon svg {
    color: #ff9800;
}

.notice-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notice-text {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    color: #e53935;
    font-size: 13px;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 5. 轮播图区域 */
.carousel-section {
    padding: 10px;
}

.carousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
}

.carousel-item {
    display: none;
    position: relative;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.carousel-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
}

.carousel-text {
    position: absolute;
    bottom: 20px;
    left: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
}

/* 6. 人物推荐区域 */
.person-recommend {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 10px;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.person-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.person-card span {
    margin-top: 4px;
    font-size: 11px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 7-9. 广告Banner行 */
.ad-row {
    display: grid;
    gap: 6px;
    padding: 5px 10px;
}

.ad-row-6 {
    grid-template-columns: repeat(6, 1fr);
}

.ad-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.ad-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    background-color: #f0f0f0;
}

.ad-item span {
    margin-top: 3px;
    font-size: 10px;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.ad-item.large img {
    aspect-ratio: 2/1;
}

/* 10. 大型广告图 */
.big-ad {
    position: relative;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.big-ad img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.big-ad-content {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.big-ad-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.big-ad-tag {
    display: inline-block;
    background-color: #ef4444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-top: 5px;
}

.big-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

/* 11. 标签按钮区域 */
.tag-buttons {
    padding: 10px;
}

.tag-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.tag-row:last-child {
    margin-bottom: 0;
}

.tag-btn {
    flex: 1;
    max-width: 80px;
    padding: 8px 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-btn:hover {
    background-color: #ec4899;
    color: #fff;
    border-color: #ec4899;
}

/* 12-13-15. 视频区域通用样式 */
.video-section {
    padding: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-tags {
    display: flex;
    gap: 8px;
}

.section-tag {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.section-tag.pink {
    background-color: #ec4899;
    color: #fff;
}

.section-tag.green {
    background-color: #22c55e;
    color: #fff;
}

/* 视频网格 */
.video-grid {
    display: grid;
    gap: 10px;
}

.live-grid {
    grid-template-columns: repeat(3, 1fr);
}

.recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    flex: 1;
}

.category-grid {
    grid-template-columns: repeat(2, 1fr);
}

.video-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background-color: #f0f0f0;
}

.video-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 11px;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.video-stats svg {
    flex-shrink: 0;
}

.video-title {
    margin-top: 6px;
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Wrapper (推荐区域+侧边栏) */
.content-wrapper {
    display: flex;
    gap: 10px;
}

/* 14. 女优侧边栏 */
.actress-sidebar {
    width: 75px;
    flex-shrink: 0;
    background-color: #fafafa;
    border-radius: 10px;
    padding: 10px 5px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.actress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.actress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.actress-item:hover {
    transform: scale(1.05);
}

.actress-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ec4899;
}

.actress-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.actress-item span {
    margin-top: 3px;
    font-size: 10px;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.more-actress-btn {
    display: block;
    margin-top: 10px;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

.more-actress-btn:hover {
    background-color: #ec4899;
    color: #fff;
}

/* 15. 分类标签页 */
.category-section {
    padding: 10px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-link {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 13px;
    color: #666;
    border-radius: 20px;
    background-color: #f0f0f0;
    transition: all 0.2s;
}

.tab-link:hover,
.tab-link.active {
    background-color: #ec4899;
    color: #fff;
}

/* 16. 右侧浮动元素 */
.float-elements {
    position: fixed;
    right: 10px;
    bottom: 150px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-ad {
    position: relative;
    width: 60px;
}

.float-ad img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background-color: #f0f0f0;
}

.float-ad .close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-down-btn {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 17. 底部固定导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #999;
    transition: color 0.2s;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item span {
    font-size: 11px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #ec4899;
}

/* 18. 底部APP下载条 */
.bottom-app-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.app-bar-content {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 10px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 6px 12px;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 12px;
    outline: none;
}

.search-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.app-bar-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-name {
    color: #e91e63;
    font-size: 12px;
    font-weight: 600;
}

.app-desc {
    color: #999;
    font-size: 10px;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-app-btn {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.app-bar-links {
    display: flex;
    justify-content: space-around;
    padding: 6px 10px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

.app-bar-links a {
    font-size: 11px;
    color: #666;
}

.app-bar-links a:hover {
    color: #ec4899;
}

/* Play button overlay */
.video-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1;
}

.video-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    border-left: 15px solid #ec4899;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.video-card:hover .video-thumb::before,
.video-card:hover .video-thumb::after {
    opacity: 1;
}

/* Loading Animation for images */
.video-thumb img,
.actress-avatar img,
.person-card img,
.ad-item img,
.carousel-item img {
    background-color: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Adjustments */
@media (max-width: 400px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .person-recommend {
        grid-template-columns: repeat(3, 1fr);
    }

    .ad-row-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-wrapper {
        flex-direction: column;
    }

    .actress-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 10px;
    }

    .actress-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Shadow for desktop */
@media (min-width: 541px) {
    body {
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Dating Section */
.dating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.dating-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.dating-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* Portrait fits better for people */
}

.dating-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dating-distance {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.dating-info {
    padding: 8px;
}

.dating-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dating-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Improved Dating Section Styles */

/* Filter Bar */
.dating-filters {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    scrollbar-width: none;
}
.dating-filters::-webkit-scrollbar {
    display: none;
}
.filter-item {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.filter-item.active {
    color: #ec4899;
    border-bottom-color: #ec4899;
    font-weight: bold;
}

/* Card Improvements */
.dating-card {
    position: relative;
    border: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}
.dating-card:active {
    transform: scale(0.98);
}

.dating-thumb {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.dating-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.distance-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(2px);
}

.status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #10b981;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.dating-info {
    padding: 10px;
}

.dating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.verify-icon {
    width: 14px;
    height: 14px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #666;
}

.tag.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.tag.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
