/* ===== Global Reset & Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #5A4A42; background: #FFF8F0; line-height: 1.7; scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; color: #3A2E2A; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 2px; font-weight: 500; transition: all 0.3s ease; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.btn-primary { background: #BF4E30; color: #FFF8F0; border: 2px solid #BF4E30; }
.btn-primary:hover { background: transparent; color: #BF4E30; }
.btn-outline { background: transparent; border: 2px solid #BF4E30; color: #BF4E30; }
.btn-outline:hover { background: #BF4E30; color: #FFF8F0; }

/* ===== Header & Nav ===== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,248,240,0.95); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 2px 20px rgba(218,204,190,0.3); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.logo { font-size: 28px; font-weight: 700; color: #BF4E30; font-family: 'Playfair Display', serif; letter-spacing: 2px; }
.logo span { color: #3A2E2A; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-weight: 400; position: relative; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: #BF4E30; transition: width 0.4s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ===== Hero ===== */
.page-hero { background: linear-gradient(135deg, #EADDC3 0%, #FFF8F0 100%); padding: 180px 0 120px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(191,78,48,0.1) 0%, transparent 70%); animation: float 20s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-20px,-20px) rotate(180deg); } }
.page-hero h1 { font-size: 56px; margin-bottom: 20px; position: relative; z-index: 2; }
.page-hero p { font-size: 22px; color: #7A6B64; position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: #EADDC3; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 42px; margin-bottom: 16px; }
.section-header p { font-size: 18px; color: #8A7B74; max-width: 500px; margin: 0 auto; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; align-items: center; justify-items: center; }

/* Cards */
.value-card, .product-card, .team-member { background: #FFF8F0; padding: 40px; border-radius: 4px; box-shadow: 0 8px 30px rgba(218,204,190,0.4); text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; }
.value-card::before, .product-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px; background: #BF4E30; transition: left 0.4s; }
.value-card:hover::before, .product-card:hover::before { left: 0; }
.value-card:hover, .product-card:hover, .team-member:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(191,78,48,0.2); }
.value-icon { font-size: 36px; color: #BF4E30; display: block; margin-bottom: 20px; }
.product-image { width: 100%; height: 400px; object-fit: cover; margin-bottom: 24px; }
.product-title { font-size: 20px; margin-bottom: 8px; }
.product-price { color: #BF4E30; font-weight: 600; font-size: 18px; }
.team-avatar { width: 100px; height: 100px; background: #BF4E30; color: #FFF8F0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; font-family: 'Playfair Display', serif; }

/* Images */
.about-image img, .service-image img { width: 100%; border-radius: 4px; box-shadow: 0 10px 35px rgba(0,0,0,0.1); }

/* Footer */
.footer { background: #3A2E2A; color: #EADDC3; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-brand { font-family: 'Playfair Display', serif; }
.footer-brand .logo { color: #FFF8F0; margin-bottom: 20px; display: inline-block; }
.footer-brand p { margin-top: 16px; font-size: 15px; line-height: 1.8; }
.footer-links h4 { color: #FFF8F0; margin-bottom: 24px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: #BF4E30; }
.footer-bottom { border-top: 1px solid rgba(234,221,195,0.2); padding-top: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 14px; color: #B8A99A; }
.legal-links a { margin-right: 24px; }
.legal-links a:hover { color: #BF4E30; }

/* ===== About Page Nav Variant ===== */
.navbar-about {
    background: rgba(255,248,240,0.97);
    box-shadow: 0 2px 30px rgba(191,78,48,0.1);
}
.nav-container-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 10px;
}
.navbar-about .logo {
    font-size: 32px;
    margin-bottom: 12px;
}
.navbar-about .nav-links {
    gap: 48px;
    display: flex;
    justify-content: center;
}
.navbar-about .nav-links a {
    font-size: 14px;
    letter-spacing: 2px;
    position: relative;
}
.navbar-about .nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #BF4E30;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}
.navbar-about .nav-links a:hover::after,
.navbar-about .nav-links a.active::after {
    width: 100%;
}

/* ===== Home Page Nav Variant ===== */
.navbar-home {
    background: linear-gradient(90deg, rgba(255,248,240,0.96) 0%, rgba(234,221,195,0.4) 100%);
    box-shadow: 0 2px 20px rgba(191,78,48,0.08);
    border-top: 3px solid #BF4E30;
}
.nav-container-home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}
.navbar-home .logo {
    font-size: 28px;
    letter-spacing: 3px;
}
.navbar-home .nav-links {
    gap: 36px;
    display: flex;
}
.navbar-home .nav-links a {
    font-size: 13px;
    letter-spacing: 2px;
    padding: 8px 14px;
    border-radius: 2px;
    transition: background 0.3s ease, color 0.3s ease;
}
.navbar-home .nav-links a::after {
    display: none; /* 取消默认下划线 */
}
.navbar-home .nav-links a:hover,
.navbar-home .nav-links a.active {
    background: rgba(191,78,48,0.1);
    color: #BF4E30;
}

/* ===== Products Page Nav Variant ===== */
.navbar-products {
    background: transparent;
    box-shadow: none;
    border-top: none;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar-products.scrolled {
    background: rgba(255,248,240,0.88);
    box-shadow: 0 2px 20px rgba(191,78,48,0.1);
    border-top: 2px solid #BF4E30;
}
.nav-container-products {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    transition: padding 0.3s ease;
}
.navbar-products.scrolled .nav-container-products {
    padding: 14px 0;
}
.navbar-products .logo {
    font-size: 26px;
    letter-spacing: 3px;
    transition: font-size 0.3s ease;
}
.navbar-products.scrolled .logo {
    font-size: 22px;
}
.navbar-products .nav-links {
    gap: 32px;
    display: flex;
}
.navbar-products .nav-links a {
    font-size: 13px;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-radius: 2px;
    transition: background 0.3s ease;
}
.navbar-products .nav-links a::after {
    display: none;
}
.navbar-products .nav-links a:hover,
.navbar-products .nav-links a.active {
    background: rgba(191,78,48,0.12);
    color: #BF4E30;
}

/* ===== Cases Page Nav Variant ===== */
.navbar-cases {
    background: #FFF8F0;
    box-shadow: 0 2px 20px rgba(218,204,190,0.4);
    border-top: 2px solid #EADDC3;
}
.nav-container-cases {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.navbar-cases .logo {
    font-size: 28px;
    letter-spacing: 3px;
}
.navbar-cases .nav-links {
    gap: 36px;
    display: flex;
}
.navbar-cases .nav-links a {
    font-size: 13px;
    letter-spacing: 2px;
    padding: 8px 14px;
    border-radius: 2px;
    transition: color 0.3s ease;
}
.navbar-cases .nav-links a::after {
    display: none;
}
.navbar-cases .nav-links a:hover,
.navbar-cases .nav-links a.active {
    color: #BF4E30;
}
/* Partner wall right below nav */
.partner-wall {
    background: #EADDC3;
    padding: 40px 0 20px;
}
.partner-wall .section-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}
.partner-wall .section-header p {
    color: #7A6B64;
    font-size: 16px;
}
.partner-wall .clients-grid {
    margin-top: 30px;
    gap: 32px;
}
.partner-wall .clients-grid img {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}
.partner-wall .clients-grid img:hover {
    filter: grayscale(0%) opacity(1);
}

/* ===== Contact Page Nav Variant ===== */
.navbar-contact {
    background: #EADDC3;
    box-shadow: 0 2px 20px rgba(191,78,48,0.1);
    border-top: 2px solid #BF4E30;
}
.nav-container-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.navbar-contact .logo {
    font-size: 28px;
    letter-spacing: 3px;
}
.navbar-contact .nav-links {
    gap: 36px;
    display: flex;
}
.navbar-contact .nav-links a {
    font-size: 13px;
    letter-spacing: 2px;
    padding: 8px 14px;
    border-radius: 2px;
    transition: color 0.3s ease;
}
.navbar-contact .nav-links a::after {
    display: none;
}
.navbar-contact .nav-links a:hover,
.navbar-contact .nav-links a.active {
    color: #BF4E30;
}
/* Contact strip below nav */
.contact-strip {
    background: #FFF8F0;
    padding: 14px 0;
    border-bottom: 1px solid #EADDC3;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    font-size: 14px;
    color: #5A4A42;
}
.contact-info a {
    color: #BF4E30;
    font-weight: 500;
}

@media(max-width:768px){ 
    .nav-links { display: none; } 
    .page-hero h1 { font-size: 42px; } 
    .section { padding: 60px 0; }
    .nav-container-about { padding: 16px 0 8px; }
    .navbar-about .logo { font-size: 26px; }
    .nav-container-home { padding: 14px 0; }
    .navbar-home .logo { font-size: 24px; }
    .nav-container-products { padding: 16px 0; }
    .navbar-products .logo { font-size: 22px; }
    .nav-container-cases { padding: 14px 0; }
    .navbar-cases .logo { font-size: 24px; }
    .partner-wall { padding: 30px 0 16px; }
    .nav-container-contact { padding: 14px 0; }
    .navbar-contact .logo { font-size: 24px; }
    .contact-info { flex-direction: column; gap: 8px; }
}