/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7B3F00;
    --primary-light: #A0522D;
    --accent: #B8860B;
    --bg: #FDFBF7;
    --card-bg: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #E8E0D4;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Hiragino Kaku Gothic ProN", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ========== Header ========== */
.header {
    background: linear-gradient(135deg, #3C1810 0%, #5C2E1A 50%, #7B3F00 100%);
    color: #FFF;
    padding: 32px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.brand-tagline {
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.lang-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #FFF;
    font-weight: 600;
}

.lang-btn:hover {
    color: #FFF;
}

/* ========== Brand Introduction ========== */
.brand-intro {
    padding: 60px 0 40px;
}

.brand-intro .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.intro-content {
    max-width: 900px;
    text-align: center;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.intro-images {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.intro-images img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ========== Products Section ========== */
.products-section {
    padding: 40px 0 80px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Series Label */
.series-label {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.product-grid:last-child {
    margin-bottom: 0;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #F5F0EB;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform var(--transition);
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 16px;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.product-card-price {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Footer ========== */
.footer {
    background: #2C1A0E;
    color: #E8DDD0;
    padding: 48px 0 24px;
}

.footer-contact {
    text-align: center;
    margin-bottom: 32px;
}

.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #F5E6D0;
    letter-spacing: 0.1em;
}

.footer-contact p {
    font-size: 0.9rem;
    color: #B0A090;
    margin-bottom: 24px;
}

.footer-qr {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-qr-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #FFF;
    padding: 8px;
    border-radius: 8px;
}

.footer-qr-item span {
    font-size: 0.85rem;
    color: #B0A090;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #7A6A5A;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 16px;
}

/* ========== Floating Contact Button ========== */
.contact-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFF;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(123, 63, 0, 0.35);
    transition: var(--transition);
    z-index: 90;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(123, 63, 0, 0.45);
}

.fab-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #FFF;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

.modal-product {
    max-width: 700px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: #F0F0F0;
    color: var(--text);
}

.modal-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Contact QR Grid */
.qr-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.qr-card {
    text-align: center;
    flex: 1;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #FDFBF7;
}

.qr-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.qr-card h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.qr-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Product Detail Modal Content */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-images {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-detail-images img {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #F5F0EB;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.product-detail-desc {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-light);
}

.product-detail-contact {
    background: #FAF6F0;
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-detail-contact:hover {
    background: #F0EAE0;
}

.product-detail-contact-text {
    flex: 1;
}

.product-detail-contact-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.product-detail-contact-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-detail-contact svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ========== Responsive ========== */

/* Large phone: 2 columns */
@media (max-width: 768px) {
    .header {
        padding: 20px 16px;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .brand-tagline {
        font-size: 0.8rem;
    }

    .brand-intro {
        padding: 40px 0 24px;
    }

    .intro-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .intro-images img {
        width: 100%;
        max-width: 320px;
        height: 160px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card-info {
        padding: 12px;
    }

    .product-card-title {
        font-size: 0.9rem;
    }

    .product-card-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .products-section {
        padding: 24px 0 60px;
    }

    .footer {
        padding: 36px 0 20px;
    }

    .footer-qr {
        gap: 32px;
    }

    .footer-qr-item img {
        width: 100px;
        height: 100px;
    }

    /* Floating button - icon only on mobile */
    .contact-fab {
        padding: 14px;
        border-radius: 50%;
        bottom: 16px;
        right: 16px;
    }

    .fab-text {
        display: none;
    }

    /* Modal */
    .modal {
        padding: 24px 20px;
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .qr-grid {
        flex-direction: column;
        gap: 16px;
    }

    .qr-card img {
        width: 140px;
        height: 140px;
    }

    .product-detail-images img {
        max-height: 240px;
    }
}

/* Small phone */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .product-grid {
        gap: 12px;
    }
}

/* ========== Scrollbar ========== */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: #D0C0B0;
    border-radius: 3px;
}
