* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #eef2f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e2a3e;
    line-height: 1.35;
    font-size: 12px;
    overflow-x: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 32px;
}

/* 顶部导航栏 */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
.brand-icon i {
    font-size: 20px;
    color: white;
}
.brand-text h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #0f172a;
}
.brand-text p {
    font-size: 10px;
    color: #5e6f8d;
    margin-top: 2px;
}
.stats-badge {
    display: flex;
    gap: 16px;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}
.stat-badge-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
}
.stat-badge-item span:first-child {
    color: #5e6f8d;
    font-weight: 400;
}
.stat-badge-item span:last-child {
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 20px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.countdown-card {
    background: white;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e6edf4;
}
.countdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.countdown-header i {
    font-size: 22px;
    color: #2563EB;
    background: #eff6ff;
    padding: 6px;
    border-radius: 12px;
}
.countdown-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}
.countdown-timer {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}
.time-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 6px 12px;
    min-width: 58px;
    text-align: center;
    border: 1px solid #eef2ff;
}
.time-number {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}
.time-label {
    font-size: 10px;
    color: #5e6f8d;
    margin-top: 4px;
    font-weight: 500;
}

.filter-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn i {
    margin-right: 5px;
    font-size: 11px;
}
.filter-btn.active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}
.filter-btn:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 2px;
}
.mission-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    transition: all 0.2s ease;
    border: 1px solid #eef2f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.mission-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -8px rgba(0,0,0,0.1);
    border-color: #dce5f0;
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.mission-badge {
    background: #fef9e3;
    color: #b45309;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}
.mission-badge.hot {
    background: #fee2e2;
    color: #b91c1c;
}
.mission-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2563eb;
}
.mission-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 8px 0 4px 0;
}
.mission-desc {
    font-size: 11px;
    color: #5e6f8d;
    line-height: 1.4;
    margin-bottom: 12px;
}
.mission-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
}
.participants {
    font-size: 10px;
    color: #6c7a91;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-action {
    background: #eff6ff;
    border: none;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    transition: 0.2s;
}
.btn-action:hover {
    background: #2563eb;
    color: white;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.widget-card {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #eef2f8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.widget-title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #0f172a;
    border-left: 3px solid #2563eb;
    padding-left: 10px;
}
.platform-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.platform-name i {
    width: 22px;
    color: #2563eb;
    font-size: 12px;
}
.platform-count {
    font-weight: 600;
    color: #1e293b;
    font-size: 11px;
}
.progress-section {
    margin-top: 6px;
}
.progress-item {
    margin-bottom: 12px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-bottom: 5px;
}
.progress-bar-bg {
    background: #e9eef3;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}
.progress-fill {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    width: 0%;
    height: 100%;
    border-radius: 10px;
}
.total-play {
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    margin: 12px 0 10px;
    text-align: center;
}
.total-play span:first-child {
    font-size: 11px;
    color: #5e6f8d;
}
.total-play strong {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 4px;
}
.btn-submit {
    background: #1e3a8a;
    color: white;
    width: 100%;
    border: none;
    padding: 8px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 11px;
    margin-top: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-submit:hover {
    background: #2563eb;
}
.invite-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.invite-btn {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 6px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}
.timeline-compact {
    margin-top: 4px;
}
.timeline-item-compact {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.timeline-dot {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    margin-top: 5px;
    position: relative;
}
.timeline-dot:before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}
.timeline-text {
    flex: 1;
}
.timeline-date {
    font-size: 9px;
    color: #6c7a91;
    margin-bottom: 2px;
}
.timeline-title {
    font-weight: 600;
    font-size: 11px;
}
.timeline-desc {
    font-size: 10px;
    color: #5e6f8d;
}

.app-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 10px;
    color: #6c7a91;
}

/* 自定义弹窗样式 - 新UI */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.custom-modal.show {
    display: flex;
}
.modal-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.25);
    animation: slideUp 0.25s ease;
    overflow: hidden;
}
.modal-header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 18px 20px;
    text-align: center;
    position: relative;
}
.modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.modal-header i {
    font-size: 22px;
}
.modal-body {
    padding: 24px 20px 20px;
    text-align: center;
}
.wechat-section {
    background: #f0f7ff;
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0 8px;
    border: 1px solid #d9e8ff;
}
.wechat-label {
    font-size: 12px;
    color: #5e6f8d;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.wechat-id {
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
    background: white;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    letter-spacing: 1px;
    font-family: monospace;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #cbdff5;
}
.copy-tip {
    font-size: 11px;
    color: #2563eb;
    margin-top: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef3ff;
    padding: 5px 12px;
    border-radius: 30px;
    transition: 0.2s;
}
.copy-tip:hover {
    background: #2563eb;
    color: white;
}
.modal-desc {
    font-size: 12px;
    color: #475569;
    margin: 16px 0 12px;
    line-height: 1.5;
}
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.modal-btn {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.modal-btn-primary {
    background: #1e3a8a;
    color: white;
}
.modal-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}
.modal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.modal-btn-secondary:hover {
    background: #e6edf4;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 860px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .app-container {
        padding: 12px 16px 24px;
    }
    .time-number {
        font-size: 20px;
    }
    .time-block {
        min-width: 52px;
        padding: 4px 8px;
    }
}
@media (max-width: 560px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    .stats-badge {
        width: 100%;
        justify-content: space-between;
    }
    .nav-header {
        flex-direction: column;
        align-items: stretch;
    }
}