/* ========================================
   GSlab 地源热泵计算系统 - 科技感样式（紧凑版）
   ======================================== */

/* CSS 变量定义 */
:root {
    /* 主题色 */
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    
    /* 锁定按钮颜色 */
    --locked-text: #64748b;
    --locked-bg: rgba(100, 116, 139, 0.15);
    --locked-border: rgba(100, 116, 139, 0.3);

    /* 背景色 */
    --bg-dark: #0a0e17;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(20, 30, 50, 0.8);
    --bg-input: rgba(30, 41, 59, 0.6);

    /* 边框色 */
    --border-glow: rgba(0, 212, 255, 0.3);
    --border-subtle: rgba(100, 116, 139, 0.3);

    /* 文字色 */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #00d4ff;

    /* 尺寸 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* 阴影 */
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

    /* 字体 */
    --font-main: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* 基础重置 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 字体调大 */
html {
    font-size: 16px;  /* 从14px改为16px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 背景动态效果 */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;  /* 从20px减少到15px */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;  /* 减少内边距 */
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-glow);
    margin-bottom: 15px;  /* 从20px减少到15px */
    backdrop-filter: blur(20px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;  /* 从16px减少到12px */
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 44px;  /* 从48px减少到44px */
    height: 44px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.8)); }
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 10px;  /* 从12px减少到10px */
}

/* 调大标题GSLab字体 */
.header-title-group h1 {
    font-size: 2.4rem;  /* 从2.2rem增大到2.4rem */
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.header-title-group .header-separator {
    color: var(--text-muted);
    font-size: 1.3rem;  /* 从1.2rem增大到1.3rem */
    opacity: 0.5;
}

.header-title-group .subtitle {
    font-size: 1.3rem;  /* 从1.3rem调整到1.3rem */
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 15px;  /* 从20px减少到15px */
}

.header-center .slogan {
    font-size: 1.2rem;  /* 从1.15rem增大到1.2rem */
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-style: italic;
    white-space: nowrap;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 6px;  /* 从8px减少到6px */
    padding: 6px 12px;  /* 减少内边距 */
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    font-size: 0.9rem;  /* 从0.85rem增大到0.9rem */
    color: var(--text-secondary);
}

/* 主内容区 - 减少间距 */
.main-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;  /* 调整左右比例 */
    gap: 15px;  /* 从20px减少到15px */
    flex: 1;
}

/* 卡片通用样式 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;  /* 从10px减少到8px */
    padding: 10px 14px;  /* 减少内边距 */
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.card-icon {
    font-size: 1.1rem;  /* 从1rem增大到1.1rem */
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.card-header h3 {
    font-size: 1rem;  /* 从0.95rem增大到1rem */
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 12px;  /* 从16px减少到12px */
}

/* 输入区域 */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;  /* 从16px减少到12px */
}

/* 输入行 - 整体向右移动 */
.input-row {
    display: flex;
    align-items: center;
    gap: 10px;  /* 从12px减少到10px */
    min-height: 36px;  /* 从34px增大到36px */
    margin-bottom: 8px;  /* 从6px增大到8px */
}

.input-row:last-child {
    margin-bottom: 0;
}

