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

/* 页面基础 */
.qd-page {
    padding-top: 80px;
    min-height: 100vh;
    background: #f6f6f6;
}

/* 加载状态 */
.qd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: #666;
}

.qd-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #00a86b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 容器 */
.qd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑 */
.qd-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #6a737c;
    margin-bottom: 16px;
}

.qd-breadcrumb a {
    color: #0074cc;
    text-decoration: none;
}

.qd-breadcrumb a:hover {
    color: #0a95ff;
}

.qd-breadcrumb .separator {
    margin: 0 8px;
    color: #9199a1;
}

/* 主布局 */
.qd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* 主内容区 */
.qd-main {
    min-width: 0;
}

/* ==================== 问题区域 ==================== */
.qd-question {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* 问题头部 */
.qd-question-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e3e6e8;
}

.qd-title {
    font-size: 26px;
    font-weight: 600;
    color: #232629;
    line-height: 1.35;
    margin: 0 0 16px;
    word-wrap: break-word;
}

.qd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

.qd-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qd-meta-item .meta-label {
    color: #6a737c;
}

.qd-meta-item .meta-value {
    color: #232629;
    font-weight: 500;
}

/* 问题内容主体 */
.qd-question-body {
    display: flex;
    padding: 20px 24px;
}

/* 投票列 */
.qd-vote-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 16px;
    min-width: 50px;
}

.vote-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9199a1;
    transition: all 0.2s;
}

.vote-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.vote-btn:hover {
    background: #f1f2f3;
    color: #f48225;
}

.vote-btn.active {
    color: #f48225;
}

.vote-count {
    font-size: 20px;
    font-weight: 600;
    color: #232629;
    padding: 8px 0;
}

.bookmark-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9199a1;
    margin-top: 8px;
    transition: all 0.2s;
}

.bookmark-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.bookmark-btn:hover {
    background: #f1f2f3;
    color: #f48225;
}

.bookmark-btn.active {
    color: #f48225;
}

/* 内容列 */
.qd-content-column {
    flex: 1;
    min-width: 0;
}

.qd-content {
    font-size: 15px;
    line-height: 1.8;
    color: #3b4045;
    word-wrap: break-word;
}

.qd-content p {
    margin: 0 0 16px;
}

.qd-content pre {
    background: #f6f6f6;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
}

.qd-content code {
    background: #e4e6e8;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* 图片展示区 */
.qd-images {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.qd-images .image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f2f3;
    cursor: pointer;
    aspect-ratio: 4/3;
}

/* 图片骨架屏加载 */
.qd-images .image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        #f1f2f3 0%,
        #e8e8e8 20%,
        #f1f2f3 40%,
        #f1f2f3 100%
    );
    background-size: 200% 100%;
    animation: qd-skeleton-shimmer 1.5s ease-in-out infinite;
    z-index: 1;
}

/* 图片占位图标 */
.qd-images .image-item::after {
    content: '🖼️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    opacity: 0.3;
    z-index: 2;
}

/* 图片加载完成后隐藏占位符 */
.qd-images .image-item.loaded::before,
.qd-images .image-item.loaded::after {
    display: none;
}

@keyframes qd-skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.qd-images .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.4s ease;
    position: relative;
    z-index: 3;
    opacity: 0;
}

.qd-images .image-item img.loaded {
    opacity: 1;
}

.qd-images .image-item:hover img.loaded {
    transform: scale(1.05);
}

.qd-images .image-item .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 4;
    pointer-events: none;
}

.qd-images .image-item:hover .image-overlay {
    opacity: 1;
}

/* 标签 */
.qd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0;
}

.qd-tags .tag {
    display: inline-block;
    padding: 5px 10px;
    background: #e1ecf4;
    color: #39739d;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.qd-tags .tag:hover {
    background: #d0e3f1;
    color: #2c5777;
}

.qd-tags .tag.top {
    background: #ff4757;
    color: #fff;
}

.qd-tags .tag.featured {
    background: #2ed573;
    color: #fff;
}

/* 操作栏 */
.qd-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e3e6e8;
    margin-top: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: #6a737c;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.action-btn:hover {
    background: #f1f2f3;
    color: #0074cc;
}

.action-btn.active {
    color: #f48225;
    background: #fdf5e8;
}

.action-btn.active svg {
    fill: #f48225;
}

/* 投票按钮点踩激活状态 */
.vote-btn.vote-down.active {
    color: #838c95;
}

