/**
 * 帖子生成器样式 - Cinematic Enterprise Luxury
 * 电影质感企业奢华设计
 */

/* ===================================
   主应用布局
   =================================== */
#main-app {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* 导航页面容器 */
.nav-page {
    display: none;
}

.nav-page.active {
    display: block;
}

/* ===================================
   生成器容器布局
   =================================== */
#writing-page,
#tools-page,
#profile-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
}

.generator-page {
    min-height: 100%;
    padding: 24px;
    padding-bottom: 40px;
}

.generator-container {
    max-width: 960px;
    margin: 0 auto;
}

.generator-content {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    min-height: 400px;
}

/* ===================================
   头部导航 - Minimal Cinematic
   =================================== */
.generator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.generator-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
}

.generator-title-icon {
    font-size: 26px;
    opacity: 0.9;
}

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

/* ===================================
   工作流程图 - Cinematic Progress
   =================================== */
.workflow {
    padding: 28px 32px;
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    cursor: default;
    transition: var(--transition-smooth);
}

.workflow-step.accessible {
    cursor: pointer;
}

.workflow-step.accessible:hover {
    transform: translateY(-4px);
}

.step-node {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg-muted);
    border: 2px solid var(--border-light);
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.workflow-step.current .step-node {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), var(--shadow-md);
}

.workflow-step.completed .step-node {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.step-label {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition-smooth);
}

.workflow-step.current .step-label {
    color: var(--text-primary);
}

.workflow-step.completed .step-label {
    color: var(--success);
}

.step-skippable {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.6;
}

/* 连接线 */
.step-connector {
    position: absolute;
    top: 26px;
    left: calc(50% + 26px);
    width: calc(100% - 52px);
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.workflow-step.completed .step-connector {
    background: var(--success);
}

/* ===================================
   主页面 - 数据源选择
   =================================== */
.home-page {
    padding: 20px 0;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title span {
    font-size: 32px;
}

/* 开始创作区块 */
.start-creating-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
}

.start-creating-section .section-header {
    margin-bottom: 32px;
}

.start-creating-section .section-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.start-creating-section .section-emoji {
    font-size: 28px;
}

.start-creating-section .section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.start-creating-section .section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    font-weight: 300;
}

/* 数据源网格 */
.source-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 数据源卡片 - 新设计 */
.source-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.source-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 默认卡片悬停 */
.source-card-default:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* 橙色卡片 - TopHub */
.source-card-orange:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

.source-card-orange .card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.source-card-orange:hover .card-gradient {
    opacity: 1;
}

/* 紫色卡片 - 领域趋势 */
.source-card-purple:hover {
    border-color: rgba(168, 85, 247, 0.5);
}

.source-card-purple .card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(168, 85, 247, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.source-card-purple:hover .card-gradient {
    opacity: 1;
}

/* 卡片箭头 */
.card-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.3s ease;
}

.source-card:hover .card-arrow {
    opacity: 1;
}

.source-card-orange:hover .card-arrow {
    color: #f97316;
}

.source-card-purple:hover .card-arrow {
    color: #a855f7;
}

/* 图标盒子 */
.source-icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.source-icon-box.source-icon-orange {
    background: rgba(249, 115, 22, 0.15);
}

.source-icon-box.source-icon-purple {
    background: rgba(168, 85, 247, 0.15);
}

.source-icon {
    font-size: 26px;
    line-height: 1;
}

.source-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.source-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.source-card.selected {
    border-color: var(--accent);
    background: rgba(240, 90, 74, 0.08);
}

/* 底部统计区域 */
.home-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    flex: 1;
    padding: 20px 0;
}

.stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 32px;
}

.stat-platforms {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.stat-platforms span {
    transition: color 0.2s ease;
    cursor: default;
}

.stat-platforms span:hover {
    color: var(--text-secondary);
}

/* 活跃任务卡片 */
.active-task-card {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.active-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-primary);
}

.active-task-step {
    color: var(--accent);
    font-weight: 500;
}

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

/* ===================================
   内容区块 - Content Section
   =================================== */
.content-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.content-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.content-section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===================================
   趋势页面 - Trends Page
   =================================== */
.trends-page {
    padding: 20px 0;
}

/* Tab 导航 */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.tab {
    flex: 1;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    background: var(--accent);
    color: var(--text-primary);
}

/* 领域预设选择器 */
.preset-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.preset-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

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

