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

body {
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #0a0a1a 0%, #151530 100%);
    color: #e0e0ff;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px; /* 为固定底部广告预留空间 */
}

.page-container {
    max-width: 500px;
    margin: 0 auto;
    background: #0e0e20;
    min-height: 100vh;
    position: relative;
}

.header-section {
    padding: 15px 15px 10px;
    text-align: center;
    background: linear-gradient(to bottom, #1a1a3a, #0e0e20);
    border-bottom: 2px solid #8a2be2;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.verification-badge {
    display: inline-block;
    background: linear-gradient(90deg, #8a2be2, #4169e1);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 15px;
}

.announcement-container {
    background: rgba(20, 20, 50, 0.9);
    padding: 10px 15px;
    margin: 0 15px 10px;
    border-radius: 8px;
    border: 1px solid rgba(120, 100, 255, 0.3);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}

.announcement-icon {
    background: #8a2be2;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 10px;
}

.announcement-content {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
}

.announcement-text {
    display: inline-block;
    animation: scrollAnnouncement 20s linear infinite;
    padding-left: 100%;
    font-size: 12px;
    color: #ffcc66;
}

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

.address-container {
    background: rgba(20, 20, 50, 0.9);
    padding: 10px 15px;
    margin: 0 15px 15px;
    border-radius: 8px;
    border: 1px solid rgba(120, 100, 255, 0.3);
}

.address-title {
    color: #ffcc66;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.address-fixed {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.address-item {
    flex: 1;
    background: rgba(40, 40, 80, 0.7);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(100, 80, 255, 0.2);
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.address-url {
    color: #66ccff;
    font-weight: bold;
    font-size: 12px;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 广告容器（已重命名，避免拦截） ========== */
.top-banner, .mid-banner, .bottom-banner {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 顶部横幅广告 */
.top-banner {
    margin: 0 15px 15px;
    border-radius: 8px;
    border: 1px solid rgba(120, 100, 255, 0.3);
    background: rgba(20, 20, 50, 0.5);
    min-height: 60px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(138, 43, 226, 0.8);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 100px;
}

/* 中部广告卡片 */
.mid-banner {
    margin: 0 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 204, 102, 0.3);
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
    background: rgba(20, 20, 50, 0.5);
    min-height: 70px;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mid-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffcc66;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 10;
    font-weight: bold;
}

.mid-banner .banner-image {
    max-height: 120px;
}

/* 底部固定广告 */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    z-index: 100;
    background: rgba(10, 10, 25, 0.95);
    backdrop-filter: blur(5px);
    min-height: 60px;
    max-height: 80px;
    border-top: 2px solid rgba(120, 100, 255, 0.3);
    background: rgba(20, 20, 50, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffcc66;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 10;
    font-weight: bold;
}

.bottom-banner .banner-image {
    max-height: 80px;
}

.nav-tabs {
    display: flex;
    background: rgba(20, 20, 50, 0.9);
    margin: 0 15px 15px;
    border-radius: 8px;
    border: 1px solid rgba(120, 100, 255, 0.3);
    overflow: hidden;
}

.nav-tab {
    flex: 1;
    padding: 12px 5px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #a0a0ff;
    border-right: 1px solid rgba(120, 100, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-tab:last-child {
    border-right: none;
}

.nav-tab.active {
    background: linear-gradient(90deg, #8a2be2, #4169e1);
    color: white;
}

.content-container {
    margin-bottom: 20px;
}

/* 热门项目区 - 横向排列的5个项目 */
.featured-section {
    margin: 0 15px 15px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid #8a2be2;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.featured-card {
    background: rgba(30, 30, 70, 0.8);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(100, 80, 255, 0.2);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-2px);
}

.featured-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.featured-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-icon {
    font-size: 22px;
}

.featured-content {
    padding: 8px 6px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-name {
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
    height: 26px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-button {
    display: inline-block;
    background: rgba(100, 80, 255, 0.2);
    color: #8a8aff;
    padding: 4px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 10px;
    margin-top: auto;
}

/* 精品项目区 - 纵向排列的多个项目 */
.nav-list-section {
    margin: 0 15px 25px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    background: rgba(30, 30, 70, 0.8);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(100, 80, 255, 0.2);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon {
    font-size: 22px;
    color: white;
}

.nav-info {
    flex-grow: 1;
}

.nav-name {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.nav-action {
    flex-shrink: 0;
    margin-left: 10px;
}

.nav-button {
    display: inline-block;
    background: linear-gradient(90deg, #8a2be2, #4169e1);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    animation: breathing 2s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    border: none;
    cursor: pointer;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
    }
}

.footer {
    background: #0a0a15;
    padding: 20px 15px;
    text-align: center;
    border-top: 1px solid rgba(120, 100, 255, 0.1);
}

.copyright {
    color: #8a8ac4;
    font-size: 10px;
    margin-top: 8px;
    line-height: 1.4;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* GIF广告特殊样式 */
.gif-banner-image {
    animation: fadeInGif 0.8s ease-in;
}

@keyframes fadeInGif {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 400px) {
    .site-logo {
        font-size: 22px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .featured-img {
        width: 50px;
        height: 50px;
        border-radius: 10px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .featured-name {
        font-size: 10px;
        height: 24px;
    }
    
    .top-banner {
        min-height: 50px;
        max-height: 80px;
    }
    
    .mid-banner {
        min-height: 60px;
        max-height: 100px;
    }
    
    .bottom-banner {
        min-height: 50px;
        max-height: 70px;
    }
    
    .banner-image {
        max-height: 80px;
    }
    
    .mid-banner .banner-image {
        max-height: 100px;
    }
    
    .bottom-banner .banner-image {
        max-height: 70px;
    }
    
    body {
        padding-bottom: 60px;
    }
}

@media (min-width: 401px) and (max-width: 500px) {
    .top-banner {
        min-height: 55px;
        max-height: 90px;
    }
    
    .mid-banner {
        min-height: 65px;
        max-height: 110px;
    }
    
    .bottom-banner {
        min-height: 55px;
        max-height: 75px;
    }
    
    .banner-image {
        max-height: 90px;
    }
    
    .mid-banner .banner-image {
        max-height: 110px;
    }
    
    .bottom-banner .banner-image {
        max-height: 75px;
    }
}

/* 横屏优化 */
@media (orientation: landscape) and (max-height: 500px) {
    body {
        padding-bottom: 50px;
    }
    
    .top-banner {
        min-height: 45px;
        max-height: 70px;
    }
    
    .mid-banner {
        min-height: 55px;
        max-height: 90px;
    }
    
    .bottom-banner {
        min-height: 45px;
        max-height: 60px;
    }
    
    .banner-image {
        max-height: 70px;
    }
    
    .mid-banner .banner-image {
        max-height: 90px;
    }
    
    .bottom-banner .banner-image {
        max-height: 60px;
    }
}