/* 作者卡片 */
.qd-author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f8f9f9;
    border-top: 1px solid #e3e6e8;
}

.qd-author-card .author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00a86b, #00c4a7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.qd-author-card .author-info {
    flex: 1;
}

.qd-author-card .author-name {
    font-size: 14px;
    font-weight: 600;
    color: #0074cc;
    margin-bottom: 4px;
}

.qd-author-card .author-stats {
    font-size: 12px;
    color: #6a737c;
}

/* ==================== 回答区域 ==================== */
.qd-answers-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.qd-answers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e3e6e8;
}

.qd-answers-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #232629;
    margin: 0;
}

.answers-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6a737c;
}

.answers-sort select {
    padding: 6px 12px;
    border: 1px solid #d6d9dc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

/* 回答列表 */
.qd-answers-list {
    padding: 0;
}

/* 单个回答 */
.answer-item {
    display: flex;
    padding: 20px 24px;
    border-bottom: 1px solid #e3e6e8;
}

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

.answer-item.accepted {
    background: linear-gradient(90deg, #d4edda 0%, #fff 20%);
    border-left: 4px solid #28a745;
}

/* 回答投票 */
.answer-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 16px;
    min-width: 50px;
}

.answer-vote .vote-btn {
    width: 32px;
    height: 32px;
}

.answer-vote .vote-count {
    font-size: 18px;
    padding: 6px 0;
}

.accept-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 24px;
    margin-top: 8px;
}

.accept-mark.clickable {
    cursor: pointer;
    color: #9199a1;
    border: 2px solid #d6d9dc;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.2s;
}

.accept-mark.clickable:hover {
    color: #28a745;
    border-color: #28a745;
}

/* 回答内容 */
.answer-content {
    flex: 1;
    min-width: 0;
}

.answer-text {
    font-size: 15px;
    line-height: 1.8;
    color: #3b4045;
    margin-bottom: 16px;
}

.answer-text p {
    margin: 0 0 12px;
}

/* 回答图片 */
.answer-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.answer-images img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    background: #f1f2f3;
    transition: opacity 0.4s ease, transform 0.2s ease;
    opacity: 0;
}

.answer-images img.loaded {
    opacity: 1;
}

.answer-images img:hover {
    transform: scale(1.02);
}

/* 回答底部 */
.answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f2f3;
}

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

.answer-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9f9;
    border-radius: 6px;
}

.answer-author .author-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.answer-author .author-name {
    font-size: 13px;
    font-weight: 500;
    color: #0074cc;
}

.answer-author .answer-time {
    font-size: 12px;
    color: #6a737c;
}

/* 无回答状态 */
.qd-no-answers {
    text-align: center;
    padding: 48px 24px;
    color: #6a737c;
}

.qd-no-answers .no-answers-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.qd-no-answers h3 {
    font-size: 18px;
    color: #3b4045;
    margin: 0 0 8px;
}

.qd-no-answers p {
    margin: 0;
    font-size: 14px;
}

/* ==================== 发表回答 ==================== */
.qd-answer-form-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 24px;
}

.qd-answer-form-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #232629;
    margin: 0 0 20px;
}

/* 登录提示 */
.qd-login-prompt {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px dashed #d6d9dc;
    border-radius: 8px;
}

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

.qd-login-prompt .login-text {
    flex: 1;
}

.qd-login-prompt .login-text h4 {
    font-size: 16px;
    color: #232629;
    margin: 0 0 4px;
}

.qd-login-prompt .login-text p {
    font-size: 13px;
    color: #6a737c;
    margin: 0;
}

.qd-login-prompt .login-actions {
    display: flex;
    gap: 10px;
}

.qd-login-prompt .btn-login,
.qd-login-prompt .btn-register {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.qd-login-prompt .btn-login {
    background: #00a86b;
    color: #fff;
    border: none;
}

.qd-login-prompt .btn-login:hover {
    background: #008c5a;
}

.qd-login-prompt .btn-register {
    background: #fff;
    color: #00a86b;
    border: 2px solid #00a86b;
}

.qd-login-prompt .btn-register:hover {
    background: #f0fff8;
}

/* 回答表单 */
.qd-answer-form {
    padding-top: 16px;
}

.qd-answer-form .form-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qd-answer-form .user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00a86b, #00c4a7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.qd-answer-form .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #232629;
}

.qd-answer-form .form-group {
    margin-bottom: 16px;
}

