/**
 * MDAP / ExWAS Pro 风格主题
 * 主色调: 深蓝 #1E3A5F
 * 强调色/徽章: 金色 #C59A6D
 */

:root {
    /* 主色调 */
    --primary-color: #1E3A5F;
    --primary-light: #2D4A6F;
    --primary-dark: #152A4A;

    /* 徽章色/强调色 */
    --accent-color: #C59A6D;
    --accent-light: #D6B38D;
    --accent-dark: #A47E53;

    /* 中性色 */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --bg-color: #F9FAFB;
    --bg-white: #FFFFFF;

    /* 状态色 */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #1E3A5F;
}

/* 暗色主题 */
body.dark {
    --primary-color: #5B8DB8;
    --primary-light: #7BA8CC;
    --primary-dark: #3D6A8F;

    --accent-color: #D6B38D;
    --accent-light: #E5CBAD;
    --accent-dark: #B89A73;

    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: #374151;
    --bg-color: #111827;
    --bg-white: #1F2937;

    --success-color: #34D399;
    --warning-color: #FBBF24;
    --error-color: #F87171;
    --info-color: #5B8DB8;

    /* Element Plus 暗色覆盖 */
    --el-color-primary: #5B8DB8;
    --el-color-primary-light-3: #7BA8CC;
    --el-color-primary-light-5: #9BC0DD;
    --el-color-primary-light-7: #BCD8EE;
    --el-color-primary-light-9: #DCF0FF;
    --el-color-primary-dark-2: #3D6A8F;
    --el-bg-color: #1F2937;
    --el-bg-color-page: #111827;
    --el-bg-color-overlay: #374151;
    --el-text-color-primary: #E5E7EB;
    --el-text-color-regular: #9CA3AF;
    --el-text-color-secondary: #6B7280;
    --el-text-color-placeholder: #4B5563;
    --el-border-color: #374151;
    --el-border-color-light: #4B5563;
    --el-border-color-lighter: #6B7280;
    --el-fill-color: #374151;
    --el-fill-color-light: #4B5563;
    --el-fill-color-lighter: #6B7280;
    --el-fill-color-blank: #1F2937;
}

body.dark .app-header,
body.dark .sidebar-section,
body.dark .data-content,
body.dark .main-header,
body.dark .el-card,
body.dark .el-dialog,
body.dark .el-dropdown-menu,
body.dark .el-table,
body.dark .el-input__wrapper,
body.dark .el-select__wrapper,
body.dark .filter-card,
body.dark .filter-header {
    background-color: var(--bg-white) !important;
    color: var(--text-primary);
    border-color: var(--border-color) !important;
}

body.dark .el-table th.el-table__cell,
body.dark .el-table tr {
    background-color: var(--bg-white) !important;
    color: var(--text-primary);
}

body.dark .el-menu,
body.dark .el-sub-menu__title,
body.dark .el-menu-item {
    background-color: transparent !important;
    color: var(--text-secondary) !important;
}

body.dark .el-menu-item.is-active {
    color: var(--primary-color) !important;
    background-color: rgba(91, 141, 184, 0.1) !important;
}

