/* ========================================
   LANYE Pages Beautification - Responsive
   ======================================== */

/* --- Flex Utilities --- */
.clearfix {
    display: flex;
    flex-wrap: wrap;
}

/* --- Header Auth Buttons --- */
.nav-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.nav-user-name:hover {
    color: #ffffff;
}

.nav-auth-btn--outline:hover a {
    color: #fff;
}

.nav-user-name i {
    margin-right: 4px;
    color: #43c1ad;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 38px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.nav-auth-btn--outline {
    background: transparent;
    border: 1.5px solid #43c1ad;
    color: #43c1ad;
}

.nav-auth-btn--outline:hover {
    background: #43c1ad;
    color: #fff;
}

.nav-auth-btn:not(.nav-auth-btn--outline) {
    background: #43c1ad;
    color: #fff;
}

.nav-auth-btn:not(.nav-auth-btn--outline):hover {
    background: #002955;
}

/* --- Auth Modal --- */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: authModalIn 0.25s ease;
}

@keyframes authModalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #333;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #002955;
    margin: 0 0 24px 0;
    text-align: center;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field--code {
    display: flex;
    gap: 10px;
}

.auth-field--code .auth-input {
    flex: 1;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.auth-input:focus {
    border-color: #43c1ad;
    box-shadow: 0 0 0 3px rgba(67, 193, 173, 0.15);
}

.auth-input::placeholder {
    color: #aaa;
}

.auth-code-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #43c1ad;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.auth-code-btn:hover:not(:disabled) {
    background: #002955;
}

.auth-code-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.auth-error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #002955, #0a4a7a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #43c1ad, #2da892);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(67, 193, 173, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

.auth-switch a {
    color: #43c1ad;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-forgot {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
}

.auth-forgot a {
    color: #999;
    text-decoration: none;
}

.auth-forgot a:hover {
    color: #43c1ad;
    text-decoration: underline;
}

.p-item-info-img {
    width: 100%;
    overflow: hidden;
}

.p-item-info {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}



/* --- Page Hero Banner Area --- */
.page-banner {
    position: relative;
    min-height: 60px;
    background: linear-gradient(135deg, #002955 0%, #0a4a7a 50%, #43c1ad 100%);
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(67, 193, 173, 0.15);
    border-radius: 50%;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-banner .breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: inline;
}

.page-banner .breadcrumb li.home {
    color: #fff;
    font-weight: 600;
}

.page-banner .breadcrumb li i {
    margin-right: 6px;
    color: #43c1ad;
}

/* --- Wrap Container --- */
#wrap>.container.wrap {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Main & Sidebar Layout --- */
#wrap .main {
    flex: 1;
    min-width: 0;
}

#wrap .sidebar {
    flex: 0 0 280px;
    padding-left: 20px;
    width: 0px;
    margin-top: 1%;
}

/* --- Sidebar Widgets --- */
#wrap .sidebar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    border: 1px solid #f0f2f5;
    transition: box-shadow 0.3s ease;
}

#wrap .sidebar .widget:hover {
    box-shadow: 0 4px 24px rgba(0, 41, 85, 0.1);
}

#wrap .sidebar .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #002955;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #43c1ad;
    position: relative;
}

#wrap .sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #002955;
}

#wrap .sidebar .widget_nav_menu .lm_name {
    font-size: 18px;
    font-weight: 700;
    color: #002955;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #43c1ad;
}

#wrap .sidebar .menu_head a {
    display: block;
    padding: 10px 14px;
    margin-bottom: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

#wrap .sidebar .menu_head a:hover,
#wrap .sidebar .menu_head a.newcurr {
    background: #43c1ad;
    color: #fff;
    transform: translateX(4px);
}

#wrap .sidebar .widget_lastest_products .p-item {
    margin-bottom: 12px;
    width: 100%;
}


#wrap .sidebar .widget_lastest_products .p-item-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#wrap .sidebar .widget_lastest_products .p-item-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#wrap .sidebar .widget_lastest_products .p-item-wrap img {
    width: 100%;
    height: auto;
}

