/* ========= 社区问答模块样式 (优化版) ========= */
/* 引入全局盒模型与CSS变量 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* 颜色变量 */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-darker: #1e3a8a;
    --secondary: #14b8a6;
    --secondary-dark: #0d9488;
    --accent-orange: #f97316;
    --accent-orange-dark: #ea580c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f44336;
    --purple: #7c3aed;
    --blue-light-bg: #eff6ff;
    --blue-light-text: #1e40af;
    --gray-bg: #f8fafc;
    --gray-border: #e2e8f0;
    --gray-text: #475569;
    --gray-text-light: #6c7a91;
    --dark-text: #0f172a;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.03);
    --transition-default: all 0.2s ease;
    --border-radius-card: 8px;
}

/* ===== 布局 ===== */
.dtd-container {
    display: flex;
    gap: 28px;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: #1e293b;
    margin: 20px 0 40px;
}

.dtd-main {
    flex: 1;
    max-width: 972px;
    width: 100%;
    min-width: 0;
}

.dtd-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 卡片通用样式 ===== */
.dtd-card,
.dtd-sidebar-sss {
    background: #fff;
    overflow: hidden;
}

.dtd-card {
    border: 1px solid #edf2f7;
    box-shadow: var(--card-shadow);
}

.dtd-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #eff3f8;
    background: #fefefe;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text);
}

.dtd-sidebar-sss {
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dtd-sidebar-sss:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.2);
}

.dtd-sss-link {
    display: block;
    width: 100%;
}

.dtd-sss-img {
    width: 100%;
    min-height: 96px;
    display: block;
    object-fit: cover;
}

/* ===== 统计栏 ===== */
.dtd-stats-bar {
    background: #fff;
    border: 1px solid #eef2f8;
    border-radius: var(--border-radius-card);
    padding: 8px 20px;
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dtd-stats-bar .stat-num {
    color: #ff9900;
    font-weight: 700;
    margin: 0 2px;
}

/* ===== 搜索框 ===== */
.dtd-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--gray-bg);
    border-radius: 48px;
    border: 1px solid var(--gray-border);
    transition: var(--transition-default);
}

.dtd-search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fff;
}

.dtd-search-input {
    width: 240px;
    height: 32px;
    padding: 0 16px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    border-radius: 48px 0 0 48px;
    color: var(--dark-text);
}

.dtd-search-input::placeholder {
    color: #94a3b8;
}

.dtd-search-btn {
    height: 32px;
    padding: 0 20px;
    background: linear-gradient(105deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 48px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    margin: 3px 3px 3px 0;
    letter-spacing: 0.5px;
}

.dtd-search-btn:hover {
    background: linear-gradient(105deg, var(--primary-dark), var(--primary-darker));
    transform: scale(0.97);
}

/* ===== 可爱大眼睛动画 ===== */
.cute-head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgb(42 178 79 / 60%);
    border-radius: 60px;
    padding: 4px 14px 6px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 240, 0.8);
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s;
    margin: 0 4px 0 auto;
    flex-shrink: 0;
}