body.dark .filter-chip {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.dark .filter-chip.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* 暗色模式 - 下拉菜单和选择框 */
body.dark .el-select-dropdown,
body.dark .el-select-dropdown__item,
body.dark .el-select-dropdown__wrap,
body.dark .el-scrollbar__view,
body.dark .el-popper,
body.dark .el-select-group__wrap {
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
}

body.dark .el-select-dropdown__item {
    color: var(--text-primary) !important;
}

body.dark .el-select-dropdown__item:hover,
body.dark .el-select-dropdown__item.hover {
    background-color: var(--bg-color) !important;
}

body.dark .el-select-dropdown__item.is-selected {
    color: var(--primary-color) !important;
    font-weight: 600;
}

body.dark .el-select-group__title {
    color: var(--primary-color) !important;
}

/* 暗色模式 - 输入框 */
body.dark .el-input__inner,
body.dark .el-textarea__inner {
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark .el-input__inner::placeholder,
body.dark .el-textarea__inner::placeholder {
    color: var(--text-muted) !important;
}

/* 暗色模式 - 按钮 */
body.dark .el-button--default {
    background-color: var(--bg-white) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark .el-button--default:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* 暗色模式 - 标签 */
body.dark .el-tag {
    background-color: var(--bg-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* 暗色模式 - 分割线 */
body.dark .el-divider__text {
    background-color: var(--bg-white) !important;
    color: var(--text-secondary) !important;
}

/* 暗色模式 - 弹出框 */
body.dark .el-popover,
body.dark .el-tooltip__trigger {
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
}

/* 暗色模式 - 表单标签 */
body.dark .el-form-item__label {
    color: var(--text-primary) !important;
}

/* 暗色模式 - 单选/复选框 */
body.dark .el-radio__label,
body.dark .el-checkbox__label {
    color: var(--text-primary) !important;
}

/* 暗色模式 - 警告框 */
body.dark .el-alert {
    background-color: var(--bg-color) !important;
    border-color: var(--border-color) !important;
}

body.dark .el-alert .el-alert__title,
body.dark .el-alert .el-alert__description {
    color: var(--text-primary) !important;
}

/* 暗色模式 - 卡片头 */
body.dark .el-card__header {
    background-color: var(--bg-color) !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* 暗色模式 - 描述列表 */
body.dark .el-descriptions,
body.dark .el-descriptions__cell,
body.dark .el-descriptions__label,
body.dark .el-descriptions__content {
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}


/* 主题切换按钮样式 */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}


/* 覆盖 Element Plus 主题色 */
:root {
    --el-color-primary: #1E3A5F;
    --el-color-primary-light-3: #4A6A8F;
    --el-color-primary-light-5: #8FA8BF;
    --el-color-primary-light-7: #C7D4DF;
    --el-color-primary-light-9: #EEF2F5;
    --el-color-primary-dark-2: #152A4A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    /* 防止 Body 滚动 */
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 加载中 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: var(--primary-color);
}

.loading-icon {
    font-size: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 应用头部 - 白色背景，深色文字 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 0 24px;
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    flex: 0 0 auto;
}

.logo-icon {
    font-size: 0;
    /* 使用文字或 SVG 替代 */
}

.logo-brand-image {
    width: auto;
    height: 32px;
    max-width: 72px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.version-badge {
    font-size: 11px;
    color: #909399;
    margin-left: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border: 1px solid rgba(144, 147, 153, 0.35);
    border-radius: 10px;
    line-height: 1;
    user-select: none;
}

.version-badge:hover {
    color: var(--primary-color);
    border-color: rgba(64, 158, 255, 0.5);
}

/* 头部菜单 */
.header-menu {
    border-bottom: none !important;
    background: transparent !important;
}

.header-menu .el-menu-item {
    font-size: 15px;
    color: var(--text-secondary);
    background: transparent !important;
    height: 60px;
    line-height: 60px;
    border-bottom: 3px solid transparent !important;
    padding: 0 12px;
    margin: 0 8px;
    transition: none;
    /* 移除过渡以匹配专业软件的干脆感 */
}

.header-menu .el-menu-item:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

.header-menu .el-menu-item.is-active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
    font-weight: 600;
}

.header-menu .el-menu-item .el-icon {
    margin-right: 4px;
    font-size: 16px;
    color: inherit;
    /* 跟随文字颜色 */
}

/* 头部右侧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-pricing-button.el-button {
    border-radius: 999px;
    border-color: rgba(16, 185, 129, 0.22);
    color: #0f766e;
    background: #f6fffb;
    font-weight: 700;
    padding: 9px 18px;
}

.header-pricing-button.el-button:hover,
.header-pricing-button.el-button.is-active {
    border-color: var(--success-color);
    color: #ffffff;
    background: var(--success-color);
}

.help-link {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-buttons .el-button {
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.entitlement-badge {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 顶部导航小屏幕响应式适配 */
@media (max-width: 1440px) {
    .header-left {
        gap: 16px;
    }
    .header-menu .el-menu-item {
        font-size: 14px;
        padding: 0 8px;
        margin: 0 4px;
    }
    .header-right {
        gap: 12px;
    }
    .version-badge {
        display: none;
    }
    .user-info .username {
        display: none;
    }
    .header-pricing-button.el-button {
        padding: 8px 12px;
    }
}

@media (max-width: 1800px) {
    .logo-text {
        display: none;
    }
    .header-left {
        gap: 12px;
    }
    .logo {
        gap: 6px;
    }
}

@media (max-width: 1200px) {
    .header-menu .el-menu-item {
        font-size: 14px;
        padding: 0 8px;
        margin: 0 4px;
    }
}

@media (max-width: 1024px) {
    .header-menu .el-menu-item {
        font-size: 13px;
        padding: 0 4px;
        margin: 0 2px;
    }
    .header-menu .el-menu-item .menu-label {
        display: none !important;
    }
    .header-menu .el-menu-item .el-icon {
        display: inline-flex !important;
        margin-right: 0 !important;
        font-size: 18px !important;
    }
}

/* 主布局 */
.app-container {
    height: calc(100vh - 60px);
    display: flex;
    background-color: var(--bg-color);
}

/* 侧边栏 */
.app-aside {
    background: transparent;
    border-right: none;
    padding: 24px;
    width: 320px !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* 步骤指示器 - 金色徽章 */
.step-indicator {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

/* 侧边栏内容 */
.upload-section h4,
.dataset-list h4,
.report-templates h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.data-upload .el-upload-dragger {
    padding: 32px 16px;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    background: #F9FAFB;
}

.data-upload .el-upload-dragger:hover {
    border-color: var(--accent-color);
    background: #FFFBF5;
    /* 极淡的金色背景 */
}

.upload-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* 数据集列表项 */
.dataset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.dataset-item:hover {
    background-color: #F3F4F6;
}

.dataset-item.active {
    background-color: #EFF6FF;
    /* 淡蓝背景 */
    border-color: #BFDBFE;
}

.dataset-item.active .dataset-name {
    color: var(--primary-color);
    font-weight: 600;
}

.dataset-item.active .el-icon {
    color: var(--primary-color);
}

/* 数据集信息 - 溢出处理 */
.dataset-info {
    flex: 1;
    min-width: 0;
    /* 关键：允许 flex 子项收缩 */
    overflow: hidden;
}

.dataset-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dataset-meta {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主内容区 */
.app-main {
    flex: 1;
    padding: 24px 24px 24px 0;
    /* 左侧已有 padding */
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.app-shell-main {
    padding: 0 !important;
}

/* 内容卡片头部 */
.main-header {
    background: #FFFFFF;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-header .el-button-group .el-button {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    height: auto;
}

.main-header .el-button-group .el-button:hover {
    color: var(--primary-color);
}

/* 模拟 Active Tab 下划线 */
.main-header .el-button-group .el-button--primary {
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    position: relative;
}

.main-header .el-button-group .el-button--primary::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* 数据内容区域 */
.data-content {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.workflow-banner-card {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.workflow-banner-card--sticky {
    position: sticky;
    top: -24px;
    z-index: 30;
    margin: -24px -24px 16px;
    padding: 18px 24px 16px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #dbeafe;
    border-radius: 0;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
    box-shadow: none;
}

.workflow-banner-card__body {
    min-width: 280px;
    flex: 1 1 420px;
}

.workflow-banner-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 6px;
}

.workflow-banner-card__description {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.workflow-banner-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

body.dark .workflow-banner-card {
    background: linear-gradient(135deg, rgba(91, 141, 184, 0.16) 0%, rgba(31, 41, 55, 0.98) 100%);
    border-color: rgba(123, 168, 204, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

body.dark .workflow-banner-card--sticky {
    border-bottom-color: rgba(123, 168, 204, 0.35);
    background: linear-gradient(180deg, rgba(49, 78, 114, 0.34) 0%, rgba(31, 41, 55, 0.98) 100%);
    box-shadow: none;
}

body.dark .workflow-banner-card__title {
    color: #dbeafe;
}

body.dark .workflow-banner-card__description {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .workflow-banner-card--sticky {
        top: -24px;
        margin: -24px -24px 16px;
        padding: 16px 20px 14px;
    }

    .workflow-banner-card__actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

.home-page {
    min-height: 100%;
    background: #ffffff;
    color: var(--text-primary);
}

.pricing-page {
    min-height: 100%;
    background: 
        radial-gradient(circle at 80% 10%, hsla(242, 80%, 96%, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, hsla(160, 75%, 94%, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, hsla(270, 70%, 96%, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #f7fafc 0%, #f4f7fb 50%, #f0f7f3 100%);
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-bottom: 60px;
}

.pricing-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .pricing-hero {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 24px;
    }
}

.pricing-main-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.pricing-hero-copy {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #dbeafe;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
}

.pricing-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
}

.pricing-overline {
    margin-top: 18px;
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-hero-title {
    margin: 8px 0 12px;
    color: #0f172a;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.pricing-hero-title span {
    color: #4f46e5;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-hero-subtitle {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* WeChat Sidebar Card */
.pricing-wechat-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.02);
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-wechat-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pricing-wechat-label {
    color: #0d9488;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-wechat-head h2 {
    margin: 4px 0 0 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.pricing-wechat-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
    font-size: 10px;
    font-weight: 700;
}

/* Remark Input */
.pricing-wechat-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-input-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-icon {
    width: 14px;
    height: 14px;
    color: #64748b;
}

.pricing-text-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pricing-text-input:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Chat bubble styling for live preview */
.pricing-wechat-bubble-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bubble-title {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.pricing-wechat-bubble {
    position: relative;
    padding: 12px 14px;
    background: #e9fbf2;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    border-top-left-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-wechat-bubble:hover {
    background: #def7e9;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.pricing-wechat-bubble:active {
    transform: scale(0.98);
}

.bubble-content {
    font-size: 13px;
    font-family: monospace;
    font-weight: 700;
    color: #065f46;
    word-break: break-all;
    user-select: all;
}

.bubble-copy-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bubble-copy-btn:hover {
    background: rgba(16, 185, 129, 0.15);
}

.copy-icon {
    width: 16px;
    height: 16px;
}

/* WeChat QR Frame */
.pricing-wechat-frame {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    background: #ffffff;
    padding: 12px 8px 8px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pricing-wechat-frame img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 12px;
}

.qr-scan-guide {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
}

/* Pulsing QR Code trigger */
@keyframes qr-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.25);
        border-color: rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(79, 70, 229, 0);
        border-color: rgba(79, 70, 229, 0.7);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
        border-color: rgba(79, 70, 229, 0.3);
    }
}

.pricing-wechat-card.qr-pulse-active {
    animation: qr-pulse 1.5s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.85);
}

/* Grid & Cards */
.pricing-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1560px) {
    .pricing-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .pricing-plan-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-plan-card {
    position: relative;
    overflow: hidden;
    padding: 32px 24px;
    min-height: 540px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.01);
    display: flex;
    flex-direction: column;
    transform: translateY(0) translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.pricing-plan-card:hover {
    transform: translateY(-6px) translateZ(0);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.02);
}


.pricing-plan-card.is-selected {
    background: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.12), 0 0 0 2px #4f46e5;
}

.pricing-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.pricing-plan-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.pricing-plan-burst {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
}

.pricing-plan-card h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
}

.pricing-plan-current {
    color: #0f172a;
    font-size: 46px;
    font-weight: 850;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.pricing-plan-current span {
    margin-left: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

.pricing-plan-original {
    margin: 10px 0 6px;
    color: #94a3b8;
    font-size: 13px;
}

.pricing-plan-original span {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.pricing-plan-discount {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0 24px;
}

.pricing-plan-cta {
    width: 100%;
    height: 42px;
    border: none;
    outline: none;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.pricing-plan-cta:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.pricing-plan-cta:active {
    transform: translateY(1px);
}

.pricing-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.pricing-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.5;
}

.pricing-plan-features li span {
    color: #475569;
}

.feature-check {
    width: 16px;
    height: 16px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Card Level Theme Overrides */
.pricing-plan-card--level-1.is-selected {
    box-shadow: 0 30px 60px -15px rgba(71, 85, 105, 0.15), 0 0 0 2px #475569;
}

.pricing-plan-card--level-2.is-selected {
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.15), 0 0 0 2px #6366f1;
}

.pricing-plan-card--level-2 .pricing-plan-cta {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.pricing-plan-card--level-2 .pricing-plan-cta:hover {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.4);
}

.pricing-plan-card--level-2 .pricing-plan-discount {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.pricing-plan-card--level-3 {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 40%), rgba(255, 255, 255, 0.65);
    border-color: rgba(99, 102, 241, 0.25);
}

.pricing-plan-card--level-3:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.pricing-plan-card--level-3.is-selected {
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.25), 0 0 0 2.5px #4f46e5;
}

.pricing-plan-card--level-3 .pricing-plan-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
}

.pricing-plan-card--level-3 .pricing-plan-burst {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.pricing-plan-card--level-3 .pricing-plan-discount {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.pricing-plan-card--level-3 .pricing-plan-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.3);
}

.pricing-plan-card--level-3 .pricing-plan-cta:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.45);
}

.pricing-plan-card--level-4 {
    background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 40%), rgba(255, 255, 255, 0.65);
    border-color: rgba(217, 119, 6, 0.25);
}

.pricing-plan-card--level-4:hover {
    border-color: rgba(217, 119, 6, 0.5);
}

.pricing-plan-card--level-4.is-selected {
    box-shadow: 0 30px 60px -15px rgba(217, 119, 6, 0.25), 0 0 0 2.5px #d97706;
}

.pricing-plan-card--level-4 .pricing-plan-tag {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

.pricing-plan-card--level-4 .pricing-plan-burst {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

.pricing-plan-card--level-4 .pricing-plan-current {
    color: #b45309;
}

.pricing-plan-card--level-4 .pricing-plan-discount {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

.pricing-plan-card--level-4 .pricing-plan-cta {
    background: #0f172a;
    color: #fef3c7;
    box-shadow: 0 10px 20px -8px rgba(15, 23, 42, 0.3);
}

.pricing-plan-card--level-4 .pricing-plan-cta:hover {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.45);
}


/* WeChat QR Code Modal Popup styles */
.pricing-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pricing-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 70px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.04);
    width: 100%;
    max-width: 400px;
    padding: 32px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.pricing-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(148, 163, 184, 0.1);
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 999px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pricing-modal-close:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #0f172a;
}

.close-icon {
    width: 16px;
    height: 16px;
}

.pricing-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 850;
    color: #0f172a;
}

.pricing-modal-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.pricing-modal-remark-box {
    background: #f0fdf4;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.remark-box-label {
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.remark-box-content {
    font-size: 14px;
    font-weight: 800;
    color: #065f46;
    font-family: monospace;
    word-break: break-all;
}

.pricing-modal-qr-container {
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

.pricing-modal-qr-container img {
    display: block;
    width: 240px;
    height: auto;
    border-radius: 14px;
}

.pricing-modal-footer p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

/* Ensure Element Plus messages are on top of the modal overlay */
.el-message {
    z-index: 10000 !important;
}


.home-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 96px;
    text-align: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 28px;
}

.home-hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success-color);
}

.home-hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: #0a192f;
    margin-bottom: 24px;
}

.home-hero-title span {
    color: #2563eb;
}

.home-hero-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.home-page .hero-primary.el-button {
    border-radius: 999px;
    background: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
    font-weight: 600;
}

.home-page .hero-primary.el-button:hover {
    background: #0ea371;
    border-color: #0ea371;
}

.home-page .hero-secondary.el-button {
    border-radius: 999px;
    border-color: #e2e8f0;
    color: #64748b;
    font-weight: 600;
}

.home-hero-visual {
    margin-top: 48px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.visual-header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5f5;
}

.visual-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 24px;
}

.visual-sidebar {
    border-right: 1px solid #f1f5f9;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visual-sidebar .sidebar-line {
    height: 10px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 999px;
}

.visual-sidebar .sidebar-line.short {
    width: 60%;
}

.visual-sidebar .sidebar-pill {
    height: 24px;
    border-radius: 8px;
    background: #f8fafc;
}

.visual-sidebar .sidebar-pill.active {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.visual-sidebar .sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visual-sidebar .sidebar-list span {
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
}

.visual-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visual-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visual-toolbar .toolbar-title {
    height: 14px;
    width: 200px;
    border-radius: 999px;
    background: #f1f5f9;
}

.visual-toolbar .toolbar-action {
    height: 28px;
    width: 96px;
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.08);
}

.visual-chart {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 16px;
}

.chart-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chart-row {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.chart-track {
    position: relative;
    height: 12px;
    display: flex;
    align-items: center;
}

.chart-midline {
    position: absolute;
    left: 50%;
    width: 1px;
    height: 100%;
    background: #e2e8f0;
}

.chart-bar {
    height: 6px;
    border-radius: 999px;
    background: #0a192f;
    width: 35%;
    margin-left: 45%;
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0a192f;
    transform: translateY(-50%);
}

.chart-bar.wide {
    width: 45%;
    margin-left: 40%;
}

.chart-bar.narrow {
    width: 25%;
    margin-left: 50%;
}

.home-feature-grid {
    padding: 80px 24px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-feature-grid .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s ease;
}

.home-feature-grid .feature-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #2563eb;
}

.feature-card .feature-icon.accent {
    color: var(--success-color);
}

.feature-card .feature-icon.dark {
    color: #0a192f;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0a192f;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
}

.home-rigor {
    padding: 88px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.rigor-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.rigor-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(10, 25, 47, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a192f;
    margin-bottom: 20px;
}

.rigor-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0a192f;
}

.rigor-text p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}

.rigor-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.rigor-text li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-weight: 500;
}

.rigor-text li .el-icon {
    color: var(--success-color);
}

.rigor-code {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    color: #cbd5f5;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.code-header {
    display: flex;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.code-header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
}

.code-header span:nth-child(2) {
    background: #f59e0b;
}

.code-header span:nth-child(3) {
    background: #10b981;
}

.code-body p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
}

.code-muted {
    color: #64748b;
}

.code-keyword {
    color: #c084fc;
}

.code-operator {
    color: #60a5fa;
}

.code-fn {
    color: #fcd34d;
}

.code-success {
    margin-top: 16px;
    padding-left: 12px;
    border-left: 2px solid #22c55e;
    color: #4ade80;
}

.home-gallery {
    padding: 80px 0 96px;
    background: #f8fafc;
    overflow: hidden;
}

.gallery-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 24px;
}

.gallery-title h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0a192f;
}

