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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #00ffd1;
    --accent-light: #00fff0;
    --banner-green: #22C55E;
    --banner-green-light: #4ADE80;
    --yellow: #FACC15;
    --pink: #EC4899;
}
a{
    color: var(--text-secondary);
    text-decoration: none;
}
a:hover{
    color: var(--accent-color);

    cursor: pointer;
    transition: color 0.3s;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 300px 200px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 380px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 450px 180px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 520px 100px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 600px 250px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 680px 70px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 750px 150px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 820px 200px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 900px 100px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 980px 280px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 1050px 180px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 1120px 60px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 1200px 220px, rgba(255,255,255,0.6), transparent);
    background-repeat: repeat;
    background-size: 1300px 350px;
    animation: twinkle 5s ease-in-out infinite;
}

.stars-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 100px, rgba(200,220,255,0.4), transparent),
        radial-gradient(1px 1px at 120px 200px, rgba(200,220,255,0.5), transparent),
        radial-gradient(1px 1px at 200px 150px, rgba(200,220,255,0.3), transparent),
        radial-gradient(1px 1px at 280px 280px, rgba(200,220,255,0.4), transparent),
        radial-gradient(1px 1px at 360px 120px, rgba(200,220,255,0.5), transparent),
        radial-gradient(1px 1px at 440px 240px, rgba(200,220,255,0.3), transparent),
        radial-gradient(1px 1px at 520px 180px, rgba(200,220,255,0.4), transparent),
        radial-gradient(1px 1px at 600px 100px, rgba(200,220,255,0.5), transparent),
        radial-gradient(1px 1px at 680px 260px, rgba(200,220,255,0.3), transparent),
        radial-gradient(1px 1px at 760px 140px, rgba(200,220,255,0.4), transparent),
        radial-gradient(1px 1px at 840px 220px, rgba(200,220,255,0.5), transparent),
        radial-gradient(1px 1px at 920px 80px, rgba(200,220,255,0.3), transparent),
        radial-gradient(1px 1px at 1000px 190px, rgba(200,220,255,0.4), transparent),
        radial-gradient(1px 1px at 1080px 250px, rgba(200,220,255,0.5), transparent),
        radial-gradient(1px 1px at 1160px 130px, rgba(200,220,255,0.3), transparent),
        radial-gradient(1px 1px at 1240px 200px, rgba(200,220,255,0.4), transparent);
    background-repeat: repeat;
    background-size: 1350px 380px;
    animation: twinkle 7s ease-in-out infinite 1s;
    opacity: 0.6;
}

.stars-layer-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 80px 160px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 240px, rgba(180,200,255,0.3), transparent),
        radial-gradient(1px 1px at 240px 100px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 320px 200px, rgba(180,200,255,0.3), transparent),
        radial-gradient(1px 1px at 400px 140px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 480px 260px, rgba(180,200,255,0.3), transparent),
        radial-gradient(1px 1px at 560px 180px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 640px 120px, rgba(180,200,255,0.3), transparent),
        radial-gradient(1px 1px at 720px 220px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 800px 160px, rgba(180,200,255,0.3), transparent),
        radial-gradient(1px 1px at 880px 100px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 960px 240px, rgba(180,200,255,0.3), transparent),
        radial-gradient(1px 1px at 1040px 140px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 1120px 200px, rgba(180,200,255,0.3), transparent),
        radial-gradient(1px 1px at 1200px 160px, rgba(180,200,255,0.2), transparent),
        radial-gradient(1px 1px at 1280px 220px, rgba(180,200,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 1400px 400px;
    animation: twinkle 9s ease-in-out infinite 2s;
    opacity: 0.4;
}

.nebula {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(62, 78, 180, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    animation: nebula-flow 20s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes nebula-flow {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translate(2%, -1%) scale(1.05);
        opacity: 1;
    }
    50% { 
        transform: translate(0, 2%) scale(1);
        opacity: 0.7;
    }
    75% { 
        transform: translate(-2%, 0) scale(0.98);
        opacity: 0.9;
    }
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid #1f1f1f;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    font-size: 26px;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: -1px;
}

.search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 40px;
    background-color: #1a1a1a;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.search-box input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.3s;
    pointer-events: none;
}

.search-box input:focus {
    outline: none;
}

.search-box:focus-within::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: #2a2a2a;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--accent-color);
}