#wrap .sidebar .widget_lastest_products .title {
    padding: 8px 10px;
    margin: 0;
    font-size: 13px;
}

#wrap .sidebar .widget_lastest_products .title a {
    color: #333;
    text-decoration: none;
}

#wrap .sidebar .widget_lastest_products .title a:hover {
    color: #43c1ad;
}

#wrap .sidebar .widget_lastest_news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#wrap .sidebar .widget_lastest_news li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

#wrap .sidebar .widget_lastest_news li:last-child {
    border-bottom: none;
}

#wrap .sidebar .widget_lastest_news li a {
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wrap .sidebar .widget_lastest_news li a:hover {
    color: #43c1ad;
}

/* --- Product Grid (Goods page) --- */
#wrap .main .product-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 !important;
}

#wrap .main .product-list .p-item {
    margin: 1%;
    padding: 0;
    width: 31%;
    box-sizing: border-box;
}

#wrap .main .product-list .p-item-wrap {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#wrap .main .product-list .p-item-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 41, 85, 0.12);
    border-color: #43c1ad;
}

#wrap .main .product-list .thumb {
    display: block;
    overflow: hidden;
}

#wrap .main .product-list .thumb img {
    width: 100%;
    transition: transform 0.4s ease;
}

#wrap .main .product-list .p-item-wrap:hover .thumb img {
    transform: scale(1.06);
}

#wrap .main .product-list .title {
    padding: 5px 0 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    border-top: none;
}

#wrap .main .product-list .title a {
    color: #002955;
    text-decoration: none;
    transition: color 0.2s;
}

#wrap .main .product-list .title a:hover {
    color: #43c1ad;
}

.price {
    font-size: 20px;
    font-weight: 600;
    color: #f9353f;
    height: 30px;
}

.price span {
    font-size: 16px;
}

/* --- Post List (News & Cases pages) --- */
#wrap .main .post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#wrap .main .post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

#wrap .main .post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 41, 85, 0.1);
    border-color: #43c1ad;
}

#wrap .main .post-item .entry-excerpt {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

#wrap .main .post-item .entry-excerpt .post-thumb {
    flex: 0 0 220px;
    max-width: 220px;
    padding: 0;
    overflow: hidden;
}

#wrap .main .post-item .entry-excerpt .post-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

#wrap .main .post-item .thumbnail {
    display: block;
    height: 100%;
    min-height: 200px;
}

#wrap .main .post-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#wrap .main .post-item:hover .thumbnail img {
    transform: scale(1.05);
}

#wrap .main .post-item .entry-title {
    font-size: 18px;
    font-weight: 700;
    color: #002955;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

#wrap .main .post-item .entry-title a {
    color: #002955;
    text-decoration: none;
    transition: color 0.2s;
}

#wrap .main .post-item:hover .entry-title a {
    color: #43c1ad;
}

#wrap .main .post-item .entry-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
}

#wrap .main .post-item .entry-meta i {
    color: #43c1ad;
    margin-right: 4px;
}

#wrap .main .post-item .entry-excerpt>div:last-child>div:not(.read-more):not(.entry-meta):not(.entry-title) {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

#wrap .main .post-item .read-more {
    margin-top: auto;
}

#wrap .main .post-item .read-more a {
    display: inline-block;
    padding: 6px 20px;
    background: #43c1ad;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

#wrap .main .post-item .read-more a:hover {
    background: #002955;
    transform: translateY(-1px);
}

/* --- Detail Page (Goods/Cases info) --- */
#wrap .main .ele {
    font-size: 26px;
    font-weight: 700;
    color: #002955;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #43c1ad;
    position: relative;
}

#wrap .main .ele::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #002955;
}

#wrap .main .contss {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    border: 1px solid #f0f2f5;
    line-height: 1.8;
    color: #333;
}

#wrap .main .contss img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* --- About Page --- */
#wrap .main .entry-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    border: 1px solid #f0f2f5;
}

