/**
 * EV Charging Cost Calculator Styles (Chinese Simplified - China)
 * 电动汽车充电费计算器 (2栏布局)
 *
 * @package Zipper
 */

/* ===== 2栏布局 (桌面端) ===== */
.evc-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.evc-input-col {
    position: sticky;
    top: 20px;
}

.evc-result-col {
    min-width: 0;
}

/* 输入区域 */
.evc-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    margin-bottom: 12px;
}

.evc-input-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-input-title i {
    color: #d4af37;
}

.evc-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evc-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.evc-input-group input,
.evc-input-group select {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.evc-input-group input:focus,
.evc-input-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.evc-input-group input::placeholder {
    color: #a09a94;
}

.evc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 输入单位显示 */
.evc-input-with-unit {
    position: relative;
}

.evc-input-with-unit input {
    padding-right: 55px;
}

.evc-input-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #a09a94;
    pointer-events: none;
}

/* 计算模式标签页 */
.evc-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.evc-mode-tab {
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.evc-mode-tab:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.evc-mode-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

.evc-mode-tab i {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

/* 模式输入区域 */
.evc-mode-content {
    display: none;
}

.evc-mode-content.active {
    display: block;
}

/* 充电运营商选择 */
.evc-network-select {
    margin-bottom: 8px;
}

.evc-network-info {
    font-size: 11px;
    color: #5f5a56;
    background: rgba(212, 175, 55, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 4px;
}

/* 时段选择 */
.evc-time-period {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.evc-time-period-label {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.evc-time-period-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.evc-period-tab {
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 4px;
    background: #faf9f7;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.evc-period-tab:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.evc-period-tab.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #b8860b;
}

.evc-period-tab.peak { border-left: 3px solid #e74c3c; }
.evc-period-tab.shoulder { border-left: 3px solid #f39c12; }
.evc-period-tab.off-peak { border-left: 3px solid #27ae60; }
.evc-period-tab.super-peak { border-left: 3px solid #9b59b6; }

/* 费用分解显示 */
.evc-fee-breakdown {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin-top: 8px;
}

.evc-fee-breakdown-title {
    font-size: 11px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 6px;
}

.evc-fee-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px dashed rgba(52, 152, 219, 0.2);
}

.evc-fee-row:last-child {
    border-bottom: none;
}

.evc-fee-row .label {
    color: #5f5a56;
}

.evc-fee-row .value {
    font-weight: 600;
    color: #2d2a26;
}

.evc-fee-row.total {
    border-top: 1px solid rgba(52, 152, 219, 0.3);
    padding-top: 6px;
    margin-top: 4px;
}

.evc-fee-row.total .label,
.evc-fee-row.total .value {
    color: #3498db;
    font-weight: 700;
}

/* 费率参考指南 */
.evc-rate-guide {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: #5f5a56;
    line-height: 1.5;
}

.evc-rate-guide-title {
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.evc-rate-guide-title i {
    color: #d4af37;
}

.evc-rate-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dashed #e8e4dc;
}

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

.evc-rate-item .label {
    color: #5f5a56;
}

.evc-rate-item .value {
    font-weight: 600;
    color: #2d2a26;
}

/* 等待状态 */
.evc-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
    background: #faf9f7;
    border: 1px dashed #e8e4dc;
    border-radius: 10px;
}

.evc-waiting i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.evc-waiting p {
    font-size: 14px;
}

/* ===== 结果区域 ===== */

/* 主结果卡片 */
.evc-main-result {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 12px;
}

.evc-main-value {
    font-size: 44px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 6px;
}

.evc-main-value .unit {
    font-size: 20px;
    font-weight: 500;
    color: #b8860b;
}

.evc-main-label {
    font-size: 14px;
    color: #5f5a56;
    margin-bottom: 8px;
}

.evc-main-sub {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.evc-main-sub-item {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
}

.evc-main-sub-item .label {
    color: #5f5a56;
}

.evc-main-sub-item .value {
    font-weight: 600;
    color: #2d2a26;
    margin-left: 4px;
}

/* 结果卡片网格 */
.evc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.evc-result-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.evc-result-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.12);
}

.evc-result-card i {
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 6px;
    display: block;
}

.evc-result-card .label {
    font-size: 11px;
    color: #5f5a56;
    margin-bottom: 4px;
}

.evc-result-card .value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
}

.evc-result-card .value .unit {
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
}

/* 月度/年度预测区域 */
.evc-prediction-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(52, 152, 219, 0.03) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.evc-prediction-title {
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-prediction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.evc-prediction-item {
    text-align: center;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
}

.evc-prediction-item .label {
    font-size: 11px;
    color: #5f5a56;
    margin-bottom: 4px;
}

.evc-prediction-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #3498db;
}

.evc-prediction-item .value .unit {
    font-size: 11px;
    font-weight: 500;
}

/* 充电方式对比区域 */
.evc-comparison-section {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(46, 204, 113, 0.03) 100%);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.evc-comparison-title {
    font-size: 13px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.evc-comparison-item {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.evc-comparison-item .type-label {
    font-size: 11px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 4px;
}

.evc-comparison-item .cost-value {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.evc-comparison-item .rate-info {
    font-size: 10px;
    color: #5f5a56;
    margin-top: 2px;
}

/* 历史记录区域 */
.evc-history-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.evc-history-title {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.evc-history-title i {
    color: #d4af37;
    margin-right: 4px;
}

.evc-history-clear {
    font-size: 11px;
    color: #a09a94;
    cursor: pointer;
    transition: color 0.2s;
}

.evc-history-clear:hover {
    color: #e74c3c;
}

.evc-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.evc-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #faf9f7;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.evc-history-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

.evc-history-item .info {
    color: #5f5a56;
}

.evc-history-item .cost {
    font-weight: 600;
    color: #d4af37;
}

.evc-history-empty {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #a09a94;
}

/* 操作按钮 */
.evc-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.evc-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.evc-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.evc-btn i {
    font-size: 14px;
}

.evc-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

.evc-btn-primary:hover {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #fff;
}

/* 免责声明 */
.evc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 8px;
    margin-top: 12px;
}

.evc-disclaimer i {
    color: #6c757d;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.evc-disclaimer-text {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.evc-disclaimer-text strong {
    color: #2d2a26;
}

/* 隐藏 */
.evc-hidden {
    display: none !important;
}

/* ===== 响应式 - 平板 ===== */
@media (max-width: 900px) {
    .evc-main-layout {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }

    .evc-prediction-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 响应式 - 移动端 ===== */
@media (max-width: 768px) {
    .evc-main-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .evc-input-col {
        position: static;
    }

    .evc-input-section {
        padding: 14px;
    }

    .evc-mode-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .evc-time-period-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .evc-main-result {
        padding: 14px 16px;
    }

    .evc-main-value {
        font-size: 38px;
    }

    .evc-result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .evc-prediction-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .evc-comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .evc-actions {
        flex-wrap: wrap;
    }

    .evc-btn {
        min-width: calc(50% - 4px);
    }
}

/* ===== 响应式 - 小屏手机 ===== */
@media (max-width: 480px) {
    .evc-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .evc-mode-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .evc-mode-tab {
        font-size: 10px;
        padding: 6px 4px;
    }

    .evc-time-period-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .evc-main-value {
        font-size: 32px;
    }

    .evc-main-value .unit {
        font-size: 16px;
    }

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

    .evc-result-card {
        padding: 10px;
    }

    .evc-result-card .value {
        font-size: 16px;
    }

    .evc-prediction-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .evc-prediction-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .evc-comparison-grid {
        grid-template-columns: 1fr;
    }

    .evc-comparison-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .evc-main-sub {
        flex-direction: column;
        gap: 6px;
    }

    .evc-main-sub-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}
