/* 响应式电商网站 - 主样式文件 */

:root {
    --primary-color: #ff6900;
    --secondary-color: #1a1a1a;
    --accent-color: #f5f5f5;
    --text-primary: #2c2c2c;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 32px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #fff;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 32px;
}

.brand-logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-collapse .nav-item {
    min-width: 90px;
    text-align: center;
}

.d-flex .nav-link {
    margin: 0 16px;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    background: transparent;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 导航栏切换图标动画 */
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    transition: all 0.3s ease;
}

/* 当导航栏展开时，显示叉叉图标 */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m6 6l18 18M6 24l18-18'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

/* 导航栏切换按钮悬停效果 */
.navbar-toggler:hover {
    opacity: 0.7;
}

/* 手机端导航栏图标样式 */
@media (max-width: 767.98px) {
    .navbar-collapse .d-flex {
        justify-content: center !important;
        align-items: center;
        gap: 20px;
        margin-top: 16px;
        padding: 16px 0;
        /* border-top: 1px solid var(--border-color); */
    }

    .navbar-collapse .d-flex .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--accent-color);
        margin: 0;
        transition: all 0.3s ease;
    }

    .navbar-collapse .d-flex .nav-link:hover {
        background: var(--primary-color);
        color: white !important;
        transform: translateY(-2px);
    }

    .navbar-collapse .d-flex .nav-link i {
        font-size: 18px;
    }
}

/* 页面容器 */
.page-container {
    min-height: calc(100vh - 80px);
    padding: 0;
}

/* PC端页面容器padding */
@media (min-width: 768px) {
    .page-container {
        padding: 0;
    }
}

.main-content {
    animation: fadeIn 0.5s ease;
}

.main-content .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* 通用卡片样式 */
.card-custom {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 按钮样式 */
.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

/* 推荐产品专用按钮样式 */
.recommended-product-card .btn-primary-custom {
    border-radius: 25px;
}

/* 联系方式样式 */
.contact-section {
    background: #f8f9fa;
    padding: 20px 0;
    margin-top: 30px;
}

.contact-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.contact-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
}

.company-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-item strong {
    color: var(--text-primary);
    min-width: 80px;
    margin-right: 8px;
}

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

