/* ----- RESET & GLOBAL STYLES ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f8f8;
    line-height: 1.5;
    min-height: 100vh;
    transition: background-color 0.2s ease;
}

/* ----- THEME VARIABLES ----- */
:root, body[data-theme="scheme1"] {
    --primary: #003366;
    --primary-light: #e6f0ff;
    --secondary: #ffffff;
    --accent: #FF6600;
    --text-dark: #1a1a1a;
    --text-soft: #2c3e50;
    --header-bg: transparent;
    --icon-fill: var(--primary);
    --border-light: rgba(0,51,102,0.15);
    --dropdown-bg: #ffffff;
}

body[data-theme="scheme2"] {
    --primary: #CC8844;
    --primary-light: #f5e6d5;
    --secondary: #faf0e6;
    --accent: #CC3300;
    --text-dark: #3a2c1b;
    --text-soft: #5e4a33;
    --icon-fill: var(--primary);
    --border-light: rgba(204,136,68,0.2);
    --dropdown-bg: #faf0e6;
}

body[data-theme="scheme3"] {
    --primary: #006633;
    --primary-light: #e0f0e0;
    --secondary: #ffffff;
    --accent: #FFCC00;
    --text-dark: #1d3b1d;
    --text-soft: #2d5a2d;
    --icon-fill: var(--primary);
    --border-light: rgba(0,102,51,0.2);
    --dropdown-bg: #ffffff;
}

body {
    color: var(--text-dark);
    background-color: var(--secondary);
}

.header {
    background-color: var(--header-bg);
    width: 100%;
    position: sticky;
	top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(0);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-scrolled {
    background-color: var(--secondary);          /* 增加背景色，避免内容透传 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);   /* 轻微阴影，增强层次感 */
    backdrop-filter: blur(10px);                  /* 可选：毛玻璃效果 */
}

.header-scrolled .top-header {
    opacity: 0;                                 /* 完全透明 */
    max-height: 0;                              /* 高度收缩到0 */
    padding-top: 0;                             /* 内边距也收缩 */
    padding-bottom: 0;
    margin: 0;                                   /* 外边距归零 */
    border-bottom: none;                         /* 边框消失（可选） */
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- TOP HEADER ----- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-soft);
	transition: all 0.3s ease;
	max-height: 200px;
	overflow: hidden;
}

.contact-info {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--icon-fill);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--icon-fill);
}

/* ----- MAIN HEADER ----- */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary);
    white-space: nowrap;
}
.logo span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-soft);
    display: block;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 30px;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 1rem;
}

.nav-menu li a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

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

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border-radius: 30px;
    padding: 8px 12px;
    color: var(--text-dark);
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.action-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--icon-fill);
    transition: fill 0.2s;
}

.action-btn.compare-btn {
    border: 1px solid var(--border-light);
    background-color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.action-btn.compare-btn svg {
    width: 20px;
    height: 20px;
}

.action-btn:hover {
    background-color: var(--primary-light);
}

.action-btn:hover svg {
    fill: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    margin-left: 5px;
    flex-shrink: 0;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: 0.2s;
    border-radius: 2px;
}

.mobile-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--secondary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 20px;
    border-top: 1px solid var(--border-light);
    z-index: 99;
}

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

.mobile-nav-dropdown ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-dropdown ul li a {
    display: block;
    padding: 14px 20px;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 12px;
    color: var(--text-dark);
    background: var(--primary-light);
    text-align: center;
}

/* ----- 搜索下拉框 ----- */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dropdown-bg);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    padding: 16px 20px;
    display: none;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-light);
    border-radius: 60px;
    font-size: 1rem;
    outline: none;
    background: var(--secondary);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form input::placeholder {
    color: var(--text-soft);
    opacity: 0.7;
}

.search-form button {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    border: 1px solid var(--primary);
}

.search-form button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
}

/* 移动端搜索框堆叠 */
@media screen and (max-width: 640px) {
    .search-form {
        flex-direction: column;
    }
    .search-form button {
        width: 100%;
    }
}

