/* ===== 配色系统（CSS变量） ===== */
:root {
    /* 主色 */
    --primary-orange: #FF6B35;
    --primary-orange-light: #FF8A5B;
    --primary-orange-dark: #E55A2B;

    /* 侧边栏 */
    --sidebar-bg: #2C3E50;
    --sidebar-text: #ECF0F1;
    --sidebar-text-muted: #95A5A6;
    --sidebar-active-bg: rgba(255, 107, 53, 0.15);
    --sidebar-hover-bg: rgba(236, 240, 241, 0.05);

    /* 主内容区 */
    --content-bg: #F8F9FA;
    --card-bg: #FFFFFF;

    /* 中性色 */
    --text-primary: #2C3E50;
    --text-secondary: #6c757d;
    --text-muted: #95a5a6;
    --border-color: #e9ecef;

    /* 辅助色 */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* 过渡 */
    --transition: all 0.3s ease;
}

/* ===== 全局布局 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--content-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    font-size: 14px; /* 全局基础字体缩小 */
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== 左侧边栏 ===== */
.sidebar {
    width: 220px; /* 从240px缩小到220px */
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

/* Logo区域 */
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(236, 240, 241, 0.1);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--sidebar-text);
    text-align: center;
}

/* 主导航 */
.sidebar-nav {
    flex: 1;
    padding: 16px 10px; /* 从20px 12px缩小 */
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px; /* 从12px缩小 */
    width: 100%;
    padding: 10px 14px; /* 从12px 16px缩小 */
    margin-bottom: 6px; /* 从8px缩小 */
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text-muted);
    font-size: 14px; /* 从15px缩小 */
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.sidebar-nav-item:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text);
}

.sidebar-nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--primary-orange);
}

.sidebar-nav-item i {
    font-size: 16px; /* 从18px缩小 */
    width: 18px; /* 从20px缩小 */
    text-align: center;
}

/* 用户信息 */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px; /* 从12px缩小 */
    padding: 16px; /* 从20px缩小 */
    border-top: 1px solid rgba(236, 240, 241, 0.1);
}

.user-avatar {
    width: 36px; /* 从40px缩小 */
    height: 36px;
    border-radius: 50%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-avatar i {
    font-size: 20px; /* 从24px缩小 */
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px; /* 从14px缩小 */
    font-weight: 600;
    color: var(--sidebar-text);
    margin-bottom: 2px;
}

.user-role {
    font-size: 11px; /* 从12px缩小 */
    color: var(--sidebar-text-muted);
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: 220px; /* 从240px调整 */
    height: 100vh;
    overflow-y: auto;
    background: var(--content-bg);
}

/* 页面内容容器 */
.page-content {
    padding: 32px; /* 从40px缩小 */
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== 隐藏旧的导航栏 ===== */
.global-navbar,
.navbar {
    display: none !important;
}

/* ===== 调整原有container ===== */
.container {
    padding: 0 !important;
    max-width: none !important;
}

/* ===== 滚动条美化 ===== */
.sidebar-nav::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(236, 240, 241, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 240, 241, 0.3);
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== 全局字体和间距优化 ===== */
h1, .page-title {
    font-size: 28px !important;
}

h2, .section-title, .content-title {
    font-size: 22px !important;
}

h3, .section-subtitle {
    font-size: 18px !important;
}

h4 {
    font-size: 16px !important;
}

p, .section-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* 卡片间距优化 */
.card, .metric-card, .score-detail-item, .export-format-card {
    padding: 20px !important;
}

/* 按钮优化 */
.btn-primary-large, .btn-secondary-large {
    padding: 12px 24px !important;
    font-size: 15px !important;
}

/* 表格字体 */
.comparison-table th,
.comparison-table td {
    font-size: 13px !important;
    padding: 12px !important;
}

/* ===== 首页布局优化（更紧凑） ===== */
.hero-section {
    padding: 40px 0 !important;
    text-align: center;
}

.hero-title {
    font-size: 36px !important;
    margin-bottom: 12px !important;
}

.hero-subtitle {
    font-size: 16px !important;
    margin-bottom: 32px !important;
}

/* 核心价值卡片 */
.value-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 40px !important;
}

.value-card {
    padding: 24px !important;
}

.value-icon {
    font-size: 32px !important;
    margin-bottom: 12px !important;
}

.value-title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.value-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* 工作流程卡片 - 横向时间轴 */
.workflow-steps-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.workflow-step-card {
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.workflow-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.workflow-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #FF6B35, #FF8A5B);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-step-icon i {
    font-size: 28px;
    color: white;
}

.workflow-step-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
}

.workflow-step-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.workflow-step-desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
}

.workflow-step-arrow {
    display: none;
}

/* 添加步骤之间的连接线 */
.workflow-step-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #FF6B35;
    font-weight: 700;
}

/* 段落标题 */
.section-heading {
    font-size: 24px !important;
    margin-bottom: 20px !important;
}

/* CTA按钮 */
.cta-section {
    padding: 40px 0 !important;
}

.cta-button {
    padding: 14px 32px !important;
    font-size: 16px !important;
}
