body {
    background-color: #f5f5f5;
    padding-bottom: 60px;
    padding-top: 50px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ff3b3b;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.login-btn {
    background: white;
    color: #ff3b3b;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* Banner styles */
.banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.banner-container {
    display: flex;
    transition: transform 0.3s ease-out;
    height: 100%;
}

.banner-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 233, 214, 0.8);
    padding: 10px;
    font-size: 14px;
}

/* Banner dots */
.banner-dots {
    position: absolute;
    bottom: 40px; /* Increase this value to move dots up, above the text */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.banner-dot.active {
    background: white;
}

/* Banner arrows */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: none; /* Hide by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.banner:hover .banner-arrow {
    display: flex; /* Show on banner hover */
}

.banner-arrow.prev {
    left: 10px;
}

.banner-arrow.next {
    right: 10px;
}

.banner-arrow svg {
    width: 20px;
    height: 20px;
}

/* 跑马灯通知 */
.marquee {
    background-color: #fff8e1;
    padding: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-icon {
    flex-shrink: 0;
    margin-right: 10px;
}

.marquee-content {
    white-space: nowrap;
    overflow: hidden;
    width: calc(100% - 34px);
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Features section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    background: white;
    gap: 10px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 12px;
}

/* Action buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
}

.action-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* Task navigation */
.task-nav {
    display: flex;
    background: #f5f5f5;
}

.task-nav button {
    flex: 1;
    padding: 15px 0;
    border: none;
    background: #f8e9d6;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    font-weight: bold;
    cursor: pointer;
}

.task-nav button:nth-child(2) {
    margin: 0 3px;
}

.task-nav button.active {
    background: #E6B088;
    color: #fff;
}

/* Content sections */
.content-section {
    display: none;
    padding: 15px;
    background: white;
}

.content-section.active {
    display: block;
}

/* Game grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.game-card {
    position: relative;
    border-radius: 10px;
    padding: 15px;
    color: white;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
}

.game-card.bitcoin {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.game-card.taiwan {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.game-card.canada {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
}

.game-card.canada-west {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.game-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    z-index: 1;
}

.game-card .timer {
    font-size: 14px;
    z-index: 1;
}

.game-card .star-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* Prediction cards */
.prediction-cards {
    padding: 15px;
    background: white;
    margin-bottom: 10px;
}

.prediction-card {
    padding: 15px;
    border-radius: 8px;
    color: white;
    margin-bottom: 15px;
    cursor: pointer;
}

.prediction-card h3 {
    margin-bottom: 10px;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-item.active {
    color: #ff3b3b;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: #E6B088;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-footer {
    padding: 15px;
    text-align: center;
}

.confirm-btn {
    background: #ff3b3b;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Disclaimer modal */
.disclaimer-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.disclaimer-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.disclaimer-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.disclaimer-close:hover,
.disclaimer-close:focus {
    color: black;
    text-decoration: none;
}

/* Menu items specific styles */
.提卡 { background-color: #4169E1; }
.充值 { background-color: #32CD32; }
.客服 { background-color: #FFA500; }

/* Footer links */
.footer-links {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
}

.footer-link {
    margin: 0 10px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-divider {
    width: 80%;
    margin: 15px auto;
    border-top: 1px solid #eee;
    position: relative;
}

.footer-divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 15px;
    background: #f5f5f5;
    color: #999;
    font-size: 12px;
}

/* 新增样式 */
.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    color: white;
    margin-right: 10px;
}

.logout-btn {
    background: white;
    color: #ff3b3b;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