.gallery-title p {
    color: #64748b;
}

.gallery-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 24px;
}

.gallery-card {
    min-width: 320px;
    height: 240px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.gallery-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.gallery-icon {
    font-size: 36px;
    color: rgba(10, 25, 47, 0.25);
}

.gallery-meta p {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.gallery-meta span {
    font-size: 12px;
    color: #64748b;
}

.home-citation {
    padding: 56px 24px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.citation-card {
    max-width: 1120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #081a35 0%, #0a2348 55%, #0d2b57 100%);
    border-radius: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 32px 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.citation-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(40px);
}

.citation-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.citation-icon {
    font-size: 32px;
    color: var(--success-color);
    flex-shrink: 0;
}

.citation-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.citation-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.citation-subtitle {
    margin: 8px 0 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    line-height: 1.7;
}

.citation-highlight {
    background: rgba(7, 18, 38, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px 20px;
}

.citation-highlight-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.citation-highlight-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
}

.citation-highlight-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.citation-text {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.8);
    text-align: left;
    margin: 0;
    line-height: 1.8;
    word-break: break-word;
}

.citation-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}

.home-page .citation-button.el-button {
    border-radius: 999px;
    background: #ffffff;
    color: #0a192f;
    border-color: transparent;
    font-weight: 600;
    padding: 10px 16px;
}

.citation-format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.citation-format-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.citation-format-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.citation-format-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.citation-format-use {
    margin-top: 4px;
    color: rgba(226, 232, 240, 0.7);
    font-size: 12px;
}

.citation-format-text {
    color: rgba(241, 245, 249, 0.92);
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.home-page .citation-copy-link.el-button {
    color: #c7d2fe;
    padding: 0;
    height: auto;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin-top: 64px;
}

.site-footer--global {
    margin-top: 0;
}

.site-footer--global .site-footer-inner {
    padding-top: 32px;
}

.site-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 24px 32px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) minmax(260px, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.site-footer-section {
    min-width: 0;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.site-footer-logo {
    width: auto;
    height: 36px;
    max-width: 82px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer-name {
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.site-footer-description {
    margin: 0;
    max-width: 540px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.85;
}

.site-footer-heading {
    margin: 0 0 24px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-link-icon {
    color: #cbd5e1;
    font-size: 14px;
}

.site-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.site-footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.site-footer-contact-icon--primary {
    background: #eff6ff;
    color: #2563eb;
}

.site-footer-contact-text {
    min-width: 0;
}

.site-footer-contact-label {
    margin: 0 0 4px;
    color: #94a3b8;
    font-size: 12px;
}

.site-footer-contact-value {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.site-footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
}

.site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    color: #94a3b8;
    font-size: 13px;
}

.site-footer-meta p {
    margin: 0;
}

.site-footer-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-meta-icon {
    font-size: 14px;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
}

.site-footer-legal-link {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer-link:hover,
.site-footer-contact-value:hover,
.site-footer-meta-link:hover,
.site-footer-legal-link:hover {
    color: #2563eb;
}

body.dark .site-footer {
    background: var(--bg-white);
    border-top-color: var(--border-color);
}

body.dark .logo-text {
    color: var(--text-primary);
}

body.dark .site-footer-name,
body.dark .site-footer-heading {
    color: var(--text-primary);
}

body.dark .site-footer-description,
body.dark .site-footer-link,
body.dark .site-footer-contact-value,
body.dark .site-footer-meta,
body.dark .site-footer-meta-link,
body.dark .site-footer-legal-link {
    color: var(--text-secondary);
}

body.dark .site-footer-contact-label {
    color: var(--text-muted);
}

body.dark .site-footer-link-icon {
    color: #6b7280;
}

body.dark .site-footer-contact-icon {
    background: rgba(55, 65, 81, 0.9);
    color: var(--text-secondary);
}

body.dark .site-footer-contact-icon--primary {
    background: rgba(30, 58, 95, 0.25);
    color: #93c5fd;
}

body.dark .site-footer-bottom {
    border-top-color: rgba(75, 85, 99, 0.45);
}

body.dark .site-footer-tag {
    background: rgba(30, 58, 95, 0.24);
    border-color: rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

body.dark .site-footer-link:hover,
body.dark .site-footer-contact-value:hover,
body.dark .site-footer-meta-link:hover,
body.dark .site-footer-legal-link:hover {
    color: #bfdbfe;
}

.hide-sm {
    display: inline;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-x {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-scroll-x {
    animation: scroll-x 50s linear infinite;
}

.hover-pause:hover {
    animation-play-state: paused;
}

@media (max-width: 1024px) {
    .visual-body {
        grid-template-columns: 1fr;
    }

    .visual-sidebar {
        display: none;
    }

    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rigor-content {
        grid-template-columns: 1fr;
    }

    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }

    .site-footer-section--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .citation-card {
        padding: 24px 20px;
    }

    .citation-head {
        flex-direction: column;
    }

    .citation-format-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding: 64px 20px 80px;
        text-align: left;
    }

    .home-hero-actions {
        justify-content: flex-start;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-inner {
        padding: 48px 20px 24px;
    }

    .site-footer--global .site-footer-inner {
        padding-top: 24px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .site-footer-bottom,
    .site-footer-meta,
    .site-footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }

    .hide-sm {
        display: none;
    }
}


/* 对话框圆角 */
.el-dialog {
    border-radius: 8px;
}

.el-dialog__header {
    margin-right: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.el-dialog__title {
    font-size: 16px;
    font-weight: 600;
}


.el-dialog__footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
}

/* 通用滚动容器 */
.scroll-container {
    flex: 1;
    overflow-y: auto;
    /* 避免内容紧贴滚动条 */
    padding: 4px;
}

/* 变量类型标签样式 */
.var-type-tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 500;
}

.var-type-tag.numeric {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.var-type-tag.categorical {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.var-type-tag.ordinal {
    background-color: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.var-type-tag.binary {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.var-type-tag.identifier {
    background-color: #f0f0f0;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

.var-type-tag.datetime {
    background-color: #fff0f6;
    color: #eb2f96;
    border: 1px solid #ffadd2;
}

.var-type-tag.text {
    background-color: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

/* 下拉选项中的变量显示 */
.var-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 12px;
}

.var-option__main {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 6px;
}

.var-option__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.var-option__raw {
    color: #909399;
    flex-shrink: 0;
    font-size: 12px;
}

.var-option .var-type-tag {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 18px;
    margin-left: auto;
    white-space: nowrap;
}

/* 变量分组标题样式 */
.el-select-group__title {
    font-weight: 600;
    color: var(--primary-color);
}

/* 分析页面 - 左右面板等高布局 */
.analysis-config-card,
.analysis-result-card {
    width: 100%;
    height: auto;
    min-height: 500px;
}

.mdap-select-popper {
    min-width: 340px;
    max-width: 560px;
    overflow: hidden;
}

.mdap-select-popper .el-select-dropdown__item {
    white-space: normal;
    height: auto;
    line-height: 1.25;
    padding: 8px 12px;
    box-sizing: border-box;
    max-width: 100%;
}

.mdap-select-popper .el-select-dropdown__wrap,
.mdap-select-popper .el-scrollbar__wrap {
    overflow-x: hidden;
}

.mdap-select-popper .el-scrollbar__view {
    overflow-x: hidden;
}

.mdap-option-title {
    font-weight: 600;
    color: var(--el-text-color-primary);
}

.mdap-option-desc {
    margin-top: 2px;
    font-size: 12px;
    color: var(--el-text-color-secondary);
}

.delete-condition-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

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

.delete-operator-buttons .el-button {
    margin: 0;
}

.delete-condition-value-input {
    width: 220px;
    max-width: 100%;
}

.table1-cell-lines {
    font-size: 12px;
    line-height: 1.35;
}

.table1-cell-lines>div {
    white-space: nowrap;
}

.analysis-config-card .el-card__body,
.analysis-result-card .el-card__body {
    height: auto;
}

/* 分析页面行 */
.analysis-row {
    width: 100%;
}

.analysis-row>.el-col {
    margin-bottom: 20px;
}

.forest-svg-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #FFFFFF;
}

.forest-svg-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

.forest-svg-empty {
    padding: 16px;
    color: #606266;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.forest-footnote {
    margin-top: 8px;
    margin-bottom: 12px;
    color: #333333;
    font-size: 13px;
    line-height: 1.4;
}

.forest-three-line-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    color: #333333;
    font-size: 14px;
}

.forest-three-line-table thead tr {
    border-bottom: 1px solid #000;
}

.forest-three-line-table th,
.forest-three-line-table td {
    padding: 8px 10px;
    border: none;
    text-align: left;
    font-weight: 400;
    background: #FFFFFF;
}

.forest-three-line-table th {
    font-weight: 600;
}

.forest-three-line-table th:nth-child(n+2),
.forest-three-line-table td:nth-child(n+2) {
    text-align: right;
}

/* 图表卡片 */
.chart-card {
    width: 100%;
}

.chart-card .el-card__body {
    padding: 16px;
}

/* Active Menu Highlight */
.analysis-menu .el-menu-item.is-active {
    background-color: #E6F7FF;
    /* More visible light blue */
    color: var(--el-color-primary);
    border-right: 3px solid var(--el-color-primary);
    font-weight: 600;
}

/* Transform Menu Active Item */
.transform-menu .el-menu-item.is-active {
    background-color: #E6F7FF;
    color: var(--el-color-primary);
    border-left: 3px solid var(--el-color-primary);
    font-weight: 600;
}

.transform-help-collapse.el-collapse {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
}

.transform-help-collapse .el-collapse-item__header {
    padding: 0 16px;
}

.transform-help-collapse .el-collapse-item__wrap {
    border-bottom: none;
}

.transform-missing-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Filter Card Styles */
.filter-card {
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.filter-card:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.filter-header {
    padding: 12px 16px;
    border-bottom: 1px solid #EBEEF5;
    background-color: #F5F7FA;
    border-radius: 8px 8px 0 0;
}

.filter-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filter-search-box {
    margin-bottom: 10px;
}

.filter-chip-container {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
    padding-right: 4px;
    /* Space for scrollbar */
}

/* Chip Styles */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    cursor: pointer;
    user-select: none;
    padding: 4px 12px;
    border-radius: 16px;
    background-color: #fff;
    border: 1px solid #DCDFE6;
    color: #606266;
    font-size: 12px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.filter-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-chip:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
    background-color: #F0F9EB;
}

.filter-chip.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.2);
}

/* Scrollbar for filter body */
.filter-chip-container::-webkit-scrollbar {
    width: 6px;
}

.filter-chip-container::-webkit-scrollbar-thumb {
    background: #DCDFE6;
    border-radius: 3px;
}

.filter-chip-container::-webkit-scrollbar-track {
    background: #F5F7FA;
}

/* ========================================
   数据概览面板样式
   ======================================== */

/* 摘要统计卡片 */
.summary-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.summary-stat-card .stat-icon {
    font-size: 28px;
    opacity: 0.9;
}

.summary-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.summary-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.summary-stat-card .stat-label {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

/* 变量统计卡片 (卡片视图) */
.variable-stats-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #E5E7EB;
}

.variable-stats-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.var-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.var-card-header .var-name {
    font-weight: 600;
    color: #1E3A5F;
    font-size: 14px;
}

.var-card-body {
    padding: 12px 16px;
    min-height: 80px;
}

.var-card-body .numeric-stats,
.var-card-body .categorical-stats {
    font-size: 12px;
}

.var-card-body .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.var-card-body .stat-row:last-child {
    border-bottom: none;
}

.var-card-body .stat-name {
    color: #64748b;
}

.var-card-body .stat-val {
    color: #1e293b;
    font-weight: 500;
}

.var-card-body .freq-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.var-card-body .freq-label {
    flex: 0 0 80px;
    font-size: 12px;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.var-card-body .freq-bar-container {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.var-card-body .freq-bar {
    height: 100%;
    background: linear-gradient(90deg, #409EFF, #66b1ff);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.var-card-body .freq-count {
    flex: 0 0 70px;
    font-size: 11px;
    color: #64748b;
    text-align: right;
}

.var-card-body .no-stats {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.var-card-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.missing-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.missing-badge.no-missing {
    background: #dcfce7;
    color: #166534;
}

.missing-badge.has-missing {
    background: #fee2e2;
    color: #991b1b;
}

/* 深色模式适配 */
body.dark .variable-stats-card {
    background: var(--bg-white);
    border-color: var(--border-color);
}

body.dark .var-card-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-color: var(--border-color);
}

body.dark .var-card-header .var-name {
    color: #e5e7eb;
}

body.dark .var-card-body {
    background: var(--bg-white);
}

body.dark .var-card-body .stat-row {
    border-color: var(--border-color);
}

body.dark .var-card-body .stat-name {
    color: #9ca3af;
}

body.dark .var-card-body .stat-val {
    color: #e5e7eb;
}

body.dark .var-card-body .freq-bar-container {
    background: #374151;
}

body.dark .var-card-footer {
    background: #1f2937;
    border-color: var(--border-color);
}

body.dark .missing-badge.no-missing {
    background: #064e3b;
    color: #6ee7b7;
}

body.dark .missing-badge.has-missing {
    background: #7f1d1d;
    color: #fca5a5;
}

body.dark .summary-stat-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* NHANES Module Styles */
.module-header-modern {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.module-header-modern .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.module-header-modern .title-content h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #303133;
    font-weight: 600;
}

.module-header-modern .title-content p {
    margin: 0;
    font-size: 13px;
    color: #909399;
    line-height: 1.5;
}

.analysis-module-container {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.design-card .card-header {
    display: flex;
    align-items: center;
}

.form-tip {
    font-size: 12px;
    color: #909399;
    line-height: 1.4;
    margin-top: 4px;
}

/* ===== NHANES 选项框溢出修复 ===== */
/* 防止NHANES流程中的选项框导致布局变形 */
.nhanes-form-container {
    max-width: 100%;
    overflow: hidden;
}

.nhanes-form-container .el-select {
    max-width: 100%;
}

.nhanes-form-container .el-select__wrapper {
    max-width: 100%;
    overflow: hidden;
}

.nhanes-form-container .el-select__selection {
    max-width: 100%;
    flex-wrap: wrap;
    overflow: hidden;
}

.nhanes-form-container .el-select__tags-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 多选标签溢出处理 */
.nhanes-form-container .el-tag {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nhanes-form-container .el-tag__content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* NHANES 表单项最大宽度限制 */
.nhanes-form-container .el-form-item__content {
    max-width: 100%;
    overflow: hidden;
}

/* 修复下拉面板宽度 */
.nhanes-select-popper {
    max-width: 500px !important;
}

.nhanes-select-popper .el-select-dropdown__item {
    white-space: normal;
    height: auto;
    line-height: 1.4;
    padding: 8px 12px;
}

/* 分析配置卡片防止溢出 */
.analysis-config-card .el-card__body {
    overflow: hidden;
}

.analysis-config-card .el-form {
    max-width: 100%;
}

/* NHANES Stepper Colors: 仅当前步骤蓝色，其余保持默认黑色 */
.nhanes-stepper.el-steps--simple .el-step__title.is-process,
.nhanes-stepper.el-steps--simple .el-step__head.is-process,
.nhanes-stepper.el-steps--simple .el-step__icon.is-process {
    color: #409EFF !important;
}

.nhanes-stepper.el-steps--simple .el-step__title.is-success,
.nhanes-stepper.el-steps--simple .el-step__head.is-success,
.nhanes-stepper.el-steps--simple .el-step__icon.is-success,
.nhanes-stepper.el-steps--simple .el-step__title.is-wait,
.nhanes-stepper.el-steps--simple .el-step__head.is-wait,
.nhanes-stepper.el-steps--simple .el-step__icon.is-wait {
    color: #303133 !important;
}

.el-select--one-line-tags .el-select__wrapper {
    flex-wrap: nowrap !important;
    overflow: hidden;
    min-width: 0;
}

.el-select--one-line-tags .el-select__selection {
    flex-wrap: nowrap !important;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.el-select--one-line-tags .el-select__selected-item,
.el-select--one-line-tags .el-tag,
.el-select--one-line-tags .el-tag__content,
.el-select--one-line-tags .el-select__tags-text {
    max-width: 100%;
}

.el-select--one-line-tags .el-tag__content,
.el-select--one-line-tags .el-select__tags-text,
.el-select--one-line-tags .el-select__selected-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-preview-panel {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px dashed #dbe7f5;
    border-radius: 10px;
    background: #f8fbff;
}

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

.selection-preview-count {
    font-size: 12px;
    font-weight: 600;
    color: #35598a;
}

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

.selection-preview-tag {
    max-width: 100%;
    margin: 0;
    border-radius: 999px;
}

.selection-preview-tag .el-tag__content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.selection-preview-tag__name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-preview-tag__type {
    margin-left: 0;
    flex-shrink: 0;
}

.selection-preview-panel .el-button.is-link {
    padding: 0;
    min-height: auto;
    height: auto;
}

body.dark .selection-preview-panel {
    background: rgba(31, 41, 55, 0.92);
    border-color: var(--border-color);
}

body.dark .selection-preview-count {
    color: var(--text-primary);
}

.nhanes-step-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nhanes-step-title-top {
    font-size: 12px;
    font-weight: 600;
}

.nhanes-step-title-bottom {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
}

.nhanes-step-enter-active,
.nhanes-step-leave-active {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nhanes-step-enter-from {
    opacity: 0;
    transform: translateY(10px);
}

.nhanes-step-leave-to {
    opacity: 0;
    transform: translateY(-6px);
}

.nhanes-import-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nhanes-import-guide__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.nhanes-import-guide__title .el-icon {
    color: var(--primary-color);
}

.nhanes-import-guide__list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.nhanes-import-guide__list li {
    margin: 6px 0;
}

.nhanes-import-guide__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nhanes-import-guide__actions .el-button {
        width: 100%;
    }
}

/* Baseline table drag feedback */
#baseline-table .baseline-drag-chosen {
    background: rgba(64, 158, 255, 0.10) !important;
}

#baseline-table .baseline-drag-ghost {
    opacity: 0.65 !important;
    background: rgba(64, 158, 255, 0.18) !important;
    border: 1px dashed rgba(64, 158, 255, 0.6);
}

#baseline-table .baseline-drag-dragging {
    background: rgba(64, 158, 255, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#baseline-table tbody.baseline-drag-active tr.baseline-drag-group {
    background: rgba(64, 158, 255, 0.08) !important;
}

#baseline-table tbody.baseline-drag-active,
#baseline-table tbody.baseline-drag-active * {
    user-select: none !important;
}

#baseline-table tbody.baseline-drag-block tr.baseline-drag-block-level {
    opacity: 0.25 !important;
}

.baseline-drag-preview {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transform: translate(-10000px, -10000px);
    transition: opacity 0.12s ease;
}

/* Sidebar Menu Tweaks */
.el-menu-item {
    border-radius: 4px;
    /* Slightly rounded items */
    margin: 4px 8px;
    /* Internal margin for spacing */
    height: 44px;
    line-height: 44px;
}

.el-menu-item.is-active {
    background-color: #ecf5ff !important;
    color: #409EFF !important;
    font-weight: 600;
}

.el-menu-item:hover {
    background-color: #f5f7fa !important;
}

/* NHANES Regression Table Row Styles */
.el-table .quantile-header-row {
    background-color: #f2f9ff !important;
}

.el-table .quantile-header-row td {
    background-color: #f2f9ff !important;
}

.el-table .continuous-row {
    background-color: #fffef5 !important;
}

.el-table .continuous-row td {
    background-color: #fffef5 !important;
}

.el-table .quantile-level-row {
    background-color: #fafafa !important;
}

.el-table .quantile-level-row td {
    background-color: #fafafa !important;
}

.el-table .ptrend-row {
    background-color: #fffbf0 !important;
    border-top: 1px dashed #e6a23c !important;
}

.el-table .ptrend-row td {
    background-color: #fffbf0 !important;
}

/* ===== 统一分析配置区选择框宽度 ===== */
.analysis-config-card .el-select,
.analysis-config-card .el-input,
.analysis-config-card .el-input-number {
    width: 100% !important;
}

.analysis-config-card .el-form {
    --el-component-size: 40px;
}

.analysis-config-card .el-form-item {
    margin-bottom: 18px;
}

.analysis-config-card .el-form-item__content {
    width: 100%;
}

.analysis-config-card .el-switch__label,
.config-card .el-switch__label {
    display: none !important;
}

.analysis-config-card .el-color-picker,
.config-card .el-color-picker {
    width: 100%;
}

.analysis-config-card .el-color-picker__trigger,
.config-card .el-color-picker__trigger {
    width: 100%;
    justify-content: center;
}

.analysis-config-card .el-slider,
.config-card .el-slider {
    min-width: 0;
}

.analysis-config-card .el-form-item__content,
.config-card .el-form-item__content {
    min-width: 0;
}

.analysis-config-card .el-color-picker__trigger,
.config-card .el-color-picker__trigger {
    min-height: 32px;
    display: flex;
    align-items: center;
}

.analysis-config-card .el-radio-group,
.config-card .el-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.analysis-config-card .el-radio-group .el-radio-button,
.config-card .el-radio-group .el-radio-button {
    margin-right: 0;
}

.analysis-config-card .el-form-item__label,
.config-card .el-form-item__label {
    white-space: normal;
}


/* ===== 侧边栏折叠样式 ===== */
.sidebar-toggle {
    position: fixed;
    left: 280px;
    top: 120px;
    z-index: 100;
    width: 24px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle:hover {
    background: var(--primary-light);
    width: 28px;
}

.sidebar-toggle.collapsed {
    left: 0;
}

/* 确保 el-container 使用 flex 布局 */
.app-container {
    display: flex !important;
    flex-direction: row !important;
}

.app-aside {
    flex-shrink: 0;
    transition: width 0.3s ease, min-width 0.3s ease, opacity 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.app-aside.sidebar-collapsed {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

/* 主内容区域自动扩展 */
.app-main {
    flex: 1 !important;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* 小屏幕响应式 */
@media (max-width: 1200px) {
    .sidebar-toggle {
        left: 240px;
    }

    .sidebar-toggle.collapsed {
        left: 0;
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        top: 80px;
    }
}

/* 暗色模式下的折叠按钮 */
body.dark .sidebar-toggle {
    background: var(--primary-light);
}

body.dark .sidebar-toggle:hover {
    background: var(--primary-color);
}

.variable-definition-selection-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #d9ecff;
    border-radius: 10px;
    background: #f5f9ff;
}

.variable-definition-selection-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.variable-definition-selection-title {
    color: #303133;
    font-weight: 600;
    line-height: 1.5;
}

.variable-definition-selection-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variable-definition-selection-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.el-table .variable-definition-row-selected {
    --el-table-tr-bg-color: #ecf5ff;
}

body.dark .variable-definition-selection-bar {
    border-color: rgba(64, 158, 255, 0.35);
    background: rgba(64, 158, 255, 0.08);
}

body.dark .variable-definition-selection-title {
    color: #e5eaf3;
}

/* Report Page */
.report-page-shell {
    background:
        radial-gradient(circle at top left, rgba(197, 154, 109, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #f9fafb 45%, #ffffff 100%);
}

.report-page-aside {
    width: 360px !important;
}

.report-sidebar-card {
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(30, 58, 95, 0.06);
}

.report-step-indicator {
    margin-bottom: 24px;
}

.report-step-subtitle {
    margin: 14px 0 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 13px;
}

.report-templates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.report-template-count {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f6f8;
    border: 1px solid #e7eaee;
}

.report-template-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 14px 14px 12px;
    margin-bottom: 10px;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fbfcfe;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.report-template-card:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 58, 95, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.report-template-card.active {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: rgba(30, 58, 95, 0.18);
    box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.06);
}

.template-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary-color);
    flex-shrink: 0;
}

.template-item-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.template-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.template-item-copy small {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.template-pill {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #0f8c63;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.template-pill-muted {
    background: #f3f4f6;
    color: #6b7280;
}

.report-sidebar-note {
    margin-top: 22px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.05) 0%, rgba(197, 154, 109, 0.06) 100%);
    border: 1px solid rgba(30, 58, 95, 0.08);
}

.report-sidebar-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.report-note-kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
}

.report-note-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.08);
    color: var(--text-secondary);
}

.report-sidebar-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.report-note-stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.report-note-stat {
    border-radius: 12px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(30, 58, 95, 0.06);
    text-align: center;
}

.report-note-stat strong {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.report-note-stat span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-page-main {
    padding-right: 28px;
}

.report-main-header {
    min-height: 92px;
    border-radius: 18px 18px 0 0;
    padding: 18px 24px;
}

.report-header-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-header-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 700;
}

.report-main-header h2 {
    margin: 0;
    font-size: 24px;
}

.report-main-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.report-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-primary-action.el-button,
.report-secondary-action.el-button {
    border-radius: 12px;
    height: 40px;
    padding: 0 18px;
    font-weight: 600;
}

.report-primary-action.el-button {
    box-shadow: 0 10px 20px rgba(30, 58, 95, 0.18);
}

.report-secondary-action.el-button {
    border-color: #d8dee6;
    color: var(--text-secondary);
    background: #fff;
}

.report-preview-card.el-card {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    border: 1px solid #e5eaf1;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.07);
}

.report-preview-card .el-card__body {
    padding: 0;
}

.report-preview-toolbar {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%);
}

.report-preview-toolbar-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.report-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.report-preview-meta strong {
    color: var(--text-primary);
    font-size: 14px;
}

.report-preview-meta span {
    color: var(--text-secondary);
    font-size: 12px;
}

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

.report-preview-tags span,
.report-chart-surface-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e3e8ef;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
}

.report-content-canvas {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.8) 0%, rgba(255, 255, 255, 1) 42%),
        #fff;
}

.report-cover {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 20px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(197, 154, 109, 0.16), transparent 30%),
        linear-gradient(135deg, #133255 0%, #204977 55%, #f8fbff 55%, #ffffff 100%);
    color: #fff;
    overflow: hidden;
}

.report-cover-copy {
    max-width: 680px;
}

.report-cover-tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.report-title {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.06;
    color: #fff;
}

.report-date {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.report-cover-description {
    margin: 18px 0 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.8;
}

.report-cover-metrics {
    display: grid;
    gap: 12px;
    align-content: center;
}

.report-metric-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 30px rgba(12, 24, 40, 0.08);
}

.report-metric-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.report-metric-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.report-metric-card small {
    color: var(--text-secondary);
    line-height: 1.5;
}

.report-section-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.report-section-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #e7ebf1;
    background: #ffffff;
    display: flex;
    gap: 16px;
    min-height: 150px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.report-section-card-primary {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: rgba(30, 58, 95, 0.12);
}

.report-section-index {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
}

.report-section-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.report-section-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 14px;
}

.report-chart-surface {
    margin-top: 24px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e7edf5;
}

.report-chart-surface-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.report-chart-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 700;
}

.report-chart-surface-header h2 {
    margin: 0;
    font-size: 26px;
    color: var(--text-primary);
}

.report-chart-surface-header p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.report-chart-empty {
    min-height: 340px;
    border-radius: 18px;
    border: 1px dashed #d8e0ea;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.75) 0%, rgba(255, 255, 255, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
}

.report-chart-placeholder {
    position: relative;
    width: 180px;
    height: 120px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.placeholder-bar {
    display: block;
    width: 28px;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.16) 0%, rgba(30, 58, 95, 0.05) 100%);
    border: 1px solid rgba(30, 58, 95, 0.08);
}

.bar-a {
    height: 58px;
}

.bar-b {
    height: 86px;
}

.bar-c {
    height: 72px;
}

.placeholder-line {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(197, 154, 109, 0.2) 0%, rgba(197, 154, 109, 0.8) 55%, rgba(197, 154, 109, 0.25) 100%);
    transform: rotate(-12deg);
    transform-origin: center;
}

