* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e3a8a, #172554);
    color: white;
    padding: 24px 18px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: white;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
}

.logo h2 {
    font-size: 22px;
}

.logo p {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    border: none;
    background: transparent;
    color: white;
    text-align: left;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.16);
}

.danger-menu {
    margin-top: 20px;
    color: #fecaca;
}

/* 主区域 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
}

.topbar {
    background: white;
    padding: 24px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.topbar h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.topbar p {
    color: #64748b;
}

.user-box {
    background: #eff6ff;
    color: #1e3a8a;
    padding: 12px 18px;
    border-radius: 14px;
    text-align: right;
}

.user-box span {
    display: block;
    font-size: 12px;
}

.user-box strong {
    font-size: 16px;
}

/* 页面切换 */
.page {
    display: none;
}

.active-page {
    display: block;
}

/* 卡片 */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card p {
    color: #64748b;
    margin-bottom: 12px;
}

.card h2 {
    color: #1e3a8a;
    font-size: 34px;
}

/* 内容面板 */
.panel {
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.panel h2 {
    margin-bottom: 20px;
    color: #111827;
}

.panel p {
    line-height: 1.9;
    color: #4b5563;
}

/* 表单 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #374151;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: white;
}

textarea {
    height: 130px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
}

.primary-btn {
    margin-top: 22px;
    padding: 13px 24px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
}

.primary-btn:hover {
    background: #1d4ed8;
}

/* 列表 */
.list-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-item {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 14px;
    padding: 16px 18px;
}

.list-item h3 {
    color: #1e3a8a;
    margin-bottom: 8px;
}

.list-item p {
    color: #4b5563;
    line-height: 1.7;
}

.tag-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 10px;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 999px;
    font-size: 12px;
}

.empty-box {
    padding: 26px;
    background: #f9fafb;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

/* 评分结果 */
.score-box {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.score-box div {
    flex: 1;
    background: #eff6ff;
    padding: 24px;
    border-radius: 16px;
}

.score-box p {
    color: #64748b;
}

.score-box h1 {
    color: #1e3a8a;
    font-size: 42px;
    margin-top: 8px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.result-card {
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 16px;
    background: #f9fafb;
}

.result-card h3 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

/* 教学分析 */
.analysis-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.analysis-summary div {
    background: #f9fafb;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.analysis-summary p {
    color: #64748b;
    margin-bottom: 8px;
}

.analysis-summary strong {
    font-size: 26px;
    color: #1e3a8a;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.chart {
    height: 360px;
    background: #f9fafb;
    border-radius: 16px;
    padding: 12px;
}

/* 响应式 */
@media (max-width: 1000px) {
    .cards,
    .form-grid,
    .result-grid,
    .chart-row,
    .analysis-summary {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .app-container {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
    }
    .small-btn {
        padding: 9px 16px;
        font-size: 13px;
        margin-top: 14px;
    }
    .hint-text {
        margin-top: 8px;
        font-size: 13px;
        color: #64748b;
        line-height: 1.6;
    }
    .btn-row {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-top: 22px;
    }

    .btn-row .primary-btn,
    .btn-row .secondary-btn {
        margin-top: 0;
    }

    .secondary-btn {
        padding: 13px 24px;
        border: 1px solid #2563eb;
        background: #eff6ff;
        color: #1e3a8a;
        border-radius: 10px;
        font-size: 15px;
        cursor: pointer;
    }

    .secondary-btn:hover {
        background: #dbeafe;
    }

    .btn-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

    .btn-row .primary-btn {
        margin-top: 0;
    }

    .secondary-btn {
        margin-top: 0;
        padding: 13px 24px;
        border: 1px solid #2563eb;
        background: #eff6ff;
        color: #1e3a8a;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    .secondary-btn:hover {
        background: #dbeafe;
        border-color: #1d4ed8;
        color: #1d4ed8;
    }

    .secondary-btn:active {
        transform: scale(0.98);
    }

    .notice-panel {
        border-left: 5px solid #2563eb;
        background: #f8fbff;
    }
}