footer{background:none;margin-top:20px;color:#999;font-size:14px;}
footer a{color:#999; text-decoration:none;font-size:14px;}
.page-content { margin: 20px 0; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.page-title { font-size: 28px; margin-bottom: 20px; color: #2c3e50; border-left: 5px solid #3498db; padding-left: 20px; }
.page-body { line-height: 1.8; font-size: 16px; }
.comment-section { margin-top: 40px; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.comment-title { font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.comment-list { margin-bottom: 30px; }
.comment-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.comment-avatar { flex-shrink: 0; width: 48px; height: 48px; background: #e1e8ed; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8899a6; font-size: 28px; }
.comment-content { flex: 1; }
.comment-meta { margin-bottom: 8px; font-size: 14px; color: #657786; }
.comment-author { font-weight: bold; color: #14171a; margin-right: 8px; }
.comment-text { font-size: 15px; line-height: 1.6; }
.reply-to { color: #3498db; font-weight: normal; }
.comment-form-wrapper { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 15px; }
.form-group { flex: 1; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.required { color: #e74c3c; }
.btn-submit { background: #3498db; color: #fff; border: none; padding: 10px 24px; border-radius: 30px; cursor: pointer; transition: 0.2s; }
.btn-submit:hover { background: #2980b9; }
.form-tip { margin-left: 15px; font-size: 13px; color: #999; }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}
.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #e1e8ed;
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.dark-mode .page-content, body.dark-mode .comment-section { background: #1e1e2f; color: #e2e8f0; }
body.dark-mode .page-title { color: #e2e8f0; }
body.dark-mode .comment-item { border-bottom-color: #2d3748; }
body.dark-mode .comment-meta { color: #a0aec0; }
body.dark-mode .comment-author { color: #edf2f7; }
body.dark-mode .form-group input, body.dark-mode .form-group textarea { background: #2a2a3e; border-color: #4a5568; color: #e2e8f0; }
.comment-item.admin-reply {
    background: #f0f7ff;
    border-left: 3px solid #3498db;
    margin: 8px 0;
    padding: 10px 0 5px 10px;
    border-radius: 8px;
}
.admin-badge {
    background: #3498db;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}
.reply-link {
    font-size: 12px;
    margin-left: 10px;
    color: #3498db;
    cursor: pointer;
}
.reply-link:hover {
    text-decoration: underline;
}
.comment-children {
    margin-left: 56px;
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
    margin-top: 12px;
}
@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
        gap: 8px;
    }
    .comment-avatar {
        width: 32px;
        height: 32px;
    }
    .comment-children {
        margin-left: 20px;
        padding-left: 12px;
    }
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    .page-title {
        font-size: 22px;
    }
    .comment-section, .page-content {
        padding: 16px;
    }
}
.reply-box {
    margin-top: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}
.reply-box textarea {
    width: 100%;
    border: 1px solid #ddd;

    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
}
.reply-box .btn-submit {
    background: #28a745;
    margin-top: 8px;
    padding: 6px 16px;
}
.reply-box .cancel-reply {
    margin-left: 10px;
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
}
body.dark-mode .comment-item.admin-reply {
    background: #1e2a3a;
    border-left-color: #5a9bcf;
}
body.dark-mode .reply-box {
    background: #2a2a3e;
}
body.dark-mode .reply-box textarea {
    background: #1e1e2f;
    border-color: #4a5568;
    color: #e2e8f0;
}
.reply-link {
    display: inline-block;
    background: #e9ecef;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #495057;
    transition: 0.2s;
    text-decoration: none;
}
.reply-link:hover {
    background: #3498db;
    color: #fff;
    text-decoration: none;
}
.reply-box {
    margin-top: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}
.reply-box textarea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
}
.reply-actions {
    margin-top: 10px;
    text-align: right;
}
.reply-actions .btn-submit {
    background: #28a745;
    border: none;
    padding: 6px 20px;
    border-radius: 30px;
    color: #fff;
}
.reply-actions .cancel-reply {
    background: #6c757d;
    border: none;
    padding: 6px 20px;
    border-radius: 30px;
    color: #fff;
    margin-left: 8px;
}
.comment-item.admin-reply {
    background: #f1f9ff;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.admin-badge {
    background: #3498db;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}

.comment-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}
.replies-wrapper {
    margin-left: 56px;  /* 统一缩进一次 */
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
    margin-top: 10px;
}
.reply-item {
    border-bottom: none !important;
}
@media (max-width: 768px) {
    .replies-wrapper {
        margin-left: 20px;
        padding-left: 12px;
    }
}

/* ========== 1. 去除所有输入框焦点黑边/蓝边 ========== */
input:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ========== 2. 取消回复按钮美化 ========== */
#cancelReply {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    vertical-align: middle;
    margin-left: 12px;
}
#cancelReply:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ========== 3. 验证码弹窗美化 ========== */
.captcha-modal {
    background: #fff;
    border-radius: 24px !important;
    padding: 28px 24px !important;
    width: 340px !important;
    text-align: center;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: inherit;
}
.captcha-modal h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}
.captcha-modal img {
    display: block;
    margin: 12px auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.2s;
}
.captcha-modal img:hover {
    opacity: 0.85;
}
#captchaInput {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 40px;
    font-size: 16px;
    text-align: center;
    margin: 12px 0;
    background: #fff;
}
#captchaInput:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.captcha-modal .btn-submit {
    background: #3498db;
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}
.captcha-modal .btn-submit:first-of-type {
    margin-right: 10px;
}
.captcha-modal .btn-submit:first-of-type:hover {
    background: #2980b9;
}
.captcha-modal .btn-submit:last-of-type {
    background: #9ca3af;
}
.captcha-modal .btn-submit:last-of-type:hover {
    background: #6b7280;
}