/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #4a5568;
    background-color: #f4f7fb;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

input, button, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    -webkit-appearance: none;
}

/* Page Layout */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    height: 52px;
    background: linear-gradient(135deg, #2b77c9, #1b62ad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(27, 98, 173, 0.15);
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    width: 40px;
    height: 26px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #1b62ad;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    padding: 0 4px;
}

.header-title {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header .back-btn {
    width: 36px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    margin-right: 4px;
    margin-left: -4px;
}

.header .back-btn::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    border-radius: 1px;
}

/* Main Content */
.main {
    flex: 1;
    padding-top: 64px;
    padding-bottom: 70px;
    overflow-y: auto;
}

.main--no-footer {
    padding-bottom: 20px;
}

/* Footer Nav */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

.footer-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-nav .nav-item.active {
    color: #2874c7;
}

.footer-nav .nav-item .nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.footer-nav .nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.footer-nav .nav-item .nav-icon--home::before {
    content: '🏠';
}

.footer-nav .nav-item .nav-icon--user::before {
    content: '👤';
}

/* Card */
.card {
    margin: 12px 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(27, 98, 173, 0.04);
}

.card__title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.card__title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 16px;
    background: linear-gradient(180deg, #2b77c9, #1b62ad);
    border-radius: 100px;
    margin-right: 10px;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.btn--primary {
    background: linear-gradient(135deg, #2b77c9, #1b62ad);
    color: #fff;
    box-shadow: 0 6px 16px rgba(27, 98, 173, 0.3);
}

.btn--secondary {
    background: #f0f5ff;
    color: #2874c7;
}

.btn--danger {
    background: #fff1f0;
    color: #ff6b6b;
}

.btn--block {
    width: 100%;
}

.btn--large {
    height: 54px;
    font-size: 18px;
}

.btn--disabled {
    opacity: 0.6;
    background: #e2e8f0;
    color: #a0aec0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none !important;
}

.btn--small {
    height: 36px;
    font-size: 14px;
    padding: 0 16px;
}

/* Status Tags */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.tag--blue {
    background: #ebf4fc;
    color: #2874c7;
}

.tag--green {
    background: #f0fdf4;
    color: #48bb78;
}

.tag--orange {
    background: #fffaf0;
    color: #ed8936;
}

.tag--red {
    background: #fff5f5;
    color: #f56565;
}

.tag--gray {
    background: #f7fafc;
    color: #a0aec0;
}

/* List */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    transition: background 0.3s ease;
}

.list-item:first-child {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.list-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.list-item:active {
    background: #f8fafc;
}

.list-item__content {
    flex: 1;
    min-width: 0;
}

.list-item__title {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item__desc {
    font-size: 13px;
    color: #a0aec0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item__right {
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
}

.list-item__arrow::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #cbd5e0;
    border-bottom: 2px solid #cbd5e0;
    transform: rotate(-45deg);
    margin-left: 8px;
    border-radius: 1px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
    padding-left: 4px;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    font-size: 15px;
    color: #2d3748;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #2874c7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 98, 173, 0.1);
}

.form-input::placeholder {
    color: #cbd5e0;
}

.form-input-group {
    display: flex;
    gap: 12px;
}

.form-input-group .form-input {
    flex: 1;
}

.form-input-group .btn {
    flex-shrink: 0;
    width: 130px;
    height: 52px;
}

/* Status Card */
.status-card {
    margin: 12px 16px;
    padding: 24px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2b77c9, #1b62ad);
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(27, 98, 173, 0.2);
}

.status-card__title {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.status-card__status {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-card__desc {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
}

.status-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    color: #1b62ad;
    border-radius: 100px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.status-card__btn:active {
    transform: scale(0.96);
    background: #fff;
}

.status-card__btn.disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Profile Card */
.profile-card {
    margin: 12px 16px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2b77c9, #1b62ad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(27, 98, 173, 0.2);
}

.profile-card__name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-card__info {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.8;
}

/* Info List */
.info-list {
    padding: 0 4px;
}

.info-list__item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px dashed #edf2f7;
    font-size: 15px;
}

.info-list__item:last-child {
    border-bottom: none;
}

.info-list__label {
    width: 110px;
    flex-shrink: 0;
    color: #a0aec0;
}

.info-list__value {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.stats-item {
    text-align: center;
    flex: 1;
}

.stats-item__num {
    font-size: 28px;
    font-weight: 700;
    color: #1b62ad;
    margin-bottom: 4px;
}

.stats-item__label {
    font-size: 13px;
    color: #a0aec0;
}

/* Menu List */
.menu-list {
    margin: 12px 16px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(27, 98, 173, 0.04);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #f8fafc;
}

.menu-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

.menu-item__icon--blue {
    background: #ebf4fc;
    color: #2874c7;
}

.menu-item__icon--green {
    background: #f0fdf4;
    color: #48bb78;
}

.menu-item__icon--orange {
    background: #fffaf0;
    color: #ed8936;
}

.menu-item__icon--red {
    background: #fff5f5;
    color: #f56565;
}

.menu-item__text {
    flex: 1;
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

.menu-item__arrow::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #cbd5e0;
    border-bottom: 2px solid #cbd5e0;
    transform: rotate(-45deg);
    border-radius: 1px;
}

/* Notice Detail */
.notice-detail {
    padding: 20px 16px;
    background: #fff;
    border-radius: 16px;
    margin: 12px 16px;
    box-shadow: 0 4px 16px rgba(27, 98, 173, 0.04);
}

.notice-detail__title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

.notice-detail__time {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #edf2f7;
}

.notice-detail__content {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    word-break: break-all;
}

/* Win Record Detail */
.win-detail {
    padding: 16px 4px;
}

.win-detail__row {
    display: flex;
    font-size: 14px;
    line-height: 2.2;
}

.win-detail__label {
    width: 90px;
    flex-shrink: 0;
    color: #a0aec0;
}

.win-detail__value {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
}

/* Empty State */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: #a0aec0;
}

.empty__icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.empty__text {
    font-size: 15px;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(45, 55, 72, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 15px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.toast.show {
    opacity: 1;
}

/* Confirm Dialog */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    width: 300px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog__body {
    padding: 32px 24px;
    text-align: center;
    font-size: 16px;
    color: #2d3748;
    line-height: 1.6;
}

.confirm-dialog__footer {
    display: flex;
    border-top: 1px solid #f0f4f8;
}

.confirm-dialog__btn {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    background: #fff;
    color: #718096;
    transition: background 0.2s;
}

.confirm-dialog__btn:active {
    background: #f8fafc;
}

.confirm-dialog__btn--primary {
    color: #1b62ad;
    font-weight: 600;
    border-left: 1px solid #f0f4f8;
}

/* Loading */
.loading {
    text-align: center;
    padding: 48px 20px;
    color: #a0aec0;
    font-size: 15px;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #edf2f7;
    border-top-color: #1b62ad;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section Title */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    padding: 20px 20px 8px;
}

/* Instruction Content */
.instruction-content {
    padding: 0 20px;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
}

.instruction-content p {
    margin-bottom: 10px;
}

/* PC/Tablet Responsive Layout */
@media screen and (min-width: 768px) {
    body {
        background-color: #e2e8f0;
    }
    
    .page {
        max-width: 480px;
        margin: 0 auto;
        background-color: #f4f7fb;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
        min-height: 100vh;
        position: relative;
    }
    
    .header {
        position: absolute;
        width: calc(100% - 32px);
    }
    
    .footer-nav {
        position: absolute;
        width: 100%;
    }
    
    .toast, .confirm-overlay {
        position: absolute;
    }
    
    .confirm-overlay {
        width: 100%;
        height: 100%;
    }
}