/* 演示页面专用样式 */

/* 页面头部 */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 视频演示区域 */
.video-demo {
    padding: 6rem 0;
    background: white;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    background: var(--gray-900);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-top: 2rem;
}

.video-placeholder,
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
}

.play-button {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-button i {
    font-size: 1.5rem;
    color: var(--primary-600);
    margin-left: 0.25rem;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.video-overlay {
    text-align: center;
    color: white;
}

.video-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.video-overlay p {
    opacity: 0.9;
    font-size: 1rem;
}

/* 功能演示展示 */
.demo-showcase {
    padding: 6rem 0 !important;
    background: var(--gray-50) !important;
    min-height: 100vh !important;
}

/* 调试样式 - 确保所有元素可见 */
.demo-showcase * {
    box-sizing: border-box !important;
}

.demo-showcase .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.demo-showcase .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.demo-showcase .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.demo-showcase .section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 演示区块 */
.demo-showcase .demo-section {
    margin-bottom: 4rem !important;
    background: white !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden !important;
    border: 1px solid var(--gray-200) !important;
}

.demo-section:last-child {
    margin-bottom: 0;
}

.demo-showcase .demo-section-header {
    padding: 2rem 2rem 1rem !important;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50)) !important;
    border-bottom: 1px solid var(--primary-200) !important;
}

.demo-showcase .demo-section-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--primary-700) !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.demo-section-title i {
    font-size: 1.25rem;
    color: var(--primary-600);
}

.demo-showcase .demo-section-desc {
    color: var(--gray-600) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* 演示展示容器 */
.demo-showcase .demo-showcase-container {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 2rem !important;
    padding: 2rem !important;
    min-height: 500px !important;
}

@media (max-width: 768px) {
    .demo-showcase-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        min-height: auto;
    }
}

/* 演示展示侧边栏 */
.demo-showcase .demo-showcase-sidebar {
    background: var(--gray-50) !important;
    border-radius: var(--radius-xl) !important;
    padding: 2rem !important;
    border: 1px solid var(--gray-200) !important;
    height: fit-content !important;
}

.demo-showcase-sidebar h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-500);
}

.demo-showcase .parameter-group {
    margin-bottom: 2rem !important;
    background: white !important;
    padding: 1.5rem !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--gray-200) !important;
}

.parameter-group:last-child {
    margin-bottom: 0;
}

.parameter-group h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parameter-group h5::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-500);
    border-radius: 2px;
}

.demo-showcase .parameter-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--gray-100) !important;
}

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

.parameter-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.parameter-value {
    font-size: 0.875rem;
    color: var(--gray-900);
    font-weight: 600;
}

/* 演示展示主区域 */
.demo-showcase .demo-showcase-main {
    background: white !important;
    border-radius: var(--radius-xl) !important;
    padding: 2rem !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow-sm) !important;
}

.demo-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
}

.demo-showcase-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-showcase-header h4::before {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--primary-500);
    border-radius: 3px;
}

.optimization-status.success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 600;
}

.optimization-status.success i {
    font-size: 1rem;
}

.demo-showcase-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 标签页样式 */
.demo-showcase .demo-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-showcase .tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.demo-showcase .tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-showcase .tab-button.active {
    background: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.demo-showcase .tab-button:hover:not(.active) {
    background: var(--gray-100);
    color: var(--gray-700);
}

.demo-showcase .tab-content {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.demo-showcase .tab-panel {
    display: none;
    min-height: 600px;
}

.demo-showcase .tab-panel.active {
    display: block;
}

/* 交互式演示 */
.interactive-demo {
    padding: 6rem 0;
    background: var(--gray-50);
}

.demo-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-button:hover:not(.active) {
    background: var(--gray-100);
    color: var(--gray-700);
}

.tab-content {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tab-panel {
    display: none;
    min-height: 600px;
}

.tab-panel.active {
    display: block;
}

/* 演示容器 */
.demo-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
    min-height: 600px;
}

@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        min-height: auto;
    }
}

.demo-sidebar {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    height: fit-content;
}

.demo-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-500);
}

.form-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.form-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-500);
    border-radius: 2px;
}

/* 演示页面专用的表单组样式，不影响模态框 */
.demo-content .form-group {
    margin-bottom: 1.25rem;
}

.demo-content .form-group:last-child {
    margin-bottom: 0;
}

/* 演示页面专用的表单标签样式，不影响模态框 */
.demo-content .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* 演示页面专用的表单样式，不影响模态框 */
.demo-content .form-group input,
.demo-content .form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.demo-content .form-group input:focus,
.demo-content .form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 184, 166, 0.1);
    background: var(--primary-50);
}

.demo-content .form-group input:hover,
.demo-content .form-group select:hover {
    border-color: var(--primary-400);
}

.demo-main {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
}

.demo-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-header h3::before {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--primary-500);
    border-radius: 3px;
}

.optimization-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.optimization-status.running {
    color: var(--primary-600);
}

.optimization-status.success {
    color: var(--success);
}

