/**
 * 公共样式文件 - Common CSS
 * 包含全局重置、主题色、排版、头部/尾部、通用组件样式
 * 主题色：白色底 #ffffff，文字 #1a1a1a，强调色 #c5a26e（金色），辅助色 #f5f0eb（米色）
 */

/* ========== CSS变量定义 ========== */
:root {
    --color-primary: #c5a26e;
    --color-primary-dark: #a8894f;
    --color-primary-light: #d4b88a;
    --color-bg: #ffffff;
    --color-bg-light: #f5f0eb;
    --color-bg-dark: #1a1a1a;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-white: #ffffff;
    --color-sale: #e74c3c;
    --font-family: 'Playfair Display', 'Georgia', serif;
    --font-family-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ========== 全局重置 ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 嵌入内容响应式（视频/播放器/iframe等） */
iframe,
video,
embed,
object {
    max-width: 100%;
}

/* 商品详情富文本内容自适应 */
#descriptionContent,
.tab-pane,
.product-accordion .accordion-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#descriptionContent iframe,
#descriptionContent video,
#descriptionContent embed,
.tab-pane iframe,
.tab-pane video,
.tab-pane embed,
.product-accordion .accordion-body iframe,
.product-accordion .accordion-body video,
.product-accordion .accordion-body embed {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 200px;
}

/* 表格自适应 */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-sm {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.section-link {
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ========== 顶部公告栏 ========== */
.announcement-bar {
    background-color: #000000;
    color: var(--color-white);
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ========== PC端头部导航（sticky吸顶，包含导航栏+搜索面板） ========== */
.site-header {
    background-color: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

/* PC端头部主体布局（flex左右分布：左侧导航 | 右侧图标） */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 5px;
    min-height: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== PC端左侧导航栏（桌面端显示） ===== */
.header-nav-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

.mobile-menu-btn:hover {
    color: var(--color-primary);
}

/* ===== PC端导航链接样式（导航文字、hover下划线） ===== */
.header-nav-left ul {
    display: flex;
    gap: 0;
    position: relative; /* 作为下拉菜单的定位参考 */
}

.header-nav-left ul li a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

.header-nav-left ul li a:hover,
.header-nav-left ul li.active a {
    color: var(--color-primary);
}

/* 导航链接hover下划线动画 */
.header-nav-left ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-nav-left ul li a:hover::after,
.header-nav-left ul li.active a::after {
    transform: scaleX(1);
}

/* ===== PC端 Catalog 下拉菜单（CSS absolute定位，hover展开） ===== */
.header-nav-left ul li.has-dropdown {
    position: relative;
}

/* 下拉面板：absolute定位在 Catalog 正下方，!important确保不被Bootstrap覆盖 */
.header-nav-left ul li.has-dropdown .nav-dropdown {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 100;
    min-width: 180px;
    padding: 8px 0;
    list-style: none !important;
}

.header-nav-left ul li.has-dropdown:hover .nav-dropdown {
    display: block !important;
}

/* 下拉面板内的链接 */
.header-nav-left ul li.has-dropdown .nav-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--color-text);
    transition: var(--transition);
    position: static;
}

.header-nav-left ul li.has-dropdown .nav-dropdown a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.header-nav-left ul li.has-dropdown .nav-dropdown a::after {
    display: none;
}

/* ===== PC端右侧图标区（语言/搜索/用户/购物车） ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.header-icon-btn:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

/* 语言选择器 */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.lang-selector:hover {
    color: var(--color-primary);
}

.lang-selector img {
    width: 18px;
    height: 12px;
}

.lang-selector .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 100;
    min-width: 140px;
    padding: 8px 0;
    margin-top: 8px;
}

.lang-selector .lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-text);
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

/* 购物车数量 */
.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== 搜索面板（全屏遮罩弹窗，点击放大镜触发） ===== */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-panel.show {
    display: flex;
}

.search-panel-inner {
    background: var(--color-bg);
    width: 600px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--radius-sm);
    padding: 0;
    position: relative;
}

/* 搜索面板内部滚动条美化 */
.search-panel-inner::-webkit-scrollbar {
    width: 4px;
}

.search-panel-inner::-webkit-scrollbar-track {
    background: transparent;
}

.search-panel-inner::-webkit-scrollbar-thumb {
    background: #dddddd;
    border-radius: 2px;
}

.search-panel-inner::-webkit-scrollbar-thumb:hover {
    background: #bbbbbb;
}

/* Firefox 滚动条 */
.search-panel-inner {
    scrollbar-width: thin;
    scrollbar-color: #dddddd transparent;
}

.search-input-wrapper {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px;
    gap: 0;
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 10;
}