#wrap .main .entry-tab-content {
    line-height: 1.8;
    color: #333;
}

#wrap .main .entry-tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#wrap .main .entry-related-title {
    font-size: 20px;
    font-weight: 700;
    color: #002955;
    margin: 30px 0 20px 0;
    padding-left: 14px;
    border-left: 4px solid #43c1ad;
}

/* --- Contact Page --- */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-card {
    flex: 1 1 calc(33.33% - 11px);
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 41, 85, 0.12);
    border-color: #43c1ad;
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #002955 0%, #0a4a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon i {
    font-size: 22px;
    color: #fff;
}

.contact-card-icon--whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contact-card-icon--line {
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
}

.contact-card-icon--wechat {
    background: linear-gradient(135deg, #07c160 0%, #05a84e 100%);
}

.contact-card-info {
    min-width: 0;
}

.contact-card-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-card-value {
    font-size: 15px;
    color: #002955;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* QR Code Section */
.contact-qr-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    text-align: center;
}

.contact-qr-title {
    font-size: 20px;
    font-weight: 700;
    color: #002955;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #43c1ad;
    display: inline-block;
}

.contact-qr-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-qr-item {
    width: 160px;
}

.contact-qr-img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #f0f2f5;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

.contact-qr-img:hover {
    border-color: #43c1ad;
}

.contact-qr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-qr-name {
    font-size: 15px;
    font-weight: 600;
    color: #002955;
}

/* Contact Form Section */
.contact-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
}

.contact-form-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.contact-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #002955;
    margin: 0 0 8px 0;
}

.contact-form-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* --- Contact Form --- */
.main-from {
    background: linear-gradient(135deg, #f8fafb 0%, #eef2f7 100%);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.main-from .msli-flex {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.main-from .msli {
    flex: 1;
}

.main-from .msli-text {
    margin-bottom: 12px;
}

.main-from .inbtext {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: auto;
}

.main-from .inbtext:focus {
    border-color: #43c1ad;
    box-shadow: 0 0 0 3px rgba(67, 193, 173, 0.15);
    outline: none;
}

.main-from .inbtext::placeholder {
    color: #aaa;
}

.main-from .contact-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.main-from .submit {
    margin-top: 6px;
    text-align: center;
}

.main-from .submit-btn {
    background: linear-gradient(135deg, #002955 0%, #0a4a7a 100%);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.main-from .submit-btn:hover {
    background: linear-gradient(135deg, #43c1ad 0%, #2da892 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 193, 173, 0.3);
}


.btn-buy:active {
    opacity: .85;
}

.btn-buy.primary {
    background: #e4393c;
    color: #fff;
}

.btn-buy.primary:hover {
    background: #c62828;
    color: #fff;
}

.btn-buy.outline {
    background: #fff;
    color: #e4393c;
    border: 2px solid #e4393c;
    box-sizing: border-box;
}

.btn-buy.outline:hover {
    background: #fef0f0;
    color: #e4393c;
}

.goods-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.goods-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s;
}

.goods-gallery img:hover,
.goods-gallery img.active {
    border-color: #e4393c;
}

.goods-detail-info-detail {
    flex: 1;
}

/* 询盘表单 */
.inquiry-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    margin-top: 20px;
}

.inquiry-section .ele {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #e4393c;
    margin-bottom: 20px;
}

.msli-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.msli {
    flex: 1;
    min-width: 180px;
}

.g-meta-item {
    width: 100%;
    padding: 5px 0;
}

.msli input,
.msli-text input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.msli-text {
    margin-top: 10px;
}

.submit-btn {
    height: 42px;
    padding: 0 30px;
    background: #e4393c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.submit-btn:hover {
    background: #c62828;
}


.goods-detail-layout {
    display: flex !important;
    gap: 20px;
    align-items: flex-start !important;
}

.goods-detail-main {
    flex: 1;
    min-width: 0;
}

.goods-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 确保左右顶部严格对齐 */
.goods-detail-layout>.goods-detail-sidebar {
    margin-top: 0;
}

.goods-detail-layout>.goods-detail-main>.goods-detail-top {
    margin-top: 0;
}

.goods-detail-top {
    display: flex;
    gap: 24px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    margin-bottom: 20px;
}

.goods-detail-img-box {
    width: 380px;
    min-width: 380px;
}

.goods-detail-img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    aspect-ratio: 1;
}

