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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #d35400;
    color: white;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-top h1 {
    font-size: 28px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-size: 14px;
    opacity: 0.9;
}

.logout-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: rgba(255,255,255,0.3);
}

header p {
    font-size: 16px;
    opacity: 0.9;
}

section {
    background-color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 登录和注册页面样式 */
#login-section,
#register-section {
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: center;
}

#login-section h2,
#register-section h2 {
    color: #d35400;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}

#login-section .message,
#register-section .message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

#login-section .message.success,
#register-section .message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#login-section .message.error,
#register-section .message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#login-section .form-group,
#register-section .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#login-section .form-group label,
#register-section .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

#login-section .form-group input[type="text"],
#login-section .form-group input[type="password"],
#register-section .form-group input[type="text"],
#register-section .form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#login-section .form-group input[type="text"]:focus,
#login-section .form-group input[type="password"]:focus,
#register-section .form-group input[type="text"]:focus,
#register-section .form-group input[type="password"]:focus {
    outline: none;
    border-color: #d35400;
    box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.1);
}

.login-link,
.register-link {
    margin-top: 20px;
    font-size: 16px;
}

.login-link a,
.register-link a {
    color: #d35400;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.login-link a:hover,
.register-link a:hover {
    color: #e67e22;
    text-decoration: underline;
}

/* 注意事项模块样式 */
.notice-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

.notice-section h3 {
    color: #d35400;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.notice-section ul {
    list-style: none;
    padding-left: 0;
}

.notice-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #666;
}

.notice-section li:before {
    content: "•";
    color: #d35400;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

.upload-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #d35400;
}

.upload-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

.upload-info strong {
    color: #d35400;
}

form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.btn-primary {
    background-color: #d35400;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-primary:hover {
    background-color: #e67e22;
}

#message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

#message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.uploaded-files {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.uploaded-files h3 {
    color: #d35400;
    margin-bottom: 15px;
    font-size: 18px;
}

#file-list {
    list-style: none;
}

#file-list li {
    padding: 15px;
    margin-bottom: 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#file-list li .file-name {
    font-weight: bold;
    color: #d35400;
    margin-right: 10px;
}

#file-list li .file-size {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

#file-list li .file-time {
    font-size: 12px;
    color: #999;
}

#file-list li .file-link {
    background-color: #d35400;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

#file-list li .file-link:hover {
    background-color: #e67e22;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 20px;
    }

    .header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-top h1 {
        font-size: 24px;
    }

    .user-info {
        justify-content: center;
    }

    section {
        padding: 20px;
    }

    #file-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #file-list li .file-link {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 14px;
    }

    .upload-info p {
        font-size: 14px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}