.cute-head:hover {
    transform: scale(1.02);
    background: rgb(28 50 83);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.eye-unit {
    position: relative;
    width: 24px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eyeball-white {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #fff9ef;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pupil {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #2f2e2e;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -6px;
    animation: lookUpDown 2.8s infinite ease-in-out;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
}

.pupil::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 3px;
    opacity: 0.9;
}

@keyframes lookUpDown {
    0%,
    100% {
        top: 35%;
        transform: translateX(-50%) translateY(0);
    }
    20% {
        top: 25%;
    }
    40%,
    80% {
        top: 50%;
    }
    60% {
        top: 70%;
    }
}

.eye-unit:first-child .pupil {
    animation-duration: 2.6s;
    animation-delay: 0s;
}

.eye-unit:last-child .pupil {
    animation-duration: 2.8s;
    animation-delay: 0.2s;
}

/* ===== 标签组件 - 统一形状，差异化颜色 ===== */
[class^="dtd-tag-"] {
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dtd-tag-blue-border {
    background: var(--blue-light-bg);
    color: var(--blue-light-text);
    padding: 0 5px;
    border: 1px solid #aaadfe;
}

.dtd-tag-green-border {
    background: #e8f5e9;
    color: #047857;
    padding: 0 5px;
    border: 1px solid #28a745;
    border-radius: 10px;
}
.dtd-tag-green-border a {
    border-color: #28a745;
    color: #28a745;
    text-decoration: none;
}

.dtd-tag-bajidou-border {
    background: #00cfdf;
    color: #fff;
    padding: 0 5px;
}

.dtd-tag-green-solid {
    background: var(--success);
    color: white;
    padding: 0 5px;
}

.dtd-tag-orange-border {
    background: #fff7ed;
    color: #c2410c;
    padding: 0 5px;
}

.dtd-tag-blue-solid {
    background: var(--primary);
    color: #fff;
    cursor: help;
}

.dtd-tag-purple-solid {
    background: var(--purple);
    color: #fff;
    padding: 0 5px;
}

.dtd-new-tag {
    background: var(--danger);
    color: #fff;
    padding: 2px 8px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
}

/* ===== 选项卡 ===== */
.dtd-tab-bar {
    display: flex;
    background: #fff;
    border: 1px solid #eef2f8;
    border-bottom: none;
    gap: 6px;
    padding: 0 10px 6px;
}

.dtd-tab-item {
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: var(--transition-default);
}

.dtd-tab-item a {
    text-decoration: none;
    color: #5b6e8c;
    display: block;
}

.dtd-tab-item:hover {
    background: var(--gray-bg);
    border-radius: 12px 12px 0 0;
}

.dtd-tab-item:hover a {
    color: var(--blue-light-text);
}

.dtd-tab-item.active {
    border-bottom-color: var(--primary);
}

.dtd-tab-item.active a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 问题列表项 ===== */
.dtd-question-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f4fa;
    gap: 16px;
    transition: background 0.15s;
}

.dtd-question-item:hover {
    background: #f1f1f1;
}

.dtd-question-item:last-child {
    border-bottom: none;
}

.dtd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #eef2ff;
    cursor: pointer;
}

.dtd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dtd-question-content {
    flex: 1;
    min-width: 0;
}

.dtd-question-title {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--dark-text);
}

.dtd-question-title a.title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.dtd-question-title a.title-link:hover {
    color: var(--primary);
}

.dtd-views {
    font-size: 13px;
    color: var(--gray-text-light);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    font-weight: 500;
    background: var(--gray-bg);
    padding: 2px 10px;
    border-radius: 30px;
}

.dtd-question-info {
    font-size: 12px;
    color: var(--gray-text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dtd-question-info a.info-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.dtd-question-info a.info-link:hover {
    color: var(--primary);
}

/* ===== Tooltip ===== */
.dtd-tooltip {
    position: relative;
    cursor: pointer;
    padding: 0 5px;
}

.dtd-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(51, 51, 51, 0.82);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    width: 200px;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: none;
    z-index: 9999;
    text-align: left;
    line-height: 1.4;
}

.dtd-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== 用户卡片 ===== */
.user-card {
    position: fixed;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 280px;
    padding: 16px;
    z-index: 1000;
    transition: opacity 0.15s, visibility 0.15s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-size: 13px;
}

.user-card.show {
    opacity: 1;
    visibility: visible;
}

.user-card-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef2ff;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-info {
    flex: 1;
}

.user-card-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.user-card-role {
    font-size: 10px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 30px;
    padding: 2px 8px;
    font-weight: 500;
}

.user-card-reg {
    margin-top: 6px;
    color: #5b6e8c;
    font-size: 11px;
}

.user-card-stats {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f0f2f8;
    padding-top: 8px;
}

.user-card-stats div {
    flex: 1;
    text-align: center;
}

.user-card-stats .stat-num-card {
    font-weight: 800;
    color: var(--accent-orange);
    font-size: 16px;
}

.user-card-stats .stat-label {
    font-size: 10px;
    color: var(--gray-text-light);
}

/* ===== 侧边栏按钮组 (统一样式) ===== */
.dtd-sidebar-btn-blue,
.dtd-sidebar-btn-cyan,
.help-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 60px;
    transition: var(--transition-default);
    min-width: 150px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    color: white;
}

