* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 50%, #f5f7fa 100%);
}

.header {
    background-color: #ffffff;
    padding: 10px 30px;
    border-bottom: 1px solid #e8eef3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
}

.logo {
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title {
    font-size: 18px;
    font-weight: 400;
    color: #2a2a2a;
}

.logout-btn {
    padding: 6px 14px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.footer {
    background-color: #ffffff;
    padding: 20px 30px;
    border-top: 1px solid #e8eef3;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.beian-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.beian-link:hover {
    color: #666;
}

.beian-icon {
    height: 20px;
    width: auto;
}

.copyright-info {
    font-size: 12px;
    color: #999;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-card h2 {
    color: #333;
    font-size: 24px;
    font-weight: 500;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #6c5ce7;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary {
    background-color: #6c5ce7;
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.home-container {
    flex: 1;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-section .welcome-text {
    flex: 1;
}

.welcome-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 16px;
    color: #666;
}

.course-section {
    margin-bottom: 30px;
}

.course-section label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.course-btn {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 20px 24px;
    background-color: #ffffff;
    border: 2px solid #6c5ce7;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
}

.course-btn.selected {
    background-color: #f8f5ff;
}

.course-btn-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.course-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
}

.course-btn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-btn-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.course-btn-subtitle {
    font-size: 13px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-btn-subtitle::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
}

.course-actions {
    display: none;
}

.course-actions.show {
    display: block;
}

.action-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.action-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.action-icon-download {
    background-color: #e3f2fd;
    color: #1976d2;
}

.action-icon-review {
    background-color: #fff3e0;
    color: #ff9800;
}

.action-card-content {
    flex: 1;
}

.action-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.action-card-desc {
    font-size: 13px;
    color: #999;
}

.review-container {
    flex: 1;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.review-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    color: #6c5ce7;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.user-info {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-info p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.user-info span {
    font-weight: 600;
    color: #333;
}

.subject-select {
    margin-bottom: 20px;
}

.subject-select label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.subject-options {
    display: flex;
    gap: 15px;
}

.subject-option {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.subject-option:hover {
    border-color: #6c5ce7;
}

.subject-option.selected {
    border-color: #6c5ce7;
    background-color: #f0f0ff;
}

.rating-section {
    margin-bottom: 20px;
}

.rating-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.rating-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 10px;
}

.rating-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rating-item-header label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rating-score {
    font-size: 20px;
    font-weight: bold;
    color: #6c5ce7;
}

.rating-score span {
    font-size: 14px;
    font-weight: normal;
    color: #999;
}

.stars {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.star {
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

.star:hover {
    transform: scale(1.1);
}

.star.filled {
    color: #f39c12;
}

.star.empty {
    color: #ddd;
}

.dimension-comment {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    display: none;
}

.dimension-comment.show {
    display: block;
}

.dimension-comment:focus {
    outline: none;
    border-color: #6c5ce7;
}

.upload-section {
    margin-bottom: 20px;
}

.upload-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.upload-area:hover {
    border-color: #6c5ce7;
    background-color: #fafaff;
}

.upload-area.dragover {
    border-color: #6c5ce7;
    background-color: #f0f0ff;
}

.upload-plus {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #999;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: background-color 0.3s;
}

.upload-area:hover .upload-plus {
    background-color: #e8eef3;
}

.upload-area p {
    color: #666;
    font-size: 14px;
}

.upload-optional {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.upload-area input[type="file"] {
    display: none;
}

.image-preview {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-item .remove-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}

.admin-container {
    flex: 1;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.admin-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-action-btn {
    padding: 10px 20px;
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.admin-action-btn:hover {
    opacity: 0.9;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 24px;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.review-user-info {
    display: flex;
    flex-direction: column;
}

.review-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.review-user-username {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.review-rating-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.review-rating-stars {
    font-size: 20px;
    color: #f39c12;
}

.review-rating-score {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.review-content {
    margin-bottom: 16px;
}

.dimension-review {
    margin-bottom: 12px;
}

.dimension-review:last-child {
    margin-bottom: 0;
}

.dimension-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.dimension-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.review-image-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-image-thumb:hover {
    transform: scale(1.05);
}

.review-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.review-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.image-modal.show {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.image-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .header {
        padding: 8px 15px;
    }
    
    .logo {
        width: 140px;
    }
    
    .header-title {
        font-size: 17px;
        font-weight: 400;
        color: #242424;
        padding: 0 5px;
    }
    
    .container, .home-container, .review-container, .admin-container {
        padding: 12px;
    }
    
    .login-card {
        padding: 20px 15px;
        max-width: 95%;
    }
    
    .login-card h2 {
        padding-top: 10px;
        font-size: 25px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .welcome-section h1 {
        font-size: 25px;
    }
    
    .welcome-section p {
        font-size: 13px;
    }
    
    .logout-btn {
        padding: 5px 10px;
        font-size: 12px;
        align-self: flex-start;
    }
    
    .course-section label {
        font-size: 13px;
    }
    
    .course-btn {
        padding: 14px 16px;
    }
    
    .course-btn-title {
        font-size: 14px;
    }
    
    .course-btn-subtitle {
        font-size: 12px;
    }
    
    .course-checkbox {
        width: 18px;
        height: 18px;
    }
    
    .action-card {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .action-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .action-card-title {
        font-size: 15px;
    }
    
    .action-card-desc {
        font-size: 13px;
        
        padding-top: 0px;
    }
    
    .subject-options {
        flex-direction: column;
    }
    
    .review-container h2 {
        font-size: 18px;
    }
    
    .rating-item {
        padding: 14px;
    }
    
    .star {
        font-size: 26px;
    }
    
    .upload-area {
        padding: 15px;
    }
    
    .upload-plus {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .admin-container h2 {
        font-size: 18px;
    }
    
    .review-card {
        padding: 16px;
    }
    
    .review-card-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .review-rating-summary {
        align-items: flex-end;
    }
    
    .review-rating-stars {
        font-size: 16px;
    }
}