/* ===== 修改：右下角快捷按钮 + 主题色 ===== */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1000;
}

.floating-buttons {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 60px;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.floating-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.floating-btn svg {
    fill: var(--primary);
    width: 20px;
    height: 20px;
}
.floating-btn:hover {
    background: var(--accent);
}
.floating-btn:hover svg {
    fill: white;
}
.floating-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    border-radius: 18px;
    padding: 0 5px;
    line-height: 18px;
}

.theme-dots {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 60px;
    border: 1px solid var(--border-light);
}

.theme-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, border-color 0.2s;
}

.theme-dot:hover {
    transform: scale(1.15);
}

.theme-dot[data-theme="scheme1"] {
    background: linear-gradient(145deg, #003366, #406e96);
}
.theme-dot[data-theme="scheme2"] {
    background: linear-gradient(145deg, #CC8844, #b5762c);
}
.theme-dot[data-theme="scheme3"] {
    background: linear-gradient(145deg, #006633, #2d8f5a);
}

/* 移动端：垂直排列变为水平，避免重叠 */
@media (max-width: 600px) {
    .theme-switcher {
        flex-direction: row;
        bottom: 20px;
        right: 10px;
        left: 10px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    .floating-buttons {
        order: 2;
    }
    .theme-dots {
        order: 1;
    }
}

/* ----- 响应式 (全局) ----- */
@media screen and (max-width: 1200px) {
    .nav-menu li a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 992px) {
    .nav-menu {
        gap: 0.2rem;
    }
    .action-btn .btn-text {
        display: none;
    }
    .action-btn.compare-btn {
        padding: 8px;
    }
}

@media screen and (max-width: 840px) {
    .main-header {
        flex-wrap: wrap;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .header-actions {
        margin-left: auto;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .header-actions {
        margin-left: auto;
    }
    .logo {
        font-size: 1.5rem;
    }
    .logo span {
        font-size: 0.8rem;
    }
    .action-btn {
        padding: 6px;
    }
}

@media screen and (max-width: 640px) {
    .top-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .social-links {
        align-self: flex-end;
        margin-top: -30px;
    }
    .contact-info {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 480px) {
    .contact-item span {
        display: none;
    }
    .contact-item.email span {
        display: inline;
        font-size: 0.8rem;
    }
    .contact-item:first-child span {
        display: inline;
    }
    .social-links a svg {
        width: 22px;
        height: 22px;
    }
    .theme-dot {
        width: 36px;
        height: 36px;
    }
}

/* ===== class.css (追加部分) ===== */
/* 全局对比/心愿单面板 */
.compare-floating-panel, .wishlist-floating-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 360px;
    max-width: 90vw;
    background: var(--secondary);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border: 1px solid var(--border-light);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(10px);
    padding: 1rem;
    font-size: 0.9rem;
}
.wishlist-floating-panel { bottom: 80px; right: 20px; }

/* ===== 修改：对比面板居中 ===== */
.compare-floating-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}
@media (max-width: 600px) {
    .compare-floating-panel {
        width: 95vw;
        max-height: 85vh;
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--primary);
}
.panel-items {
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    padding: 8px 12px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: 0.1s;
}
.panel-item.highlight-diff { border-color: var(--accent); background: #fff9e6; }
.panel-item img { width: 50px; height: 40px; object-fit: cover; border-radius: 8px; background: #ddd; }
.item-details { flex:1; font-size: 0.8rem; }
.item-details strong { display: block; }
.item-actions { display: flex; gap: 5px; }
.inquiry-single, .remove-item, .remove-wishlist { 
    background: none; 
    border: none; 
    color: var(--accent); 
    cursor: pointer; 
    font-size: 1.2rem; 
    padding: 0 5px; 
}
.panel-footer { 
    display: flex; 
    gap: 8px; 
    justify-content: flex-end; 
    border-top: 1px solid var(--border-light); 
    padding-top: 10px; 
}
.panel-footer button { 
    padding: 6px 12px; 
    border-radius: 40px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    cursor: pointer; 
}
.close-panel { 
    background: transparent !important; 
    color: var(--text-dark) !important; 
    border: 1px solid var(--border-light) !important; 
}

/* ===== 新增/修改：Inquiry 模态框样式优化 ===== */
.inquiry-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.inquiry-modal .modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--secondary);
    border-radius: 32px;
    padding: 1.8rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.inquiry-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.inquiry-modal .modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}
.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-soft);
    padding: 0 8px;
}
.modal-close:hover { color: var(--accent); }
.modal-wishlist-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    background: white;
    padding: 12px;
    border-radius: 20px;
}
.preview-item { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    background: white; 
    border-radius: 30px; 
    padding: 4px 10px; 
}
.preview-item img { 
    width: 30px; 
    height: 30px; 
    border-radius: 6px; 
}

#inquiryForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-group label {
    font-weight: 500;
    color: var(--text-soft);
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    font-size: 1rem;
    background: var(--secondary);
    color: var(--text-dark);
    outline: none;
    transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/*.form-row .form-group {
    flex: 1 1 200px;
}*/
.modal-footer {
    margin-top: 1.5rem;
    text-align: right;
}
#submitInquiry {
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
}
#submitInquiry:hover {
    background: var(--primary);
}
/* 移动端适配 */
@media (max-width: 480px) {
    .inquiry-modal .modal-content {
        padding: 1.2rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* 徽章 */
.badge {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 4px;
}
/* ===== home.css (产品列表区域样式) ===== */
.product-listing-section {
    padding: 3rem 0;
    background: var(--secondary);
}
.product-listing-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
/* ===== 新增：移动端筛选折叠样式 ===== */
.filter-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-light);
    padding: 10px 16px;
    border-radius: 60px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}
