html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
    background: #f8f9fc;
}
.detail-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* 左侧面板：只保留面板内滚动，不产生额外滚动条 */
.detail-panel-wrap {
    width: 450px;
    min-width: 450px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #e6e8ee;
    box-shadow: 0 0 12px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

/* --------------------------
   重点：右侧高质感晕染背景
   -------------------------- */
.detail-image-wrap {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
    background-color: #f8f9fc;
    background-image:
        radial-gradient(circle at 25% 20%, rgba(236, 175, 134, 0.95) 0%, transparent 55%),
        radial-gradient(circle at 75% 80%, rgba(53, 124, 206, 0.95) 0%, transparent 55%),
        radial-gradient(circle at 80% 25%, rgba(255, 235, 200, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 20% 75%, rgba(230, 210, 255, 0.25) 0%, transparent 50%);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
}

/* 给背景加一层柔光滤镜，强化朦胧感 */
.detail-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(110%);
    pointer-events: none;
}

/* 图片区域顶部统计条 */
.detail-image-stats {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    display: flex;
    gap: 20px;
    padding: 1px 2px;
    backdrop-filter: blur(12px);
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.detail-image-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    user-select: none;
}
.detail-image-stat-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e6e8ee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.detail-image-stat-item:active {
    transform: translateY(0);
    background: rgba(240, 242, 247, 0.95);
}
.detail-image-stat-item svg {
    width: 16px;
    height: 16px;
    stroke: #5c6cff;
    flex-shrink: 0;
}

/* 图片层级要在背景滤镜之上 */
.detail-image-wrap .detail-page-img-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    top:10px;
    z-index: 1;
    flex-wrap: nowrap;
    flex-direction: column;
    padding-top: 60px;
    padding-right: 200px;
    box-sizing: border-box;
}

/* 标题+主图容器 */
.detail-img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: calc(100% - 60px);
}

/* 主图标题 */
.detail-main-title {
    width: 100%;
    text-align: center;
    padding-bottom: 16px;
    flex-shrink: 0;
}

.detail-main-title h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* 左侧略缩图条 */
.detail-thumb-strip {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}
.detail-thumb-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.detail-thumb-item:hover {
    opacity: 0.9;
    border-color: rgba(148, 204, 16, 0.5);
}
.detail-thumb-item.active {
    opacity: 1;
    border-color: #0fbe44;
}
.detail-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detail-image-wrap .detail-page-img {
    max-width: calc(100% - 120px);
    max-height: calc(100vh - 160px);
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

/* 操作面板内部样式 */
.detail-panel {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 可滚动的内容区域 */
.detail-panel-inner {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}
.detail-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #5c6cff;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f0f2f5;
    letter-spacing: 2px;
}

/* 模块标题 */
.detail-section {
    margin-bottom: 14px;
    flex-shrink: 0;
}
.detail-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 提示词盒子 */
.detail-prompt-box {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    flex: 1;
    min-height: 60px;
    max-height: none;
    overflow-y: auto;
    border: 1px solid #eef1f8;
    display: flex;
    flex-direction: column;
}

/* 提示词分析区域 */
.prompt-analysis-section {
    background: #ffffff;
    border-radius: 12px;
    padding-top: 16px;
    margin-bottom: 16px;
    border: 1px solid #eef1f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.analysis-item {
    margin-bottom: 16px;
}

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

.analysis-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.analysis-title svg {
    width: 14px;
    height: 14px;
    stroke: #5c6cff;
    flex-shrink: 0;
}

.analysis-content {
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
    padding-left: 22px;
    word-break: break-word;
}

.detail-prompt-text {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
}

.style-content p {
    text-indent: 2em;
}

/* 操作按钮 */
.detail-actions-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.detail-action-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
}
.detail-action-btn:hover {
    background: #f8f9fc;
    border-color: #d1d7e3;
}
.detail-action-btn.primary {
    background: #5c6cff;
    border-color: #5c6cff;
    color: #fff;
}
.detail-action-btn.primary:hover {
    background: #4a5aff;
}
.detail-action-btn.active {
    background: #5c6cff;
    border-color: #5c6cff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(92, 108, 255, 0.3);
    transform: translateY(-1px);
}
.detail-action-btn.active svg {
    stroke: #fff;
}

