/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #faf8f5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
    font-size: 0.95rem; color: #555; transition: color 0.3s;
    position: relative; padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: #d4a373; }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px;
    background: #d4a373;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }

/* ===== Hero Section ===== */
.hero {
    height: 100vh; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-top: 0;
}
.hero-slider { position: absolute; inset: 0; }
.slide {
    position: absolute; inset: 0;
    background: #1a1a2e;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 1.5s ease;
}
.slide.active { opacity: 1; }
.slide img {
    height: 100%; width: auto;
    object-fit: contain;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center; color: white;
    padding: 0 20px; animation: fadeInUp 1.2s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 4px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 12px; opacity: 0.95; letter-spacing: 2px; }
.hero-desc { font-size: 1rem; margin-bottom: 32px; opacity: 0.8; }
.btn-primary {
    display: inline-block; padding: 14px 40px;
    background: #d4a373; color: white;
    border: none; border-radius: 50px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-primary:hover { background: #c18f5e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,163,115,0.4); }

/* ===== Features ===== */
.features { padding: 80px 0; background: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
    text-align: center; padding: 40px 24px;
    border-radius: 16px; transition: all 0.3s;
}
.feature-card:hover { background: #faf8f5; transform: translateY(-5px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #1a1a2e; }
.feature-card p { color: #777; font-size: 0.95rem; }

/* ===== Portfolio ===== */
.portfolio { padding: 80px 0; background: #faf8f5; }
.section-title {
    text-align: center; font-size: 2rem; color: #1a1a2e;
    margin-bottom: 12px; letter-spacing: 2px;
}
.section-desc { text-align: center; color: #888; margin-bottom: 40px; }

.filter-btns { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 24px; border: 2px solid #ddd; background: white;
    border-radius: 50px; cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s; color: #666;
}
.filter-btn:hover { border-color: #d4a373; color: #d4a373; }
.filter-btn.active { background: #d4a373; color: white; border-color: #d4a373; }

.gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: 12px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: auto;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* ===== About ===== */
.about { padding: 80px 0; background: white; }
.about-content { max-width: 700px; margin: 0 auto; }
.about-text p { margin-bottom: 16px; font-size: 1.05rem; color: #555; line-height: 1.8; }
.about-text strong { color: #1a1a2e; }

/* ===== Contact ===== */
.contact { padding: 80px 0; background: #faf8f5; }
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.contact-card {
    text-align: center; padding: 40px 20px; background: white;
    border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.contact-icon { font-size: 2.2rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #1a1a2e; }
.contact-card p { color: #666; font-size: 0.95rem; }
.contact-tip { color: #aaa; font-size: 0.8rem !important; margin-top: 8px; }

/* ===== Footer ===== */
.footer {
    padding: 32px 0; background: #1a1a2e; color: #999;
    text-align: center; font-size: 0.85rem;
}
.footer a { color: #d4a373; }
.footer a:hover { text-decoration: underline; }
.footer p { margin-bottom: 6px; }

/* ===== Lightbox ===== */
.lightbox {
    display: none; position: fixed; z-index: 2000;
    inset: 0; background: rgba(0,0,0,0.92);
    align-items: center; justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 2.5rem; cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover { color: #d4a373; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; width: 100%;
        background: white; flex-direction: column; padding: 16px 20px;
        border-bottom: 1px solid #eee;
    }
    .nav-links.show { display: flex; }
    .hero-content h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