.dtd-sidebar-btn-blue,
.dtd-sidebar-btn-cyan {
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 5px;
    display: block;
    margin: 10px;
    text-align: center;
}

.dtd-sidebar-btn-blue a,
.dtd-sidebar-btn-cyan a {
    text-decoration: none;
    color: white;
    display: block;
}

.dtd-sidebar-btn-blue {
    background: linear-gradient(95deg, var(--primary), var(--primary-darker));
}

.dtd-sidebar-btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.dtd-sidebar-btn-cyan {
    background: linear-gradient(95deg, var(--secondary), var(--secondary-dark));
}

.dtd-sidebar-btn-cyan:hover {
    transform: translateY(-2px);
}

.help-btn-link {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
}

.help-btn-link:last-child {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.help-btn-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.25);
    color: white;
}

/* ===== 侧边栏下载区域 ===== */
.dtd-sidebar-download {
    padding: 16px 16px 20px;
    text-align: center;
    border-top: 1px solid #edf2f7;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    text-align: left;
}

.user-avatar-square {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--gray-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-avatar-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-info-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-info-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-default);
    line-height: 1.3;
}

.user-info-links a:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
}

.user-info-links a:first-child:hover {
    color: var(--primary);
}

.user-info-links a:last-child {
    font-size: 13px;
    color: var(--gray-text-light);
}

.user-info-links a:last-child:hover {
    color: #dc2626;
}

.dtd-sidebar-download-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-text);
}

.dtd-sidebar-download-stars {
    font-size: 12px;
    color: var(--warning);
    margin-bottom: 12px;
}

.dtd-sidebar-download-btn {
    display: inline-block;
    padding: 3px 28px;
    background: #f1f5f9;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
    transition: var(--transition-default);
    text-decoration: none;
}

.dtd-sidebar-download-btn:hover {
    background: #e6edf5;
    border-color: #cbd5e1;
}

.dtd-side-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f4fa;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dtd-side-item:last-child {
    border-bottom: none;
}

.dtd-side-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #eef2ff;
}

.dtd-side-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtd-side-text a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}

.dtd-side-text a:hover {
    color: var(--primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    width: 100%;
}

.dtd-side-date {
    font-size: 11px;
    color: #7e8b9f;
}

.view-count {
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 500;
    background: #fff7ed;
    padding: 2px 8px;
    border-radius: 30px;
    white-space: nowrap;
    margin-left: 8px;
}

.dtd-text-box {
    padding: 6px 18px 18px 18px;
}

.dtd-text-box h4 {
    font-size: 13px;
    margin: 16px 0 8px 0;
    color: var(--dark-text);
    font-weight: 600;
}

.dtd-text-box ul {
    list-style: none;
    font-size: 12px;
    color: var(--gray-text);
}

.dtd-text-box li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f2f8;
}

.dtd-text-box li:hover {
    color: var(--primary);
}

.dtd-zhanwei-1 {
    margin-bottom: 20px;
}

/* ===== 弹窗 ===== */
.help-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}

.help-modal-mask.active {
    visibility: visible;
    opacity: 1;
}

.help-modal-container {
    background: #fff;
    width: 440px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 30px 45px -15px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 32px 28px 38px;
    text-align: center;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.help-modal-mask.active .help-modal-container {
    transform: scale(1);
}

.help-modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    color: #8a99b4;
    background: transparent;
    border: none;
    line-height: 1;
    padding: 0;
}

.help-modal-close:hover {
    color: #2a60b2;
}

.help-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.help-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.help-modal-desc {
    font-size: 14px;
    color: #5b6e8c;
    margin-bottom: 28px;
}

.help-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ===== 文章详情区域 ===== */
.article-wrapper {
    padding: 20px;
}

.article-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f8;
}

.article-meta {
    font-size: 12px;
    margin-bottom: 20px;
    background-color: #eaf4ff;
    padding: 6px;
    border-radius: 5px;
}

