/* reset & base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-red: #8B0000;
    --red: #B22222;
    --crimson: #CD5C5C;
    --beige: #F5F5DC;
    --cream: #FAF0E6;
    --light-cream: #FFF8F0;
    --text-dark: #2D1810;
    --text-muted: #5C4033;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-dark);
    background: var(--beige);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(139, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--cream);
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.75;
}

/* hero */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(45, 24, 16, 0.55), rgba(45, 24, 16, 0.55)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100100"><rect fill="%238B0000" width="100" height="100"/></svg>');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(178, 34, 34, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(205, 92, 92, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(250, 240, 230, 0.85);
    margin-bottom: 2.5rem;
    letter-spacing: 0.08em;
}

.btn {
    display: inline-block;
    background: var(--crimson);
    color: var(--cream);
    padding: 0.85rem 2.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: background 0.25s, transform 0.2s;
    border: 1px solid rgba(250, 240, 230, 0.3);
}

.btn:hover {
    background: var(--red);
    transform: translateY(-2px);
}

/* sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--dark-red);
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    position: relative;
}

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

/* products */
.products {
    background: var(--cream);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light-cream);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 0, 0, 0.12);
    transition: transform0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--dark-red);
    color: var(--cream);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    letter-spacing: 0.08em;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-red);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-red);
}

/* about */
.about {
    background: var(--beige);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

.features li {
    background: var(--cream);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-left: 3px solid var(--crimson);
}

/* contact */
.contact {
    background: var(--cream);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.contact-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--dark-red);
    border-radius: 6px;
    color: var(--cream);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* footer */
.footer {
    background: var(--dark-red);
    padding: 1.8rem 0;
    text-align: center;
}

.footer p {
    color: rgba(250, 240, 230, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

/* responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        letter-spacing: 0.08em;
    }

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

    section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}