body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.container {
    max-width: 1200px;
    padding: 0.5rem;
    padding-bottom: 80px;
}

.card {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 0.75rem;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    padding: 0.75rem;
    background: #1677ff;
    color: #fff;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.card-header h5 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
}

.card-body {
    padding: 0.75rem;
}

/* 表格样式优化 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f5f7fa;
    font-weight: 600;
    padding: 0.75rem;
    font-size: 0.9rem;
    white-space: nowrap;
    vertical-align: middle;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* 选择框样式修复 */
.form-check {
    margin: 0;
    padding-left: 1.5rem;
    min-height: auto;
    position: relative;
}

.form-check-input {
    position: absolute;
    left: 0;
    margin-top: 0.25rem;
    margin-left: 0;
}

.form-check-label {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: block;
    padding-left: 0.25rem;
}

/* 价格显示样式优化 */
.form-check-label div.text-danger {
    color: #ff4d4f !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.form-check-label div.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.form-check-label small {
    display: block;
    color: #666;
    font-size: 0.8rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0.25rem;
    }
    
    .my-5 {
        margin: 0.5rem 0 !important;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
    
    .card-header {
        padding: 0.5rem;
    }
    
    .card-header h2 {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    /* 表格响应式处理 */
    .table-responsive {
        margin: 0;
        padding: 0;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .table td {
        padding: 0.4rem;
    }
    
    /* 选择框移动端优化 */
    .form-check {
        padding-left: 1.25rem;
    }
    
    .form-check-input {
        width: 1rem;
        height: 1rem;
        margin-top: 0.2rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
        margin-left: 0;
    }
    
    .form-check-label div {
        margin-bottom: 0.15rem;
        line-height: 1.3;
    }
    
    .form-check-label div:first-child {
        font-size: 0.8rem;
    }
    
    .form-check-label div.text-danger {
        font-size: 0.85rem;
    }
    
    .form-check-label small {
        font-size: 0.75rem;
    }
    
    /* 摘要区域移动端优化 */
    .summary-item {
        padding: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .summary-item label {
        font-size: 0.8rem;
    }
    
    .summary-item span {
        font-size: 0.85rem;
    }
    .form-check .form-check-input{
        margin-left:-0.1em
    }
    /* 价格和按钮区域优化 */
    .d-flex.justify-content-end {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }
    
    #totalPrice {
        text-align: center;
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .price-details {
        padding: 0.5rem;
    }
    
    .price-details .text-muted {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }
    
    /* 表格内容换行处理 */
    .table td .form-check-label {
        white-space: normal;
        word-break: break-word;
    }
    
    /* 版本对比按钮优化 */
    .btn-outline-primary {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-check-label div.original-price {
        font-size: 0.7rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .card-header h2 {
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .form-check-label {
        font-size: 0.8rem;
    }
    
    #totalPrice {
        font-size: 1.25rem;
    }
    
    .form-check-label div.original-price {
        font-size: 0.65rem;
    }
}

/* 版本块样式 */
.version-block {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.version-block:last-child {
    border-bottom: none;
}

.version-title {
    font-weight: 600;
    color: #1677ff;
    margin-bottom: 0.5rem;
}

.version-options {
    padding-left: 1rem;
}

/* 服务块样式 */
.service-block {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.service-block:last-child {
    border-bottom: none;
}

.service-header {
    margin-bottom: 0.5rem;
}

.service-options {
    padding-left: 1.5rem;
}

/* 表单控件样式 */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check:last-child {
    margin-bottom: 0;
}

/* 摘要信息样式 */
.summary-info {
    background-color: #f5f7fa;
    padding: 1rem;
    border-radius: 8px;
}

.summary-item {
    margin-bottom: 0.5rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item label {
    color: #666;
    margin-right: 0.5rem;
}

/* 价格明细样式 */
.price-details {
    background-color: #f5f7fa;
    padding: 1rem;
    border-radius: 8px;
}

.total-price {
    text-align: center;
}

.total-price h3 {
    color: #52c41a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 添加展开/收起相关样式 */
.card-header[role="button"] {
    cursor: pointer;
    user-select: none;
}

.card-header[role="button"]:hover {
    background-color: #1565c0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #fff;
}

.card-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* 添加展开/收起动画 */
.collapse {
    transition: all 0.3s ease;
}

/* 版本对比按钮样式 */
.btn-outline-primary {
    border: 1px solid #fff;
    color: #fff;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* 模态框样式优化 */
.modal-dialog.modal-lg {
    max-width: 800px;
    margin: 1rem auto;
}

.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: #1677ff;
    padding: 1rem;
    border-bottom: none;
}

.modal-header .modal-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-header .btn-close {
    background-color: transparent;
    opacity: 1;
    padding: 0.5rem;
    margin: 0;
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* 移动端模态框优化 */
@media (max-width: 768px) {
    .modal-dialog.modal-lg {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-header .modal-title {
        font-size: 1rem;
    }
    
    .btn-outline-primary {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* 固定底部栏样式 */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.price-summary {
    padding: 12px 16px;
    background: #fff;
    cursor: pointer;
}

.total-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff4d4f;
}

.action-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-details {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.view-details:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.detail-icon {
    transition: transform 0.3s ease;
}

.price-details {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* 调整按钮和明细的布局 */
.action-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .action-area {
        gap: 12px;
    }
    
    .view-details {
        font-size: 0.85rem;
        padding: 3px 6px;
    }
}

/* 价格明细区域样式 */
.price-details {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    max-height: 40vh;
    overflow-y: auto;
}

.price-details .text-muted {
    color: #999 !important;
    font-size: 0.9rem;
    padding: 4px 0;
    white-space: nowrap;
}

/* 展开/收起动画 */
.collapse {
    transition: all 0.3s ease;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .price-summary {
        padding: 8px 12px;
    }
    
    .total-amount {
        font-size: 1.1rem;
    }
    
    .action-area {
        gap: 12px;
    }
    
    .btn-primary {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .price-details {
        padding: 12px;
    }
    
    .price-details .text-muted {
        font-size: 0.85rem;
    }
}

/* Logo样式 */
.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.logo-area {
    flex-shrink: 0;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .company-logo {
        width: 32px;
        height: 32px;
    }
    
    .header-content {
        gap: 0.5rem;
    }
}

/* 用户数量输入框样式 */
.user-count-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.number-input {
    position: relative;
    flex: 1;
}

.number-input .form-control {
    width: 100%;
    text-align: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    -moz-appearance: textfield; /* Firefox */
}

.number-input .unit-text {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Chrome, Safari, Edge, Opera */
.number-input input::-webkit-outer-spin-button,
.number-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 14l5-5 5 5z'/%3E%3C/svg%3E") no-repeat center right, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat center right;
    width: 20px;
    opacity: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .user-count-wrapper label {
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .number-input .form-control {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
    
    .number-input .unit-text {
        font-size: 0.85rem;
    }
}

/* 用户数量输入组样式优化 */
.number-input-group {
    display: flex;
    align-items: stretch;
    position: relative;
    width: 160px; /* 设置固定宽度 */
    height: 38px;
}

.number-input-group .form-control {
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
    width: 100%;
    padding: 0;
    height: 100%;
    line-height: 38px;
    border: 1px solid #ced4da;
}

.number-input-group .btn {
    padding: 0;
    font-size: 1.2rem;
    border: 1px solid #ced4da;
    background-color: #fff;
    color: #666;
    min-width: 38px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-decrease {
    border-radius: 4px 0 0 4px;
}

.btn-increase {
    border-radius: 0 4px 4px 0;
}

.number-input-group .unit-text {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
    pointer-events: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .number-input-group {
        width: 140px; /* 移动端稍微缩小宽度 */
        height: 34px;
    }
    
    .number-input-group .btn {
        min-width: 34px;
        font-size: 1rem;
    }
    
    .number-input-group .form-control {
        font-size: 0.9rem;
        line-height: 34px;
    }
    
    .number-input-group .unit-text {
        font-size: 0.85rem;
        right: 40px;
    }
    
    .user-count-wrapper label {
        font-size: 0.9rem;
    }
} 