body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
    color: #333;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* 确保 padding 不会撑破 width */
    font-size: 14px;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #07c160;
    outline: none;
}

.upload-box {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: #fafafa;
}

.upload-box:hover {
    border-color: #07c160;
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-img {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    display: none;
    border-radius: 4px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
}

.btn:hover {
    background-color: #06ad56;
}

.hidden {
    display: none;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 50px 0;
}

.success-icon {
    font-size: 64px;
    color: #07c160;
    margin-bottom: 20px;
}

/* Agreement Styles */
.agreement-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.agreement-box input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #07c160;
    cursor: pointer;
}

.agreement-box label {
    margin: 0;
    display: inline;
    cursor: pointer;
}

.agreement-box a {
    color: #07c160;
    text-decoration: none;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 15vh auto;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    color: #999;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    background: #f9f9f9;
}

.modal-body h4 {
    color: #333;
    margin: 15px 0 8px;
    font-size: 15px;
}

.modal-body p {
    margin-bottom: 10px;
    text-align: justify;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.modal-btn.cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-btn.confirm {
    background: #07c160;
    color: #fff;
    font-weight: 500;
}

.modal-btn.confirm:disabled {
    background: #a0eac6;
    cursor: not-allowed;
}

.modal-btn.cancel:active {
    background: #e0e0e0;
}

.modal-btn.confirm:active {
    background: #06ad56;
}

/* Admin Styles */
.submission-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.info-row {
    margin-bottom: 10px;
}

.info-label {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
}

.image-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.image-item {
    text-align: center;
}

.image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: zoom-in;
}

.image-label {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.login-box {
    max-width: 400px;
    margin: 100px auto;
}