.contact-map {
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-section .row {
    margin: 0 30px;
}

.contact-section .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

.map-placeholder {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 12px;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
}

.map-placeholder p {
    font-size: 16px;
    margin: 0;
}

.btn-primary-custom:hover {
    background: #e55a00;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* 推荐产品样式 */
.recommended-products {
    margin: 20px 0;
}

.recommended-product-card {
    background: #f8f9fa;
    border-radius: 0;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommended-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    text-align: center;
    padding: 10px;
}

.recommended-product-img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.recommended-product-card:hover .recommended-product-img {
    transform: scale(1.05);
}

.recommended-product-card .row {
    max-width: 956px;
    margin: 0 auto;
}

/* 推荐产品背景色 */
.recommended-product-card.product-1 {
    background: linear-gradient(135deg, #7ED5CB 0%, #0C6862 100%);
}

.recommended-product-card.product-2 {
    background: linear-gradient(135deg, #A67FAD 0%, #4C2F51 100%);
}

.product-content {
    padding: 20px;
    margin: 10px;
}

.product-title {
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.tag i {
    font-size: 16px;
}

.product-description {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.original-price {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    color: inherit;
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

/* 表单样式 */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}


/* Hero轮播区域 */
.hero-carousel {
    margin-bottom: 20px;
}

.hero-slide {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-carousel .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* 轮播拖拽功能 */
.hero-carousel {
    cursor: grab;
    user-select: none;
}

.hero-carousel:active {
    cursor: grabbing;
}

/* 轮播指示器样式 */
.hero-carousel .carousel-indicators {
    bottom: 30px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background: white;
    transform: scale(1.2);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* 面包屑导航 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 20px 0 24px 20px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* 登录/注册页面 */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.social-btn.wechat {
    color: #07c160;
}

.social-btn.qq {
    color: #1485ee;
}

.social-btn.weibo {
    color: #e6162d;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .hero-carousel {
        margin-bottom: 10px;
    }

    .hero-slide {
        height: 400px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }



    .hero-carousel .carousel-indicators {
        bottom: 20px;
    }

    .hero-carousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    /* 推荐产品移动端适配 */
    .recommended-products {
        margin: 0 0 20px 0;
    }

    .recommended-product-card {
        padding: 16px;
        margin-bottom: 16px;
        min-height: auto;
        display: block;
    }

    .product-image-container {
        padding: 5px 0;
        margin-bottom: 16px;
    }

    .recommended-product-img {
        height: 180px;
    }

    .product-content {
        padding: 16px;
        margin: 5px;
    }

    .product-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .product-tags {
        margin-bottom: 12px;
    }

    .tag {
        font-size: 12px;
        gap: 4px;
    }

    .tag i {
        font-size: 14px;
    }

    .product-description {
        font-size: 13px;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
    }

    .current-price {
        font-size: 24px;
    }

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

    .price-section {
        margin-bottom: 16px;
    }

    /* 联系方式移动端适配 */
    .contact-section {
        padding: 40px 0;
        margin-top: 20px;
    }

    .contact-section .row {
        margin: 0 15px;
    }

    .contact-section .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-subtitle {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .company-info h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .contact-item strong {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .map-image {
        height: 200px;
        margin-bottom: 20px;
    }

    .contact-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-item strong {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .contact-map {
        height: 200px;
        min-height: 200px;
    }

    .contact-info {
        padding-top: 10px;
    }

    .footer-custom {
        padding-top: 10px !important;
    }

    .map-placeholder {
        height: 200px;
        margin-top: 20px;
    }

    .map-placeholder i {
        font-size: 36px;
    }




    .auth-card {
        margin: 20px;
        padding: 32px 24px;
    }

    .d-md-flex {
        flex-direction: column !important;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 16px;
    }

    .nav-link {
        margin: 8px 0;
    }
}

@media (max-width: 576px) {
    .page-container {
        padding: 0;
    }

    .card-custom {
        padding: 16px;
        margin-bottom: 16px;
    }

    .hero-section {
        padding: 160px 0;
    }

}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.p-4 {
    padding: 32px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: #999 !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.d-flex {
    display: flex !important;
}

.d-block {
    display: block !important;
}

.d-none {
    display: none !important;
}

.flex-fill {
    flex: 1 1 auto !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.border-top {
    border-top: 1px solid var(--border-color) !important;
}

.bg-light {
    background-color: var(--accent-color) !important;
}

.bg-white {
    background-color: white !important;
}

/* 底部信息自定义样式 */
.footer-custom {
    padding-top: 3rem !important;
    padding-bottom: 1.5rem !important;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 105, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 767px) {
    .back-to-top {
        bottom: 100px;
        /* 调整位置避免与底部按钮栏冲突 */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
        z-index: 1001;
        /* 提高层级确保显示在底部按钮栏之上 */
    }
}

/* 移动端专用样式 */
@media (max-width: 767px) {

    /* 隐藏桌面版元素 */
    .desktop-only {
        display: none !important;
    }

    /* 防止页面水平滚动 */
    body {
        overflow-x: hidden;
        /* 为底部按钮栏留出空间 */
    }

    /* 移动端导航栏容器添加padding */
    .navbar .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .container {
        overflow-x: hidden;
    }

    /* 面包屑隐藏 */
    .breadcrumb {
        display: none;
    }


    .footer-custom {
        margin-top: 20px !important;
    }

    /* 隐藏导航栏右侧按钮 */
    .navbar .d-flex {
        display: none !important;
    }

    /* 移动端导航菜单样式 */
    .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-nav .nav-link {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 12px 16px !important;
    }

    /* 移动端显示箭头 */
    .mobile-arrow {
        display: inline-block !important;
        margin-left: auto;
        color: #666;
        font-size: 14px;
    }

    /* 移动端导航图标组 */
    .mobile-nav-group {
        display: flex !important;
        align-items: center;
        gap: 0;
    }

    .mobile-nav-icon {
        color: rgba(0, 0, 0, 0.55);
        font-size: 18px;
        text-decoration: none;
        padding: 12px;
        border: none;
        background: transparent;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
    }

    .mobile-nav-icon:hover {
        color: var(--accent-color);
    }

    /* 菜单按钮样式统一 */
    .mobile-nav-group .navbar-toggler {
        padding: 12px;
        margin: 0;
    }



    /* 移动端页面容器优化 */
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .product-details-card {
        border: none !important;
        border-radius: 0 !important;
    }

    .product-row {
        margin: 0 !important;
    }

    .product-column {
        padding: 0 !important;
    }


}

/* PC端隐藏移动端元素 */
@media (min-width: 768px) {
    .mobile-arrow {
        display: none !important;
    }

    .mobile-nav-group {
        display: none !important;
    }
}

/* navbar-collapse 样式 */
.collapse.navbar-collapse {
    justify-content: space-between;
}

/* 确保折叠动画正常工作 */
.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}

.navbar-collapse.show {
    display: block !important;
}

.navbar-collapse:not(.show) {
    display: none;
}

/* 自定义 mx-auto 样式 - 保持居中对齐 */
.navbar-nav.mx-auto {
    /* margin-left: auto !important; */
    margin-right: auto !important;
}

/* iPad mini (768*1024) 和 iPad Air (820*1180) 适配 */
@media (min-width: 768px) {
    .mobile-nav-group {
        display: none !important;
    }

    .mobile-arrow {
        display: none !important;
    }

    .navbar-collapse {
        display: block !important;
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-collapse .navbar-nav {
        display: flex !important;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem !important;
        text-align: center !important;
        margin: 0;
        display: block !important;
    }

    .navbar-nav {
        margin: 0 !important;
    }

    .navbar .d-flex {
        display: flex !important;
    }

    .d-flex .nav-link {
        margin: 0px 10px;
    }
}
 
@media (min-width: 1024px) {
    .navbar-collapse .nav-item {
        min-width: 110px;
    }

    .d-flex .nav-link {
        margin: 0px 15px;
    }
}

/* 优化中等屏幕宽度布局 */
@media (min-width: 1300px) and (max-width: 1600px) {
    .navbar-collapse {
        justify-content: space-between;
    }
    
    .navbar-nav.mx-auto {
        flex-wrap: nowrap;
    }
    
    .navbar-collapse .nav-item {
        min-width: 100px;
    }
    
    .d-flex .nav-link {
        margin: 0px 12px;
    }
}