:root {
    --bg: #e4e4dc;
    --white: #fefefd;
    --text: #3d3f33;
    --text-2: #6b6e5c;
    --text-3: #9da6a3;
    --border: #d4d4ca;
    --accent: #5f624e;
    --accent-hover: #4a4d3e;
    --dark: #5f624e;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e0 0%, #d8d8cf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 20px;
}

/* 公告栏 */
.announcement-bar {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-icon-btn:hover {
    background: var(--bg);
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

/* Hero */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide .placeholder-img {
    font-size: 15px;
    flex-direction: column;
    gap: 8px;
}

.carousel-slide .slide-label {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-2);
    letter-spacing: 1px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s, transform 0.2s;
}

.carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
    left: 16px;
}

.carousel-arrow.next {
    right: 16px;
}

.carousel-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* 分类 */
.categories {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.25s;
}

.category-item:hover {
    transform: translateY(-4px);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.category-item:hover .category-icon {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(95, 98, 78, 0.15);
}

.category-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--text-2);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s;
}

.category-item:hover .category-icon svg {
    stroke: var(--accent);
}

.category-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
}

.category-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 36px;
}

.category-hint {
    font-size: 12px;
    color: var(--text-2);
    letter-spacing: 0.3px;
}

.view-all-btn {
    display: inline-block;
    padding: 11px 26px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s;
}

.view-all-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.categories-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.category-hint {
    font-size: 18px;
    color: var(--text-2);
    letter-spacing: 0.3px;
}

.view-all-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--accent);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: var(--accent-hover);
}

@media (max-width: 480px) {
    .category-footer {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
}

/* 产品区 */
.product-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-viewall {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-2);
    border-bottom: 1px solid var(--text-3);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.section-viewall:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.product-scroll-wrapper {
    position: relative;
}

.product-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 20px;
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: background 0.2s, border-color 0.2s;
}

.scroll-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.scroll-btn:hover svg {
    stroke: var(--white);
}

.scroll-btn.left {
    left: -10px;
}

.scroll-btn.right {
    right: -10px;
}

.scroll-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}

.product-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 240px;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg);
}

.product-image-wrap .placeholder-img {
    font-size: 12px;
    transition: transform 0.4s;
}

.product-card:hover .product-image-wrap .placeholder-img {
    transform: scale(1.03);
}

.product-params-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    padding: 16px 18px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border);
}

.product-card:hover .product-params-overlay {
    transform: translateY(0);
}

.params-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.params-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.param-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    line-height: 1.4;
}

.param-key {
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.param-value {
    color: var(--text);
    font-weight: 400;
    text-align: right;
    max-width: 60%;
}

.product-info {
    padding: 16px 14px 18px;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    letter-spacing: 0.2px;
}

.product-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(95, 98, 78, 0.08);
    padding: 3px 8px;
    border-radius: 2px;
}

/* 页脚 */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 320px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

/* 页脚社媒图标 */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--accent);
    border-color: var(--white);
}

.footer-social svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* 搜索覆盖层 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 200;
    padding: 30px 40px;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-overlay.active {
    transform: translateY(0);
}

.search-overlay-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-overlay input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--text);
    padding: 16px 0;
    font-size: 20px;
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
    outline: none;
}

.search-overlay input::placeholder {
    color: var(--text-3);
}