.filter-mobile-header .filter-tab {
    margin: 0;
    padding: 8px 16px;
    background: var(--secondary);
    border: 1px solid var(--border-light);
    border-radius: 60px;
    font-weight: 600;
}
.filter-mobile-header .filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.filter-mobile-header .mobile-new-arrivals svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.2em;
}
.filter-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--primary);
    padding: 0 10px;
}
.filter-panel {
    width: 280px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: 32px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--border-light);
}
@media (max-width: 768px) {
    .filter-mobile-header {
        display: flex;
    }
    .filter-panel {
        display: none; /* 默认折叠 */
        margin-top: 1rem;
        width: 100%;
    }
    .filter-panel.show {
        display: block;
    }
    .product-listing-container {
        flex-direction: column;  /* 改为列布局 */
        align-items: stretch;    /* 子元素宽度拉伸至100% */
    }

    /* 确保筛选面板和产品列表宽度占满 */
    .filter-panel,
    .product-results {
        width: 100% !important;  /* 覆盖可能的固定宽度 */
    }

    /* 可选：调整间距 */
    .product-listing-container {
        gap: 1rem;  /* 垂直间距缩小一点，更紧凑 */
    }
}
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}
.filter-tab {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 12px 16px;
    border-radius: 60px;
    font-weight: 600;
    text-align: left;
    color: var(--text-dark);
    transition: all 0.2s;
    cursor: pointer;
}
.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.filter-group {
    margin-bottom: 1.5rem;
}
.filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-soft);
}
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 60px;
    border: 1px solid var(--border-light);
    background: var(--secondary);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
}
.filter-apply {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    border: none;
    border-radius: 60px;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 1rem;
}
.filter-apply:hover { background: var(--primary); }

.product-results { flex: 1; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 1.5rem;
    margin-bottom: 2rem;
	justify-content: center;
}
.product-card {
    background: var(--secondary);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    padding: 1rem 1rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.product-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;          /* 正方形比例 */
    overflow: hidden;
    border-radius: 18px;
    background-color: #eef2f6;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* 保证图片覆盖整个盒子，不变形 */
}
.product-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
	margin-top: 1rem;
}
.product-specs {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-specs span { background: var(--primary-light); padding: 4px 8px; border-radius: 20px; }
.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.3rem 0 0.8rem;
}
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
}
.btn-compare, .btn-wishlist {
    background: var(--primary-light);
    border: none;
    border-radius: 40px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.8rem;
    transition: 0.1s;
}
.btn-compare svg, .btn-wishlist svg { width: 18px; height: 18px; fill: var(--icon-fill); }
.btn-compare.active, .btn-wishlist.active { background: var(--accent); color: white; }
.btn-compare.active svg { fill: white; }