/* 增大左侧标签宽度，防止换行 */
.input-row label {
    flex: 0 0 210px;  /* 从180px增大到210px */
    font-size: 0.95rem;  /* 从0.95rem保持 */
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;  /* 防止文字换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 输入组整体向右移动 */
.input-group {
    display: flex;
    align-items: center;
    gap: 6px;  /* 从6px保持 */
    flex: 1;
    margin-left: 5px;  /* 添加左边距，整体向右移动 */
}

.param-symbol {
    font-family: var(--font-mono);
    font-size: 1rem;  /* 从0.95rem增大到1rem */
    color: var(--text-accent);
    min-width: 55px;  /* 从50px增大到55px */
    text-align: right;
}

/* 调整输入框宽度，配合整体布局 */
input[type="number"] {
    width: 100px;  /* 从95px增大到100px */
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;  /* 从1rem保持 */
    text-align: right;
    transition: all 0.2s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), inset 0 0 10px rgba(0, 212, 255, 0.05);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* 只读输入框样式 */
input[type="number"].readonly {
    background: rgba(20, 30, 45, 0.5);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

input[type="number"].readonly:focus {
    border-color: var(--border-subtle);
    box-shadow: none;
}

/* 可编辑输入框样式 - 确保制冷制热运行份额文字为亮色 */
input[type="number"]:not(.readonly) {
    background: var(--bg-input);
    color: var(--text-primary);  /* 确保文字为亮色 */
    cursor: text;
    opacity: 1;
}

/* 特别为制冷制热运行份额设置更亮的颜色 */
input#fc:not(.readonly),
input#fh:not(.readonly) {
    color: #f1f5f9;  /* 使用主文本颜色，确保亮度 */
    font-weight: 500;
}

/* 禁用的单选按钮组 */
.radio-group.disabled {
    opacity: 0.7;
}

.radio-group.disabled .radio-label {
    cursor: not-allowed;
}

.unit {
    font-size: 0.85rem;  /* 从0.85rem保持 */
    color: var(--text-muted);
    min-width: 70px;  /* 从65px增大到70px */
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 16px;  /* 从16px保持 */
    flex: 1;
    margin-left: 5px;  /* 添加左边距，统一向右移动 */
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;  /* 从6px保持 */
    cursor: pointer;
    font-size: 0.95rem;  /* 从0.95rem保持 */
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.radio-label:hover {
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked+.radio-custom {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

/* 钻孔排列输入 */
.array-input {
    gap: 6px;
    margin-left: 5px;  /* 添加左边距，统一向右移动 */
}

.array-input input {
    width: 70px;  /* 从65px增大到70px */
    text-align: center;
}

.array-separator {
    color: var(--text-muted);
    font-size: 1.1rem;  /* 从1.1rem保持 */
}

/* 计算区域 */
.calculation-section {
    display: flex;
    flex-direction: column;
    gap: 12px;  /* 从12px保持 */
}

/* 运行参数网格 */
.operation-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;  /* 从10px保持 */
}

/* 按钮组 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* 从8px保持 */
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;  /* 从1.1rem保持 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 锁定的ASHRAE算法按钮 */
.btn-ashrae {
    background: var(--locked-bg);
    color: var(--locked-text);
    border: 1px solid var(--locked-border);
    cursor: not-allowed;
    opacity: 0.7;
}

/* 锁定的IGSHPA算法按钮 */
.btn-igshpa {
    background: var(--locked-bg);
    color: var(--locked-text);
    border: 1px solid var(--locked-border);
    cursor: not-allowed;
    opacity: 0.7;
}

/* 负荷输入按钮 */
.btn-load {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-load:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(59, 130, 246, 0.25) 100%);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* 底部负荷输入按钮（绿色） */
.load-button-group {
    margin-top: 12px;  /* 从12px保持 */
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.btn-load-bottom {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(34, 197, 94, 0.2) 100%);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.btn-load-bottom:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(34, 197, 94, 0.35) 100%);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.4);
}

/* 负荷曲线卡片 */
.load-chart-card {
    border-color: rgba(16, 185, 129, 0.3);
}

.load-chart-card .card-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
}

#load-chart {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;  /* 从10px保持 */
}

.load-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;  /* 从10px保持 */
}

.load-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;  /* 从8px保持 */
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.stat-label {
    font-size: 0.8rem;  /* 从0.8rem保持 */
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.2rem;  /* 从1.2rem保持 */
    font-weight: 600;
    color: var(--text-primary);
}

.stat-unit {
    font-size: 0.75rem;  /* 从0.75rem保持 */
    color: var(--text-muted);
}

.btn-icon {
    font-size: 1rem;  /* 从1rem保持 */
}

/* 结果卡片 */
.result-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;  /* 从12px保持 */
}

.result-detail {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    overflow-y: auto;
    max-height: 220px;  /* 从220px保持 */
    border: 1px solid var(--border-subtle);
}

.result-detail pre {
    font-family: var(--font-mono);
    font-size: 0.95rem;  /* 从0.95rem保持 */
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

.result-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* 从8px保持 */
    padding: 14px;  /* 从14px保持 */
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glow);
}

.result-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.result-label {
    font-size: 1rem;  /* 从1rem保持 */
    color: var(--text-secondary);
}

.result-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;  /* 从1.5rem保持 */
    font-weight: 700;
    min-width: 120px;
    text-align: right;
}

.cooling .result-value {
    color: #3b82f6;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.heating .result-value {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.result-unit {
    font-size: 1rem;  /* 从1rem保持 */
    color: var(--text-muted);
}