.search-panel-input {
    flex: 1;
    padding: 10px 0;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-panel-input::placeholder {
    color: #999999;
}

.search-panel-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.search-panel-btn:hover {
    color: var(--color-primary);
}

.search-panel-content {
    padding: 20px 24px;
}

.search-section {
    margin-bottom: 20px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.search-tag:hover {
    background: #e8e8e8;
}

.search-tag i {
    font-size: 12px;
    color: #999;
}

/* 热门产品 */
.search-popular-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.search-popular-card {
    cursor: pointer;
    transition: var(--transition);
}

.search-popular-card:hover {
    transform: translateY(-2px);
}

.search-popular-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.search-popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-popular-info h4 {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text);
    margin: 0 0 6px 0;
    line-height: 1.4;
    min-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-popular-info p {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* 搜索结果 */
.search-product-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.search-product-card {
    cursor: pointer;
    transition: var(--transition);
}

.search-product-card:hover {
    transform: translateY(-2px);
}

.search-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.search-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 搜索面板中的标签 */
.search-product-labels {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.search-label-new,
.search-label-sale {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
    width: fit-content;
}

.search-label-new {
    background-color: #f5f5f5;
    color: #333;
}

.search-label-sale {
    background-color: #e74c3c;
    color: #fff;
}

/* 搜索面板中的徽章（旧版，保留兼容） */
.search-product-image .badge-new,
.search-product-image .badge-sale {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}

.search-product-image .badge-new {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.search-product-image .badge-sale {
    background-color: #e74c3c;
    color: var(--color-white);
    top: 22px;
}

.search-product-info h4 {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text);
    margin: 0 0 6px 0;
    line-height: 1.4;
    min-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-product-price {
    font-size: 14px;
    font-weight: 600;
}

.search-product-price .price-current {
    color: #e74c3c;
}

.search-product-price .price-sale {
    color: #e74c3c;
}

.search-product-price .price-compare {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-right: 6px;
}

.search-product-price .price-from {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-left: 4px;
}

.search-view-all {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
    margin-top: 12px;
}

.search-view-all a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.search-view-all a:hover {
    color: var(--color-primary);
}

/* ========== 移动端菜单按钮 ========== */
.mobile-menu-btn {
    display: none;
    font-size: 22px;
    color: var(--color-text);
}

/* ===== 移动端侧边栏（手机端从左侧滑出） ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-sidebar-overlay.show {
    display: block;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-sidebar-close {
    font-size: 20px;
    color: var(--color-text);
}

.mobile-sidebar-nav {
    padding: 20px;
}

.mobile-sidebar-nav a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-sidebar-nav .sidebar-sub-menu {
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-sidebar-nav .sidebar-sub-menu.open {
    max-height: 500px;
}

.mobile-sidebar-nav .sidebar-sub-menu a {
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    padding: 10px 0;
}

.mobile-sidebar-nav .sidebar-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-nav .sidebar-toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-sidebar-nav .sidebar-toggle.open .sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* ========== 尾部样式 ========== */
.site-footer {
    background-color: #1a1a1a;
    color: #999999;
    padding-top: 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-family-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    color: #999999;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: #999999;
    transition: var(--transition);
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

/* 订阅表单 */
.footer-subscribe {
    margin-top: 16px;
}

.footer-subscribe .subscribe-form {
    display: flex;
    gap: 0;
}

.footer-subscribe input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #666666;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    border-radius: 0;
    outline: none;
}

.footer-subscribe input::placeholder {
    color: #888888;
}

.footer-subscribe button {
    padding: 12px 28px;
    background-color: #ffffff;
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.footer-subscribe button:hover {
    background-color: #f0f0f0;
}

/* 社交媒体图标 */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #444444;
    border-radius: 50%;
    color: #aaaaaa;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-bg-dark);
}

/* 底部版权 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #333333;
    font-size: 13px;
    color: #999999;
}

.footer-payments {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-payments img {
    height: 25px;
}

.footer-payments i {
    font-size: 32px;
}

/* 支付图标SVG列表（Shopify风格） */
.list-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.list-payment__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    overflow: hidden;
}

.list-payment__item svg {
    display: block;
    width: 38px;
    height: 24px;
}

/* 支付图标彩色版本 */
.footer-payments .fa-cc-visa {
    color: #1A1F71;
}

.footer-payments .fa-cc-mastercard {
    color: #EB001B;
}

.footer-payments .fa-cc-discover {
    color: #FF6000;
}

.footer-payments .fa-cc-amex {
    color: #016FD0;
}

.footer-payments .fa-cc-apple-pay {
    color: #000000;
}

.footer-payments .fa-bitcoin {
    color: #F7931A;
}

/* ========== 通用按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--color-text);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    color: var(--color-text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: #333333;
    color: var(--color-white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 14px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ========== 产品卡片通用样式 ========== */
.product-card {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--color-bg-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* 产品标签 */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.product-badge span {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.badge-new {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.badge-sale {
    background-color: var(--color-sale);
    color: var(--color-white);
}

/* 产品操作按钮 */
.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 34px;
    height: 34px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-action-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* 快速添加按钮 */
.product-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.9);
    color: var(--color-white);
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transform: translateY(100%);
    transition: var(--transition);
}

.product-card:hover .product-quick-add {
    transform: translateY(0);
}

.product-quick-add:hover {
    background: var(--color-primary);
}

/* 产品信息 */
.product-card-info {
    padding: 15px 5px;
}

.product-card-title {
    font-family: var(--font-family-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a:hover {
    color: var(--color-primary);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.price-current {
    font-weight: 700;
    color: var(--color-text);
}

.price-compare {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 13px;
}

.price-sale {
    color: var(--color-sale);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 5px 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ========== 分页组件 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ========== 表单通用样式 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
    background-color: var(--color-bg);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(197, 162, 110, 0.15);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

/* ========== 标签页通用样式 ========== */
.tabs {
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 0;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--color-text);
}

.tab-btn.active {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ========== 弹窗/模态框 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    max-width: 460px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    font-size: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: 24px;
}

/* ========== 弹窗内社交快捷登录 ========== */
.modal-social-login {
    margin-bottom: 16px;
}

.modal-social-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-social-btns {
    display: flex;
    gap: 8px;
}

.modal-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.modal-social-btn i {
    font-size: 16px;
}

.modal-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.modal-social-btn.google:hover {
    border-color: #4285f4;
    color: #4285f4;
    background: #f8faff;
}

.modal-social-btn.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
    background: #f5f9ff;
}

.modal-social-btn.apple:hover {
    border-color: #000;
    color: #000;
    background: #f5f5f5;
}

/* 弹窗内分割线 */
.modal-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--color-text-muted);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.modal-divider span {
    padding: 0 12px;
}

/* 弹窗内表单选项 */
.modal-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.modal-form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--color-text-light);
    text-transform: none;
    letter-spacing: 0;
}

.modal-form-options label input[type="checkbox"] {
    accent-color: var(--color-primary);
}

.modal-form-options a {
    color: var(--color-primary);
    font-weight: 500;
}

.modal-form-options a:hover {
    text-decoration: underline;
}

/* 弹窗内提交按钮 */
.btn-auth-submit {
    width: 100%;
    padding: 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-auth-submit:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 弹窗内表单底部链接 */
.modal-form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-text-light);
}

.modal-form-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

/* 移动端社交按钮纵向排列 */
@media (max-width: 480px) {
    .modal-social-btns {
        flex-direction: column;
    }
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========== 提示消息 ========== */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -120%);
    padding: 16px 32px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    min-width: 280px;
    max-width: 90vw;
    justify-content: center;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast-success {
    border-top: 4px solid var(--color-success);
}

.toast-error {
    border-top: 4px solid var(--color-danger);
}

.toast-warning {
    border-top: 4px solid var(--color-warning);
}

.toast-info {
    border-top: 4px solid #3498db;
}

/* ========== 加载状态 ========== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========== 数量选择器 ========== */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text);
    transition: var(--transition);
}

.quantity-selector button:hover {
    background-color: var(--color-bg-light);
}

.quantity-selector input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 600;
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* 移动端缩小容器内边距 */
    .container {
        padding: 0 12px;
    }

    .container-sm {
        padding: 0 12px;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    /* 移动端缩小头部内边距 */
    .header-main {
        padding: 12px 15px;
        min-height: 56px;
    }

    /* 移动端公告栏更紧凑 */
    .announcement-bar {
        padding: 6px 10px;
        font-size: 12px;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .header-nav-left {
        display: none;
    }

    .lang-selector span,
    .lang-selector .fa-chevron-down {
        display: none;
    }

    .header-search .search-input {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section {
        padding: 40px 0;
    }
}

/* ========== 移动端底部导航条 ========== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 9px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    height: 56px;
    padding: 0;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* 为移动端底部导航留出空间 */
    body {
        padding-bottom: 56px;
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #232323;
    font-size: 11px;
    font-weight: 500;
    flex: 0 0 auto;
    min-width: 56px;
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
    color: #232323;
}

.mobile-bottom-nav .nav-item span:not(.cart-badge) {
    font-size: 10px;
    font-weight: 500;
    color: #232323;
    line-height: 1;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: #c5a26e;
}

.mobile-bottom-nav .nav-item:hover i,
.mobile-bottom-nav .nav-item.active i {
    color: #c5a26e;
}

/* 购物车角标 */
.mobile-bottom-nav .cart-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 15px);
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
    }
}
