/* ================================================
   AI-Human OCR 人力评估计算器 - 现代化专业设计
   ================================================ */

/* 全局重置和现代化设计系统 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 现代化配色系统 - 基于最新设计趋势 */
    --primary-10: #f8fafc;
    --primary-20: #f1f5f9;
    --primary-30: #e2e8f0;
    --primary-40: #cbd5e1;
    --primary-50: #94a3b8;
    --primary-60: #64748b;
    --primary-70: #475569;
    --primary-80: #334155;
    --primary-90: #1e293b;
    --primary-100: #0f172a;

    --secondary-10: #f7f7f7;
    --secondary-20: #e0e0e0;
    --secondary-30: #c6c6c6;
    --secondary-40: #a8a8a8;
    --secondary-50: #8d8d8d;
    --secondary-60: #6f6f6f;
    --secondary-70: #525252;
    --secondary-80: #393939;
    --secondary-90: #262626;
    --secondary-100: #161616;

    --blue-10: #eff6ff;
    --blue-20: #dbeafe;
    --blue-30: #bfdbfe;
    --blue-40: #93c5fd;
    --blue-50: #60a5fa;
    --blue-60: #3b82f6;
    --blue-70: #2563eb;
    --blue-80: #1d4ed8;
    --blue-90: #1e40af;
    --blue-100: #1e3a8a;

    --teal-10: #f0fdfa;
    --teal-20: #ccfbf1;
    --teal-30: #99f6e4;
    --teal-40: #5eead4;
    --teal-50: #2dd4bf;
    --teal-60: #14b8a6;
    --teal-70: #0d9488;
    --teal-80: #0f766e;
    --teal-90: #134e4a;
    --teal-100: #042f2e;

    --green-10: #defbe6;
    --green-20: #a7f0ba;
    --green-30: #6fdc8c;
    --green-40: #42be65;
    --green-50: #24a148;
    --green-60: #198038;
    --green-70: #0e6027;
    --green-80: #044317;
    --green-90: #022d0d;
    --green-100: #071908;

    --yellow-10: #fefce8;
    --yellow-20: #fef3c7;
    --yellow-30: #fde68a;
    --yellow-40: #fcd34d;
    --yellow-50: #fbbf24;
    --yellow-60: #f59e0b;
    --yellow-70: #d97706;
    --yellow-80: #b45309;
    --yellow-90: #92400e;
    --yellow-100: #78350f;

    --red-10: #fff1f1;
    --red-20: #ffd7d9;
    --red-30: #ffb3b8;
    --red-40: #ff8389;
    --red-50: #fa4d56;
    --red-60: #da1e28;
    --red-70: #a2191f;
    --red-80: #750e13;
    --red-90: #520408;
    --red-100: #2d0709;

    /* IBM背景色系统 */
    --bg-main: var(--secondary-10);
    --bg-surface: #ffffff;
    --bg-surface-variant: var(--secondary-20);
    --bg-container: var(--primary-10);
    --bg-elevated: #ffffff;
    --bg-field: var(--secondary-10);
    
    /* IBM文字色系统 */
    --text-primary: var(--secondary-100);
    --text-secondary: var(--secondary-70);
    --text-tertiary: var(--secondary-50);
    --text-placeholder: var(--secondary-40);
    --text-on-primary: #ffffff;
    --text-on-surface: var(--secondary-90);
    --text-inverse: #ffffff;
    
    /* IBM边框与分割线 */
    --border-subtle: var(--secondary-20);
    --border-strong: var(--secondary-40);
    --border-inverse: var(--secondary-100);
    --border-interactive: var(--blue-60);
    --border-focus: var(--blue-60);
    --divider: var(--secondary-20);
    
    /* IBM阴影系统 */
    --shadow-01: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-02: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-03: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-04: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-05: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-06: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* IBM圆角系统 */
    --radius-none: 0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;
    
    /* IBM间距系统 */
    --space-01: 2px;
    --space-02: 4px;
    --space-03: 8px;
    --space-04: 12px;
    --space-05: 16px;
    --space-06: 20px;
    --space-07: 24px;
    --space-08: 32px;
    --space-09: 40px;
    --space-10: 48px;
    --space-11: 56px;
    --space-12: 64px;
    --space-13: 80px;
    
    /* IBM字体系统 */
    --font-caption-01: 12px;
    --font-caption-02: 14px;
    --font-label-01: 12px;
    --font-label-02: 14px;
    --font-helper-text-01: 12px;
    --font-helper-text-02: 14px;
    --font-body-compact-01: 14px;
    --font-body-compact-02: 16px;
    --font-body-01: 14px;
    --font-body-02: 16px;
    --font-heading-compact-01: 14px;
    --font-heading-compact-02: 16px;
    --font-heading-01: 14px;
    --font-heading-02: 16px;
    --font-heading-03: 20px;
    --font-heading-04: 28px;
    --font-heading-05: 32px;
    --font-heading-06: 42px;
    --font-heading-07: 54px;
    --font-display-01: 42px;
    --font-display-02: 42px;
    --font-display-03: 42px;
    --font-display-04: 42px;
    
    /* 现代化渐变系统 */
    --gradient-primary: linear-gradient(135deg, var(--blue-60) 0%, var(--blue-70) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-10) 0%, var(--primary-20) 100%);
    --gradient-blue: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-60) 100%);
    --gradient-teal: linear-gradient(135deg, var(--teal-50) 0%, var(--teal-60) 100%);
    --gradient-surface: linear-gradient(135deg, #ffffff 0%, var(--primary-10) 100%);
    --gradient-hero: linear-gradient(135deg, var(--blue-70) 0%, var(--primary-90) 50%, var(--primary-100) 100%);
    --gradient-accent: linear-gradient(135deg, var(--yellow-50) 0%, var(--yellow-60) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

/* IBM字体设置 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

html {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--font-body-02);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-08);
    min-height: 100vh;
}

/* ==================== 现代化头部设计 ==================== */
.header-compact {
    position: relative;
    text-align: center;
    margin-bottom: var(--space-12);
    padding: var(--space-10) var(--space-08);
    background: var(--gradient-hero);
    color: var(--text-on-primary);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.header-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-compact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.header-compact h1 {
    position: relative;
    font-size: var(--font-heading-05);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-05);
    z-index: 1;
}

.header-compact h1 i {
    font-size: 1.2em;
    opacity: 0.9;
}

.subtitle {
    position: relative;
    font-size: var(--font-body-02);
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.005em;
    z-index: 1;
}

/* ==================== 现代化主布局 ==================== */
.main-layout {
    display: grid;
    grid-template-columns: 580px 1fr;
    gap: var(--space-08);
    margin-bottom: var(--space-12);
    align-items: start;
}

/* ==================== 左侧参数配置现代化 ==================== */
.params-section {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-08);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: var(--space-07);
}

/* 现代化业务流程漏斗 */
.business-funnel {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-08);
    margin-bottom: var(--space-08);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.business-funnel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.business-funnel h3 {
    font-size: var(--font-heading-03);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-07);
    display: flex;
    align-items: center;
    gap: var(--space-04);
    letter-spacing: -0.01em;
}

