﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --hero-red: #a3131e;
    --hero-dark: #5e0004;
    --ink: #1a1a1a;
    --paper: #fff8f0;
    --border: #111111;
    --accent: #0d3c61;
}

body {
    font-family: 'Noto Sans TC', 'Segoe UI', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

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

.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('img/cover.png');
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    opacity: 0;
    animation: fadeInBg 1.2s forwards ease-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(162, 19, 30, 0.5), rgba(16, 0, 2, 0.95));
    opacity: 0;
    animation: fadeInOverlay 1.2s 0.3s forwards ease-out;
}

.hero-content {
    position: relative;
    padding: 40px;
    z-index: 1;
    opacity: 0;
    animation: riseUp 0.9s 0.6s forwards ease-out;
}

.hero-logo {
    width: 165px;
    height: 165px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-sub {
    letter-spacing: 8px;
    font-size: 14px;
}

.hero h1 {
    font-size: clamp(48px, 5vw, 80px);
    letter-spacing: 8px;
    margin: 16px 0;
}

.slogan {
    font-size: 20px;
}

.hero-actions {
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 2px;
    border: 2px solid #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: #fff;
    color: var(--hero-red);
    border-color: #fff;
}

.btn.outline {
    color: var(--hero-red);
    border-color: var(--hero-red);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

section {
    padding: 80px 24px;
}

.patterned {
    position: relative;
}

.patterned::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 0;
    width: 200px;
    height: 200px;
    background: url('img/flower.png') no-repeat center/contain;
    opacity: 0.9;
    transform: rotate(-90deg);
    pointer-events: none;
}

.feature,
.products,
.pillars,
.story-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 32px);
}

.feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: center;
    margin-top: 24px;
}

.feature-media {
    position: relative;
}

.feature-media img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
}

.feature-text .tag,
.section-head .tag {
    letter-spacing: 4px;
    color: var(--accent);
    font-size: 14px;
}

.feature-text h2 {
    font-size: 28px;
    margin: 10px 0;
}

.feature-text p {
    margin: 10px 0 0 0;
    line-height: 1.8;
}

.story {
    padding: 72px 0;
}

.story-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: none;
    width: 100%;
    margin: 0;
}

.story-block {
    padding: 32px 32px 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: #fff;
}

.story-gallery {
    min-height: 380px;
    background: #000;
}

.story-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.story p {
    word-break: break-word;
}

.artisan-line {
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 80px;
    line-height: 1.6;
    font-size: 36px;
}

.products {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section-head {
    text-align: center;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 32px;
    margin-top: 12px;
}

.product-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
}

.product-image-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-main-image {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    height: 320px;
    background: #f7f2eb;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid #c03535;
    background-color: #f2f2f2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumb.active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(192, 53, 53, 0.35);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-price {
    font-size: 18px;
    color: var(--hero-red);
    font-weight: 600;
}

.product-name {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.product-description {
    line-height: 1.8;
    color: var(--ink);
    word-break: break-word;
}

.product-description p {
    margin-bottom: 10px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillars-grid article {
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    word-break: break-word;
}

.pillar-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.pillar-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.2s;
}

.pillar-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.pillar-prev {
    left: 10px;
}

.pillar-next {
    right: 10px;
}

.footer {
    position: relative;
    background: #561111;
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background-image: url('img/cover.png');
    background-size: cover;
    opacity: 0.75;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer a {
    color: #fff0d5;
    text-decoration: none;
}

@keyframes fadeInBg {
    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

@keyframes riseUp {
    from {
        transform: translateY(20px);
    }

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

@media (max-width: 900px) {
    .feature,
    .products,
    .pillars {
        padding-left: 18px;
        padding-right: 18px;
        width: calc(100% - 36px);
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .story-inner {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .story {
        padding: 64px 0;
    }

    .story-gallery {
        min-height: 320px;
    }

    .patterned::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 24px;
    }

    .hero h1 {
        letter-spacing: 4px;
    }

    .product-card {
        gap: 20px;
    }

    .product-main-image {
        height: 260px;
    }

    .thumb {
        width: 52px;
        height: 52px;
    }

    .story-block {
        padding: 32px 18px;
    }

    .story {
        padding: 56px 18px;
    }
}

@media (max-width: 560px) {
    .story {
        padding: 48px 12px;
    }

    .hero {
        min-height: 75vh;
    }

    .hero-logo {
        width: 96px;
        height: 96px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: 2px;
    }

    .slogan {
        font-size: 16px;
    }

    .btn {
        padding: 12px 22px;
        letter-spacing: 1px;
    }

    .feature,
    .products,
    .pillars {
        padding: 0;
    }

    .product-card {
        margin-bottom: 32px;
    }

    .product-name {
        font-size: 28px;
    }

    .section-head h2 {
        font-size: 26px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pillar-visual {
        aspect-ratio: 4/3;
    }
}