.preset-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.preset-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(240, 90, 74, 0.1);
}

.preset-btn.active {
    color: var(--text-primary);
    background: var(--accent);
    border-color: var(--accent);
}

/* 小时时间轴 */
.hour-timeline {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.timeline-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.timeline-scroll::-webkit-scrollbar {
    height: 4px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: var(--bg-muted);
    border-radius: 2px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.hour-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    min-width: 65px;
}

.hour-btn:hover:not([disabled]) {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.hour-btn.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.hour-btn.active .hour-time,
.hour-btn.active .hour-label {
    color: #ffffff;
}

.hour-btn.no-data {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(241, 245, 249, 0.5);
}

.hour-btn.current {
    border-width: 2px;
    border-color: #f59e0b;
}

.hour-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.hour-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.timeline-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 16px;
}

/* 趋势内容区 */
.trends-content {
    min-height: 300px;
}

/* 趋势区块 */
.trends-section {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-hint {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.section-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.overview-content {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 3px solid #f59e0b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-left: 3px solid #f59e0b;
}

/* 话题列表 */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topic-item {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topic-item:hover {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.topic-item.selected {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.topic-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.topic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.topic-score {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.topic-score.score-high {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.topic-score.score-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.topic-score.score-low {
    background: rgba(241, 245, 249, 0.8);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.topic-field {
    margin-top: 12px;
    padding-left: 46px;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 8px;
}

.field-value {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.direction-list {
    margin-top: 8px;
}

.direction-item {
    margin: 6px 0;
    padding-left: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
}

.direction-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

.topic-link {
    margin-top: 10px;
    padding-left: 46px;
}

.topic-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 158, 11, 0.3);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.topic-link-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.topic-source {
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding-left: 46px;
}

.source-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(241, 245, 249, 0.8);
    color: #475569;
    border-radius: var(--radius-full);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.topic-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: flex-end;
}

/* 话题分类 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.category-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: rgba(241, 245, 249, 0.8);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* 分类颜色方案 - 浅色玻璃风格 */
.category-card:nth-child(6n+1) .category-title { color: #0284c7; }
.category-card:nth-child(6n+1) .category-tag {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.2);
}

.category-card:nth-child(6n+2) .category-title { color: #059669; }
.category-card:nth-child(6n+2) .category-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
}

.category-card:nth-child(6n+3) .category-title { color: #d97706; }
.category-card:nth-child(6n+3) .category-tag {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
}

.category-card:nth-child(6n+4) .category-title { color: #db2777; }
.category-card:nth-child(6n+4) .category-tag {
    background: rgba(236, 72, 153, 0.1);
    color: #be185d;
    border-color: rgba(236, 72, 153, 0.2);
}

.category-card:nth-child(6n+5) .category-title { color: #7c3aed; }
.category-card:nth-child(6n+5) .category-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
    border-color: rgba(139, 92, 246, 0.2);
}

.category-card:nth-child(6n+6) .category-title { color: #dc2626; }
.category-card:nth-child(6n+6) .category-tag {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

/* 页面操作按钮 */
.page-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.action-left,
.action-right {
    display: flex;
    gap: 12px;
}

/* 旧版 trends 兼容 */
.trends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.trends-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--text-primary);
}

.trend-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px
    cursor: pointer;
    transition: var(--transition-smooth);
}

.trend-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.trend-card.selected {
    border-color: var(--accent);
    background: rgba(240, 90, 74, 0.05);
}

.trend-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.trend-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.trend-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.trend-card-meta span {
    font-size: 13px;
    color: var(--text-muted);
}

.trend-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.trend-card-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

/* ===================================
   内容生成页面
   =================================== */
.content-input-area {
    margin-bottom: 24px;
}

.content-input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.content-textarea {
    width: 100%;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    transition: var(--transition-smooth);
}

.content-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-focus);
}

.content-textarea::placeholder {
    color: var(--text-muted);
}

/* 生成选项 */
.generation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.option-group {
    flex: 1;
    min-width: 200px;
}

.option-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.option-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.option-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* 内容预览卡片 */
.content-preview {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.content-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.content-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.content-preview-body {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ===================================
   版本选择器
   =================================== */
.version-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.version-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.version-tab:hover {
    color: var(--text-secondary);
}

.version-tab.active {
    background: var(--primary);
    color: var(--text-inverse);
}

/* ===================================
   爆款验证/优化页面
   =================================== */
.optimization-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.optimization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.optimization-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 评分卡片 */
.score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.score-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.score-card-value {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.score-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* 建议列表 */
.suggestions-list {
    list-style: none;
}

.suggestion-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.suggestion-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.suggestion-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   图片生成页面
   =================================== */
.image-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.image-preview {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.image-preview-placeholder {
    color: var(--text-muted);
    font-size: 48px;
}

.prompt-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.prompt-display-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.prompt-display-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   按钮组
   =================================== */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-group-center {
    justify-content: center;
}

.button-group-right {
    justify-content: flex-end;
}

/* ===================================
   加载状态
   =================================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

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

.loading-text {
    font-size: 15px;
    color: var(--text-secondary);
}

.loading-subtext {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

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

/* ===================================
   空状态
   =================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
}

/* ===================================
   写作风格选择器
   =================================== */
.style-selector {
    margin-bottom: 24px;
}

.style-selector-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.style-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.style-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.style-tab:hover {
    color: var(--text-secondary);
}

.style-tab.active {
    background: var(--accent);
    color: var(--text-primary);
}

.style-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.style-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.style-card:hover {
    border-color: var(--border-light);
}

.style-card.selected {
    border-color: var(--accent);
    background: rgba(240, 90, 74, 0.1);
}

.style-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.style-card-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===================================
   历史记录页面
   =================================== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.history-item:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.history-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.history-item-preview {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   PC 侧边栏导航 - Cinematic Sidebar
   =================================== */
.sidebar-nav {
    width: 240px;
    min-width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #1a1d21 0%, #141619 100%);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
}

.sidebar-logo .logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.sidebar-item .nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: var(--accent);
    color: var(--text-primary);
}

.sidebar-item.active .nav-icon,
.sidebar-item.active .nav-label {
    color: var(--text-primary);
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border-subtle);
}

.sidebar-footer .sidebar-item {
    color: var(--text-muted);
}

.sidebar-footer .sidebar-item:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

/* 主内容区域适配侧边栏 */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    overflow-y: auto;
    background: var(--bg-deep);
}

/* ===================================
   手机底部导航 - Cinematic Bottom Nav
   =================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    padding-bottom: var(--safe-area-bottom);
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
}

.bottom-nav-item .nav-icon {
    font-size: 22px;
    transition: all var(--transition-smooth);
}

.bottom-nav-item .nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item.active .nav-icon {
    transform: scale(1.1) translateY(-2px);
}

/* 活动指示器 */
.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* ===================================
   工具页面 - Tools Grid
   =================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px 0;
}

.tool-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tool-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.tool-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.tool-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   个人页面 - Profile
   =================================== */
.profile-content {
    padding: 24px 0;
}

.profile-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-info h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

.profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.profile-menu-item .menu-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.profile-menu-item .menu-value {
    margin-left: auto;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(240, 90, 74, 0.1);
    border-radius: var(--radius-full);
}

.profile-menu-item .menu-arrow {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.profile-menu-item:hover .menu-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.profile-menu-item.danger {
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.2);
}

.profile-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ===================================
   语气模仿器页面
   =================================== */
.voice-mimicker-container {
    padding: 24px 0;
}

.voice-mimicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.voice-mimicker-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--text-primary);
}

.voice-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.voice-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.voice-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.voice-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.voice-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.voice-card-handle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.voice-card-role {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.voice-card-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.voice-card-stat {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===================================
   Tab 导航
   =================================== */
.tab-navigation {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.tab-nav-item {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    text-align: center;
}

.tab-nav-item:hover {
    color: var(--text-secondary);
}

.tab-nav-item.active {
    background: var(--primary);
    color: var(--text-inverse);
}

/* ===================================
   确认弹窗
   =================================== */
/* 遮罩层 - JS 使用 confirm-overlay */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

/* 弹窗内容 - JS 使用 confirm-dialog */
.confirm-overlay .confirm-dialog {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: dialogEnter 0.3s ease;
}

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

.confirm-overlay .confirm-dialog p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* 按钮组 - JS 使用 confirm-actions */
.confirm-overlay .confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 兼容旧样式 - confirm-dialog 单独使用时 */
.confirm-dialog:not(.confirm-overlay .confirm-dialog) {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.confirm-dialog.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog-content {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.confirm-dialog-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-dialog-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===================================
   响应式 - 手机端
   =================================== */
@media (max-width: 768px) {
    /* 隐藏侧边栏 */
    .sidebar-nav {
        display: none;
    }

    /* 显示底部导航 */
    .bottom-nav {
        display: flex;
    }

    /* 主内容无边距 */
    .main-content {
        margin-left: 0;
        padding-bottom: 80px;
    }

    /* 生成器页面 */
    .generator-page {
        padding: 16px;
    }

    .generator-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

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

    /* 工作流程图 */
    .workflow {
        padding: 20px;
    }

    .step-node {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-connector {
        top: 22px;
        left: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    /* 内容区块 */
    .content-section {
        padding: 20px;
    }

    /* 网格布局 */
    .source-grid,
    .tools-grid,
    .voice-cards-grid {
        grid-template-columns: 1fr;
    }

    /* 首页开始创作区块 */
    .start-creating-section {
        padding: 24px;
    }

    .start-creating-section .section-title {
        font-size: 24px;
    }

    .start-creating-section .section-desc {
        font-size: 14px;
    }

    /* 首页统计 */
    .home-stats {
        flex-direction: column;
        gap: 0;
    }

    .stat-item {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

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

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 36px;
    }

    /* 个人页面 */
    .profile-card {
        padding: 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   内容页 - 输入区域
   =================================== */
.content-page,
.optimize-page,
.prompt-page,
.image-page {
    padding: 20px 0;
}

.input-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.input-header {
    margin-bottom: 16px;
}

.input-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.input-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.input-textarea {
    min-height: 300px;
}

.input-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ===================================
   语气选择器
   =================================== */
.voice-style-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.voice-style-header {
    margin-bottom: 16px;
}

.voice-style-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.voice-style-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.voice-style-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.voice-style-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.voice-style-item:hover {
    border-color: var(--border-light);
}

.voice-style-item.selected {
    border-color: var(--accent);
    background: rgba(240, 90, 74, 0.08);
}

.voice-style-item.default-style {
    border-width: 2px;
}

.voice-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.voice-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.voice-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-role {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 行布局 */
.voice-row {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    align-items: stretch;
}

.voice-row .voice-style-item.default-style {
    flex-shrink: 0;
    margin-top: 0;
}

.voice-row .voice-column {
    flex: 1;
}

/* 三列布局（旧版，保留兼容） */
.voice-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

/* 水平三列布局 - 项目按行排列 */
.voice-columns-horizontal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.voice-columns-horizontal .voice-column {
    width: 100%;
}

.voice-column {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
}

.voice-column-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.voice-column-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
}

.voice-column-items .voice-style-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 10px;
    flex: 0 0 calc(20% - 7px);
    max-width: calc(20% - 7px);
    min-width: 0;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
}

.voice-column-items .voice-style-item:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(255, 255, 255, 0.8);
}

.voice-column-items .voice-style-item.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

.voice-column-items .voice-style-item .voice-avatar {
    width: 32px;
    height: 32px;
}

.voice-column-items .voice-style-item .voice-name {
    font-size: 12px;
}

.voice-column-items .voice-style-item .voice-role {
    font-size: 10px;
}

.voice-column-empty {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.voice-empty-link {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.voice-empty-link:hover {
    text-decoration: underline;
}

/* ===================================
   内容编辑器
   =================================== */
.content-editor {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.editor-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.editor-label span {
    font-size: 18px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===================================
   评分展示（内容页）
   =================================== */
.score-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.score-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
}

.score-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.score-value {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
}

.score-total {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
}

/* ===================================
   建议区域
   =================================== */
.suggestions {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.suggestions-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.suggestions-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.suggestions-content p {
    margin-bottom: 8px;
}

.suggestions-content ul {
    padding-left: 20px;
}

/* ===================================
   重新生成区域
   =================================== */
.regenerate-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* ===================================
   日志输出
   =================================== */
.log-output {
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 16px;
}

.log-line {
    display: block;
    padding: 2px 0;
}

.log-line.success {
    color: var(--success);
}

.log-line.error {
    color: var(--error);
}

.log-line.warning {
    color: #f59e0b;
}

.log-line.info {
    color: var(--text-secondary);
}

.log-line.highlight {
    color: var(--accent-light);
}

.log-line.emoji {
    color: var(--text-primary);
}

/* ===================================
   优化页 - 预览区域
   =================================== */
.preview-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.preview-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    padding: 16px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

.user-suggestion-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
}

.suggestion-input {
    min-height: 100px;
}

.suggestion-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===================================
   优化页 - 验证报告
   =================================== */
.verification-report {
    margin-bottom: 24px;
}

/* 总分卡片 */
.total-score-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.total-score-card.score-high {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
}

.total-score-card.score-medium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
}

.total-score-card.score-low {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(240, 90, 74, 0.05), rgba(240, 90, 74, 0.02));
}

.score-circle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-muted);
    border: 3px solid var(--accent);
    flex-shrink: 0;
}

.total-score-card.score-high .score-circle {
    border-color: var(--success);
}

.total-score-card.score-medium .score-circle {
    border-color: #f59e0b;
}

.score-number {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 500;
    color: var(--text-primary);
}

.score-max {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 2px;
}

.score-unit {
    font-size: 18px;
    color: var(--text-muted);
    margin-left: 2px;
}

.score-info {
    flex: 1;
}

.score-info .score-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: none;
}

.score-info .score-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* 验证区块 */
.verify-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.verify-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.verify-section .section-icon {
    font-size: 20px;
}

.verify-section .section-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 六维评分网格 */
.score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.score-item-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.score-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.score-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.score-item-value {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
}

.score-item-value.score-high {
    color: var(--success);
}

.score-item-value.score-medium {
    color: #f59e0b;
}

.score-item-value.score-low {
    color: var(--error);
}

.score-item-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.score-item-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.score-item-fill.score-high {
    background: var(--success);
}

.score-item-fill.score-medium {
    background: #f59e0b;
}

.score-item-fill.score-low {
    background: var(--error);
}

.score-item-comment {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 分析网格 */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.analysis-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.analysis-card.strengths {
    border-left: 3px solid var(--success);
}

.analysis-card.weaknesses {
    border-left: 3px solid var(--error);
}

.analysis-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.analysis-icon {
    font-size: 18px;
}

.analysis-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

/* 策略列表 */
.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.strategy-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.strategy-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.strategy-text strong {
    color: var(--text-primary);
}

/* 报告折叠 */
.report-toggle {
    text-align: center;
    margin: 20px 0;
}

.raw-report {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

/* 版本对比区域 */
.version-compare-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.version-content {
    position: relative;
}

.version-pane {
    display: none;
}

.version-pane.active {
    display: block;
}

.original-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    padding: 16px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    max-height: 400px;
    overflow-y: auto;
}

/* 优化说明 */
.optimization-notes {
    margin-top: 16px;
    padding: 16px;
    background: rgba(240, 90, 74, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

.notes-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.notes-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ===================================
   Prompt 页 - 详情区域
   =================================== */
.prompt-details {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-elements {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.detail-elements .detail-label {
    margin-bottom: 10px;
}

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

.element-tag {
    padding: 6px 14px;
    background: rgba(240, 90, 74, 0.1);
    color: var(--accent-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.prompt-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ===================================
   Image 页 - 模式切换
   =================================== */
.image-mode-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.mode-tab {
    flex: 1;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.mode-tab:hover {
    color: var(--text-secondary);
}

.mode-tab.active {
    background: var(--accent);
    color: var(--text-primary);
}

/* Prompt 预览 */
.prompt-preview {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.prompt-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 16px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.prompt-text .text-muted {
    color: var(--text-muted);
    font-style: italic;
}

.prompt-meta {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.ratio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-muted);
}

/* 生成区域 */
.generate-section {
    text-align: center;
    margin: 24px 0;
}

/* 图片结果容器 */
.image-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-result .editor-label {
    align-self: flex-start;
    margin-bottom: 12px;
}

.image-result .image-preview {
    width: 100%;
    max-width: 600px;
}

/* 图片操作 */
.image-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

/* 占位符 */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--bg-muted);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* 搜索模式 */
.search-input-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.search-query-input {
    flex: 1;
    min-height: 60px;
}

.search-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 搜索结果 */
.search-results-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.search-result-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.search-result-item:hover {
    border-color: var(--border-light);
    transform: scale(1.02);
}

.search-result-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 90, 74, 0.3);
}

.search-result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition-smooth);
}

.search-result-item:hover .result-overlay {
    opacity: 1;
}

.result-title {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-source {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.selected-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.selected-image-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* ===================================
   语气模仿器页面
   =================================== */
.voice-mimicker-page {
    padding: 0;
}

.voice-mimicker-page .page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 16px;
}

.voice-mimicker-page .back-btn {
    flex-shrink: 0;
}

/* VM Tab 导航 */
.vm-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.3);
    overflow: hidden;
}

.vm-tab {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
}

.vm-tab:hover {
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.08);
}

.vm-tab.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.vm-content {
    min-height: 300px;
}

/* 市场页面 */
.vm-market {
    padding: 0;
}

.market-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.sort-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* 市场卡片网格 */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* 卡片通用样式 */
.market-card,
.my-prompt-card,
.subscribed-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.market-card:hover,
.my-prompt-card:hover,
.subscribed-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.market-card .card-body,
.my-prompt-card .card-body,
.subscribed-card .card-body {
    padding: 20px;
    cursor: pointer;
}

.market-card .card-header,
.my-prompt-card .card-header,
.subscribed-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-muted);
}

.card-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.card-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-role {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.trait-tag {
    padding: 4px 10px;
    background: rgba(240, 90, 74, 0.1);
    color: var(--accent-light);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}

.card-stats {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-muted);
    border-top: 1px solid var(--border-subtle);
}

/* 按钮样式 */
.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.subscribe-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

.subscribe-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.subscribe-btn.subscribed {
    background: transparent;
    border-color: var(--success);
    color: var(--success);
}

.publish-btn.published {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.owner-badge {
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.public-status {
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
}

/* 我的生成器页面 */
.vm-mine {
    padding: 0;
}

.create-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.create-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.create-section .section-icon {
    font-size: 20px;
}

.create-section .section-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-prefix {
    padding: 12px 0 12px 14px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.username-input {
    flex: 1;
    padding: 12px 14px 12px 4px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.username-input:focus {
    outline: none;
}

.username-input::placeholder {
    color: var(--text-muted);
}

/* 分析进度 */
.analyze-progress {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 20px 0;
}

.analyze-progress.hidden {
    display: none;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

/* 我的列表/订阅列表区块 */
.my-prompts-section,
.subscribed-section {
    margin-bottom: 28px;
}

.my-prompts-section .section-header,
.subscribed-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.my-prompts-section .section-icon,
.subscribed-section .section-icon {
    font-size: 20px;
}

.my-prompts-section .section-title,
.subscribed-section .section-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.my-prompts-grid,
.subscribed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* 空状态 */
.empty-market,
.empty-prompts {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-market p,
.empty-prompts p {
    font-size: 14px;
    margin-bottom: 4px;
}

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

.link-to-market {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.link-to-market:hover {
    text-decoration: underline;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--error);
    font-size: 14px;
}

/* 弹窗样式 */
.prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.prompt-modal.hidden {
    display: none;
}

.prompt-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.prompt-modal .modal-content {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: dialogEnter 0.3s ease;
}

.prompt-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.prompt-modal .modal-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prompt-modal .modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.prompt-modal .modal-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prompt-modal .modal-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.prompt-modal .modal-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.prompt-modal .modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.prompt-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.prompt-modal .modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.prompt-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    font-family: 'Monaco', 'Consolas', monospace;
    background: var(--bg-muted);
    padding: 16px;
    border-radius: var(--radius-md);
}

.public-prompt-notice {
    text-align: center;
    padding: 32px 20px;
}

.notice-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.public-prompt-notice p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.notice-role {
    color: var(--text-primary);
}

.prompt-modal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-muted);
}

/* ===================================
   响应式 - 语气模仿器
   =================================== */
@media (max-width: 768px) {
    .voice-columns {
        grid-template-columns: 1fr;
    }

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

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input-wrapper .btn {
        width: 100%;
    }

    .market-grid,
    .my-prompts-grid,
    .subscribed-grid {
        grid-template-columns: 1fr;
    }

    .input-row {
        flex-direction: column;
    }

    .input-wrapper {
        width: 100%;
    }
}

/* ===================================
   提交页面
   =================================== */
.submit-page {
    padding: 0 20px;
}

.submit-info {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.submit-info-item {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

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

.submit-info-item strong {
    color: var(--text-primary);
}

.twitter-section {
    margin-bottom: 24px;
}

.twitter-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
}

.twitter-icon {
    font-size: 20px;
    font-weight: bold;
}

.final-preview {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.final-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.final-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.final-image img {
    width: 100%;
    height: auto;
    display: block;
}

.submit-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

/* ===================================
   动画
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

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

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}
