/* ==================== Orange Ocean Shop - 像素级复刻文华东方精品店 ==================== */

/* 基础重置 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    --scroll-y: 0px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.body--light {
    background-color: #fff;
}

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

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

img {
    max-width: 100%;
    display: block;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ==================== 布局容器 ==================== */
#q-app {
    width: 100%;
}

.q-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.q-page-container {
    flex: 1;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.content-wrap {
    width: 100%;
}

/* ==================== Header 头部 ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

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

.logo-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    overflow: visible;
}

.main-logo {
    display: block;
    line-height: 1.3;
    white-space: nowrap;
}

.main-logo span {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    /* 极限自适应：最小1px，动态缩放，最大18px */
    font-size: clamp(1px, 4vw, 18px);
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1a1a1a;
    white-space: nowrap;
    display: inline-block;
}

.main-logo small {
    display: block;
    /* 极限自适应：最小1px，动态缩放，最大12px */
    font-size: clamp(1px, 2.8vw, 12px);
    font-weight: 400;
    color: #8b7355;
    letter-spacing: 0.5px;
    margin-top: 2px;
    white-space: nowrap;
}


/* 较大屏幕 (>=480px) 固定字体大小 */
@media (min-width: 480px) {
    .header-wrapper {
        padding: 15px 20px;
    }

    .main-logo span {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .main-logo small {
        font-size: 12px;
        letter-spacing: 1px;
    }
}


.main-nav {
    display: none;
    order: 10;
}

/* 移动端分类菜单 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
}

.mobile-menu-header span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: #333;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.mobile-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-menu-list a:hover,
.mobile-menu-list a:active {
    background: #f8f8f8;
    color: #8b7355;
}

.mobile-menu-list .menu-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.mobile-menu-list .menu-name {
    font-size: 15px;
    font-weight: 500;
}

.utilities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

/* PC端放大图标 - 大屏幕显示更大的图标 */
@media (min-width: 769px) {
    .utilities {
        gap: 20px;
    }

    .search .open-menu {
        width: 56px;
        height: 56px;
    }

    .icon-search::before {
        width: 32px;
        height: 32px;
    }

    .global-sites .open-menu {
        height: 56px;
        padding: 0 12px;
    }

    .icon-location {
        font-size: 18px;
        font-weight: 500;
    }

    .user-btn {
        width: 56px;
        height: 56px;
    }

    .user-btn::before {
        width: 34px;
        height: 34px;
    }

    .cart-btn {
        width: 56px;
        height: 56px;
    }

    .cart-btn::before {
        width: 32px;
        height: 32px;
    }

    #cartSumQty {
        min-width: 22px;
        height: 22px;
        font-size: 13px;
        top: 6px;
        right: 4px;
    }

    .contact-btn {
        width: 56px;
        height: 56px;
    }

    .contact-btn::before {
        width: 32px;
        height: 32px;
    }

    .header-wrapper {
        padding: 20px 40px;
    }
}

/* 搜索按钮 */
.search .open-menu {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.global-sites .open-menu {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2px;
}

.icon-search::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
}

.icon-search strong,
.icon-location strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.icon-location {
    font-size: 11px;
    font-weight: normal;
}

.icon-location strong {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-weight: 400;
}

/* 搜索面板 */
.search .menu-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 20px;
    display: none;
    z-index: 100;
}

.search .menu-overlay.active {
    display: block;
}

.label-wrapper {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ccc;
}

.label-wrapper input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: none;
    outline: none;
}

.label-wrapper .btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 语言选择 */
.global-sites {
    position: relative;
}

.global-sites .menu-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: none;
    z-index: 100;
}

.global-sites:hover .menu-overlay,
.global-sites .menu-overlay.active {
    display: block;
}

.menu-content-wrapper ul {
    list-style: none;
}

.menu-content-wrapper li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    transition: background 0.2s;
}

.menu-content-wrapper li a:hover,
.menu-content-wrapper li a.active {
    background: #f5f5f5;
}

/* 购物车按钮 */
.cart-btn-area {
    position: relative;
}

.cart-btn {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-btn::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
    background-size: contain;
}

#cartSumQty {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 14px;
    height: 14px;
    background: #8b7355;
    color: #fff;
    font-size: 9px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

#cartSumQty:empty,
#cartSumQty[data-count="0"] {
    display: none;
}

.cart-btn .hidden {
    display: none;
}

/* 客服按钮 */
.contact-btn-area {
    position: relative;
}

.contact-btn {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.contact-btn::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    /* 客服图标 SVG - 对话气泡 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ==================== 加载动画 ==================== */
.loading-spinner.page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.loader {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e5e5;
    border-top-color: #8b7355;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== Hero Banner 主横幅 ==================== */
.hp-hero-wrap {
    position: relative;
    overflow: hidden;
}

/* 轮播图两侧白色渐变遮罩 */
.hp-hero-wrap::before,
.hp-hero-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.hp-hero-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 40%, transparent 100%);
}