.report-chart-empty h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--text-primary);
}

.report-chart-empty p {
    max-width: 560px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

body.dark .report-page-shell {
    background:
        radial-gradient(circle at top left, rgba(214, 179, 141, 0.08), transparent 28%),
        linear-gradient(180deg, #101926 0%, #111827 55%, #0f172a 100%);
}

body.dark .report-sidebar-card,
body.dark .report-main-header,
body.dark .report-preview-card.el-card,
body.dark .report-section-card,
body.dark .report-chart-surface {
    background: var(--bg-white) !important;
    border-color: var(--border-color) !important;
}

body.dark .report-template-card,
body.dark .report-note-status,
body.dark .report-note-stat,
body.dark .report-preview-tags span,
body.dark .report-chart-surface-tags span,
body.dark .report-metric-card {
    background: rgba(31, 41, 55, 0.92);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark .report-template-count,
body.dark .template-pill-muted {
    background: rgba(55, 65, 81, 0.95);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.dark .report-chart-empty {
    background: rgba(17, 24, 39, 0.5);
    border-color: var(--border-color);
}

@media (max-width: 1440px) {
    .report-page-aside {
        width: 330px !important;
    }

    .report-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .report-page-shell {
        flex-direction: column !important;
    }

    .report-page-aside {
        width: 100% !important;
        padding-right: 24px;
    }

    .report-page-main {
        padding-left: 24px;
    }

    .report-cover {
        grid-template-columns: 1fr;
    }

    .report-section-grid {
        grid-template-columns: 1fr;
    }

    .pricing-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-hero {
        grid-template-columns: 1fr;
    }

    .pricing-wechat-card {
        position: static;
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .report-page-aside,
    .report-page-main {
        padding: 16px !important;
    }

    .report-main-header,
    .report-preview-toolbar,
    .report-content-canvas,
    .report-chart-surface {
        padding-left: 18px;
        padding-right: 18px;
    }

    .report-main-header,
    .report-preview-toolbar,
    .report-chart-surface-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-header-actions,
    .report-preview-tags {
        width: 100%;
    }

    .report-header-actions .el-button,
    .report-preview-tags span {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .report-cover {
        padding: 20px;
    }

    .report-title {
        font-size: 34px;
    }

    .header-pricing-button.el-button {
        padding: 8px 14px;
    }

    .pricing-hero {
        grid-template-columns: 1fr;
        padding: 32px 16px 20px;
        gap: 18px;
    }

    .pricing-hero-copy,
    .pricing-wechat-card {
        padding: 20px;
    }

    .pricing-hero-copy,
    .pricing-wechat-card,
    .pricing-plan-card {
        border-radius: 20px;
    }

    .pricing-hero-title {
        max-width: none;
        font-size: 34px;
    }

    .pricing-plan-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 0;
    }

    .pricing-wechat-card {
        position: static;
        max-width: none;
    }

    .pricing-plan-card {
        min-height: auto;
        padding: 24px 20px 22px;
    }

    .pricing-plan-current {
        font-size: 46px;
    }
}

.research-field-select-dropdown .el-select-dropdown__item {
    height: auto;
    min-height: 56px;
    line-height: 1.5;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: normal;
    display: flex;
    align-items: center;
}

.research-field-select-dropdown .el-select-dropdown__item.is-hovering,
.research-field-select-dropdown .el-select-dropdown__item.hover {
    background: #f8fbff;
}

.research-field-select-dropdown .el-select-dropdown__item.selected {
    font-weight: 400;
}
