* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #fefcf8;
    color: #2c2b28;
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #e9e5dd;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #b9a78e;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b8264;
}

/* 头部导航栏 */
.header {
    background: #ffffffea;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0e9df;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo a {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
    color: #3b2c1f;
}
.logo span {
    color: #c49a6c;
    font-weight: 800;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #4a3b2c;
    transition: 0.2s;
    font-size: 1.05rem;
    padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active {
    color: #c49a6c;
    border-bottom: 2px solid #c49a6c;
}

/* 底部 */
.footer {
    background-color: #2e2a24;
    color: #ddd2c4;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}
.footer-col h4 {
    color: #f1e4d4;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-col p, .footer-col ul {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    border-top: 1px solid #4a4238;
    margin-top: 2rem;
}

/* 通用容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 首页轮播区 */
.hero-swiper {
    width: 100%;
    height: 500px;
    margin: 2rem 0 3rem 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-content {
    text-align: center;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    padding: 2rem 3rem;
    border-radius: 48px;
    color: white;
}
.slide-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
}
.slide-content p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* 首页交替商品展示 */
.featured-showcase {
    margin: 3rem 0;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
    color: #2f2a24;
}
.product-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    background: #ffffff;
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.product-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
}
.product-row.reverse {
    flex-direction: row-reverse;
}
.product-img-col {
    flex: 1;
    min-width: 240px;
}
.product-img-col img {
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.product-text-col {
    flex: 1;
    padding: 0 1rem;
}
.product-text-col h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #3b2c1f;
}
.product-text-col .product-tag {
    display: inline-block;
    background: #f3ede6;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #c49a6c;
    font-weight: 500;
}
.product-text-col p {
    color: #5f5343;
    line-height: 1.5;
    margin: 1rem 0;
    font-size: 1rem;
}
.btn-detail {
    background: #c49a6c;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    border: 1px solid #c49a6c;
}
.btn-detail:hover {
    background: #a67c4e;
    transform: scale(1.02);
}

/* 列表页筛选与网格 */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 2.5rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: #f1ebe3;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 60px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
    background: #c49a6c;
    color: white;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid #f1eae1;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
    border-color: #e1cfbb;
}
.product-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.4s;
}
.product-info {
    padding: 1.5rem;
}
.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.product-desc {
    color: #6b5a48;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.btn-light {
    background: #f3ede6;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    color: #4a3b2c;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-light:hover {
    background: #e3d5c8;
}

/* 详情页样式 */
.detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 3rem 0;
}
.detail-gallery {
    flex: 1.2;
    min-width: 280px;
}
.main-detail-img {
    width: 100%;
    border-radius: 32px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.thumb-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.thumb-img.active-thumb {
    border-color: #c49a6c;
    transform: scale(1.02);
}
.detail-info {
    flex: 1;
}
.detail-info h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}
.detail-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a3b2c;
    margin: 1.5rem 0;
}
.badge {
    background: #e9e0d6;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.8rem;
}
.back-btn {
    background: none;
    border: none;
    color: #c49a6c;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 1rem;
}
.back-btn i {
    margin-right: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-swiper {
        height: 320px;
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }
    .product-row {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .product-text-col {
        text-align: center;
    }
}

/* ========== 新增：详情页布局切换器样式 ========== */
.layout-switch-bar {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0e9df;
}
.layout-btn {
    background: #f1ebe3;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.layout-btn i {
    font-size: 1rem;
}
.layout-btn.active {
    background: #c49a6c;
    color: white;
}
.layout-btn:hover:not(.active) {
    background: #e3d5c8;
}

/* ========== 仿亚马逊详情页布局（三栏 + 图片放大功能） ========== */
.amz-breadcrumb {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.75rem;
}
.amz-detail {
    display: flex;
    gap: 1.25rem;
    background: #fff;
    position: relative;
}

/* ---- 左栏：图片区 ---- */
.amz-gallery {
    display: flex;
    gap: 0.75rem;
    width: 40%;
    flex-shrink: 0;
    align-items: flex-start;
}
.amz-thumb-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 58px;
    flex-shrink: 0;
}
.amz-thumb {
    width: 58px;
    height: 58px;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
}
.amz-thumb:hover,
.amz-thumb.active {
    border-color: #e77600;
    box-shadow: 0 0 0 1px #e77600;
}
.amz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.amz-main-wrap {
    flex: 1;
    position: relative;
    cursor: crosshair;
    border: 1px solid #eee;
}
.amz-main-img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* 放大镜镜头 */
.amz-zoom-lens {
    display: none;
    position: absolute;
    border: 1px solid rgba(0,0,0,0.2);
    background: rgba(255,165,0,0.18);
    pointer-events: none;
    z-index: 10;
}
/* 放大结果悬浮窗 */
.amz-zoom-result {
    display: none;
    position: absolute;
    left: calc(100% + 15px);
    top: 0;
    width: 420px;
    height: 420px;
    border: 1px solid #ddd;
    background-color: #fff;
    background-repeat: no-repeat;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    pointer-events: none;
}