.business-funnel h3 i {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-sm);
}

.funnel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.funnel-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funnel-shape {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-primary);
    font-weight: 600;
    margin-bottom: var(--space-4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.funnel-shape:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.funnel-top {
    width: 320px;
    height: 80px;
    background: var(--gradient-blue);
    clip-path: polygon(12% 0%, 88% 0%, 78% 100%, 22% 100%);
    box-shadow: var(--shadow-04);
}

.funnel-bottom {
    width: 260px;
    height: 80px;
    background: var(--gradient-teal);
    clip-path: polygon(15% 0%, 85% 0%, 75% 100%, 25% 100%);
    box-shadow: var(--shadow-04);
}

.funnel-content {
    text-align: center;
}

.funnel-title {
    font-size: var(--font-sm);
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.funnel-value {
    font-size: var(--font-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.funnel-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    width: 100%;
    max-width: 320px;
}

.breakdown-item {
    background: var(--bg-surface);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.breakdown-item:hover {
    background: var(--blue-10);
    border-color: var(--blue-40);
    transform: translateY(-1px);
    box-shadow: var(--shadow-02);
}

.funnel-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--blue-60);
    margin: var(--space-03) 0;
    position: relative;
}

.funnel-arrow i {
    font-size: 28px;
    margin-bottom: var(--space-1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.conversion-rate {
    font-size: var(--font-sm);
    font-weight: 700;
    background: var(--gradient-accent);
    color: var(--text-on-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    letter-spacing: 0.01em;
}

.conversion-rate::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-500);
    border-radius: 50%;
}

/* 现代化参数配置卡片 */
.params-grid {
    display: grid;
    gap: var(--space-6);
}

.param-group {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.param-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-secondary);
}

.param-group:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
}

.param-group:hover::before {
    background: var(--gradient-primary);
}

.param-group h4 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    letter-spacing: -0.01em;
}