.user-btn {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-btn:hover {
    background-color: var(--accent-light);
}

.user-btn-wrapper {
    position: relative;
}

.user-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 280px;
    background-color: #1a1a1a;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.3s;
    pointer-events: none;
}

.user-btn-wrapper:hover .user-popup,
.user-btn-wrapper:active .user-popup,
.user-btn-wrapper:focus-within .user-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-btn-wrapper:hover .user-popup::before,
.user-btn-wrapper:active .user-popup::before,
.user-btn-wrapper:focus-within .user-popup::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

.popup-arrow {
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: #1a1a1a;
    transform: rotate(45deg);
    z-index: 1;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a2a;
}

.popup-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.popup-close {
    font-size: 16px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #fff;
}

.popup-content {
    padding: 16px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.qr-code {
    width: 120px;
    height: 120px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-label {
    font-size: 14px;
    color: #aaa;
}

.contact-section {
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.contact-title {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    font-size: 16px;
}

.contact-text {
    font-size: 14px;
    color: #aaa;
}

.banner-section {
    display: flex;
    gap: 16px;
    margin: 16px;
}

.banner-slider {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-text h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.slider-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
}

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

.slider-dots .dot.active {
    background-color: var(--accent-color);
    width: 20px;
    border-radius: 4px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.banner-fortune-container {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banner-fortune-box {
    flex: 1;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    min-height: 145px;
}

.banner-fortune-box-right {
    background: linear-gradient(135deg, #DC2626 0%, #EA580C 50%, #D97706 100%);
}

.banner-fortune-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.banner-fortune-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.banner-fortune-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    flex: 1;
}

.banner-fortune-icon {
    font-size: 18px;
}

.banner-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    white-space: nowrap;
}

.banner-select-wrapper {
    position: relative;
}

.banner-select {
    padding: 4px 24px 4px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='white' d='M5 7L1 2h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.banner-select-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    padding: 1px;
    background: rgba(255, 255, 255, 0.3);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s;
}

.banner-select-wrapper:hover::before,
.banner-select-wrapper:focus-within::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

.banner-select:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.banner-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.banner-select option {
    background-color: #1f1f1f;
    color: #fff;
}

.banner-fortune-main {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex: 1;
}

.banner-fortune-stars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fortune-star-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.fortune-star-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.fortune-stars {
    display: flex;
    gap: 1px;
}

.fortune-stars .star {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.25);
}

.fortune-stars .star.filled {
    color: #FACC15;
    text-shadow: 0 0 4px rgba(250, 204, 21, 0.5);
}

.fortune-stars .star.half {
    color: #FACC15;
    text-shadow: 0 0 4px rgba(250, 204, 21, 0.5);
    position: relative;
    display: inline-block;
}

.fortune-stars .star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.25);
    text-shadow: none;
}

.banner-fortune-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.fortune-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fortune-info-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.fortune-info-value {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.banner-fortune-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.section-tabs {
    margin: 0 16px 16px;
}

.section-tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1f1f1f;
}

.section-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.section-title-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.section-tabs-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background-color: transparent;
    color: #888;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    min-width: 60px;
    height: 70px;
}

.tab-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 4px;
}

.tab-btn .tab-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: #333;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s;
}

.tab-btn:hover::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

.tab-btn:hover {
    color: var(--accent-color);
}

.tab-btn.active {
    background-color: rgba(62, 225, 163, 0.15);
    color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: bold;
}

.tab-btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.tab-btn a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 4px;
}

.tab-btn a span {
    font-size: 12px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.3s;
    pointer-events: none;
}

.card:hover::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

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

.card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

.card-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 2px 8px;
    background-color: #FF6B6B;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
}

.card-badge.recommend {
    background-color: #A855F7;
}

.card-badge.hot {
    background-color: #F59E0B;
}

.card-body {
    display: flex;
    align-items: center;
    gap: 8px;
    padding:0 10px;
}

