/* 登录注册弹窗样式 */
#loginRegisterModal .modal-dialog {
    max-width: 500px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483648 !important;
}

#loginRegisterModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
}

#loginRegisterModal .tab-content {
    padding: 15px 0;
}

#loginRegisterModal .page-header {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#loginRegisterModal .st-login-third {
    margin-bottom: 15px;
}

#loginRegisterModal .st-login-third a {
    font-size: 24px;
    margin-right: 15px;
}

#loginRegisterModal .help-block {
    font-size: 12px;
    color: #777;
}

/* 移动设备适配 */
@media (max-width: 767px) {
    #loginRegisterModal .modal-dialog {
        width: 95%;
        margin: 0 auto;
    }
    
    #loginRegisterModal .modal-content {
        max-height: 85vh;
    }
    
    #loginRegisterModal .form-group {
        margin-bottom: 10px;
    }
    
    #loginRegisterModal .control-label {
        padding-top: 0;
        text-align: left;
    }
    
    #loginRegisterModal .form-horizontal .control-label {
        text-align: left;
        margin-bottom: 5px;
    }
    
    #loginRegisterModal .col-md-3,
    #loginRegisterModal .col-md-9,
    #loginRegisterModal .col-md-5,
    #loginRegisterModal .col-md-4,
    #loginRegisterModal .col-md-offset-3 {
        width: 100%;
        margin-left: 0;
    }
    
    #loginRegisterModal input[type="text"],
    #loginRegisterModal input[type="email"],
    #loginRegisterModal input[type="password"],
    #loginRegisterModal select {
        height: 36px;
        font-size: 14px;
    }
    
    #loginRegisterModal .modal-body {
        padding: 15px 10px;
    }
    
    #loginRegisterModal .page-header {
        font-size: 14px;
        margin-bottom: 10px;
    }
}
#loginRegisterModal .nav-tabs>li.active>a, #loginRegisterModal .nav-tabs>li.active>a:hover,#loginRegisterModal .nav-tabs>li.active>a:focus{
   /*background-color: blanchedalmond; */
}

/* 产品详情页面样式 */
.st-main {
    background: transparent;
    min-height: 100vh;
    padding: 20px 0;
}

/* 产品详情页组件样式 */
.product-images-component,
.product-info-component,
.product-actions-component {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 20px;
    border: none;
}

