<style type="text/css">
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --success: #2ecc71;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --primary-dark: #0A1A3D;
    --primary-blue: #1A3A8F;
    --primary-accent: #3A5FCD;
    --light-blue: #E8F1FF;
    --gray-dark: #2C3E50;
    --gray-medium: #6c757d;
    --white: #FFFFFF;
    --transition: 0.3s ease;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0px;
    padding-left: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* 添加响应式布局 */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }
    
    header {
        grid-column: 1 / -1;
    }
    
    .tabs {
        grid-column: 1 / -1;
    }
    
    .tab-content {
        grid-column: 1;
    }
    
    footer {
        grid-column: 1 / -1;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    padding-top: 0px;
    padding-right: 16px;
    padding-bottom: 0px;
    padding-left: 16px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Main Card */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.section-title i {
    font-size: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

select, .slider-container {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: white;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.slider-container {
    padding: 10px 14px;
}

.slider-value {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--light-gray);
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Radio & Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option, .checkbox-option {
    flex: 1;
    min-width: 140px;
}

.radio-option input, .checkbox-option input {
    display: none;
}

.radio-option label, .checkbox-option label {
    display: block;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.radio-option input:checked + label,
.checkbox-option input:checked + label {
    background: var(--primary);
    color: white;
}

/* Results Section */
.results-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary);
}

.fee-structure {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fee-item:last-child {
    margin-bottom: 0;
}

.fee-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    padding-top: 10px;
    border-top: 2px solid rgba(0,0,0,0.1);
}

.cost-breakdown {
    margin: 18px 0;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success);
    padding-top: 16px;
    border-top: 2px solid rgba(0,0,0,0.1);
}

.cost-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-label i {
    color: var(--gray);
    font-size: 0.9rem;
}

.cost-amount {
    font-weight: 600;
}

.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 14px;
    border-radius: 8px;
    margin-top: 18px;
    font-size: 0.85rem;
}

.disclaimer-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #856404;
    font-size: 0.9rem;
}

/* Button */
.calculate-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Info Box */
.info-box {
    background-color: #e8f4fc;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.95rem;
}

.info-content {
    font-size: 0.85rem;
    color: var(--dark);
}

/* State Info Section */
.state-results-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f0ff 100%);
    border-left: 4px solid #2ecc71;
}

.state-info-box {
    background-color: #e8f8f0;
    border-left: 4px solid #2ecc71;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.state-rate-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
}

.state-rate-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
    h1 {
        font-size: 1.7rem;
    }
    
    .radio-option, .checkbox-option {
        min-width: 150px;
    }
    
    .form-row {
        display: flex;
        gap: 20px;
    }
    
    .form-row .form-group {
        flex: 1;
    }
    
    .calculator-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .calculator-container .card {
        margin-bottom: 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.hidden {
    display: none;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Sidebar Styles (kept but will be removed in layout — we override container grid) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 重写大屏容器为单列，右侧栏彻底隐藏 */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        display: block;  /* 改为块级，取消网格 */
        grid-template-columns: unset;
        gap: 0;
    }
    /* 直接隐藏整个侧边栏 (原有sidebar类) */
    .sidebar {
        display: none !important;
    }
    /* 调整内容宽度，居中显示 */
    .tabs,
    .tab-content,
    .calculate-btn,
    .card {
        max-width: 1200px;   /* 适当限制宽度，保持阅读舒适 */
        margin-left: auto;
        margin-right: auto;
    }
    .header-text {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Header Text */
.header-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin: 0 auto 20px auto;
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: 1168px;
    box-sizing: border-box;
}

/* 确保小屏幕下没有侧边栏残留 */
@media (max-width: 1199px) {
    .sidebar {
        display: none;   /* 确保任何情况下都不显示 */
    }
}

/* 页脚如果有的话可以保留，但目前没有页脚模块，忽略 */

.main-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

  </style>