/* 底部 */
.footer {
    text-align: center;
    padding: 14px;  /* 从14px保持 */
    color: var(--text-muted);
    font-size: 0.85rem;  /* 从0.85rem保持 */
    margin-top: 15px;  /* 从15px保持 */
}

.footer-divider {
    margin: 0 6px;  /* 从6px保持 */
    opacity: 0.5;
}

.copyright {
    color: var(--accent-cyan);
    opacity: 0.8;
    font-size: 0.9rem;  /* 从0.9rem保持 */
}

/* ========== 动画效果 ========== */

/* 打字机光标效果 */
#result-text::after {
    content: '|';
    animation: blinkCursor 0.7s infinite;
    color: var(--accent-cyan);
    font-weight: bold;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 数字滚动完成后的脉冲效果 */
@keyframes numberPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    50% { 
        transform: scale(1.08);
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }
}

.cooling .result-value {
    animation: numberPulse 0.5s ease;
}

.heating .result-value {
    animation: numberPulse 0.5s ease;
}

/* 计算过程中的加载动画 */
@keyframes calculatingGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        border-color: rgba(0, 212, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
        border-color: rgba(0, 212, 255, 0.8);
    }
}

.calculating {
    animation: calculatingGlow 1.5s ease-in-out infinite;
}

/* 增强结果显示区域 */
.result-detail pre {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 高亮重要信息 */
.result-detail pre strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.result-detail pre em {
    color: #f59e0b;
    font-style: normal;
}

/* 分隔线样式 */
.result-detail pre hr {
    border: none;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin: 15px 0;
}

/* 滚动条样式增强 */
.result-detail::-webkit-scrollbar {
    width: 6px;
}

.result-detail::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.result-detail::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.4);
    border-radius: 3px;
}

.result-detail::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.6);
}

/* 结果卡片动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    animation: slideInUp 0.5s ease-out;
}

/* 计算过程中的闪烁效果 */
@keyframes calculatingText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.calculating-text {
    animation: calculatingText 1.5s ease-in-out infinite;
    color: var(--accent-cyan);
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .input-row label {
        flex: 0 0 200px;  /* 从160px增大到200px */
    }
    
    /* 在小屏幕上调整边距 */
    .input-group {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;  /* 从15px保持 */
    }

    .container {
        padding: 10px;  /* 从10px保持 */
    }

    .header {
        flex-direction: column;
        gap: 10px;  /* 从10px保持 */
        text-align: center;
        padding: 12px;
    }
    
    .header-title-group h1 {
        font-size: 2.2rem;  /* 在移动端稍小一点 */
    }

    .input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .input-row label {
        flex: none;
        text-align: left;
        font-size: 0.9rem;
        width: 100%;
    }

    .input-group {
        width: 100%;
        margin-left: 0;
    }

    input[type="number"] {
        flex: 1;
        font-size: 1rem;
        width: 100%;
    }
    
    .radio-group {
        margin-left: 0;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* 加载动画 */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg,
            rgba(0, 212, 255, 0.1) 0%,
            rgba(0, 212, 255, 0.3) 50%,
            rgba(0, 212, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 打字效果动画 */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-cyan); }
}

/* 数字滚动时的样式 */
.result-value.rolling {
    opacity: 0.8;
    animation: numberRolling 2s ease-in-out infinite alternate;
}
@keyframes numberRolling {
    0% {
        opacity: 0.7;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(-2px);
    }
}
/* 数字滚动完成后的脉冲效果增强 */
@keyframes numberPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        opacity: 1;
    }
    50% { 
        transform: scale(1.08);
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
        opacity: 1;
    }
}
/* 制冷工况数字颜色 */
.cooling .result-value {
    color: #3b82f6;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}
/* 制热工况数字颜色 */
.heating .result-value {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}
/* 数字滚动时的发光效果 */
.result-value {
    position: relative;
    transition: all 0.3s ease;
}
.result-value::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.result-value.rolling::after {
    opacity: 0.5;
}
.cooling .result-value::after {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}
.heating .result-value::after {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
}
/* 增强滚动中的视觉效果 */
#result-text.typing {
    position: relative;
}
#result-text.typing::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 212, 255, 0.8) 0%, 
        rgba(124, 58, 237, 0.8) 100%);
    animation: typingProgress 3s ease-in-out infinite;
}
@keyframes typingProgress {
    0%, 100% { 
        opacity: 0.5;
        transform: scaleX(0.1);
    }
    50% { 
        opacity: 1;
        transform: scaleX(0.8);
    }
}