.article-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.community-badge {
    background-color: var(--success);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    white-space: nowrap;
}

.article-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.3;
    margin: 0;
}

.article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content img, .article-content iframe{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border: 10px solid #eee;
    border-radius: 10px;
    aspect-ratio: attr(width) / attr(height);
}
.article-content img:not([src]) {
    visibility: hidden;
}
.article-stats-right {
    display: flex;
    gap: 16px;
    color: var(--gray-text-light);
    font-size: 14px;
    white-space: nowrap;
}

.article-stats-right span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== 特殊按钮徽章（icon-bbtnn） ===== */
.icon-bbtnn {
    position: relative;
    display: inline-block;
    background-color: #f0f2f5;
    color: #646464;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #dcdfe6;
    transition: var(--transition-default);
    cursor: pointer;
}

.icon-bbtnn:hover {
    background-color: #e4e7ed;
    border-color: #c0c4cc;
}

.icon-bbtnn .badgeee {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background-color: #3291f6;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    border-radius: 50%;
    padding: 0 2px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: none;
}

/* ===== 分页样式 ===== */
.ds-paginator {
    text-align: center;
    margin: 30px 0;
    font-size: 0;
}

.ds-paginator a,
.ds-paginator .ds-current {
    display: inline-block;
    font-size: 14px;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition-default);
    background-color: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    min-width: 38px;
    text-align: center;
}

.ds-paginator a:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ds-paginator .ds-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    cursor: default;
    pointer-events: none;
}

.ds-paginator a:first-child,
.ds-paginator a:last-child {
    font-weight: 500;
    letter-spacing: 1px;
    background-color: #fff;
    border-color: #d1d5db;
}

.ds-paginator a:first-child:hover,
.ds-paginator a:last-child:hover {
    background-color: #f3f4f6;
}

.ds-paginator span.ds-disabled {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 30px;
    background-color: #f1f3f5;
    color: #adb5bd;
    border: 1px solid #e9ecef;
    cursor: not-allowed;
}

/* ===== 提示框 ===== */
.alert-danger1 {
    background-color: #fbe1e3;
    border-color: #fbe1e3;
    color: #e73d4a;
    margin-top: 20px;
}

.alert1 {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.question-panel {
    display: none;
}

.question-panel.active-panel {
    display: block;
}

/* ===== 响应式设计 ===== */
@media (max-width: 767px) {
    .dtd-search-wrapper {
        display: none !important;
    }

    .dtd-container {
        flex-direction: column;
        gap: 10px;
        margin: 10px 0 0;
    }

    .dtd-sidebar {
        width: 100%;
        gap: 10px;
        order: 1; 
    }

    .dtd-question-item {
        flex-wrap: wrap;
        padding: 18px 5px;
    }

    .dtd-views {
        display: none;
    }

    .dtd-stats-bar {
        font-size: 11px;
        gap: 12px;
        margin-bottom: 10px;
    }

    .dtd-tab-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .user-card {
        width: 260px;
        left: 10px !important;
        right: 10px !important;
    }

    .dtd-zhanwei-1 {
        margin-bottom: 10px;
    }

    /* 可爱眼睛响应尺寸 */
    .cute-head {
        padding: 2px 10px 4px 10px;
        gap: 6px;
    }

    .eyeball-white {
        width: 18px;
        height: 18px;
    }

    .pupil {
        width: 10px;
        height: 10px;
    }

    .pupil::after {
        width: 3px;
        height: 3px;
        top: 1.5px;
        left: 2.5px;
    }

    .eye-unit {
        width: 20px;
        height: 24px;
    }

    /* 文章响应 */
    .article-title {
        font-size: 13px;
    }

    .article-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-stats-right {
        display: none;
    }
    
    .help-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .help-btn-link {
        width: 100%;
    }

    .help-modal-container {
        padding: 28px 20px 32px;
    }
    
    .cute-head {
        padding: 2px 8px;
    }
    
    .ds-paginator a,
    .ds-paginator .ds-current {
        padding: 6px 10px;
        margin: 0 2px;
        font-size: 13px;
        min-width: 32px;
    }
}
