:root {
    --primary-color: #6B8E6B;
    --primary-light: #8BA88B;
    --primary-dark: #4A6B4A;
    --secondary-color: #9B7EBD;
    --secondary-light: #B59EDB;
    --accent-color: #C4A77D;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAF7;
    --bg-tertiary: #F0F4EF;
    --text-primary: #2D3748;
    --text-secondary: #5A6B7D;
    --text-muted: #8E9AAB;
    --border-color: #E8EDE6;
    --shadow-sm: 0 2px 8px rgba(107, 142, 107, 0.08);
    --shadow-md: 0 4px 16px rgba(107, 142, 107, 0.12);
    --shadow-lg: 0 8px 32px rgba(107, 142, 107, 0.16);
}

body {
    font-family: 'Quicksand', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* 全局禁止横向溢出，避免 fixed 按钮被滚动条裁切 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #8A6EAD;
    border-color: #8A6EAD;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: var(--bg-primary);
}

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

.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
}

.card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-img-top-wrapper:hover img {
    transform: scale(1.08);
}

.card-img-top-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* 定义Tailwind风格的margin-bottom类，项目中使用了mb-6但未加载Tailwind */
.mb-6 {
    margin-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-card .card-body {
    padding: 16px;
}

/* 收藏按钮样式 */
.favorite-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.favorite-btn i.text-danger {
    color: #DC2626;
}

/* 列表页收藏按钮样式 */
.favorite-btn-list {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background-color: transparent;
    font-size: 18px;
    padding: 2px 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.favorite-btn-list:hover i {
    color: #DC2626 !important;
}

.favorite-btn-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.favorite-btn-detail:hover {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: #DC2626;
    color: #DC2626;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 产品页分类筛选列表 */
.category-filter-card {
    position: sticky;
    top: 90px;
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li {
    margin-bottom: 4px;
}

.category-filter-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary, #4b5563);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-filter-list a i {
    width: 18px;
    text-align: center;
    color: var(--primary, #6B8E5A);
}

.category-filter-list a span {
    flex: 1;
}

.category-filter-list a .count {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
}

.category-filter-list a:hover {
    background-color: var(--bg-tertiary, #f3f4f6);
    color: var(--text-primary, #1f2937);
}

.category-filter-list a.active {
    background-color: var(--primary, #6B8E5A);
    color: #fff;
}

.category-filter-list a.active i,
.category-filter-list a.active .count {
    color: #fff;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.category-card:hover {
    text-decoration: none;
    color: inherit;
}

.category-card .card {
    height: 100%;
    width: 100%;
    border-radius: 16px;
}

.category-card .card-body {
    text-align: center;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card .card-text {
    min-height: 3em;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-wrapper i {
    color: white;
    font-size: 28px;
}

.category-icon-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.category-card:hover .icon-wrapper {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.hero-section {
    background: url('/uploads/32.webp') no-repeat center center;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section .container {
    position: relative;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 32px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.main-image-wrapper img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* 图片导航箭头 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    z-index: 5;
    padding: 0;
    line-height: 1;
}

.gallery-nav:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

/* 图片指示器 */
.gallery-indicator {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 5;
}

/* 主图过渡效果 */
.main-product-img {
    transition: opacity 0.25s ease;
}

.main-product-img.fading {
    opacity: 0;
}

/* 移动端优化：箭头缩小、透明度降低，触摸时显示 */
@media (max-width: 768px) {
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .gallery-prev {
        left: 8px;
    }
    .gallery-next {
        right: 8px;
    }
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.price {
    margin-top: 8px;
}

.price .text-primary {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.badge {
    padding: 4px 12px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.75rem;
}

.badge-success {
    background-color: rgba(107, 142, 107, 0.15);
    color: var(--primary-dark);
}

.badge-warning {
    background-color: rgba(196, 167, 125, 0.2);
    color: #8B7355;
}

.badge-danger {
    background-color: #EF4444;
    color: #FFFFFF;
}

/* 产品详情价格区块 */
.price-box {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.price-row {
    display: flex;
    align-items: baseline;
}

.price-row + .price-row {
    margin-top: 0.5rem;
}

.price-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    width: 7rem;
    flex-shrink: 0;
}

.price-label-muted {
    color: var(--text-muted);
}

.price-main {
    font-size: 1.875rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.75rem;
    line-height: 1;
}

.price-original {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-stock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-stock-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-avatar {
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.team-member:hover .member-avatar {
    transform: scale(1.1);
}

.social-icon {
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-links a {
    text-decoration: none;
}

.announcement-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    font-size: 0.875rem;
    font-weight: 500;
}

.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(107, 142, 107, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: 0 4px 12px rgba(107, 142, 107, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 142, 107, 0.35);
}

.logo-icon i {
    color: white;
    font-size: 1.2rem;
}

.logo-icon .logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-list .nav-item {
    margin: 0;
}

.nav-list .nav-link {
    display: block;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    position: relative;
    transition: color 0.3s ease;
    font-size: 14px;
}

.nav-list .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-list .nav-link:hover::after {
    width: 80%;
}

.nav-list .nav-link.active::after {
    width: 80%;
}

.nav-list .nav-item.has-dropdown {
    position: relative;
}

.nav-list .nav-item.has-dropdown .nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list .nav-item.has-dropdown .nav-link.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-list .nav-item.has-dropdown:hover .nav-link.dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-list .nav-item.has-dropdown:hover .nav-dropdown,
.nav-list .nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown li {
    list-style: none;
    margin: 0;
}

.nav-dropdown li a {
    display: block;
    padding: 10px 16px;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-dropdown li a:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right .search-form {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 25px;
    padding: 4px 4px 4px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.header-right .search-form:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(107, 142, 107, 0.1);
}

.search-field {
    border: none;
    background: transparent;
    outline: none;
    padding: 6px 12px;
    font-size: 0.9rem;
    width: 180px;
    transition: width 0.3s ease;
    color: #000000;
}

.search-field::placeholder {
    color: #666666;
}

.search-field:focus {
    width: 220px;
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(107, 142, 107, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border: 2px solid #000000;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.login-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 142, 107, 0.3);
}

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.user-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown-menu,
.user-menu:focus-within .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.user-dropdown-menu a:hover {
    background-color: var(--bg-tertiary);
}

.lang-switcher {
    position: relative;
}

.lang-button {
    background: transparent;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-button:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 126, 189, 0.3);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown-menu,
.lang-switcher:focus-within .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.lang-dropdown-menu a:hover {
    background-color: var(--bg-tertiary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #000000;
    border-radius: 1px;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.show-menu {
    display: block !important;
}

.mobile-search {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search form {
    display: flex;
    gap: 8px;
}

.mobile-search-field {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    color: #000000;
}

.mobile-search-field:focus {
    border-color: var(--primary-color);
}

.mobile-search button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list a {
    display: block;
    padding: 12px 20px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.mobile-nav-list a:hover {
    background-color: var(--bg-tertiary);
}

.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--bg-secondary);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu li a {
    padding-left: 40px !important;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mobile-actions {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #000000;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.mobile-action-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
}

.mobile-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.mobile-lang a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.mobile-lang span {
    color: #666666;
}

.form-control {
    border-radius: 8px;
    border-color: var(--border-color);
    padding: 8px 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 142, 107, 0.1);
}

.footer {
    background-color: var(--text-primary) !important;
    color: #ffffff !important;
    padding: 40px 0;
}

.footer h4, .footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer p {
    color: white;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
    color: white;
}

.footer ul li a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white;
}

.footer a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-icon {
    color: var(--primary-light);
}

@media (max-width: 991px) {
    
    .main-nav {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.show-menu {
        display: block !important;
    }
    
    .thumbnail {
        height: 70px;
    }
    
    .hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: 10px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .logo-icon i {
        font-size: 1rem;
    }

    /* 移动端分类卡片两列布局优化 */
    .category-card .card-body {
        padding: 14px 10px;
    }

    .icon-wrapper {
        width: 52px;
        height: 52px;
        margin: 0 auto 10px;
    }

    .icon-wrapper i {
        font-size: 22px;
    }

    .category-card .card-title {
        font-size: 0.95rem;
    }

    .category-card .card-text {
        font-size: 0.75rem;
        margin-top: 4px !important;
        min-height: 2em;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }

}

/* 懒加载图片样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image-placeholder {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, #E8EDE6 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: lazyShimmer 1.5s infinite;
}

@keyframes lazyShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ======================== 选品车 & Toast ======================== */

.cart-nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.25s;
    margin-right: 10px;
    text-decoration: none !important;
}
.cart-nav-btn:hover {
    background: rgba(107, 142, 107, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
    text-decoration: none;
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white !important;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 2px solid var(--bg-primary);
}
.cart-badge:empty { display: none; }

/* 加入选品车按钮 */
.add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(107,142,107,0.12) 0%, rgba(155,126,189,0.1) 100%);
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    outline: none;
    text-decoration: none;
}
.add-cart-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(107,142,107,0.25);
}
.add-cart-btn:active:not(:disabled) { transform: translateY(0); }
.add-cart-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.product-card .add-cart-btn { width: 100%; margin-top: 10px; }

/* 全局 Toast */
.global-toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translate(-50%, -20px);
    padding: 14px 26px;
    border-radius: 12px;
    background: var(--text-primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.global-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.global-toast.success { background: linear-gradient(135deg, #10B981, #059669); }
.global-toast.error { background: linear-gradient(135deg, #EF4444, #DC2626); }
.global-toast i { font-size: 1.15rem; }

/* 产品卡片操作区 */
.card-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.card-actions-row .badge { flex-shrink: 0; }

/* 产品详情页的操作区 */
.product-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.product-action-buttons .btn {
    height: 56px;
    padding: 0 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    line-height: 1;
    box-sizing: border-box;
    text-decoration: none;
    width: 100%;
}
.product-action-buttons .btn i {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.product-action-buttons .btn span {
    line-height: 1.2;
    white-space: nowrap;
}
.btn-cart-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
}
.btn-cart-primary:hover:not(:disabled) {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-cart-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-cart-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 后台统计卡片响应式补充 */
@media (max-width: 576px) {
    .inq-stats-row { grid-template-columns: repeat(2, 1fr); }
    .inq-stats-row .stat-icon { width: 44px; height: 44px; font-size: 1.15rem; }
    .inq-stats-row .stat-info .v { font-size: 1.4rem; }
}

/* badge 大小补充 */
.badge-warning { background-color: rgba(245, 158, 11, 0.12); color: #B45309; }
.badge-info { background-color: rgba(59, 130, 246, 0.12); color: #1D4ED8; }
.badge-success { background-color: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-secondary { background-color: rgba(107, 114, 128, 0.12); color: #4B5563; }
.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; }

/* ========== 移动端底部导航栏 ========== */
.mobile-bottom-nav {
    display: none; /* 仅移动端显示 */
}

.bottom-nav-item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 2px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.72rem;
    line-height: 1.2;
    transition: color .2s ease;
}

.bottom-nav-item i {
    font-size: 1.15rem;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-badge {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(8px);
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 991px) {
    /* 防止页面横向溢出导致 fixed 导航栏宽度异常 */
    body {
        overflow-x: hidden;
        padding-bottom: 58px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100vw; /* 兜底：锁定视口宽度 */
        height: 58px;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        z-index: 1030;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .bottom-nav-item {
        font-size: 0.68rem;
    }
    .bottom-nav-item i {
        font-size: 1.05rem;
    }
}

/* ======================== 联系信息卡布局 ======================== */

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

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

.contact-info .icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin: 0 1rem 0 0 !important;
    flex-shrink: 0;
}

.contact-info .icon-wrapper i {
    font-size: 1.25rem !important;
}

.contact-info .contact-item > div:last-child {
    flex: 1;
    min-width: 0;
    padding-top: 0.35rem;
    line-height: 1.6;
    word-break: break-word;
}

/* ======================== WhatsApp 浮动按钮 ======================== */
.wa-float-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: waPulse 2s infinite;
    box-sizing: border-box;
}

.wa-float-btn:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
    animation: none;
}

.wa-float-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    color: #2D3748;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #fff;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

/* 移动端：避开底部导航栏 */
@media (max-width: 991px) {
    .wa-float-btn {
        right: 14px;
        bottom: 76px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    .wa-tooltip {
        display: none;
    }
}