.card-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.card-info {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 16px;
    color: #fff;

}
.card-title a {
    color: #aaa;
    text-decoration: none;
}
.card-subtitle {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-tag {
    padding: 4px 12px;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid #1f1f1f;
}

.card-desc {
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #1f1f1f;
}

.card-stars {
    font-size: 13px;
    color: #FACC15;
}

.card-views {
    font-size: 13px;
    color: #666;
}

.card-favorite,
.card-share {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.card-favorite:hover,
.card-share:hover {
    transform: scale(1.2);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin: 24px 0 16px;
}

.section-title h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.section-title a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
}

.view-more {
    text-align: center;
    padding: 20px;
}

.view-more button {
    padding: 12px 40px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 24px;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-more button:hover {
    background-color: var(--accent-light);
}

.dream-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dream-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background-color: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
}

.dream-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s;
}

.dream-item:hover {
    background-color: #1f1f1f;
}

.dream-item:hover::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

.dream-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.dream-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.dream-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dream-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0;
}

.dream-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dream-tag {
    padding: 2px 8px;
    background-color: rgba(62, 225, 163, 0.15);
    color: var(--accent-color);
    font-size: 11px;
    border-radius: 4px;
}

.dream-hits {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.news-section {
    margin: 0 16px 24px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s;
}

.news-item:hover {
    background-color: #1f1f1f;
}

.news-item:hover::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

.news-tag {
    padding: 2px 8px;
    background-color: rgba(62, 225, 163, 0.15);
    color: var(--accent-color);
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 15px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-time {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .news-item {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .news-tag {
        font-size: 12px;
        padding: 1px 5px;
        flex-shrink: 0;
    }
    
    .news-title {
        font-size: 14px;
        flex: 1;
        min-width: 0;
    }
    
    .news-time {
        font-size: 13px;
        flex-shrink: 0;
        order: 3;
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }
}

.footer {
    background-color: #0d1117;
    border-top: 1px solid #1f1f1f;
    margin-top: 30px;
}

.footer-main {
    padding: 40px 24px 24px;
}

.footer-brand-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-left {
    flex: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.footer-logo-text sup {
    font-size: 14px;
    font-weight: normal;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-tag {
    padding: 4px 10px;
    background-color: rgba(62, 225, 163, 0.15);
    color: var(--accent-color);
    font-size: 14px;
    border-radius: 4px;
}

.footer-btn-primary {
    padding: 6px 16px;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.footer-btn-outline {
    padding: 6px 16px;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.footer-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    padding: 1px;
    background: #333;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s;
}

.footer-btn-outline:hover::before {
    background: linear-gradient(135deg, #00d4aa 0%, #d6ff66 30%, #00fff0 50%, #d6ff66 70%, #6699ff 100%);
    background-size: 200% 200%;
    animation: gradient-flow 2s linear infinite;
}

.footer-btn-outline:hover {
    color: var(--accent-color);
}

.footer-welcome {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-social-item span {
    font-size: 11px;
    color: #666;
}

.footer-stats {
    text-align: right;
}

.footer-stats-num {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
}

.footer-stats-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.footer-nav-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.footer-nav-row a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-nav-row a:hover {
    color: var(--accent-color);
}

.footer-partners {
    background-color: #111;
    padding: 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-partner-icon {
    font-size: 24px;
}

.footer-partner-name {
    font-size: 13px;
    color: #ccc;
    font-weight: bold;
}

.footer-partner-sub {
    font-size: 11px;
    color: #555;
}

.footer-links-section {
    background-color: #0a0a0a;
    padding: 24px;
}

.footer-links-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.footer-links-group a {
    color: #555;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    background-color: #080808;
    padding: 16px 24px;
    text-align: center;
}

.footer-copyright p {
    font-size: 11px;
    color: #444;
    line-height: 1.8;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-to-top img {
    max-width: 150%;
    object-fit: contain;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

    .banner-section {
        flex-direction: column;
    }

    .banner-slider {
        min-height: 220px;
    }

    .banner-fortune-container {
        width: 100%;
        flex-direction: row;
    }

    .banner-fortune-box {
        flex: 1;
        min-height: 160px;
    }

    .banner-fortune-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .banner-date {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .section-tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tab-btn {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
    }

    .dream-list {
        grid-template-columns: 1fr;
    }

    .top-nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .logo-icon {
        font-size: 18px;
    }

    .logo-text {
        font-size: 22px;
    }

    .search-box {
        margin: 0;
        order: 3;
        width: 100%;
    }

    .search-box input {
        padding: 8px 35px;
        font-size: 14px;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-item {
        font-size: 14px;
    }

    .user-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .banner-section {
        margin: 12px;
        gap: 12px;
    }

    .banner-slider {
        min-height: 160px;
    }

    .banner-fortune-container {
        flex-direction: row;
    }

    .banner-fortune-box {
        flex: 1;
        padding: 12px;
        min-height: 200px;
    }

    .banner-fortune-title {
        font-size: 14px;
    }

    .banner-fortune-icon {
        font-size: 16px;
    }

    .banner-date {
        font-size: 11px;
        padding: 2px 6px;
    }

    .banner-select {
        padding: 3px 18px 3px 8px;
        font-size: 10px;
    }

    .banner-fortune-main {
        flex-direction: column;
        gap: 8px;
    }

    .banner-fortune-stars {
        gap: 4px;
    }

    .banner-fortune-info {
        padding-left: 0;
        padding-top: 8px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        gap: 4px;
    }

    .fortune-star-label {
        font-size: 11px;
    }

    .fortune-stars .star {
        font-size: 12px;
    }

    .fortune-info-label {
        font-size: 11px;
    }

    .fortune-info-value {
        font-size: 12px;
    }

    .banner-fortune-desc {
        font-size: 11px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .section-tabs {
        margin: 0 12px 12px;
    }

    .section-title-text {
        font-size: 18px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .card {
        border-radius: 10px;
    }

    .card-image {
        height: 100px;
    }

    .card-logo {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-subtitle {
        font-size: 11px;
    }

    .card-tag {
        font-size: 11px;
        padding: 3px 10px;
    }

    .card-footer {
        padding: 6px 10px;
    }

    .card-stars {
        font-size: 11px;
    }

    .card-views {
        font-size: 11px;
    }

    .view-more {
        padding: 16px;
    }

    .view-more button {
        padding: 10px 32px;
        font-size: 14px;
    }

    .news-section {
        margin: 0 12px 20px;
    }

    .news-list {
        gap: 8px;
    }

    .news-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .news-tag {
        font-size: 11px;
        padding: 1px 5px;
    }

    .news-title {
        font-size: 13px;
    }

    .news-time {
        font-size: 12px;
    }

    .footer-main {
        padding: 24px 16px 16px;
    }

    .footer-brand-row {
        flex-direction: column;
        gap: 24px;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-stats {
        text-align: left;
    }

    .footer-nav-row {
        flex-wrap: wrap;
        gap: 12px 24px;
    }

    .footer-partners {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links-section {
        padding: 16px;
    }

    .footer-copyright {
        padding: 12px 16px;
        font-size: 12px;
    }

    .user-popup {
        width: 260px;
        right: -10px;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }

    .qr-label {
        font-size: 12px;
    }

    .contact-text {
        font-size: 12px;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: transparent;
    border-radius: 0 0 2px 2px;
    transition: background 0.3s;
}

.mobile-nav-item.active::before {
    background: var(--accent-color);
}

.mobile-nav-icon {
    font-size: 22px;
    transition: transform 0.3s;
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.1);
}

.mobile-nav-text {
    font-size: 10px;
    color: #666;
    transition: color 0.3s;
}

.mobile-nav-item.active .mobile-nav-text {
    color: var(--accent-color);
    font-weight: 500;
}

.mobile-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mobile-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.mobile-nav-center-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 255, 209, 0.3);
    cursor: pointer;
    animation: bounce-center .7s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;

}

.mobile-nav-center-icon img {
    max-width: 150%;
    max-height: 150%;
    object-fit: contain;
}

.mobile-nav-center-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 255, 209, 0.4);
}

@keyframes bounce-center {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}
