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

img {
    max-width: 100%;
    height: auto;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

:root {
    --primary-color: #00f3ff;
    --secondary-color: #ff00ff;
    --accent-color: #00ff88;
    --bg-dark: #0a0e27;
    --bg-darker: #050814;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --card-bg: rgba(15, 20, 40, 0.8);
    --border-glow: rgba(0, 243, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYGD4z8DAwAAACQEBAQGvF/8AAAAASUVORK5CYII=') repeat top center;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYGD4z8DAwAAACQEBAQGvF/8AAAAASUVORK5CYII=') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--primary-color);
    font-weight: bold;
}

.vip-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--secondary-color); }
    50% { box-shadow: 0 0 20px var(--secondary-color); }
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 243, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.glitch {
    position: relative;
    color: var(--text-light);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
    93% { transform: translate(-2px, -2px); }
    94% { transform: translate(2px, 2px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
}

.explore-section {
    padding: 4rem 0;
}

.explore-page {
    min-height: 100vh;
    padding: 2rem 0 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.page-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
}

.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.loading {
    text-align: center;
    color: var(--text-gray);
    padding: 3rem;
    font-size: 1.2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.filters {
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.1);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 5px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1400px) {
    .source-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .source-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .source-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.source-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.source-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
    border-color: var(--primary-color);
}

.source-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    overflow: hidden;
    position: relative;
}

.source-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.source-card-image .placeholder-icon {
    font-size: 4rem;
    color: var(--primary-color);
}

.source-card-content {
    padding: 1.5rem;
}

.source-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.source-card-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.source-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.source-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glow);
}

.source-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.vip-only-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 10;
    animation: glow 2s ease-in-out infinite;
}

.vip-only-badge::before {
    content: '👑 ';
}

.free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

.free-badge::before {
    content: '✨ ';
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    z-index: 10;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.3);
    animation: slideIn 0.3s ease-out;
    box-sizing: border-box;
}

.modal-large {
    max-width: 800px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-glow);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-gray);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.vip-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.vip-plan {
    background: var(--bg-dark);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
}

.vip-plan.featured {
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-glow);
    color: var(--text-light);
}

.payment-info {
    padding: 1rem 0;
}

.payment-detail {
    margin-bottom: 1.5rem;
}

.payment-detail label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.payment-value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.address-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.payment-address {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-glow);
    border-radius: 5px;
    color: var(--text-light);
    word-break: break-all;
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--bg-dark);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-copy:hover {
    transform: scale(1.05);
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 5px;
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 3000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: var(--accent-color);
}

.notification.error {
    border-color: #ff4444;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 悬浮客服按钮 */
.customer-service-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.customer-service-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.6);
}

.customer-service-btn .icon {
    font-size: 1.5rem;
}

.customer-service-btn .text {
    font-size: 1rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 243, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 243, 255, 0.8);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1% auto;
        padding: 1rem;
        max-height: 98vh;
        border-radius: 10px;
    }
    
    .modal-large {
        max-width: 95%;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .modal-close {
        font-size: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .source-card-image,
    .source-card-image img {
        max-height: 180px;
        height: 180px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .vip-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vip-plan {
        padding: 1.5rem;
    }
    
    .plan-header h3 {
        font-size: 1.2rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .plan-features li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .payment-detail {
        margin-bottom: 1rem;
    }
    
    .payment-value {
        font-size: 1.2rem;
    }
    
    .address-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .payment-address {
        width: 100%;
        font-size: 0.85rem;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .customer-service-btn {
        right: 20px;
        bottom: 20px;
        padding: 12px 20px;
    }
    
    .customer-service-btn .text {
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-glow);
        box-shadow: -5px 0 30px rgba(0, 243, 255, 0.1);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-auth,
    .user-menu {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-auth .btn,
    .user-menu .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .vip-plans {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .source-card-title {
        font-size: 1.1rem;
    }
    
    .source-card-description {
        font-size: 0.85rem;
    }
}
