/* 简洁白底黑字样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
    color: #2c2c2c;
    background: #fafafa;
    font-size: 15px;
    padding: 2px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 3px;
}

h1 {
    text-align: center;
    color: #000000;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
}

h2 {
    color: #000000;
    margin-bottom: 4px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* 简洁表单样式 */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #000000;
    font-size: 13px;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
}

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

textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

button {
    background: #000000;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

button:hover {
    background: #333333;
}

/* 简洁卡片样式 */
.comment-form,
.comments-section,
.admin-login-form {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.no-comments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 60px 20px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    margin: 20px 0;
}

/* 简洁评论卡片 */
.comment {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    padding: 6px 8px;
    margin-bottom: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #000000;
    font-size: 15px;
}

.comment-time {
    color: #666666;
    font-size: 12px;
}

.comment-content {
    color: #000000;
    line-height: 1.25;
    margin-bottom: 2px;
    font-size: 15px;
}

.comment-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.reply-btn,
.delete-btn {
    padding: 1px 6px;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    display: inline-block;
}

.reply-btn:hover,
.delete-btn:hover {
    background: #f0f0f0;
}

/* 简洁回复样式 */
.replies {
    margin-left: 12px;
    margin-top: 2px;
    border-left: 1px solid #e5e5e5;
    padding-left: 6px;
}

.reply {
    background: #fafafa;
    border-radius: 2px;
    padding: 4px 6px;
    margin-bottom: 2px;
    border: 1px solid #e5e5e5;
}

.reply-form {
    margin-top: 2px;
    padding: 4px;
    background: #f9f9f9;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
}

.reply-form textarea {
    width: 100%;
    padding: 3px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 14px;
    margin-bottom: 2px;
    resize: vertical;
    min-height: 45px;
    font-family: inherit;
}

.reply-form button {
    background: #000000;
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
}

.reply-form button:hover {
    background: #333333;
}

/* 简洁分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 4px;
}

.pagination a,
.pagination span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pagination a {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination .current {
    background: #000000;
    color: white;
    border: 1px solid #000000;
}

.pagination .disabled {
    color: #999999;
    background: #f9f9f9;
    cursor: not-allowed;
}

/* 管理员登录表单升级 */
.admin-login-form {
    max-width: 420px;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.admin-login-form h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(102, 126, 234, 0.1);
}

.back-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 简洁响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }
    
    h1 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .comment-form,
    .comments-section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .comment {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .replies {
        margin-left: 10px;
        padding-left: 8px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment {
    animation: fadeInUp 0.6s ease forwards;
}

.comment:nth-child(1) { animation-delay: 0.1s; }
.comment:nth-child(2) { animation-delay: 0.2s; }
.comment:nth-child(3) { animation-delay: 0.3s; }
.comment:nth-child(4) { animation-delay: 0.4s; }
.comment:nth-child(5) { animation-delay: 0.5s; }
.home-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    min-width: 120px;
    text-align: center;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    color: white;
}