.param-group h4 i {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
}

.param-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--font-sm);
}

.param-table tr {
    transition: all 0.2s ease;
}

.param-table tr:hover {
    background: var(--primary-50);
}

.param-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--divider);
    vertical-align: middle;
}

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

.param-table td:first-child {
    width: 60%;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.param-table td:nth-child(2) {
    width: 25%;
    text-align: center;
}

.param-table td:last-child {
    width: 15%;
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 600;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.param-table input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid rgba(203, 213, 225, 0.5);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: var(--font-sm);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.param-table input:focus {
    outline: none;
    border-color: var(--blue-60);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05);
    background: rgba(239, 246, 255, 0.9);
    transform: scale(1.05);
}

.param-table input:hover:not(:focus) {
    border-color: var(--border-strong);
    background: var(--bg-field);
}

.ratio-row {
    background: linear-gradient(90deg, var(--blue-10), transparent);
}

.adjustable-row {
    background: linear-gradient(90deg, var(--yellow-10), transparent);
}

.tag {
    background: var(--gradient-accent);
    color: var(--text-on-primary);
    font-size: var(--font-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-xs);
}

/* 现代化计算按钮 */
.calculate-btn-compact {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    border: none;
    padding: var(--space-06) var(--space-08);
    border-radius: var(--radius-2xl);
    font-size: var(--font-heading-02);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 15px -3px rgba(59, 130, 246, 0.4),
        0 4px 6px -2px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: var(--space-08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-04);
    position: relative;
    overflow: hidden;
}

.calculate-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.calculate-btn-compact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(59, 130, 246, 0.5),
        0 20px 25px -5px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--blue-70) 0%, var(--blue-80) 100%);
}

.calculate-btn-compact:hover::before {
    left: 100%;
}

.calculate-btn-compact:active {
    transform: translateY(-1px);
}

/* ==================== 右侧结果展示现代化 ==================== */
.results-section {
    display: grid;
    gap: var(--space-8);
    grid-template-rows: auto auto 1fr;
}

/* 现代化核心结果展示 */
.core-results {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-08);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.core-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.result-highlight {
    text-align: center;
    margin-bottom: var(--space-08);
    padding: var(--space-10);
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    color: var(--text-on-primary);
    position: relative;
    box-shadow: 
        0 20px 25px -5px rgba(59, 130, 246, 0.4),
        0 10px 10px -5px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.result-highlight::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    border-radius: var(--radius-lg);
    animation: glow 2s ease-in-out infinite;
}

.result-number {
    font-size: var(--font-display-01);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-03);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-label {
    font-size: var(--font-lg);
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

/* 现代化柱状图 */
.daily-chart h4 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-align: center;
    letter-spacing: -0.01em;
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: end;
}

.bar-item {
    text-align: center;
    transition: all 0.3s ease;
}

.bar-item:hover {
    transform: translateY(-2px);
}

.bar {
    height: 120px;
    margin-bottom: var(--space-4);
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-sm);
    overflow: hidden;
    background: var(--secondary-100);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-blue);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.4);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.bar-label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    letter-spacing: 0.01em;
}

.bar-value {
    font-size: var(--font-body-compact-01);
    font-weight: 700;
    color: var(--blue-60);
    letter-spacing: -0.01em;
}

/* 现代化工作量分析 */
.workload-analysis {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.workload-analysis h4 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-align: center;
    letter-spacing: -0.01em;
}

.workload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.metric-box {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: var(--space-7);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
}

.metric-box.highlight {
    border-color: var(--yellow-40);
    background: linear-gradient(135deg, var(--yellow-10) 0%, var(--yellow-20) 100%);
}

.metric-box.highlight::before {
    background: var(--gradient-accent);
}

.metric-box:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.metric-box:hover::before {
    background: var(--gradient-primary);
}

.metric-value {
    font-size: var(--font-heading-04);
    font-weight: 700;
    color: var(--blue-60);
    margin-bottom: var(--space-03);
    letter-spacing: -0.02em;
    line-height: 1;
}

.metric-box.highlight .metric-value {
    color: var(--yellow-60);
}

.metric-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* 现代化计算过程 */
.calculation-process {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.calculation-process h4 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
}

.steps-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: var(--space-2);
}