.qd-answer-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #d6d9dc;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.qd-answer-form textarea:focus {
    outline: none;
    border-color: #00a86b;
}

.qd-answer-form textarea::placeholder {
    color: #9199a1;
}

/* 上传按钮 */
.upload-label {
    display: inline-block;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f2f3;
    border: 1px solid #d6d9dc;
    border-radius: 4px;
    font-size: 13px;
    color: #3b4045;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.upload-btn:hover {
    background: #e3e6e8;
}

/* 上传预览 */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.upload-preview .preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.upload-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview .preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 提交按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    padding: 12px 32px;
    background: linear-gradient(135deg, #00a86b, #00c4a7);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,168,107,0.3);
}

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

/* ==================== 侧边栏 ==================== */
.qd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #525960;
    padding: 12px 16px;
    margin: 0;
    background: #f8f9f9;
    border-bottom: 1px solid #e3e6e8;
}

/* 状态卡片 */
.qd-status-card {
    padding: 16px;
}

.qd-status-card .status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e3e6e8;
}

.qd-status-card .status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.qd-status-card .status-icon.solved {
    background: #d4edda;
    color: #28a745;
}

.qd-status-card .status-icon.open {
    background: #fff3cd;
    color: #f48225;
}

.qd-status-card .status-text {
    font-size: 14px;
    font-weight: 600;
    color: #232629;
}

.qd-status-card .status-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qd-status-card .stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.qd-status-card .stat-label {
    color: #6a737c;
}

.qd-status-card .stat-value {
    color: #232629;
    font-weight: 500;
}

/* 相关问题 / 热门问题列表 */
.related-list,
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li,
.hot-list li {
    border-bottom: 1px solid #e3e6e8;
}

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

.related-list a,
.hot-list a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    color: #0074cc;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s;
}

.related-list a:hover,
.hot-list a:hover {
    background: #f8f9f9;
    color: #0a95ff;
}

/* 快速链接 */
.quick-links {
    padding: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #3b4045;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #f1f2f3;
    color: #0074cc;
}

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

/* ==================== 问题不存在 ==================== */
.qd-not-found {
    text-align: center;
    padding: 80px 20px;
}

.qd-not-found .not-found-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.qd-not-found h2 {
    font-size: 24px;
    color: #232629;
    margin: 0 0 12px;
}

.qd-not-found p {
    font-size: 15px;
    color: #6a737c;
    margin: 0 0 24px;
}

.qd-not-found .btn-back {
    display: inline-block;
    padding: 12px 32px;
    background: #00a86b;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.qd-not-found .btn-back:hover {
    background: #008c5a;
}

/* ==================== 图片灯箱 ==================== */
.qd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.qd-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
}

/* ==================== 登录/注册弹窗 ==================== */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.auth-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

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

.auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1;
}

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

.auth-header {
    background: linear-gradient(135deg, #00a86b, #00c4a7);
    padding: 32px 24px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.auth-header .auth-logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.auth-header h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px;
}

.auth-header p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}

.auth-form {
    padding: 24px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e3e6e8;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #00a86b;
}

.auth-error {
    color: #d32f2f;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}

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

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00a86b, #00c4a7);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,168,107,0.3);
}

.auth-footer {
    text-align: center;
    padding: 16px 24px 24px;
    font-size: 14px;
    color: #6a737c;
}

.auth-footer a {
    color: #00a86b;
    text-decoration: none;
    font-weight: 500;
}

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

/* ==================== 提示消息 ==================== */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #323232;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

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

    .qd-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .qd-sidebar .sidebar-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .qd-container {
        padding: 16px;
    }

    .qd-title {
        font-size: 20px;
    }

    .qd-question-header {
        padding: 16px;
    }

    .qd-question-body {
        padding: 16px;
        flex-direction: column;
    }

    .qd-vote-column {
        flex-direction: row;
        padding-right: 0;
        padding-bottom: 16px;
        gap: 12px;
    }

    .qd-vote-column .vote-count {
        padding: 0 12px;
    }

    .qd-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .qd-author-card {
        padding: 16px;
    }

    .qd-answers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .answer-item {
        padding: 16px;
        flex-direction: column;
    }

    .answer-vote {
        flex-direction: row;
        padding-right: 0;
        padding-bottom: 12px;
        gap: 12px;
    }

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

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

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

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .qd-meta {
        flex-direction: column;
        gap: 8px;
    }

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

    .qd-login-prompt .login-actions {
        flex-direction: column;
        width: 100%;
    }

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