﻿body {
    background-color: #f8f9fa;
    color: #343a40;
    font-family: 'Noto Sans SC', sans-serif;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
}

.container {
    
    user-select: none;
}

.main-header {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #f9f7fa 100%);
}

    .main-header:hover {
        box-shadow: 0 0.5rem 1.5rem rgba(33, 150, 243, 0.15);
        transform: translateY(-2px);
    }

    .main-header:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #2196F3 0%, #4CAF50 50%, #FF9800 100%);
    }

    .main-header h1 {
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #2c3e50;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: -0.5px;
    }

        .main-header h1 i {
            margin-right: 0.75rem;
            color: #2196F3;
            font-size: 1.75rem;
        }

    .main-header .lead {
        color: #7f8c8d;
        font-size: 1.1rem;
        max-width: 80%;
        margin: 0 auto;
    }

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

    .nav-tabs .nav-link {
        border: none;
        color: #6c757d;
        padding: 0.75rem 1.25rem;
        font-weight: 800;
        font-size:2em;
        transition: all 0.2s ease;
        margin-right: 0.5rem;
    }

        .nav-tabs .nav-link:hover {
            color: #495057;
            background-color: rgba(33, 150, 243, 0.05);
        }

        .nav-tabs .nav-link.active {
            color: #2196F3;
            background: none;
            border-bottom: 2px solid #2196F3;
            margin-bottom: -2px;
        }

        .nav-tabs .nav-link i {
            margin-right: 0.5rem;
        }

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

.card-header {
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
    font-weight: 500;
    padding: 1rem 1.25rem;
}

    .card-header h5 {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        font-weight: 600;
    }

        .card-header h5 i {
            margin-right: 0.6rem;
        }

.card-body {
    padding: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

    .form-label i {
        margin-right: 0.5rem;
        color: #6c757d;
    }

.form-control, .form-select {
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    border-color: #dee2e6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
    transition: all 0.2s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: #4dabf7;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    }

.input-group-text {
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.btn-primary {
    background: linear-gradient(to right, #2196F3, #2979FF);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.2);
}

    .btn-primary:hover {
        background: linear-gradient(to right, #1E88E5, #1A73E8);
        box-shadow: 0 6px 10px rgba(33, 150, 243, 0.3);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

.guide-box {
    background-color: #e3f2fd;
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border-left: 4px solid #2196F3;
    transition: all 0.3s ease;
}

    .guide-box:hover {
        box-shadow: 0 0.5rem 1rem rgba(33, 150, 243, 0.1);
    }

    .guide-box h5 {
        color: #0d6efd;
        display: flex;
        align-items: center;
        font-weight: 600;
        margin-bottom: 1rem;
    }

        .guide-box h5 i {
            margin-right: 0.75rem;
            font-size: 1.25rem;
        }

.guide-step {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

.guide-step-number {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#resultContainer .card-header {
    background: linear-gradient(to right, #26a69a, #009688);
    color: white;
    position: relative;
    overflow: hidden;
}

    #resultContainer .card-header:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
        animation: shine 2s infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#resultContainer .table {
    margin-bottom: 0;
    vertical-align: middle;
}

    #resultContainer .table th,
    #resultContainer .table td {
        padding: 0.75rem 1rem;
        vertical-align: middle;
    }

#resultContainer thead tr:first-child th {
    
    border-bottom: 1px solid #dee2e6;
}

#resultContainer thead tr:last-child th {
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}


#resultContainer .table-hover tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.05);
    transition: all 0.2s ease;
}

#resultContainer tfoot th {
    font-weight: 600;
    padding: 0.75rem 1rem;
}

#resultContainer tfoot tr.table-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

#resultContainer tfoot tr.table-success {
    background-color: rgba(25, 135, 84, 0.1);
}

#resultContainer tfoot tr.table-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.badge {
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
}

    .badge.bg-primary {
        background-color: #0d6efd !important;
    }

    .badge.bg-success {
        background-color: #198754 !important;
    }

.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.alert-warning {
    background-color: #fff8e1;
    color: #f57c00;
    border-left: 4px solid #ffa000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.tips-item {
    padding-left: 10px;
    border-left: 3px solid #ffc107;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

    .tips-item:hover {
        border-left-color: #fd7e14;
        background-color: rgba(255, 193, 7, 0.05);
        padding-left: 15px;
    }

.accordion-button {
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

    .accordion-button:not(.collapsed) {
        background-color: rgba(13, 110, 253, 0.1) !important;
        color: #0d6efd;
    }

.accordion-body {
    padding: 1rem;
    font-size: 0.95rem;
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 767.98px) {
    #resultContainer .table th,
    #resultContainer .table td {
        padding: 0.5rem;
        font-size:0.6em;
    }

    .badge {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
}


/* Select2 自定义样式 */
.select2-container--bootstrap-5 .select2-selection--single {
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border-color: #dee2e6;
}

    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
        padding-left: 0;
        padding-right: 0;
        color: #495057;
        line-height: 1.5;
    }

    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
        height: calc(2.25rem);
        right: 3px;
    }

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #4dabf7;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.select2-dropdown {
    border-radius: 0.5rem;
    border-color: #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border-radius: 0.375rem;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: #2196F3;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