.product-info-component h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.st-detail-attr .st-price dt span {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

.st-detail-attr .st-price dt del {
    font-size: 18px;
    margin-left: 10px;
}

.st-itemcode dd {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 规格选择美化 */
.st-attr dd {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 5px 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.st-attr dd:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.st-attr dd.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

/* 按钮样式优化 */
.st-btn .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 库存状态样式 */
.st-instock {
    color: #28a745;
    font-weight: 600;
}

.st-stockout {
    color: #dc3545;
    font-weight: 600;
}

/* 手机端产品详情页面优化 */
@media (max-width: 768px) {
    .st-main {
        padding: 10px 0;
    }

    /* 产品信息组件优化 */
    .product-info-component h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .st-detail-attr .st-price dt span {
        font-size: 24px;
    }

    /* 按钮优化 */
    .st-btn .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Tab内容区域优化 */
    .product-detail-tab-layout .tab-content {
        padding: 15px 0;
    }

    .product-detail-tab-layout .tab-pane {
        padding: 15px 10px;
    }

    /* 产品详情表格优化 */
    .table {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .table th {
        background-color: #f8f9fa;
        font-weight: 600;
        padding: 12px 8px;
        border-bottom: 2px solid #dee2e6;
        font-size: 13px;
    }

    .table td {
        padding: 10px 8px;
        vertical-align: middle;
        word-break: break-word;
    }

    /* 产品配件列表优化 */
    .st-cart-table .media {
        margin-bottom: 0;
    }

    .st-cart-table .media-object {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    .st-cart-table .media-body {
        padding-left: 10px;
    }

    .st-cart-table .media-heading {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    .st-cart-table .media-heading a {
        color: #333;
        text-decoration: none;
    }

    .st-cart-table .st-itemcode {
        margin-bottom: 5px;
    }

    .st-cart-table .st-itemcode small {
        font-size: 12px;
        color: #666;
    }

    .st-cart-table .st-price {
        font-size: 14px;
        font-weight: 600;
        color: #e74c3c;
        margin-bottom: 0;
    }

    .st-cart-table input[name="accNum"] {
        width: 50px;
        height: 30px;
        border: 1px solid #ddd;
        border-radius: 3px;
        text-align: center;
        font-size: 12px;
        margin-left: 5px;
    }

    /* 配件表格按钮优化 */
    .st-cart-table .btn-xs {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 3px;
    }

    /* 产品详情图片优化 */
    .tab-pane img {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
        border-radius: 4px;
    }

    /* 规格表格响应式优化 */
    .table-striped > tbody > tr:nth-of-type(odd) {
        background-color: #f9f9f9;
    }

    /* 警告信息优化 */
    .alert {
        margin-bottom: 20px;
        padding: 12px 15px;
        border-radius: 4px;
        font-size: 14px;
    }

    .alert-info {
        background-color: #d1ecf1;
        border-color: #bee5eb;
        color: #0c5460;
    }
}

/* 超小屏幕优化 (480px以下) */
@media (max-width: 480px) {
    .st-main {
        padding: 5px 0;
    }

    /* Tab导航优化 */
    .product-detail-tab-layout .nav-tabs > li > a {
        padding: 8px 6px;
        font-size: 12px;
        text-align: center;
    }

    .product-detail-tab-layout .tab-pane {
        padding: 10px 5px;
    }

    /* 表格进一步优化 */
    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px 5px;
    }

    /* 配件列表优化 */
    .st-cart-table .media-object {
        width: 50px;
        height: 50px;
    }

    .st-cart-table .media-heading {
        font-size: 13px;
    }

    .st-cart-table .st-price {
        font-size: 13px;
    }

    .st-cart-table input[name="accNum"] {
        width: 40px;
        height: 25px;
        font-size: 11px;
    }

    .st-cart-table .btn-xs {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* 产品信息进一步优化 */
    .product-info-component h3 {
        font-size: 18px;
    }

    .st-detail-attr .st-price dt span {
        font-size: 20px;
    }

    /* 按钮进一步优化 */
    .st-btn .btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* 图片优化 */
    .tab-pane img {
        margin-bottom: 10px;
    }

    /* 警告信息优化 */
    .alert {
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 15px;
    }
}

/* 产品详情组件专用样式 */
.product-specifications {
    margin-bottom: 25px;
}

.spec-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.product-details-content {
    line-height: 1.6;
}

.product-details-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.product-details-images {
    margin-top: 20px;
}

.detail-image-wrapper {
    margin-bottom: 15px;
    text-align: center;
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 产品配件列表样式 */
.product-accessories-list {
    margin-top: 20px;
}

.accessories-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.accessory-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.accessory-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.accessory-image-link {
    display: block;
    transition: transform 0.2s ease;
}

.accessory-image-link:hover {
    transform: scale(1.05);
}

.accessory-title-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.accessory-title-link:hover {
    color: #007bff;
    text-decoration: none;
}

.accessory-price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-label {
    font-size: 12px;
    color: #666;
}

.qty-input {
    width: 60px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}

.wholesale-info {
    font-size: 12px;
}

.wholesale-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #666;
}

.wholesale-info .table-sm {
    margin-bottom: 0;
    font-size: 11px;
}

.wholesale-info .qty-col {
    width: 50%;
    padding: 4px 6px;
}

.wholesale-info .price-col {
    width: 50%;
    padding: 4px 6px;
    font-weight: 600;
    color: #e74c3c;
}

.add-to-cart-btn {
    white-space: nowrap;
    min-width: 80px;
}

/* 手机端配件列表优化 */
@media (max-width: 768px) {
    .accessory-image {
        width: 60px;
        height: 60px;
    }

    .accessory-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .quantity-section {
        width: 100%;
        justify-content: space-between;
    }

    .qty-input {
        width: 50px;
        height: 28px;
    }

    .add-to-cart-btn {
        width: 100%;
        margin-top: 10px;
    }

    .accessory-action {
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .accessory-image {
        width: 50px;
        height: 50px;
    }

    .spec-title,
    .accessories-title {
        font-size: 14px;
    }

    .qty-input {
        width: 45px;
        height: 26px;
        font-size: 12px;
    }

    .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
