/* ==================== 文章详情页样式 ==================== */

/* 加载状态 */
.article-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--text-light);
}

.article-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* 文章不存在 */
.article-not-found {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.not-found-content {
    text-align: center;
}

.not-found-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.not-found-content h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.not-found-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* 文章头部 */
.article-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300a86b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.article-header.install { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.article-header.repair { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); }
.article-header.tech { background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%); }
.article-header.news { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

/* 面包屑导航 */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    position: relative;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* 文章头部内容 */
.article-header-content {
    position: relative;
}

.article-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    margin-bottom: 20px;
}

.article-page-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 25px;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.article-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.article-info .info-icon {
    font-size: 16px;
}

/* 文章主体布局 */
.article-main {
    padding: 50px 0 80px;
    background: var(--bg-light);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 文章内容区 */
.article-content-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-body-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body-content p {
    margin-bottom: 20px;
}

.article-body-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.article-body-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.article-body-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 25px 0 12px;
}

.article-body-content ul,
.article-body-content ol {
    margin: 15px 0 20px 20px;
}

.article-body-content li {
    margin-bottom: 10px;
}

.article-body-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-body-content code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

.article-body-content pre {
    background: #2d2d44;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.article-body-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-body-content a:hover {
    color: var(--primary-dark);
}

/* 文章底部 */
.article-footer {
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-label {
    color: var(--text-light);
    font-size: 14px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list .tag {
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tags-list .tag:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    color: var(--text-light);
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    padding: 6px 14px;
    background: var(--bg-light);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 上一篇/下一篇 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
}

.nav-prev,
.nav-next {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

/* 评论区 */
.comments-section {
    padding: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.title-icon {
    font-size: 24px;
}

.comments-count {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

/* 评论表单 */
.comment-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.comment-form h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form .form-group {
    margin-bottom: 0;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 20px;
}

.btn-submit-comment {
    padding: 14px 35px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 16px;
    animation: fadeIn 0.3s ease;
}

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

.comment-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.comment-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.comment-date {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.comment-action.liked {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 评论回复 */
.comment-replies {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-light);
}

.reply-item {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
}

.reply-item:last-child {
    margin-bottom: 0;
}

/* 评论空状态 */
.comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.comments-empty .empty-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 加载更多 */
.comments-load-more {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    padding: 12px 35px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 15px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* 文章目录 */
.article-toc {
    max-height: 300px;
    overflow-y: auto;
}

.article-toc::-webkit-scrollbar {
    width: 4px;
}

.article-toc::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.toc-item {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-item:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.toc-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.toc-item.level-3 {
    padding-left: 15px;
    font-size: 13px;
}

/* 相关文章 */
.related-articles {
    list-style: none;
}

.related-articles li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-articles li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-articles a {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.related-articles a:hover {
    color: var(--primary-color);
}

.related-article-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 热门文章列表 */
.hot-articles-list {
    list-style: none;
}

.hot-articles-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-articles-list li:last-child {
    border-bottom: none;
}

.hot-articles-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.hot-articles-list a:hover {
    color: var(--primary-color);
}

.hot-articles-list .hot-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.hot-articles-list li:nth-child(1) .hot-num {
    background: #ff6b6b;
    color: #fff;
}

.hot-articles-list li:nth-child(2) .hot-num {
    background: #ffa502;
    color: #fff;
}

.hot-articles-list li:nth-child(3) .hot-num {
    background: #ffd43b;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar-widget:nth-child(1) {
        display: none;
    }

    .article-page-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 100px 0 40px;
    }

    .article-breadcrumb {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .article-page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .article-info {
        gap: 15px;
    }

    .article-info .info-item {
        font-size: 13px;
    }

    .article-main {
        padding: 30px 0 50px;
    }

    .article-body-content {
        padding: 25px;
        font-size: 15px;
    }

    .article-body-content h2 {
        font-size: 20px;
        margin: 30px 0 15px;
    }

    .article-body-content h3 {
        font-size: 18px;
        margin: 25px 0 12px;
    }

    .article-footer {
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-navigation {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .comments-section {
        padding: 25px;
    }

    .comments-title {
        font-size: 18px;
    }

    .comment-form {
        padding: 20px;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .comment-item {
        padding: 20px;
        flex-direction: column;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 90px 0 30px;
    }

    .article-page-title {
        font-size: 20px;
    }

    .article-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .article-body-content {
        padding: 20px;
    }

    .article-body-content h2 {
        font-size: 18px;
    }

    .article-body-content h3 {
        font-size: 16px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 12px 15px;
        font-size: 14px;
    }

    .btn-submit-comment {
        width: 100%;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .comment-actions {
        flex-wrap: wrap;
    }
}

/* ==================== 登录提示和用户状态 ==================== */

/* 未登录提示 */
.login-prompt {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px dashed var(--border-color);
}

.login-prompt-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.prompt-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.prompt-text {
    flex: 1;
    min-width: 200px;
}

.prompt-text h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.prompt-text p {
    font-size: 14px;
    color: var(--text-light);
}

.prompt-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-login {
    padding: 12px 30px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

.btn-register {
    padding: 12px 30px;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: var(--primary-light);
}

/* 已登录用户信息条 */
.user-info-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: var(--primary-light);
    border-radius: 16px;
    margin-bottom: 25px;
}

.user-info-bar .user-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.user-status {
    font-size: 13px;
    color: var(--primary-color);
}

.btn-logout {
    padding: 8px 20px;
    background: #fff;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* ==================== 登录/注册弹窗 ==================== */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: #ff6b6b;
    color: #fff;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-block;
    font-size: 40px;
    margin-bottom: 15px;
}

.auth-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.auth-modal-header p {
    font-size: 14px;
    color: var(--text-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.1);
}

.auth-error {
    color: #ff4444;
    font-size: 13px;
    padding: 10px 15px;
    background: #fee;
    border-radius: 8px;
    display: none;
}

.auth-error.show {
    display: block;
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

.auth-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.auth-modal-footer a {
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 5px;
}

.auth-modal-footer a:hover {
    text-decoration: underline;
}

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

    .login-prompt-content {
        flex-direction: column;
        text-align: center;
    }

    .prompt-icon {
        font-size: 40px;
    }

    .prompt-actions {
        width: 100%;
        justify-content: center;
    }

    .user-info-bar {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .user-details {
        align-items: center;
    }

    .auth-modal-content {
        padding: 30px 25px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-actions {
        flex-direction: column;
    }

    .btn-login,
    .btn-register {
        width: 100%;
    }

    .auth-form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ==================== 问题详情页增强样式 ==================== */

/* 问题内容区域 */
.question-content {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.question-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* 已解决标记 */
.solved-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
}

/* 已采纳回答样式 */
.comment-item.accepted {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    position: relative;
}

.comment-item.accepted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 14px 14px 0 0;
}

.accepted-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 需要登录弹窗 */
.login-required-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.login-modal-content {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.login-modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.login-modal-content h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.login-modal-content p {
    color: #666;
    margin-bottom: 30px;
}

.login-modal-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.login-modal-btns .btn-login {
    padding: 12px 30px;
    background: var(--gradient);
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-modal-btns .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

.login-modal-btns .btn-back {
    padding: 12px 30px;
    background: #f0f0f0;
    color: #666;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-modal-btns .btn-back:hover {
    background: #e0e0e0;
}

/* 快速入口链接 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.quick-link span {
    font-size: 18px;
}

/* ==================== 问题图片画廊 ==================== */
.question-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
}

.question-images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.question-images img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
}

/* 图片灯箱 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ==================== 回答区增强 ==================== */
.answers-section {
    margin-top: 30px;
}

.answers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.answers-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.answers-count {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.answer-sort {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: #e0e0e0;
}

.sort-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* 回答卡片增强 */
.answer-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.answer-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.answer-card.accepted {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.answer-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.answer-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.answer-author-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 3px;
}

.answer-author-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.answer-badges {
    display: flex;
    gap: 8px;
}

.badge-accepted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.answer-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.answer-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.action-btn.liked {
    background: var(--primary-light);
    color: var(--primary-color);
}

.accept-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ==================== 回答表单增强 ==================== */
.answer-form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    border: 2px solid #e5e7eb;
}

.answer-form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-textarea {
    width: 100%;
    min-height: 150px;
    padding: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.answer-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.1);
}

.answer-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.form-tips {
    font-size: 13px;
    color: var(--text-muted);
}

.submit-answer-btn {
    padding: 12px 30px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

/* ==================== 问题状态标签 ==================== */
.question-status-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-tag.solved {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.status-tag.unsolved {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.status-tag.top {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.status-tag.featured {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .question-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .question-images img {
        height: 100px;
    }

    .answers-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .answer-header {
        flex-direction: column;
        gap: 12px;
    }

    .answer-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .answer-form-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .submit-answer-btn {
        width: 100%;
    }
}
