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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: white;
    position: relative;
}

.select-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 60px;
}

.icp-footer {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    z-index: 2;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    padding: 0 16px;
}

.icp-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.icp-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
}

.content {
    text-align: center;
    z-index: 1;
}

.title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 80px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.months-grid-wrapper {
    position: relative;
    display: inline-block;
}

.months-pages-viewport {
    width: 600px;
    overflow: hidden;
    padding: 10px 0;
}

.months-pages {
    display: flex;
    width: 200%;
    transform: translateX(0);
    transition: transform 320ms ease;
    will-change: transform;
}

.months-page {
    width: 50%;
    display: flex;
    justify-content: center;
}

.months-page .months-grid {
    width: 100%;
    max-width: none;
    margin: 0;
}

.months-grid.months-grid-single {
    grid-template-columns: 1fr;
    justify-items: center;
}

body.show-months-page-2 .months-pages {
    transform: translateX(-50%);
}

.next-page-arrow {
    position: absolute;
    top: 50%;
    right: -110px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: none;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    opacity: 0.95;
    transition: transform 180ms ease, opacity 180ms ease;
}

body.show-months-page-2 .next-page-arrow {
    right: auto;
    left: -110px;
    transform: translateY(-50%) rotate(180deg);
}

.next-page-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    opacity: 1;
}

body.show-months-page-2 .next-page-arrow:hover {
    transform: translateY(-50%) rotate(180deg) scale(1.06);
}

.next-page-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

body.show-months-page-2 .next-page-arrow:active {
    transform: translateY(-50%) rotate(180deg) scale(0.98);
}

.next-page-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 6px;
    border-radius: 12px;
}

.month-card {
    position: relative;
    width: 280px;
    height: 160px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.month-card.available {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 9月份图块特殊背景 */
.month-card[data-month="9"] {
    background: url('../IMG/001.png') center/contain no-repeat;
    border: none;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: none;
}

/* 9月份图块hover状态 - 移除蓝色阴影 */
.month-card[data-month="9"].available:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

/* 10月份图块特殊背景 */
.month-card[data-month="10"] {
    background: url('../IMG/002.png') center/contain no-repeat;
    border: none;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: none;
}

/* 10月份图块hover状态 - 移除蓝色阴影 */
.month-card[data-month="10"].available:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.month-card.available:hover {
    transform: translateY(-5px);
}

.month-card.locked {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    cursor: not-allowed;
}

.status-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-dot.green {
    background: #00e676;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

.status-dot.red {
    background: #ff5252;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.6);
}

.month-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-text {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.unlock-time {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 12px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .select-page {
        padding: 40px 20px;
        align-items: flex-start;
    }
    
    .content {
        width: 100%;
        padding-top: 20px;
    }
    
    .title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .months-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 250px;
        margin: 0 auto;
    }

    .months-grid-wrapper {
        display: block;
        width: 100%;
    }

    .months-pages-viewport {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        overflow: visible;
    }

    .months-pages {
        flex-direction: column;
        width: 100%;
        transform: none !important;
        transition: none;
    }

    .months-page {
        width: 100%;
    }

    .months-page + .months-page {
        margin-top: 26px;
        padding-top: 26px;
        position: relative;
    }

    .months-page + .months-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: -50px;
        right: -50px;
        height: 1px;
        background: rgba(255, 255, 255, 0.9);
    }

    .next-page-arrow {
        display: none;
    }
    
    .month-card {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 7 / 4;
    }
    
    .month-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .select-page {
        padding: 30px 15px;
    }
    
    .title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .months-grid {
        max-width: 230px;
        gap: 15px;
        margin: 0 auto;
    }

    .months-pages-viewport {
        width: 100%;
        max-width: 230px;
        margin: 0 auto;
    }

    .next-page-arrow {
        display: none;
    }
    
    .month-card {
        width: 100%;
        max-width: 230px;
        height: auto;
        aspect-ratio: 7 / 4;
    }
    
    .month-title {
        font-size: 22px;
    }
    
    .status-text, .unlock-time {
        font-size: 13px;
    }
}

/* 页面跳转加载提示 */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: inherit;
    gap: 24px;
    animation: loadingFadeIn 0.25s ease-out;
}

.page-loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
    z-index: -1;
}

.page-loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.page-loading-text {
    color: white;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

@keyframes loadingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 奇数卡片最后一个居中显示（2列网格中单独一行） */
.months-grid .month-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
}

@media (max-width: 768px) {
    .months-grid .month-card:nth-child(odd):last-child {
        grid-column: auto;
    }
}
