/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior removed 2026-07-17 lyd: smooth导致滚轮粘滞感 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
    color: #333;
    background: #f8f3ec;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s;
}
.navbar.scrolled { background: rgba(255,255,255,0.97); }
.nav-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 72px;
}
.logo {
    font-size: 18px; font-weight: 700; letter-spacing: 1px;
    color: #1a1a1a; transition: opacity 0.2s;
}
.logo:hover { opacity: 0.7; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
    font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    color: #444; transition: color 0.2s; /* 2026-07-08 lyd: 导航栏颜色 #888→#555→#444 再加深 */
}
.nav-links a:hover { color: #1a1a1a; }
.nav-toggle { display: none; background: none; border: none; color: #1a1a1a; font-size: 24px; cursor: pointer; }

/* === Hero === */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* === Hero Grid (拼贴) === */
.hero-grid {
    position: absolute; inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 88px 32px 32px 32px;
}
.hero-grid-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 36px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.28) 100%);
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 800px; padding: 0 20px;
    animation: fadeUp 1s ease-out;
}
.hero-tag {
    font-size: 12px; letter-spacing: 5px; text-transform: uppercase;
    color: #c9a06c; margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(48px, 8vw, 96px); font-weight: 700; letter-spacing: 12px;
    margin-bottom: 20px; line-height: 1;
    color: #fff;
}
.hero-sub {
    font-size: clamp(16px, 2.5vw, 20px); color: #ddd;
    font-weight: 300; margin-bottom: 48px;
}
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #ccc; }
.scroll-line { width: 1px; height: 40px; background: #ccc; animation: scrollPulse 2s infinite; }

/* === Buttons === */
.btn {
    display: inline-block; padding: 14px 40px; border-radius: 30px;
    font-size: 14px; font-weight: 500; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s ease;
}
.btn-outline {
    border: 1px solid rgba(255,255,255,0.4); color: #fff;
    background: transparent;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-filled {
    border: 1px solid #c9a06c; background: #c9a06c; color: #fff;
}
.btn-filled:hover { background: #d4ad7c; border-color: #d4ad7c; }

/* === Sections === */
.section { padding: 120px 0; }
.section-label {
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: #c9a06c; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(32px, 5vw, 48px); font-weight: 600;
    letter-spacing: -0.5px; margin-bottom: 24px; line-height: 1.15;
    color: #1a1a1a;
}
.section-body { color: #666; font-size: 16px; font-weight: 300; line-height: 1.8; }

/* === About === */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-stats {
    display: flex; gap: 48px; margin-top: 40px; padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.stat { text-align: left; }
.stat-num { display: block; font-size: 40px; font-weight: 700; color: #c9a06c; }
.stat-label { font-size: 12px; color: #999; letter-spacing: 1px; text-transform: uppercase; }
.about-image {
    text-align: center;
}
.about-image img {
    width: 60%; border-radius: 16px; object-fit: cover;
    aspect-ratio: 4/5;
}

/* === Products === */
.products { background: #f7f7f7; }
/* 2026-07-21 lyd: 首页 theme 封面图卡片 */
.theme-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.theme-card {
    position: relative; border-radius: 12px; overflow: hidden;
    display: block; text-decoration: none;
    aspect-ratio: 4/3; background: #e8e8e8;
}
.theme-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.theme-card:hover img { transform: scale(1.08); }
.theme-card-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff; font-size: 18px; font-weight: 600;
}
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
    justify-content: center;
}
.product-card {
    max-width: 340px;
    background: #ffffff; border-radius: 16px; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.product-image {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.product-image img {
    width: 100%; height: 280px; object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-info { padding: 28px; }
.product-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.product-info p { color: #777; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.link-arrow {
    font-size: 13px; font-weight: 500; letter-spacing: 0.5px; color: #c9a06c;
    transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.7; }

/* === Quality === */
.quality { background: #ffffff; }
.quality-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px;
    text-align: center;
}
.quality-icon {
    font-size: 28px; margin-bottom: 20px; color: #c9a06c;
}
.quality-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.quality-item p { color: #888; font-size: 14px; line-height: 1.7; }

/* === Contact === */
.contact { background: #f7f7f7; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.contact-row {
    display: flex; align-items: center; gap: 12px;
    color: #666; font-size: 15px;
}
.contact-icon { font-size: 16px; color: #c9a06c; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.contact-form select { appearance: none; cursor: pointer; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: rgba(0,0,0,0.3); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; }

/* === Footer === */
.footer {
    padding: 60px 0 40px; background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
}
.footer-logo { font-size: 18px; font-weight: 700; letter-spacing: 3px; color: #fff; }
.footer-brand p { color: #777; font-size: 12px; margin-top: 4px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: #888; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy p { color: #666; font-size: 12px; }

/* === Keyframes === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%      { opacity: 1;   transform: scaleY(1.3); }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-image { order: -1; }
}
@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; width: 100%;
        background: rgba(255,255,255,0.98); flex-direction: column; padding: 24px 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 12px 24px; font-size: 15px; }
    .nav-toggle { display: block; }
    .hero h1 { letter-spacing: 6px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .product-grid { grid-template-columns: 1fr; }
    .quality-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    /* Hero 四图拼贴：横向滑动，保持比例不压缩 */
    .hero-grid {
        grid-template-columns: repeat(4, 70vw);
        gap: 16px;
        padding: 88px 16px 16px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .hero-grid-item {
        scroll-snap-align: start;
        border-radius: 24px;
        min-height: 55vh;
    }
}