.step-item {
    background: var(--gradient-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border-left: 4px solid var(--primary-400);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.step-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    background: var(--primary-50);
}

.step-title {
    font-size: var(--font-label-02);
    font-weight: 600;
    color: var(--blue-70);
    margin-bottom: var(--space-04);
    letter-spacing: 0.01em;
}

.step-formula {
    font-family: 'IBM Plex Mono', 'Monaco', 'Consolas', monospace;
    font-size: var(--font-caption-01);
    background: var(--bg-surface);
    padding: var(--space-04);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin: var(--space-03) 0;
    color: var(--text-primary);
    box-shadow: var(--shadow-01);
    line-height: 1.6;
}

/* ==================== 现代化管理建议 ==================== */
.recommendations {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: var(--space-12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.recommendations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.recommendations h3 {
    font-size: var(--font-heading-04);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-08);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-05);
    letter-spacing: -0.02em;
}

.recommendations h3 i {
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.recommendation-item {
    display: flex;
    gap: var(--space-5);
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: var(--space-7);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.recommendation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.recommendation-item:hover::before {
    background: var(--gradient-primary);
}

.rec-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.recommendation-item:hover .rec-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.rec-content h5 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.rec-content p {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

/* 时效约束说明样式 */
.time-constraint-note {
    margin-top: var(--space-05);
    padding: var(--space-04);
    background: linear-gradient(90deg, var(--blue-10), transparent);
    border-left: 3px solid var(--blue-60);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-03);
}

.time-constraint-note i {
    color: var(--blue-60);
    font-size: var(--font-label-01);
    flex-shrink: 0;
}

.time-constraint-note span {
    font-size: var(--font-caption-02);
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

/* ==================== 现代化响应式设计 ==================== */
@media (max-width: 1400px) {
    .main-layout {
        grid-template-columns: 520px 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .params-section {
        position: static;
    }
    
    .results-section {
        grid-template-rows: auto;
    }
    
    .workload-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-4);
    }
    
    .header-compact {
        padding: var(--space-6);
        margin-bottom: var(--space-8);
    }
    
    .header-compact h1 {
        font-size: var(--font-2xl);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .funnel-top, .funnel-bottom {
        width: 100%;
        max-width: 280px;
    }
    
    .funnel-breakdown {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    
    .chart-bars {
        gap: var(--space-4);
    }
    
    .workload-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .result-number {
        font-size: var(--font-4xl);
    }
}

/* ==================== 现代化动画系统 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(59, 130, 246, 0.2),
            0 0 10px rgba(59, 130, 246, 0.1),
            0 0 15px rgba(59, 130, 246, 0.05);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(59, 130, 246, 0.4),
            0 0 20px rgba(59, 130, 246, 0.2),
            0 0 30px rgba(59, 130, 246, 0.1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: var(--accent-500);
    }
}

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

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.number-animate {
    animation: numberPulse 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculating {
    opacity: 0.7;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none;
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ==================== 现代化滚动条 ==================== */
.steps-container::-webkit-scrollbar {
    width: 8px;
}

.steps-container::-webkit-scrollbar-track {
    background: var(--secondary-100);
    border-radius: var(--radius-lg);
}

.steps-container::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--secondary-100);
}

.steps-container::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* ==================== 现代化打印样式 ==================== */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .main-layout {
        display: block;
    }
    
    .params-section, .results-section {
        page-break-inside: avoid;
        margin-bottom: var(--space-8);
        box-shadow: none;
        border: 1px solid var(--border-medium);
    }
    
    .recommendations {
        page-break-before: always;
        box-shadow: none;
        border: 1px solid var(--border-medium);
    }
    
    .header-compact {
        background: var(--primary-700) !important;
        -webkit-print-color-adjust: exact;
    }
}
/* =
=================== 现代化微交互效果 ==================== */
.business-funnel {
    animation: float 6s ease-in-out infinite;
}

.funnel-shape {
    position: relative;
}

.funnel-shape::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.funnel-shape:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.result-number {
    animation: glow 3s ease-in-out infinite;
}

.metric-box.highlight {
    animation: glow 4s ease-in-out infinite;
}

.calculate-btn-compact {
    position: relative;
}

.calculate-btn-compact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculate-btn-compact:hover::after {
    opacity: 1;
    animation: shimmer 1s ease-in-out;
}

/* 现代化滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(248, 250, 252, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--blue-70) 0%, var(--blue-80) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 现代化选择状态 */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

/* 现代化焦点状态 */
*:focus-visible {
    outline: 2px solid var(--blue-60);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* 现代化加载状态 */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* 现代化响应式增强 */
@media (max-width: 768px) {
    .business-funnel {
        animation: none; /* 移动端禁用浮动动画以提升性能 */
    }
    
    .param-group:hover,
    .metric-box:hover,
    .recommendation-item:hover {
        transform: none; /* 移动端简化悬停效果 */
    }
    
    .calculate-btn-compact {
        padding: var(--space-05) var(--space-06);
        font-size: var(--font-lg);
    }
}

/* 现代化暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --border-subtle: rgba(255, 255, 255, 0.1);
    }
    
    body {
        background: var(--bg-main);
        color: var(--text-primary);
    }
    
    .param-group,
    .core-results,
    .workload-analysis,
    .recommendations,
    .recommendation-item,
    .metric-box {
        background: rgba(15, 23, 42, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .param-table input {
        background: rgba(15, 23, 42, 0.9);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-primary);
    }
}

/* 现代化打印优化 */
@media print {
    .business-funnel,
    .result-number,
    .metric-box.highlight {
        animation: none !important;
    }
    
    .header-compact::after,
    .result-highlight::after,
    .funnel-shape::after,
    .calculate-btn-compact::after {
        display: none !important;
    }
    
    * {
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}/* =
=================== 现代化装饰元素 ==================== */
.header-decoration {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.header-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    animation: glow 3s ease-in-out infinite;
}

.result-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite reverse;
}

.result-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-2xl);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.1;
    }
}