.hp-hero-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 40%, transparent 100%);
}

.hp-hero-wrap .main-hp {
    display: block;
    position: relative;
}

.hp-hero-wrap .img-wrap {
    position: relative;
    overflow: hidden;
}

.hp-hero-wrap .img-wrap img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    display: block;
}

.hp-hero-wrap .stack {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    text-align: center;
    color: #fff;
}

.hp-hero-wrap .stack p:first-child {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.9;
}

.hp-hero-wrap .stack h1 {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 24px;
}

.hp-hero-wrap .btn-main {
    display: inline-block;
    padding: 14px 50px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.hp-hero-wrap .btn-main:hover {
    background: #fff;
    color: #1a1a1a;
}

/* Hero Swiper 分页器 */
.hero-swiper .swiper-pagination {
    bottom: 20px !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 40px;
    height: 3px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 4px !important;
    transition: all 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 60px;
}

/* ==================== 分类区块通用样式 ==================== */
.category-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.category-block.reverse {
    direction: rtl;
}

.category-block.reverse>* {
    direction: ltr;
}

.category-block .branding-hero {
    position: relative;
    overflow: hidden;
}

.category-block .branding-hero .img-wrap-tall {
    height: 100%;
}

.category-block .branding-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.category-block .branding-hero:hover img {
    transform: scale(1.05);
}

.category-block .outer-wrap {
    display: flex;
    align-items: center;
}

.category-block .inner-wrap {
    padding: 60px;
    width: 100%;
}

.category-block .title {
    position: relative;
}

.category-block .bg-element {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23f5f5f5' d='M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 90c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
    opacity: 0.3;
    z-index: 0;
}

.category-block .inner-title {
    position: relative;
    z-index: 1;
}

.category-block h2 {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.category-block p {
    font-size: 15px;
    color: #666;
    line-height: 2;
    margin-bottom: 30px;
    max-width: 400px;
}

.category-block .btn-main {
    display: inline-block;
    padding: 14px 50px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    letter-spacing: 3px;
    transition: all 0.3s;
}

.category-block .btn-main:hover {
    background: #8b7355;
}

/* ==================== 产品轮播区块 ==================== */
.products-section {
    padding: 80px 40px;
    background: #fff;
}

/* 当有大图区块时，产品区块没有标题，减少顶部间距 */
.products-section.no-header {
    padding-top: 40px;
}

.products-section.alt-bg {
    background: #f8f8f8;
}

.products-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-section h2 {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.products-section .section-desc {
    font-size: 14px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 产品Swiper */
.products-swiper {
    padding: 0 0 20px;
    position: relative;
}

.products-swiper .swiper-slide {
    width: 280px;
}

.product-card {
    background: #fff;
    transition: all 0.3s;
}

.products-section.alt-bg .product-card {
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-card .img-wrap-tall {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.product-card .img-wrap-tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* 产品描述遮罩层 */
.product-desc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 10;
}

.product-desc-overlay p {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    max-height: 100%;
    overflow-y: auto;
}

.product-card:hover .img-wrap-tall img {
    transform: scale(1.08);
}

.product-card .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #f8f8f8, #eee);
}

.product-card h3 {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 16px 12px 8px;
    color: #333;
    line-height: 1.5;
}

.product-card .price {
    font-family: 'Georgia', serif;
    font-size: 18px;
    text-align: center;
    color: #1a1a1a;
    padding-bottom: 12px;
}

.product-card .add-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 12px;
    background: #f5f5f5;
    color: #333;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card .add-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.product-card .add-btn.in-cart {
    background: #8b7355;
    color: #fff;
}

/* Swiper 导航按钮 */
.swiper-button-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.swiper-button-prev,
.swiper-button-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #ddd;
    margin: 0;
    transition: all 0.3s;
}

.products-swiper .swiper-button-prev,
.products-swiper .swiper-button-next {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
}

.products-swiper .swiper-button-prev {
    left: 0;
}

.products-swiper .swiper-button-next {
    right: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    font-weight: 300;
    color: #333;
    transition: color 0.3s;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: #fff;
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swiper-button-disabled:hover {
    background: #fff;
    border-color: #ddd;
}

.swiper-button-disabled:hover::after {
    color: #333;
}

/* ==================== 名人语录轮播 ==================== */
.fans-section {
    padding: 80px 40px;
    background: #f5f5f5;
}

.fans-swiper .swiper-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.fans-image-wrap {
    overflow: hidden;
}

.fans-image-wrap img {
    width: 100%;
    height: auto;
}

.fans-quote {
    padding: 40px;
}

.fans-quote .font-medium {
    font-family: 'STKaiti', 'KaiTi', serif;
    font-size: 20px;
    line-height: 2;
    color: #333;
    margin-bottom: 24px;
}

.fans-quote .quote-credit {
    font-size: 14px;
    color: #666;
}

/* ==================== 品牌介绍区块 ==================== */
.brand-section {
    padding: 100px 40px;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
}

.brand-section h2 {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.brand-section p {
    font-size: 15px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 2;
}

.brand-section .btn-main {
    display: inline-block;
    padding: 16px 60px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    transition: all 0.3s;
}

.brand-section .btn-main:hover {
    background: #fff;
    color: #1a1a1a;
}

/* ==================== SEO 文字区块 ==================== */
.seo-copy {
    padding: 60px 40px;
    text-align: center;
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.seo-copy h2 {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.seo-copy p {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

/* ==================== Footer 页脚 ==================== */
footer {
    background: #f5f5f5;
}

.footer-wrap-top {
    padding: 40px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.footer-wrap-top .footer {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links .support {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.icon-home::before,
.icon-chat::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-size: contain;
}

.icon-home::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.icon-chat::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.footer-wrap-bottom {
    padding: 30px 20px;
    background: #1a1a1a;
}

.footer-wrap-bottom .footer {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

/* ==================== 购物车侧边栏 ==================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1100;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1101;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-title {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
}

.cart-close {
    font-size: 24px;
    color: #999;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

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

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
}

.cart-item-remove {
    color: #ccc;
    font-size: 20px;
    padding: 4px;
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #999;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
}

.subtotal-value {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 500;
}

/* ==================== 通用按钮 ==================== */
.btn-main {
    display: inline-block;
    padding: 14px 40px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-main:hover {
    background: #8b7355;
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 40px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    letter-spacing: 2px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #eee;
}

/* ==================== 弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1200;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
}

.modal-close {
    font-size: 24px;
    color: #999;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

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

.form-section h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.address-fields {
    margin-bottom: 12px;
}

.form-hint {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.required {
    color: #c00;
}

.form-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #1a1a1a;
}

textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.order-summary {
    background: #f9f9f9;
    padding: 16px;
}

.summary-items {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-total {
    border-top: 1px solid #ddd;
    padding-top: 12px;
    font-weight: 500;
}

.payment-options {
    display: flex;
    gap: 12px;
}

.payment-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option input {
    display: none;
}

.payment-option.active {
    border-color: #1a1a1a;
}

.payment-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.payment-name {
    font-size: 12px;
}

.payment-price {
    margin-top: 8px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.payment-option[data-method="usdt"] .payment-price {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 支付弹窗 */
.payment-body {
    text-align: center;
}

.payment-order-no {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.payment-amount {
    font-family: 'Georgia', serif;
    font-size: 36px;
    margin-bottom: 24px;
}

.payment-amount small {
    font-size: 14px;
    color: #999;
}

.payment-qr {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.payment-address {
    background: #f9f9f9;
    padding: 16px;
    margin-bottom: 16px;
}

.payment-address small {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.payment-address span {
    display: block;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 12px;
    color: #333;
}

.btn-copy {
    padding: 8px 24px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

.btn-copy:hover {
    background: #8b7355;
}

.payment-timer {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.payment-timer span:last-child {
    color: #c00;
    font-weight: 500;
}

.payment-status {
    padding: 12px;
    background: #f9f9f9;
    margin-bottom: 20px;
    font-size: 14px;
}

.payment-actions {
    display: flex;
    gap: 12px;
}

.payment-actions button {
    flex: 1;
}

/* ==================== 客服弹窗 ==================== */
.contact-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1050;
    min-width: 200px;
}

.contact-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 顶部弹出样式（从顶部客服按钮点击时使用） */
.contact-popup.top {
    bottom: auto;
    top: 70px;
    right: 24px;
    transform: translateY(-10px);
}

.contact-popup.top.show {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    color: #999;
    line-height: 1;
}

.popup-title {
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    color: #333;
}

.popup-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-option {
    display: block;
    padding: 12px 24px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.popup-option.whatsapp {
    background: #25D366;
}

.popup-option.telegram {
    background: #0088cc;
}

.popup-option.email {
    background: #8b7355;
}

.popup-option:hover {
    opacity: 0.9;
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    background: #fff;
    border-left: 4px solid #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: toastIn 0.3s;
    z-index: 9999;
    font-size: 14px;
}

.toast.success {
    border-color: #4caf50;
}

.toast.error {
    border-color: #c00;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .category-block {
        grid-template-columns: 1fr;
    }

    .category-block .branding-hero .img-wrap-tall {
        height: 300px;
    }

    .category-block .inner-wrap {
        padding: 40px 20px;
        text-align: center;
    }

    .category-block .inner-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .category-block h2 {
        text-align: center;
    }

    .category-block p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .category-block .btn-main {
        display: inline-block;
        margin: 0 auto;
    }

    .fans-swiper .swiper-slide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
    }

    .main-nav .open-menu {
        width: 24px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .icon-menu {
        width: 14px;
        height: 1.5px;
        background: #333;
        position: relative;
        transition: all 0.3s;
    }

    .icon-menu::before,
    .icon-menu::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 1.5px;
        background: #333;
        transition: all 0.3s;
    }

    .icon-menu::before {
        top: -5px;
    }

    .icon-menu::after {
        bottom: -5px;
    }

    .icon-close {
        display: none;
    }

    /* 菜单打开时的汉堡图标动画 */
    .main-nav.menu-open .icon-menu {
        background: transparent;
    }

    .main-nav.menu-open .icon-menu::before {
        top: 0;
        transform: rotate(45deg);
    }

    .main-nav.menu-open .icon-menu::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    .hp-hero-wrap .stack {
        padding: 30px 20px;
    }

    .hp-hero-wrap .stack h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .hp-hero-wrap .btn-main {
        padding: 12px 30px;
        font-size: 12px;
    }

    .category-block h2 {
        font-size: 24px;
    }

    .products-section {
        padding: 50px 20px;
    }

    .products-section h2 {
        font-size: 22px;
    }

    .products-swiper .swiper-slide {
        width: 200px;
    }

    .products-swiper .swiper-button-prev,
    .products-swiper .swiper-button-next {
        display: none;
    }

    .brand-section {
        padding: 60px 20px;
    }

    .brand-section h2 {
        font-size: 24px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-options {
        flex-direction: column;
    }

    .payment-actions {
        flex-direction: column;
    }

    .footer-links .support {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ==================== 用户登录/注册 ==================== */

.user-btn-area {
    position: relative;
}

.user-btn {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.user-btn::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    /* 用户图标 SVG - 与购物袋风格一致 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-user {
    display: none;
}

.user-name {
    display: none;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 12px;
    display: none;
    z-index: 1000;
}

.user-menu.active {
    display: block;
}

.user-menu-guest {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-menu-guest .btn-main,
.user-menu-guest .btn-outline {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
    border-radius: 2px;
    transition: all 0.2s;
}

.user-menu-guest .btn-main {
    background: #333;
    color: #fff;
    border: 1px solid #333;
}

.user-menu-guest .btn-main:hover {
    background: #000;
}

.user-menu-guest .btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #333;
}

.user-menu-guest .btn-outline:hover {
    background: #333;
    color: #fff;
}

.user-menu-logged a {
    display: block;
    padding: 10px 12px;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
}

.user-menu-logged a:hover {
    background: #f5f5f5;
}

.user-menu-info {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.user-email {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #333;
    color: #333;
    border-radius: 2px;
    padding: 8px 16px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #333;
    color: #fff;
}

/* 登录弹窗 */
.auth-modal .modal-content.modal-sm {
    max-width: 400px;
}

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

.auth-switch a {
    color: #8a6d3b;
    font-weight: 500;
}

/* 我的订单弹窗 */
.orders-modal .modal-content.modal-lg {
    max-width: 700px;
    max-height: 80vh;
}

.orders-loading,
.orders-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.orders-loading .loader {
    width: 30px;
    height: 30px;
    margin: 0 auto 15px;
}

.orders-list {
    max-height: 60vh;
    overflow-y: auto;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.order-no {
    font-size: 13px;
    color: #666;
}

.order-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.paid {
    background: #d4edda;
    color: #155724;
}

.order-status.processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.completed {
    background: #c3e6cb;
    color: #155724;
}

.order-status.expired,
.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-items {
    padding: 12px 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.order-item+.order-item {
    border-top: 1px solid #f0f0f0;
}

.order-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}

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

.order-item-name {
    font-size: 14px;
    margin-bottom: 3px;
}

.order-item-price {
    font-size: 12px;
    color: #666;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

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

.order-total {
    font-size: 15px;
    font-weight: 600;
    color: #8a6d3b;
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }

    .orders-modal .modal-content.modal-lg {
        max-width: 100%;
        margin: 10px;
    }
}

/* ==================== 发货详情样式 ==================== */
.shipping-details {
    margin: 12px 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5e9 100%);
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

.shipping-title {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 10px;
}

.shipping-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.shipping-row:last-child {
    margin-bottom: 0;
}

.shipping-label {
    color: #666;
    flex-shrink: 0;
    min-width: 65px;
}

.shipping-value {
    color: #333;
    word-break: break-all;
}

.shipping-value.tracking-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1565c0;
    letter-spacing: 0.5px;
}

.shipping-row.admin-note .shipping-value {
    color: #666;
    font-style: italic;
}

/* USDT 折扣标签 */
.payment-discount {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}