/* 金融试算器页面样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #333;
    --light-bg: #f5f7fa;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

.calculator-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.calculator-header p {
    font-size: 1.1rem;
    color: #666;
}

/* 计算器切换标签 */
.calculator-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 24px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 8px;
    margin: 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
}

.calculator-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.config-options {
    flex: 1.5;
    min-width: 350px;
}

.config-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.config-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* 服务器类型样式 */
.server-types {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.server-type {
    flex: 1;
    min-width: 200px;
    background-color: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.server-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.server-type.selected {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.server-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.server-type h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.server-type p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px;
}

.server-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* 滑块样式 */
.slider-container {
    padding: 10px 0;
}

.slider-value {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.slider {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.slider::-moz-range-thumb:hover {
    background: var(--secondary-color);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* 存储选项样式 */
.storage-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.storage-type {
    flex: 1;
    min-width: 250px;
}

.storage-size {
    flex: 1;
    min-width: 250px;
}

.storage-options h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.radio-option input {
    margin-right: 10px;
}

.radio-label {
    font-weight: 600;
    margin-right: 10px;
}

.radio-description {
    font-size: 0.9rem;
    color: #666;
}

/* 操作系统选项样式 */
.os-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.os-option {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: var(--light-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.os-option:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.os-option input {
    position: absolute;
    opacity: 0;
}

.os-option input:checked + .os-icon {
    color: var(--primary-color);
}

.os-option input:checked ~ .os-name {
    color: var(--primary-color);
    font-weight: 600;
}

.os-option input:checked + .os-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    left: 0;
    top: 0;
    z-index: -1;
}

.os-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #666;
    position: relative;
    z-index: 1;
}

.os-name {
    font-size: 0.9rem;
}

/* 附加选项样式 */
.additional-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-option:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.checkbox-option input {
    margin-right: 10px;
}

.checkbox-label {
    flex: 1;
    font-weight: 600;
}

.option-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* 价格摘要样式 */
.price-summary {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.price-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.price-card h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.config-summary {
    margin-bottom: 25px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.config-item:last-child {
    border-bottom: none;
}

.config-item-label {
    font-weight: 600;
}

.config-item-value {
    color: #666;
}

.price-breakdown {
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-row.subtotal {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-weight: 600;
}

.price-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
}

.billing-cycle {
    margin-bottom: 25px;
}

.billing-cycle h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.cycle-options {
    display: flex;
    gap: 15px;
}

.cycle-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: var(--light-bg);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.cycle-option:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.cycle-option input {
    position: absolute;
    opacity: 0;
}

.cycle-option input:checked ~ .cycle-label {
    color: var(--primary-color);
    font-weight: 600;
}

.cycle-option input:checked + .cycle-label::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    left: 0;
    top: 0;
}

.cycle-label {
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.cycle-discount {
    font-size: 0.8rem;
    color: var(--success-color);
    margin-top: 5px;
}

.order-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.order-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
}

/* 金融试算器样式 */
.financial-estimator-container {
    width: 100%;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.financial-estimator {
    width: 100%;
}

.dedicated-estimator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.estimator-horizontal {
    flex-direction: row;
}

.estimator-col {
    flex: 1;
    min-width: 250px;
}

.estimator-result-col {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.estimator-row {
    margin-bottom: 20px;
}

.estimator-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.estimator-note {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.addons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addons-group label {
    display: inline;
    margin-right: 15px;
}

.info-icon {
    color: var(--primary-color);
    cursor: help;
    margin-left: 5px;
}

.billing-toggle {
    display: flex;
    gap: 15px;
}

.billing-toggle label {
    margin-right: 15px;
    display: inline;
}

.estimator-result {
    text-align: center;
    margin-bottom: 20px;
}

.estimator-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.estimator-desc {
    font-size: 1rem;
    color: #666;
}

.primary-button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.primary-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calculator-container {
        margin-top: 80px;
    }
    
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .price-summary {
        position: static;
    }
    
    .server-types {
        flex-direction: column;
    }
    
    .server-type {
        min-width: 100%;
    }
    
    .os-option {
        min-width: 80px;
    }
    
    .dedicated-estimator-form {
        flex-direction: column;
    }
    
    .estimator-col {
        width: 100%;
    }
    
    .billing-toggle {
        flex-direction: column;
    }
} 