/* 现代化卡片边框光效 */
.param-group::after,
.core-results::after,
.workload-analysis::after,
.recommendations::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(59, 130, 246, 0.3) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.param-group:hover::after,
.core-results:hover::after,
.workload-analysis:hover::after,
.recommendations:hover::after {
    opacity: 1;
}

/* 现代化数据可视化增强 */
.bar-fill {
    position: relative;
    overflow: hidden;
}

.bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    animation: shimmer 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* 现代化表格行悬停效果 */
.param-table tr {
    position: relative;
}

.param-table tr::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(59, 130, 246, 0.1) 50%, 
        rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
}

.param-table tr:hover::before {
    opacity: 1;
}

/* 现代化按钮涟漪效果 */
.calculate-btn-compact {
    overflow: hidden;
    position: relative;
}

.calculate-btn-compact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.calculate-btn-compact:active::before {
    width: 300px;
    height: 300px;
}

/* 现代化加载状态 */
.calculating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    animation: shimmer 1.5s ease-in-out infinite;
}

/* 现代化工具提示 */
.tooltip {
    position: relative;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

/* 现代化通知样式增强 */
.notification {
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s ease-in-out infinite;
}/* 
==================== 页面加载状态 ==================== */
/* 移除限制滚动的规则，确保页面始终可以滚动 */
body {
    overflow: auto;
}

body.loaded {
    overflow: auto;
}

body.loaded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10001;
    animation: loadingBar 2s ease-out forwards;
}

@keyframes loadingBar {
    0% {
        transform: translateX(-100%);
    }
    70% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== 现代化通知样式 ==================== */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ==================== 现代化性能优化 ==================== */
.param-group,
.core-results,
.workload-analysis,
.recommendations {
    will-change: transform, opacity;
}

.bar-fill {
    will-change: height;
}

.result-number {
    will-change: transform, color;
}

/* 减少动画在低性能设备上的影响 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .business-funnel,
    .result-number,
    .metric-box.highlight {
        animation: none !important;
    }
}

/* ==================== 现代化可访问性增强 ==================== */
@media (prefers-contrast: high) {
    :root {
        --border-subtle: #000000;
        --text-secondary: #000000;
        --bg-surface: #ffffff;
    }
    
    .param-table input {
        border-color: #000000;
    }
    
    .calculate-btn-compact {
        border: 2px solid #000000;
    }
}

/* 现代化键盘导航 */
.param-table input:focus,
.calculate-btn-compact:focus {
    z-index: 10;
    position: relative;
}

/* 现代化高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-compact,
    .param-group,
    .core-results {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==================== 现代化错误状态 ==================== */
.param-table input.error {
    border-color: var(--red-60) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* 现代化成功状态 */
.param-table input.success {
    border-color: var(--green-60) !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

/* ==================== 现代化空状态 ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.empty-state p {
    font-size: var(--font-sm);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}