/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #333333;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* 启动页面样式 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in-out;
}

.logo-image {
    display: block;
    max-width: 55vw;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.app-logo-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF7043;
    margin-top: 0.75rem;
    letter-spacing: 2px;
}

.brand-slogan {
    font-size: 1rem;
    color: #FFA726;
    margin-top: 0.5rem;
    letter-spacing: 3px;
    opacity: 0.8;
}

.loading-bar {
    width: 180px;
    height: 4px;
    background-color: rgba(255, 193, 7, 0.2);
    border-radius: 2px;
    margin-top: 10.5rem;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #FFB74D, #FF7043, #FF5722);
    border-radius: 2px;
    animation: loading 2s ease-in-out forwards;
    position: relative;
    box-shadow: 0 0 6px rgba(255, 112, 67, 0.4);
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

/* 主页面样式 */
.main-page {
    width: 100vw;
    height: 100vh;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease-in;
}

.app-header {
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF7043;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.welcome-message {
    margin-bottom: 2rem;
}

.welcome-message h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    font-size: 1rem;
    color: #757575;
    line-height: 1.5;
}

.action-button {
    background: linear-gradient(135deg, #FF7043, #FFA726);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 112, 67, 0.4);
}

.action-button:active {
    transform: translateY(0);
}

/* 公告弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9e9e9e;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-button:hover {
    background-color: #f5f5f5;
    color: #616161;
}

.modal-body {
    padding: 1.25rem;
}

.announcement-header {
    margin-bottom: 1rem;
}

.announcement-tag {
    display: inline-block;
    background-color: #FFEBEE;
    color: #FF5252;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.25rem;
}

.announcement-date {
    font-size: 0.875rem;
    color: #9e9e9e;
}

.announcement-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #424242;
}

.announcement-content p {
    margin-bottom: 0.75rem;
}

.announcement-content ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.announcement-content li {
    margin-bottom: 0.5rem;
}

.announcement-footer {
    font-weight: 500;
    color: #FF7043;
    margin-top: 1rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.confirm-button {
    background-color: #FF7043;
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-button:hover {
    background-color: #FF5722;
}

/* 通用动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loading {
    0% {
        width: 0;
        transform: scaleX(0.8);
    }
    50% {
        transform: scaleX(1.1);
    }
    100% {
        width: 100%;
        transform: scaleX(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .brand-name {
        font-size: 2rem;
    }
    
    .loading-bar {
        width: 150px;
    }
    
    .welcome-message h3 {
        font-size: 1.5rem;
    }
    
    .action-button {
        padding: 0.75rem 1.5rem;
    }
}