.more-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 14px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 60px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}
.no-results { text-align: center; padding: 3rem; background: var(--primary-light); border-radius: 40px; }
.no-results small { color: var(--text-soft); }

/* 移动端 */
@media (max-width: 992px) {
    .product-listing-container { flex-direction: column; }
}
/* ===== 修改：移动端产品一排一个 ===== */
@media (max-width: 600px) {
    .product-grid {
        display: flex;
        flex-direction: column;
        align-items: center;      /* 让所有卡片在容器中居中 */
    }
    .product-card {
        width: 100%;              /* 卡片宽度占满整个容器 */
        max-width: 100%;
        margin-left: auto;         /* 水平居中备用 */
        margin-right: auto;
        box-sizing: border-box;    /* 确保 padding 不会增加额外宽度 */
    }

}
@media (min-width: 601px) and (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 页脚完整样式（深色背景，主题联动） ========== */
.site-footer {
    background-color: var(--primary);  /* 与 company-section 背景一致 */
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
    transition: background-color 0.2s ease;
    color: #f5f5f5;
}

/* 所有文本、链接默认浅色 */
.site-footer,
.site-footer .guarantee-item h4,
.site-footer .guarantee-item p,
.site-footer .footer-col h3,
.site-footer .footer-col ul li a,
.site-footer .company-bio,
.site-footer .contact-detail li,
.site-footer .footer-bottom,
.site-footer .footer-legal a {
    color: #f0f0f0;
}

/* 链接悬停效果 */
.site-footer .footer-col ul li a:hover,
.site-footer .footer-legal a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* 分割线颜色 */
.site-footer .footer-divider {
    background: rgba(255,255,255,0.2);
    height: 1px;
    margin: 1.8rem 0 2rem;
}

/* 保障图标区域样式 */
.site-footer .guarantee-icon {
    background: rgba(255,255,255,0.15);
    width: 56px;
    height: 56px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    transition: background 0.2s;
}
.site-footer .guarantee-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    stroke-width: 1.6;
    fill: none;
}
.site-footer .guarantee-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.site-footer .guarantee-item p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 保障网格布局 */
.site-footer .guarantee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.site-footer .guarantee-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 0.5rem;
    transition: transform 0.2s;
}
.site-footer .guarantee-item:hover {
    transform: translateY(-3px);
}

/* 5列信息区域 */
.site-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer .footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}
.site-footer .footer-col h3:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
}
.site-footer .footer-col ul li {
    margin-bottom: 0.7rem;
}
.site-footer .footer-col ul li a {
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

/* 公司信息列特殊样式 */
.site-footer .logo-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}
.site-footer .logo-footer svg {
    width: 42px;
    height: 42px;
    fill: white;
}
.site-footer .logo-footer span {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.site-footer .company-bio {
    font-size: 0.85rem;
    margin: 0.8rem 0 1rem;
    line-height: 1.5;
}
.site-footer .contact-detail {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
}
.site-footer .contact-detail li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}
.site-footer .contact-detail li svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    flex-shrink: 0;
}

/* 底部版权栏 */
.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    padding-top: 0.5rem;
}
.site-footer .footer-legal {
    display: flex;
    gap: 1.2rem;
}
.site-footer .footer-legal a {
    text-decoration: none;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .site-footer .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }
}
@media screen and (max-width: 768px) {
    .site-footer .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .site-footer .guarantee-grid {
        gap: 1rem;
    }
    .site-footer .guarantee-item {
        min-width: 140px;
    }
}
@media screen and (max-width: 550px) {
    .site-footer .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .site-footer .guarantee-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .site-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .site-footer .footer-legal {
        justify-content: center;
    }
}