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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.count-section {
    margin: 40px 0;
    text-align: center;
}

.count-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.count-number {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.count-label {
    font-size: 1.2em;
    opacity: 0.9;
}

.user-list {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.user-list h3 {
    margin-bottom: 15px;
    color: #667eea;
}

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

.user-list li {
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.submission-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

.notice-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
}

.notice-box p {
    margin: 0;
    color: #856404;
    font-size: 0.95em;
    line-height: 1.6;
}

.notice-box strong {
    color: #d4a017;
    font-weight: 600;
}

.submit-section {
    margin: 40px 0;
}

.submit-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(40, 167, 69, 0.5);
    }
}

.submit-card h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: white;
}

.submit-card p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-submit-large {
    background: white;
    color: #28a745;
    padding: 18px 50px;
    font-size: 1.3em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-submit-large:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.2em;
}

.actions {
    text-align: center;
    margin: 30px 0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
    padding: 8px 20px;
    font-size: 0.9em;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 20px;
    font-size: 0.9em;
}

.btn-danger:hover {
    background: #c82333;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

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

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

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.info-box h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.info-box ul {
    margin-left: 20px;
}

.info-box li {
    margin: 5px 0;
}

.example-box {
    background: #fff9e6;
    border: 1px solid #ffd700;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.example-box h4 {
    margin-bottom: 15px;
    color: #d4a017;
}

.example-content {
    background: white;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.8;
}

.example-content ol {
    margin-left: 20px;
    margin-top: 10px;
}

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

.image-preview img {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 管理员页面样式 */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.user-list-container,
.submissions-container {
    margin-top: 20px;
}

.user-card {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #667eea;
}

.user-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.user-info p {
    margin: 5px 0;
    color: #666;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.submission-card {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.submission-header h3 {
    color: #333;
}

.submission-time {
    color: #666;
    font-size: 0.9em;
}

.submission-content {
    margin: 15px 0;
}

.submission-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: white;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.6;
}

.submission-images {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.submission-images img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s;
}

.submission-images img:hover {
    transform: scale(1.05);
}

.error {
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .count-number {
        font-size: 3em;
    }

    .user-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-actions {
        margin-top: 15px;
        width: 100%;
    }

    .user-actions .btn {
        flex: 1;
    }

    .submission-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

