/* 公共样式 - 通用重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #000000;
    color: #fff;
    padding-bottom: 60px;
    overflow-x: hidden;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 3px;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px 20px 0 0; /* 上方两边圆角 */
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #fff;
}

.nav-item.active {
    color: #ffd700;
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 11px;
    font-weight: bold;
}

/* 加载提示 */
.loading {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.5);
}

/* APP下载横幅 */
.app-banner {
    position: fixed;
    bottom: 60px;
    left: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2d2d2d91 0%, #1a1a1a91 100%);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
    backdrop-filter: blur(10px);
}

.app-banner.hidden {
    display: none !important;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.app-text {
    flex: 1;
}

.app-text-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.download-btn {
    background: #00d4ff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.close-banner {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    padding: 0 8px;
}

/* 系统公告弹窗样式 */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.announcement-modal.active {
    display: flex !important;
}

.announcement-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.announcement-modal-content {
    position: relative;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: announcementSlideIn 0.3s ease-out;
}

@keyframes announcementSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.announcement-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 215, 0, 0.1);
}

.announcement-modal-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    margin: 0;
}

.announcement-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.announcement-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.announcement-modal-body {
    padding: 25px 20px;
    max-height: 60vh;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.announcement-modal-body::-webkit-scrollbar {
    width: 6px;
}

.announcement-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.announcement-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.announcement-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.announcement-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.announcement-confirm-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    color: #000;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.announcement-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.announcement-confirm-btn:active {
    transform: translateY(0);
}