.search-close {
    position: absolute;
    top: 10px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close svg {
    width: 22px;
    height: 22px;
    stroke: var(--text);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* 搜索结果 */
.search-results {
    margin-top: 18px;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-empty {
    padding: 30px 0;
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 4px;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #dcdcd2;
}

.search-result-img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    flex-shrink: 0;
}

.search-result-img .placeholder-img {
    font-size: 8px;
    padding: 4px;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-id {
    font-size: 11px;
    color: var(--text-2);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.search-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.search-add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* 搜索页购物车 */
.search-cart-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.search-cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.2s;
}

.search-cart-btn:hover {
    background: var(--bg);
}

.search-cart-btn svg {
    width: 22px;
    height: 22px;
}

.search-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 63, 51, 0.92);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    background: var(--white);
    border-radius: 6px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lightbox-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.lightbox-image img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    display: block;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lb-nav:hover {
    background: var(--white);
}

.lb-nav svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lb-prev {
    left: 12px;
}

.lb-next {
    right: 12px;
}

.lb-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 16px;
}

.lb-thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.lb-thumb.active {
    border-color: var(--accent);
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-details {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
}

.lightbox-details h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.lightbox-details .product-tag {
    align-self: flex-start;
    margin-bottom: 16px;
}

.lightbox-params {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.lightbox-params .param-row {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.lightbox-params .param-row:last-child {
    border-bottom: none;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: var(--white);
}

.lightbox-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ===== Product Detail Modal ===== */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 63, 51, 0.85);
    z-index: 350;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 40px;
}

.product-detail-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.product-detail-content {
    background: var(--white);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pd-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pd-close:hover {
    background: var(--white);
}

.pd-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.pd-carousel {
    position: relative;
}

.pd-main-image {
    cursor: pointer;
    overflow: hidden;
}

.pd-main-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
}

.pd-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.pd-arrow:hover {
    background: var(--white);
}

.pd-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pd-prev {
    left: 12px;
}

.pd-next {
    right: 12px;
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 16px;
}

.pd-thumb {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.pd-thumb.active {
    border-color: var(--accent);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-info {
    padding: 16px 24px 0;
}

.pd-details {
    padding: 20px 24px 28px;
}

.pd-details h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.pd-details .product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 16px;
}

.pd-params {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.pd-params .param-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.pd-params .param-row:last-child {
    border-bottom: none;
}

.pd-params .param-key {
    color: var(--text-2);
    font-weight: 500;
}

.pd-params .param-value {
    color: var(--text);
    text-align: right;
}

/* 响应式 */
@media (max-width: 1024px) {
    .nav-inner {
        padding: 0 24px;
    }

    .nav-menu {
        gap: 20px;
    }

    .hero {
        padding: 24px;
        gap: 16px;
    }

    .product-section {
        padding: 40px 24px;
    }

    .categories {
        padding: 40px 24px 30px;
    }

    .footer-inner {
        padding: 50px 24px 24px;
        gap: 30px;
    }

    .product-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-side {
        aspect-ratio: 16 / 9;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .product-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 200px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .lightbox-content {
        max-width: 100%;
    }

    .lightbox {
        padding: 20px;
    }

    .product-detail-modal {
        padding: 20px;
    }

    .product-detail-content {
        max-width: 100%;
    }

    .section-title {
        font-size: 24px;
    }

    .announcement-bar {
        font-size: 10px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 16px;
        height: 60px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .hero {
        padding: 16px;
    }

    .product-section {
        padding: 30px 16px;
    }

    .categories {
        padding: 30px 16px 20px;
    }

    .category-icon {
        width: 64px;
        height: 64px;
    }

    .category-icon svg {
        width: 28px;
        height: 28px;
    }

    .product-card {
        flex: 0 0 85%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 40px 16px 20px;
    }

    .scroll-btn {
        display: none;
    }
}

/* ===== 所有产品弹窗 ===== */
.products-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.6);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 40px;
}

.products-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.products-modal-content {
    background: var(--white);
    border-radius: 6px;
    max-width: 860px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 32px 36px 24px;
}

.products-modal-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-y: auto;
    padding: 4px;
    flex: 1;
}

.product-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.product-mini-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg);
}

.product-mini-img .placeholder-img {
    font-size: 10px;
    padding: 8px;
}

.product-mini-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.product-mini-id {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.add-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

.add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.products-modal-footer {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    position: relative;
}

.cart-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--text);
}

.cart-icon-btn:hover {
    background: var(--bg);
}

.cart-icon-btn svg {
    width: 22px;
    height: 22px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.modal-close-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--text-2);
}

.modal-close-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== 购物车弹窗 ===== */
.cart-modal {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 10;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
    overflow: hidden;
}

