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

body {
    font-family: system-ui, 'HarmonyOS Sans', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #2c7da0 0%, #1e5a74 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ========== 登录卡片 ========== */
.login-card {
    background: white;
    padding: 40px 30px;
    border-radius: 28px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.login-card h1 {
    font-size: 28px;
    color: #1e5a74;
    margin-bottom: 32px;
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    margin-bottom: 20px;
    outline: none;
    transition: border 0.2s;
}

.login-card input:focus {
    border-color: #2c7da0;
}

.login-card button {
    width: 100%;
    padding: 14px;
    background: #2c7da0;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.login-card button:hover {
    background: #1e5a74;
}

.login-card .error {
    color: #e53e3e;
    margin-top: 16px;
    font-size: 14px;
}

.slogan {
    margin-top: 48px;
    font-family: 'HarmonyOS Sans', 'Segoe UI', system-ui, sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    letter-spacing: 2px;
}

/* ========== 主页面布局 ========== */
.container {
    background: white;
    border-radius: 32px;
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.header h1 {
    font-size: 28px;
    color: #0f3b4f;
    margin-bottom: 20px;
    border-left: 5px solid #2c7da0;
    padding-left: 20px;
}

/* 标签栏（如果使用） */
.tabs-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.sub-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sub-tab {
    background: transparent;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #4a5b6e;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s;
}

.sub-tab:hover {
    background: #f0f4f8;
    color: #1e5a74;
}

.sub-tab.active {
    background: #2c7da0;
    color: white;
}

.right-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.datetime {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #2c7da0;
    background: #f0f9ff;
    padding: 6px 16px;
    border-radius: 40px;
    white-space: nowrap;
}

.datetime .date {
    font-weight: bold;
}

.datetime .time {
    font-size: 16px;
    font-weight: bold;
}

.avatar-btn {
    background: #2c7da0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.avatar-btn:hover {
    background: #1e5a74;
    transform: scale(1.05);
}

.avatar-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.subtab-content {
    margin: 20px 0;
    min-height: 400px;
}

footer {
    text-align: center;
    padding-top: 20px;
    color: #8ba0b0;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: #0f3b4f;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.card-link {
    text-decoration: none;
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    display: block;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.card-link:hover {
    background: #eef2f6;
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-link h3 {
    color: #1e4a6e;
    margin-bottom: 8px;
    font-size: 18px;
}

.card-link p {
    color: #4a5b6e;
    font-size: 14px;
    line-height: 1.4;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #2c7da0;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    .tabs-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .right-info {
        justify-content: space-between;
    }
    .datetime {
        white-space: normal;
        font-size: 12px;
    }
    .slogan {
        font-size: 28px;
        margin-top: 40px;
    }
    .login-card {
        margin: 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .slogan {
        font-size: 24px;
    }
    .sub-tab {
        padding: 6px 16px;
        font-size: 14px;
    }
}