/* 结果摘要 */
.result-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.demo-showcase .result-summary {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

@media (max-width: 768px) {
    .result-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.demo-showcase .summary-item {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50)) !important;
    padding: 2rem !important;
    border-radius: var(--radius-xl) !important;
    text-align: center !important;
    border: 2px solid var(--primary-200) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease !important;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-weight: 600;
}

.demo-showcase .summary-value {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--primary-700) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* 结果区域 */
.demo-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

.results-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
}

/* 原料配比表格单独成行 */
.ingredient-table {
    margin-bottom: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* 原料表格 */
.ingredient-table {
    background: white;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.ingredient-table:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.ingredient-table h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding: 2rem 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredient-table h5::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 2px;
}

.table-container {
    overflow-x: auto;
    max-height: 400px;
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 600px;
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    font-weight: 600;
    color: var(--gray-700);
    position: sticky;
    top: 0;
    z-index: 1;
}

td {
    background: white;
}

tr:hover td {
    background: var(--primary-50);
}

tr:last-child td {
    border-bottom: none;
}

/* 营养分析图表 */
.nutrition-analysis {
    background: white;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-200);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-top: 0 !important;
    width: 100% !important;
    display: block !important;
}

.nutrition-analysis:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.nutrition-analysis h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nutrition-analysis h5::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 2px;
}

.nutrition-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    width: 4rem;
}

.chart-bar {
    flex: 1;
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-500));
    transition: width 0.3s ease;
}

.chart-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-600);
    width: 5rem;
    text-align: right;
}

/* 分析仪表板 */
.analysis-dashboard {
    padding: 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
}

.dashboard-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-header h4::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--primary-500);
    border-radius: 3px;
}

.time-range .time-label {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-300);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: white;
    color: var(--gray-700);
    font-weight: 500;
    display: inline-block;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
}

.dashboard-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-header h3::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--primary-500);
    border-radius: 3px;
}

.time-range select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-300);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: white;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.time-range select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 184, 166, 0.1);
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.metric-card {
    background: white;
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.metric-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    display: inline-block;
}

.metric-change.positive {
    background: var(--success-light);
    color: var(--success);
}

.metric-change.negative {
    background: var(--error-light);
    color: var(--error);
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .charts-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.chart-container {
    background: white;
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.chart-container h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container h5::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 2px;
}

.trend-chart {
    height: 12rem;
    background: linear-gradient(135deg, var(--gray-50), white);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.chart-lines {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
}

.line {
    position: absolute;
    height: 3px;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.original-cost {
    top: 25%;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--gray-400), var(--gray-500));
}

.optimized-cost {
    top: 65%;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
}

.chart-labels {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.chart-labels span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-labels span::before {
    content: '';
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

.chart-labels span:first-child::before {
    background: var(--gray-400);
}

.chart-labels span:last-child::before {
    background: var(--primary-500);
}

.pie-chart {
    height: 12rem;
    background: linear-gradient(135deg, var(--gray-50), white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--gray-200);
}

.pie-segment {
    position: absolute;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #3b82f6 0deg 234deg,
        #10b981 234deg 306deg,
        #f59e0b 306deg 324deg,
        #ef4444 324deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-md);
}

.pie-chart::after {
    content: '';
    position: absolute;
    width: 4rem;
    height: 4rem;
    background: white;
    border-radius: 50%;
    box-shadow: inset var(--shadow-sm);
}

.pie-legend {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pie-legend-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.pie-legend-item:nth-child(1)::before { background: #3b82f6; }
.pie-legend-item:nth-child(2)::before { background: #10b981; }
.pie-legend-item:nth-child(3)::before { background: #f59e0b; }
.pie-legend-item:nth-child(4)::before { background: #ef4444; }

/* 协同工作空间 */
.collaboration-workspace {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.workspace-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workspace-header h4::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--primary-500);
    border-radius: 3px;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
}

.workspace-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workspace-header h3::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--primary-500);
    border-radius: 3px;
}

.team-members {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.member:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.member.active {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.member-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.member.active .member-avatar {
    background: var(--primary-600);
    box-shadow: var(--shadow-md);
}

.workspace-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .workspace-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.activity-feed,
.version-history {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.activity-feed h5,
.version-history h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-feed h5::before,
.version-history h5::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 2px;
}

.activity-list,
.version-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item,
.version-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.activity-item:hover,
.version-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.activity-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.activity-text strong {
    color: var(--primary-600);
    font-weight: 600;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.version-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.version-info {
    flex: 1;
    min-width: 0;
}

.version-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.version-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.version-status {
    flex-shrink: 0;
    align-self: flex-start;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.status-badge.draft {
    background: var(--warning);
    color: white;
}

.status-badge.approved {
    background: var(--success);
    color: white;
}

.status-badge.archived {
    background: var(--gray-400);
    color: white;
}

/* 演示特色 */
.demo-features {
    padding: 6rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-600);
    font-size: 1.25rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--gray-600);
    line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        gap: 1rem;
    }

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

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

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

    .tab-buttons {
        flex-direction: column;
    }

    .result-summary {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel {
    animation: fadeInUp 0.3s ease-out;
}

.chart-fill {
    animation: fillBar 1s ease-out;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-500);
    animation: spin 1s ease-in-out infinite;
}

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