.cart-modal.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-modal-content {
    display: flex;
    height: 100%;
    background: var(--white);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    border-radius: 6px 0 0 6px;
    position: relative;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

.cart-empty {
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
    padding: 60px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.cart-item-img .placeholder-img {
    font-size: 8px;
    padding: 4px;
}

.cart-item-id {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cart-delete-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-2);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.cart-delete-btn:hover {
    background: rgba(95, 98, 78, 0.1);
    color: var(--accent);
}

.cart-delete-btn svg {
    width: 17px;
    height: 17px;
}

.cart-sidebar {
    width: 36px;
    background: var(--accent);
    position: relative;
    flex-shrink: 0;
}

.cart-collapse-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 0 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.2s;
}

.cart-collapse-btn:hover {
    background: var(--accent-hover);
}

.cart-collapse-btn svg {
    width: 18px;
    height: 18px;
}

/* NEXT 联系流程 */
.cart-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cart-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.cart-next-btn {
    padding: 10px 30px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s;
}

.cart-next-btn:hover {
    background: var(--accent-hover);
}

.contact-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: 6px 0 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 20;
}

.contact-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.contact-option {
    width: 220px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text);
    transition: border-color 0.2s, color 0.2s;
}

.contact-option:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-back {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-2);
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.contact-back:hover {
    color: var(--accent);
}

.contact-back svg {
    width: 15px;
    height: 15px;
}

/* ===== Product Detail Overlay (fade in over modal) ===== */
.product-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 30;
    overflow-y: auto;
    border-radius: 6px;
}

.product-detail-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pdo-inner {
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
}

/* Top-Right Close Button */
.pdo-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 31;
}

.pdo-close:hover {
    background: var(--border);
    transform: scale(1.05);
}

.pdo-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-2);
}

/* Carousel */
.pdo-carousel {
    position: relative;
    margin-bottom: 32px;
}

.pdo-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}

.pdo-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.pdo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 22;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdo-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.05);
}

.pdo-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
    stroke-width: 2;
}

.pdo-prev {
    left: 16px;
}

.pdo-next {
    right: 16px;
}

.pdo-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 4px;
}

.pdo-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.pdo-thumb:hover {
    transform: scale(1.05);
}

.pdo-thumb.active {
    border-color: var(--accent);
}

.pdo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specs */
.pdo-specs h4 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 20px;
}

.pdo-table {
    width: 100%;
    border-collapse: collapse;
}

.pdo-table tr {
    border-bottom: 1px solid var(--border);
}

.pdo-table tr:last-child {
    border-bottom: none;
}

.pdo-label {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    width: 140px;
}

.pdo-value {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-modal {
        padding: 16px;
    }

    .products-modal-content {
        padding: 20px 16px 16px;
    }
}

/* ===== Policy Panels ===== */
.policy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.policy-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.policy-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 85vw;
    height: 100%;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.policy-panel.active {
    transform: translateX(0);
    pointer-events: auto;
}

.policy-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 6px 6px 0;
    position: relative;
}

.policy-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.policy-close-btn:hover {
    background: var(--bg);
    color: var(--text-1);
}

.policy-close-btn svg {
    width: 20px;
    height: 20px;
}

.policy-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-1);
    padding: 24px 24px 0;
    margin: 0;
}

.policy-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 32px;
}

.policy-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin: 24px 0 8px;
}

.policy-body h4:first-child {
    margin-top: 0;
}

.policy-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2);
    margin: 0 0 12px;
}

/* ===== About Us ===== */
.about {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
    display: block;
}

.about-text {
    width: 100%;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 20px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-2);
    margin: 0 0 14px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-caption {
    display: block;
    padding: 10px 8px;
    font-size: 13px;
    color: var(--text-2);
    text-align: center;
    background: var(--white);
}

@media (max-width: 1024px) {
    .about-intro {
        gap: 28px;
    }

    .about-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 40px 16px;
    }

    .about-intro {
        flex-direction: column;
        gap: 24px;
    }

    .about-image {
        flex: none;
        width: 100%;
    }

    .about-title {
        font-size: 24px;
    }

    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }
}