/* 南风科创作业系统 - 公用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #333;
    min-height: 100vh;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
.top {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.top h1 {
    font-size: 20px;
    color: #1976d2;
}
.user {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logout {
    background: #f56c6c;
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.logout:hover {
    background: #d9534f;
}
.main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}
.module-title {
    background: #409eff;
    color: #fff;
    padding: 14px 18px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
}
.left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.left-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.2s;
}
.left-card:hover {
    transform: translateY(-2px);
}
.hw-item {
    padding: 16px 18px;
    border-bottom: 1px solid #f2f3f5;
    cursor: pointer;
    transition: 0.2s;
}
.hw-item:hover {
    background: #f8f9fb;
}
.hw-item.active {
    background: #ecf5ff;
    border-left: 4px solid #409eff;
}
.hw-title {
    font-weight: 500;
    margin-bottom: 6px;
}
.hw-info {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
}
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}
.badge.wait {
    background: #fff1f0;
    color: #f56c6c;
}
.badge.done {
    background: #f0f9eb;
    color: #67c23a;
}
.module-content {
    padding: 20px;
}
.teacher-content, .ai-content {
    border: 1px dashed #ddd;
    border-radius: 6px;
    padding: 18px;
    text-align: center;
    color: #999;
    min-height: 100px;
    line-height: 1.6;
}
.ai-content {
    border-color: #409eff;
    color: #409eff;
}
.right {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.right-body {
    padding: 22px;
    flex: 1;
}
.right-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}
.right-sub {
    color: #666;
    font-size: 14px;
    margin: 8px 0 16px 0;
}
.work-content {
    padding: 18px;
    background: #fafafa;
    border-radius: 6px;
    min-height: 140px;
    line-height: 1.7;
    color: #444;
}
.submit-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f2f3f5;
}
.submit-title {
    font-size: 16px;
    margin-bottom: 14px;
}
.btn {
    background: #409eff;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}
.btn:hover {
    background: #337ecc;
}
.btn-danger {
    background: #f56c6c;
}
.btn-danger:hover {
    background: #d9534f;
}
input[type="file"] {
    padding: 6px;
    border: 1px solid #eee;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 14px;
    font-size: 14px;
}
.submitted-file {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.submitted-file a {
    color: #409eff;
    text-decoration: none;
}
.submitted-file a:hover {
    text-decoration: underline;
}