/* ---- 中栏：商品信息 ---- */
.amz-info {
    flex: 1;
    min-width: 0;
}
.amz-title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.3rem;
    color: #0f1111;
}
.amz-brand-link {
    font-size: 0.85rem;
    color: #007185;
    margin-bottom: 0.5rem;
}
.amz-brand-link a { color: #007185; text-decoration: none; }
.amz-brand-link a:hover { text-decoration: underline; color: #c7511f; }
.amz-rating-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.amz-rating-num { font-size: 0.85rem; color: #007185; }
.amz-stars i { color: #ffa41c; font-size: 0.85rem; }
.amz-review-count { font-size: 0.85rem; color: #007185; text-decoration: none; }
.amz-divider {
    border-top: 1px solid #eee;
    margin: 0.6rem 0;
}
.amz-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
}
.amz-currency { font-size: 0.8rem; vertical-align: super; color: #0f1111; }
.amz-price-value { font-size: 1.75rem; font-weight: 400; color: #0f1111; }
.amz-import-note {
    font-size: 0.85rem;
    color: #565959;
    margin-bottom: 1rem;
}

/* 规格参数表 */
.amz-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}
.amz-spec-table td {
    padding: 6px 12px 6px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.amz-spec-table td:first-child {
    font-weight: 700;
    color: #0f1111;
    width: 110px;
    white-space: nowrap;
}
.amz-spec-table td:last-child {
    color: #0f1111;
}
.amz-show-more {
    font-size: 0.85rem;
    color: #007185;
    cursor: pointer;
    margin-bottom: 1rem;
}

/* 关于该商品 */
.amz-about {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.amz-about h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f1111;
}
.amz-about ul {
    padding-left: 1.2rem;
    list-style: disc;
}
.amz-about li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #0f1111;
    margin-bottom: 0.5rem;
}
.amz-more-info {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #007185;
    text-decoration: none;
}

/* ---- 右栏：购买栏 ---- */
.amz-buybox {
    width: 260px;
    flex-shrink: 0;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 1rem;
    align-self: flex-start;
}
.amz-buybox-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 0.6rem;
}
.amz-bp-currency { font-size: 0.8rem; vertical-align: super; }
.amz-bp-value { font-size: 1.6rem; font-weight: 400; }
.amz-buybox-ship {
    font-size: 0.8rem;
    color: #565959;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.amz-buybox-ship a { color: #007185; text-decoration: none; }
.amz-buybox-fee {
    font-size: 0.8rem;
    color: #565959;
    margin-bottom: 0.5rem;
}
.amz-buybox-loc {
    font-size: 0.85rem;
    color: #007185;
    margin-bottom: 0.6rem;
}
.amz-buybox-loc i { margin-right: 4px; }
.amz-buybox-stock {
    color: #b12704;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
}
.amz-buybox-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}
.amz-buybox-qty select {
    padding: 4px 24px 4px 8px;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    background: #f0f2f2;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(15,17,17,0.08);
}
.amz-btn-cart {
    width: 100%;
    padding: 8px 0;
    border: 1px solid #fcd200;
    border-radius: 20px;
    background: #ffd814;
    font-size: 0.88rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.amz-btn-cart:hover { background: #f7ca00; }
.amz-btn-buy {
    width: 100%;
    padding: 8px 0;
    border: 1px solid #e09a00;
    border-radius: 20px;
    background: #ffa41c;
    font-size: 0.88rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}
.amz-btn-buy:hover { background: #fa8900; }
.amz-buybox-seller {
    font-size: 0.78rem;
    color: #565959;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}
.amz-buybox-seller div {
    display: flex;
    justify-content: space-between;
}
.amz-buybox-seller a { color: #007185; text-decoration: none; }
.amz-buybox-seemore {
    display: block;
    font-size: 0.8rem;
    color: #007185;
    text-decoration: none;
    margin-bottom: 0.6rem;
}
.amz-buybox-gift {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}
.amz-buybox-gift input { accent-color: #e77600; }
.amz-btn-wishlist {
    width: 100%;
    padding: 6px 0;
    border: 1px solid #d5d9d9;
    border-radius: 20px;
    background: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    color: #0f1111;
}
.amz-btn-wishlist:hover { background: #f7fafa; }

/* 亚马逊布局响应式 */
@media (max-width: 1024px) {
    .amz-detail { flex-wrap: wrap; }
    .amz-gallery { width: 100%; }
    .amz-buybox { width: 100%; }
    .amz-zoom-result { display: none !important; }
}
@media (max-width: 768px) {
    .amz-gallery { flex-direction: column; }
    .amz-thumb-col { flex-direction: row; width: 100%; }
    .amz-zoom-result { display: none !important; }
}

/* ========== 仿手机淘宝详情页布局 ========== */
.detail-taobao {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
}
.detail-taobao .tb-swiper {
    width: 100%;
    margin-bottom: 1rem;
}
.detail-taobao .tb-swiper .swiper-slide img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.detail-taobao .tb-info {
    padding: 0 1rem 1rem;
}
.detail-taobao .tb-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0.5rem 0;
}
.detail-taobao .tb-price {
    font-size: 1.5rem;
    color: #ff5000;
    margin: 0.5rem 0;
}
.detail-taobao .tb-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.detail-taobao .tb-detail-img {
    margin-top: 1rem;
}
.detail-taobao .tb-detail-img img {
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

/* ========== 图片灯箱（Lightbox） ========== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: lightboxFadeIn 0.25s ease;
}
@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10000;
}
.lightbox-close:hover {
    opacity: 1;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10000;
}
.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* 响应式微调 */
@media (max-width: 768px) {
    .layout-switch-bar {
        justify-content: center;
    }
}