/* 参数区 */
.detail-params {
    margin-bottom: 0;
    flex-shrink: 0;
}
.detail-param-row {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}
.detail-param-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-param-label {
    font-size: 13px;
    color: #6b7280;
}
.detail-param-value {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8f9fc;
    border-radius: 6px;
    border: 1px solid #e6e8ee;
}
.param-minus, .param-plus {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.param-minus:hover, .param-plus:hover {
    background: #eef1f8;
}
.param-num {
    font-size: 13px;
    color: #222;
    padding: 0 8px;
}
.usage-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f8;
    color: #2c5282;
    border-radius: 16px;
    font-size: 13px;
    margin: 4px 4px 4px 0;
}
.param-select {
    font-size: 12px;
    color: #333;
    background: #f8f9fc;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    min-width: 80px;
}
.param-select:hover {
    background: #eef1f8;
}
.param-select:focus {
    border-color: #5c6cff;
}

/* 底部生成栏 - 固定在左侧面板底部 */
.detail-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 20px 18px;
    border-top: 1px solid #f0f2f5;
    flex-shrink: 0;
    background: #ffffff;
}
.detail-model-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8f9fc;
    border: 1px solid #e6e8ee;
}
.detail-model-select:hover {
    background: #eef1f8;
}
.detail-generate-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    background: #5c6cff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(92, 108, 255, 0.25);
}
.detail-generate-btn:hover {
    background: #4a5aff;
    box-shadow: 0 6px 16px rgba(92, 108, 255, 0.35);
}

/* 右侧底部相关推荐横向滚动条 - 已迁移到右侧固定面板 */
/* ========== 相关推荐 - 右侧固定面板 ========== */
.detail-related-fixed {
    width: 220px;
    min-width: 220px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-left: 1px solid #e6e8ee;
    box-shadow: -2px 0 12px rgba(0,0,0,0.04);
    position: relative;
    z-index: 100;
    transition: width 0.3s ease, min-width 0.3s ease;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eef1f8;
    user-select: none;
    flex-shrink: 0;
    background: #fff;
}

.related-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.related-toggle {
    font-size: 18px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.detail-related-fixed.collapsed .related-toggle {
    transform: rotate(-90deg);
}

.detail-related-fixed.collapsed .related-content {
    display: none;
}

.related-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    position: relative;
    z-index: 100;
}

.related-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    background: #f8f9fc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
}

.relatedzh {
    display: none;
    position: absolute;
    left: -52px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    background: #5c6cff;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(92,108,255,0.3);
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.detail-related-fixed.collapsed {
    width: 60px;
    min-width: 60px;
}

.detail-related-fixed.collapsed .related-header,
.detail-related-fixed.collapsed .related-content {
    display: none;
}

.detail-related-fixed.collapsed .relatedzh {
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #d4d2d2;
}

.related-item img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
    filter: none !important;
    opacity: 1 !important;
}

.related-item-title {
    width: 180px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding: 8px 6px;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff;
}

.sidebar-logo {
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 1px;
    background: linear-gradient(to right, rgb(240, 185, 33), rgb(9, 123, 199), rgb(240, 185, 33));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 折叠收起时的样式 */
.analysis-item .analysis-content {
    display: none;
}

/* 展开时的样式 */
.analysis-item.active .analysis-content {
    display: block;
}

/* 箭头旋转动画 */
.analysis-item .arrow-icon {
    transition: transform 0.2s ease;
}
.analysis-item.active .arrow-icon {
    transform: rotate(180deg);
}


h2, h3 {
    font-size: 14px;
    font-weight: 500;
}