/* 搜索框占位符样式 */
.select2-search--dropdown .select2-search__field::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* 无结果提示样式 */
.select2-results__option--highlighted .select2-results__message {
    color: #6c757d;
}

/* 详细分项卡片美化样式 */
.detail-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

    .detail-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .detail-card .card-header {
        border-radius: 8px 8px 0 0;
        font-weight: 500;
    }

    .detail-card .card-body {
        border-radius: 0 0 8px 8px;
    }

#detailToggleBtn {
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
}

    #detailToggleBtn:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-color: #2196F3;
        color: #2196F3;
        background-color: rgba(33, 150, 243, 0.05);
    }

#detailSection {
    animation: detailFadeIn 0.3s ease-in-out;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.02) 0%, rgba(76, 175, 80, 0.02) 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-top:0.5em;
    padding-bottom:0.5em;
}

@keyframes detailFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item {
    border-radius: 4px;
    transition: background-color 0.2s ease;
    padding: 0.25rem;
}

    .detail-item:hover {
        background-color: rgba(0,0,0,0.02);
    }

/* 详细分项卡片特殊样式 */
.detail-card.border-primary {
    border-color: rgba(13, 110, 253, 0.3) !important;
}

.detail-card.border-success {
    border-color: rgba(25, 135, 84, 0.3) !important;
}

.detail-card.border-info {
    border-color: rgba(13, 202, 240, 0.3) !important;
}

/* 详细分项内的数值显示 */
.detail-card .fw-medium {
    font-size: 1.1rem;
}

.detail-card .fw-bold {
    font-size: 1.2rem;
}

/* 总览卡片特殊样式 */
.detail-card .text-center .d-flex {
    min-height: 60px;
    align-items: center;
    justify-content: center;
}

.detail-card .text-center .fw-bold {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.detail-card .text-center .small {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* 计算结果分隔线样式 */
.result-divider {
    border: none;
    height: 3px;
    background: linear-gradient(to right, #2196F3, #4CAF50, #FF9800);
    margin: 2em 0.5em 0 0;
    border-radius: 2px;
    opacity: 0.8;
}

.table-light th {
    text-align: center;
}
.table-light tr th{
    border: 1px solid #dee2e6;
}

.text-center .d-flex justify-content-between {
    flex-direction: row-reverse !important;
    justify-content: space-evenly !important;
}

#resultTable td{
    border: 1px solid #dee2e6;
    text-align:center;
}



/* 计算结果表格样式 - 简洁灰白风格 */
/* 表格基础样式 */
.table {
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    overflow: hidden;
}
    /* 表格标题样式 #f8f9fa   #2196F3  #f2f2f2  #99ccff*/
    .table thead th {
        background-color: #f2f2f2 !important;
        border: 1px solid #e6e6e6 !important;
        font-weight: 600;
    }


    /* 表格内容样式 */
    .table tbody td {
        border: 1px solid #e6e6e6 !important;
        vertical-align: middle;
    }

        /* 项目名称列（第一列）*/
        .table tbody td:first-child {
            background-color: white !important;
            font-weight: 600;
            padding-left: 16px;
        }

        /* 数据列（除第一列外的所有列）*/
        .table tbody td:not(:first-child) {
            background-color: white !important;
            text-align: center;
        }





/* 悬停效果替代方案 */
.calculator-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .calculator-card.hover-active {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    }

        .calculator-card.hover-active .btn {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

.card-body {
    padding-bottom: 0.5em !important;
}
    /* 渐变动画多前缀 */
    .gradient-purple {
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-size: 200% 200%;
    background-size: 200% 200%;
    -webkit-animation: gradientShift 4s ease infinite;
    animation: gradientShift 4s ease infinite;
}
.gradient-pink {
    background: -webkit-linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-size: 200% 200%;
    background-size: 200% 200%;
    -webkit-animation: gradientShift 4s ease infinite;
    animation: gradientShift 4s ease infinite;
}

/* 关键帧兼容 */
@-webkit-keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 图标动画 */
.calculator-card i {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: all 0.3s ease;
}

.calculator-card.hover-active i {
    transform: scale(1.1) rotate(5deg);
}


.text-more {
    border: none;
    color: #6c757d;
    padding: 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    background-color: rgba(33, 150, 243, 0.05);
}

    .the-more .nav-link:hover {
        color: #495057;
        background-color: rgba(33, 150, 243, 0.05);
    }

    .the-more .nav-link.active {
        color: #2196F3;
        background: none;
        border-bottom: 2px solid #2196F3;
        margin-bottom: -2px;
    }

    .the-more .nav-link i {
        margin-right: 0.5rem;
    }


@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-weight: 800;
        font-size: 1.5em;
    }

}
















