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;
}

/* 图片上传 - 方块卡片样式 */
.photo-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.photo-item input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.photo-item.has-photo input[type="file"] {
    z-index: -1;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    transition: all 0.2s;
}

.photo-placeholder:hover {
    border-color: #07c160;
    background: #f0faf4;
}

.plus-icon {
    font-size: 28px;
    color: #ccc;
    font-weight: 300;
}

.photo-preview {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

#box1 .photo-preview::before,
#box1 .photo-preview::after,
#box2 .photo-preview::before,
#box2 .photo-preview::after {
    content: '复印无效 仅供公众号流量主提现使用';
    position: absolute;
    color: rgba(255, 0, 0, 0.3);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    letter-spacing: 2px;
    transform: rotate(-30deg);
}

#box1 .photo-preview::before,
#box2 .photo-preview::before {
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
}

#box1 .photo-preview::after,
#box2 .photo-preview::after {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    cursor: pointer;
}

.photo-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.2s;
}

.photo-preview:hover .photo-delete {
    opacity: 1;
}

.photo-hint {
    font-size: 12px;
    color: #999;
    margin: 8px 0 0;
    line-height: 1.6;
}

.photo-hint em {
    color: #ff6b35;
    font-style: normal;
    font-weight: 500;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .photo-item {
        width: 90px;
        height: 90px;
    }
}

.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;
}
