/* === style.css (完整版：线框风格 + 骨架屏 + 加载动画) === */

/* 1. 基础重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    background-color: #ffffff; color: #1a1a1a; overflow-x: hidden;
}
a, button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
[v-cloak] { display: none; }

/* 2. 字体与通用工具 */
.font-mega { font-family: 'Anton', sans-serif; letter-spacing: -0.02em; text-transform: uppercase; }
.font-serif { font-family: 'Playfair Display', serif; }

/* 3. Header 导航栏 */
nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 90px;
    display: flex; align-items: center; 
    padding: 0 40px; z-index: 1000;
    transition: all 0.5s ease;
    mix-blend-mode: normal; color: white;
}
nav.scrolled { 
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); 
    color: black; height: 70px; border-bottom: 1px solid #eee;
}
.logo {
    position: absolute; left: 50%; transform: translateX(-50%);
    cursor: pointer; z-index: 1001;
}
nav .logo img { height: 60px; width: auto; transition: 0.3s; }
nav.scrolled .logo img { filter: none; } 
/* Logo 强制黑色 */
nav:not(.scrolled) .logo img { filter: brightness(0); }

.nav-lang { margin-left: auto; }
.nav-lang button { margin-left: 20px; font-size: 11px; font-weight: bold; letter-spacing: 1px; opacity: 0.7; color: #1a1a1a; }
.nav-lang button.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* 4. Hero Banner */
.editorial-banner {
    position: relative; width: 100%; max-width: none; height: 70vh; 
    overflow: hidden; background-color: #FDF5E6; 
    display: flex; justify-content: center; align-items: center; cursor: default;
}
.editorial-banner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05; pointer-events: none; z-index: 1;
}
.parallax-container {
    position: relative; width: 100%; height: 100%; max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: center; align-items: center; perspective: 1000px;
}
.big-text-layer {
    position: absolute; z-index: 2;
    font-family: 'Playfair Display', serif; font-size: 100px; line-height: 0.9; color: #1a1a1a;
    text-align: center; width: 100%; letter-spacing: -2px; font-weight: 400;
    pointer-events: none; transition: transform 0.1s ease-out; will-change: transform;
}
.bag-layer {
    position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 450px; height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
    transition: transform 0.1s ease-out; will-change: transform;
}
.hero-bag { width: 100%; height: auto; display: block; animation: bagFloat 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.sub-text-layer {
    position: absolute; bottom: 40px; right: 60px; z-index: 4;
    text-align: right; font-family: 'Montserrat', sans-serif;
    font-size: 13px; color: #333; line-height: 1.5; font-weight: 500; letter-spacing: 0.5px;
}
@keyframes bagFloat { from { transform: translateY(50px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* 5. 产品列表 (线框 + 白底) */
.catalog-section { padding: 80px 40px; max-width: 1600px; margin: 0 auto; }
.filter-bar { display: flex; justify-content: center; gap: 10px; margin-bottom: 60px; flex-wrap: wrap; }
.filter-btn { 
    padding: 8px 25px; border-radius: 50px; border: 1px solid #eee; 
    font-size: 11px; font-weight: 600; color: #999; letter-spacing: 1px; transition: 0.3s;
}
.filter-btn:hover { border-color: black; color: black; }
.filter-btn.active { background: black; color: white; border-color: black; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; } }

.product-card { 
    cursor: pointer; background: #fff; border: 1px solid #e5e5e5; 
    padding: 30px 20px; text-align: center; transition: all 0.3s ease;
}
.product-card:hover { border-color: #1a1a1a; transform: translateY(-5px); }
.card-img-box { 
    position: relative; aspect-ratio: 1/1; overflow: hidden; background: #fff; 
    margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
}

/* === 图片渐变动画 === */
.card-img { 
    width: 100%; height: 100%; object-fit: contain; padding: 10px; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease-in-out; 
    opacity: 0; /* 默认透明 */
}
.card-img.loaded { opacity: 1; } /* 加载完显示 */
.product-card:hover .card-img { transform: scale(1.08); }
.no-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#ccc; font-size:10px; }

.card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; line-height: 1.4; letter-spacing: 0.5px; color: #1a1a1a; }
.card-sub { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.card-price { font-family: 'Playfair Display', serif; font-style: italic; font-size: 16px; color: #1a1a1a; font-weight: 700; }
.empty-state { text-align:center; padding:100px; color:#999; }

/* === 骨架屏动画 === */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px;
}
.skeleton-card { pointer-events: none; border-color: transparent; }
.skeleton-img { width: 100%; aspect-ratio: 1/1; margin-bottom: 20px; }
.skeleton-text { height: 16px; margin-bottom: 10px; width: 80%; margin-left: auto; margin-right: auto; }
.skeleton-text.short { width: 40%; }

/* === 加载更多按钮 === */
.load-more-container { margin-top: 60px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.btn-load-more {
    padding: 15px 50px; background: #1a1a1a; color: white; font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; border-radius: 50px; transition: all 0.3s ease; border: 1px solid transparent;
}
.btn-load-more:hover { background: white; color: black; border-color: black; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.load-more-text { font-size: 10px; color: #999; letter-spacing: 1px; text-transform: uppercase; }

/* 6. 详情页 */
.detail-page { padding: 0 40px 120px 40px; min-height: 100vh; background: white; }
.back-btn-wrapper { 
    position: sticky; top: 90px; z-index: 90;
    max-width: 1400px; margin: 0 auto 20px auto;
    padding-top: 30px; pointer-events: none; 
}
.back-btn { 
    pointer-events: auto; display: inline-flex; gap: 10px; align-items: center; 
    background: white; padding: 10px 25px; border-radius: 50px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); 
    font-size: 11px; font-weight: bold; letter-spacing: 1px; border: 1px solid #eee;
    transition: all 0.3s ease;
}
.back-btn:hover { border-color: black; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }

.detail-layout { display: flex; gap: 60px; max-width: 1400px; margin: 0 auto; }
.detail-left { width: 65%; }
.detail-right { width: 35%; position: sticky; top: 130px; align-self: start; }
.detail-img { width: 100%; margin-bottom: 20px; background: #f9f9f9; cursor: zoom-in; }
.no-detail-img { padding:100px; text-align:center; background:#f9f9f9; color:#999; }
.detail-title { font-size:32px; font-weight:700; line-height:1.2; margin-bottom:10px; text-transform:uppercase; }
.detail-sub { font-family:'Playfair Display',serif; font-style:italic; font-size:18px; color:#666; margin-bottom:30px; }
.detail-price { font-size:24px; font-family:'Playfair Display',serif; border-top:1px solid #eee; padding-top:20px; margin-bottom:30px; }
.spec-container { margin-bottom:30px; }
.spec-row { display:flex; justify-content:space-between; border-bottom:1px solid #eee; padding:12px 0; font-size:12px; letter-spacing:1px; text-transform:uppercase; }
.spec-key { color:#999; }
.spec-val { font-weight:bold; }
.detail-desc { font-size:13px; line-height:1.8; color:#555; margin-bottom:40px; white-space:pre-line; }
.inquiry-btn { width:100%; background:black; color:white; padding:18px; text-transform:uppercase; letter-spacing:2px; font-size:12px; transition:0.3s; }
.inquiry-btn:hover { background:#FCB900; color:black; }

/* 7. Lightbox */
.lightbox { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(255,255,255,0.98); z-index:2000; display:flex; justify-content:center; align-items:center; }
.lightbox-close { position:absolute; top:30px; right:30px; color:black; font-size:40px; cursor:pointer; z-index:2002; }
.lightbox-img { max-height:90vh; max-width:90vw; object-fit:contain; box-shadow:0 20px 50px rgba(0,0,0,0.1); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px;
    background: rgba(0,0,0,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; color: black; font-size: 24px; z-index: 2001; border: 1px solid rgba(0,0,0,0.1);
}
.lightbox-nav:hover { background: #FCB900; border-color: #FCB900; color: white; transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* 8. 响应式 */
@media (max-width: 1200px) { 
    .editorial-banner { height: 500px; }
    .big-text-layer { font-size: 80px; }
    .bag-layer { width: 380px; }
    .catalog-section { padding: 80px 30px; } 
}
@media (max-width: 768px) {
    nav { padding: 0 20px; height: 80px; justify-content: space-between; } 
    .logo { position: static; transform: none; } 
    nav.scrolled { height: 60px; }
    nav .logo img { height: 40px; } 

    .editorial-banner { height: 400px; }
    .big-text-layer { font-size: 48px; }
    .bag-layer { width: 280px; }
    .sub-text-layer { bottom: 20px; right: 20px; font-size: 12px; }
    
    .detail-page { padding: 0 20px 90px 20px; }
    .detail-layout { flex-direction: column; gap: 30px; }
    .detail-left, .detail-right { width: 100%; }
    .detail-right { position: static; } 
    .back-btn-wrapper { top: 60px; padding-top: 20px; }

    .catalog-section { padding: 60px 20px; }
    .product-grid { gap: 20px; } 
    .product-card { padding: 20px 10px; }
}