.goods-detail-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.goods-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goods-detail-info .g-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}

.goods-detail-info .g-price-row {
    background: #fdf6ec;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.goods-detail-info .g-price-label {
    font-size: 12px;
    color: #999;
}

.goods-detail-info .g-price {
    font-size: 26px;
    font-weight: 700;
    color: #e4393c;
}

.goods-detail-info .g-price span {
    font-size: 14px;
    font-weight: 400;
}

.goods-detail-info .g-meta {
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
    line-height: 2.2;
}

.goods-detail-info .g-meta b {
    color: #333;
    display: inline-block;
    width: 80px;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background .2s;
    margin: 0;
    -moz-appearance: textfield;
}

.qty-btn:hover {
    background: #e8e8e8;
}

.qty-input {
    width: 52px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.goods-detail-btns {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-wish {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
    font-size: 14px;
    transition: all .2s;
}

.btn-wish #wishIcon {
    font-size: 16px;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .2s;
}

.btn-buy:active {
    opacity: .85;
}

.btn-buy.primary {
    background: #e4393c;
    color: #fff;
    box-sizing: border-box;
}

.btn-buy.primary:hover {
    background: #c62828;
    color: #fff;
}

.btn-buy.outline {
    background: #fff;
    color: #e4393c;
    border: 2px solid #e4393c;
}

.btn-buy.outline:hover {
    background: #fef0f0;
    color: #e4393c;
}

.goods-gallery {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.goods-gallery img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s;
}

.goods-gallery img:hover,
.goods-gallery img.active {
    border-color: #e4393c;
}

.goods-content-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    flex: 1;
}

.goods-content-wrap .ele {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4393c;
    margin-bottom: 16px;
}

.goods-content-wrap .content-body img {
    width: 100%;
    height: auto;
}

.inquiry-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    margin-top: 20px;
}

.inquiry-section .ele {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4393c;
    margin-bottom: 16px;
}

.msli-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.msli {
    flex: 1;
    min-width: 160px;
}

.msli input,
.msli-text input {
    width: 100%;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 13px;
    box-sizing: border-box;
}

.msli-text {
    margin-top: 10px;
}

.submit-btn {
    background: #e4393c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.submit-btn:hover {
    background: #c62828;
}

/* 右侧相关产品 */
.related-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    overflow: hidden;
    margin-bottom: 20px;
}

.related-widget .rw-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.rw-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background .2s;
}

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

.rw-item:hover {
    background: #fdf6ec;
}

.rw-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.rw-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rw-item-name {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    font-weight: bolder;
}

.rw-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #e4393c;
}

/* --- News Info Page --- */
#wrap .main .entry {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    border: 1px solid #f0f2f5;
}

#wrap .main .entry>.entry-title {
    font-size: 26px;
    font-weight: 700;
    color: #002955;
    margin-bottom: 10px;
    line-height: 1.4;
}

#wrap .main .conts {
    line-height: 1.8;
    color: #333;
}

#wrap .main .conts img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Hot/Product Slider in About & News Info --- */
#wrap .main .modules-hot {
    padding: 0;
}

/* --- Homepage Advantages Grid --- */
.advantages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantages-item {
    width: calc(50% - 10px);
    box-sizing: border-box;
}

.user-wrap {
    max-width: 1460px;
    margin: 30px auto;
    padding: 0 15px;
}

.user-layout {
    display: flex;
    gap: 24px;
}

.user-sidebar {
    width: 250px;
    flex-shrink: 0;
}


.user-card-header {
    background: linear-gradient(135deg, #43c1ad, #2f9786);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.user-card-header .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.user-card-header .uname {
    font-size: 15px;
    font-weight: 600;
}

.user-menu {
    padding: 8px 0;
}

.user-main {
    flex: 1;
    min-width: 0;
}

.user-content-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    padding: 24px;
}

.user-content-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e4393c;
}

.user-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.user-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.user-empty p {
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-order {
    display: inline-block;
    padding: 8px 24px;
    background: #e4393c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s;
}

.btn-order:hover {
    background: #c62828;
    color: #fff;
    text-decoration: none;
}

/* 订单列表 */
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid #ddd;
}

.order-table thead th {
    background: #f8f8f8;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
    font-size: 14px;
}

.order-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    color: #333;
    vertical-align: top;
}

.order-table tbody tr:hover {
    background: #fdfdfd;
}

.order-id {
    color: #999;
    font-size: 12px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.order-product:hover {
    color: #e4393c;
}

.order-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.order-product-info {
    flex: 1;
}

.order-product-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.order-product-meta {
    font-size: 12px;
    color: #999;
}

.order-total {
    font-size: 16px;
    font-weight: 700;
    color: #e4393c;
}

.order-shipping {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.order-shipping b {
    color: #555;
    font-weight: 600;
}

.order-date {
    color: #999;
    white-space: nowrap;
}

.order-remark {
    background: #fdf6ec;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #b37400;
    margin-top: 4px;
    max-width: 200px;
}

.user-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    overflow: hidden;
}


.user-card-header .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.user-card-header .uname {
    font-size: 15px;
    font-weight: 600;
}

.user-menu {
    padding: 8px 0;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: all .2s;
}

.user-menu a:hover {
    background: #fdf6ec;
    color: #e4393c;
}

.user-menu a.active {
    background: #fdf6ec;
    color: #e4393c;
    font-weight: 600;
    border-right: 3px solid #e4393c;
}

.user-menu a .menu-icon {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.user-main {
    flex: 1;
    min-width: 0;
}

.user-content-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    padding: 24px;
}

.user-content-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e4393c;
}

.profile-form .pf-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-form .pf-item {
    flex: 1;
}

.profile-form .pf-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.profile-form .pf-item input {
    width: 100%;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
}

.profile-form .pf-item input:focus {
    border-color: #e4393c;
}

.btn-save {
    display: inline-block;
    padding: 10px 32px;
    background: #e4393c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.btn-save:hover {
    background: #c62828;
    color: #fff;
}

.useractive {
    background: #fdf6ec;
    color: #e4393c;
    font-weight: 600;
    border-left: 3px solid #e4393c;
}



/* --- Homepage Cases Grid --- */
.cases-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cases-item {
    width: 25%;
    padding: 8px;
    box-sizing: border-box;
}


#wrap .main .s-item-wrap {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 41, 85, 0.06);
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    margin: 0 8px;
}

#wrap .main .s-item-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 41, 85, 0.12);
}

#wrap .main .s-item-wrap .thumb img {
    width: 100%;
}

#wrap .main .s-item-wrap .title {
    padding: 10px 12px;
    margin: 0;
    font-size: 14px;
}

#wrap .main .s-item-wrap .title a {
    color: #002955;
    text-decoration: none;
}

#wrap .main .s-item-wrap .title a:hover {
    color: #43c1ad;
}

.title-case {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    font-size: 15px;
}

.price-about {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.price-title {
    width: 100%;
    padding: 0 15px 20px;
    box-sizing: border-box;
}

.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 28px 0 10px;
    height: 38px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #333;
    min-width: 56px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.lang-switcher-btn:hover {
    border-color: #43c1ad;
}

.lang-switcher-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    z-index: 9999;
    width: 120px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    background-clip: padding-box;
    margin-top: 10px;
}



.lang-switcher-dropdown.open {
    display: block;
}

.lang-switcher-dropdown a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.lang-switcher-dropdown a:hover {
    background: #f0f7ff;
    color: #43c1ad;
}

.lang-switcher-dropdown a.lang-active {
    background: #43c1ad;
    color: #fff;
    font-weight: bold;
}
.mobile-nav-auth{
    display: none;
}