:root { 
    --primary-blue: #004481; 
    --primary-dark: #002850;
    --accent-green: #00C853; 
    --accent-hover: #009624;
    --bg-light: #f8f9fa; 
    --text-dark: #1f2937; 
    --text-grey: #6b7280; 
    --white: #ffffff; 
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; color: var(--text-dark); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; margin-top: var(--header-height); } /* 调整：给 main 添加 margin-top 避免被固定 header 遮挡，除首页外 */
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 2.25rem; color: var(--primary-blue); font-weight: 700; position: relative; display: inline-block; padding-bottom: 15px; }
.section-header h2::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent-green); border-radius: 2px; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Header */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); position: fixed; width: 100%; top: 0; z-index: 1000; height: var(--header-height); transition: var(--transition); }
header.scrolled { box-shadow: var(--shadow-md); height: 70px; }
nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; font-size: 1.25rem; font-weight: 700; color: var(--primary-blue); z-index: 1002; }
.custom-logo { height: 40px; width: auto; margin-right: 12px; object-fit: contain; }
.nav-menu { display: flex; gap: 40px; align-items: center; }
.nav-link { font-weight: 500; font-size: 1rem; color: var(--text-dark); position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent-green); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary-blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger { display: none; cursor: pointer; z-index: 1002; padding: 10px; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--primary-blue); border-radius: 3px; }

.lang-btn { border: 2px solid var(--primary-blue); padding: 6px 20px; border-radius: 50px; color: var(--primary-blue); font-weight: 700; font-size: 0.9rem; transition: var(--transition); }
.lang-btn:hover { background: var(--primary-blue); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 68, 129, 0.3); }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; right: -100%; top: 0; flex-direction: column; background-color: var(--white); width: 80%; max-width: 300px; height: 100vh; padding-top: 100px; transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0); box-shadow: -5px 0 15px rgba(0,0,0,0.1); align-items: flex-start; padding-left: 40px; gap: 20px; }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.2rem; display: block; width: 100%; }
    .lang-wrapper-mobile { margin-top: 20px; }
    .hero h1 { padding: 0 10px; }
    .about-grid, .contact-wrapper { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 60px 0; }
}

/* Hero (Index Only) */
.hero { height: 100vh; min-height: 600px; position: relative; background: url('https://images.unsplash.com/photo-1558494949-ef526b0042a0?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); margin-top: 0 !important; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 68, 129, 0.9), rgba(0, 40, 80, 0.8)); z-index: 1; }
.hero .container { position: relative; z-index: 2; width: 100%; }

.hero h1 { 
    margin-bottom: 24px; 
    font-weight: 800; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    letter-spacing: -0.5px;
    white-space: nowrap; 
    font-size: clamp(1rem, 2.0vw, 2.2rem); 
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero p { font-size: 1.5rem; font-weight: 300; margin-bottom: 48px; max-width: 800px; margin-left: auto; margin-right: auto; opacity: 0.9; }
.hero-btn { background: var(--accent-green); color: var(--white); padding: 18px 48px; border-radius: 50px; font-size: 1.1rem; font-weight: 600; box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3); display: inline-block; }
.hero-btn:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0, 200, 83, 0.4); }

/* About Page */
.about-grid { display: flex; gap: 50px; align-items: center; }
.about-img { flex: 1; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); height: 400px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.about-img:hover img { transform: scale(1.05); }
.about-content { flex: 1; }
.about-content h3 { font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 20px; font-weight: 700; }
.about-content p { margin-bottom: 1.5rem; color: #4b5563; font-size: 1.05rem; }
.motto-banner { margin-top: 30px; padding: 25px 30px; background: rgba(0, 68, 129, 0.04); border-left: 6px solid var(--accent-green); border-radius: 0 8px 8px 0; }
.motto-text { font-size: 1.4rem; color: var(--primary-blue); font-weight: 700; font-style: italic; }

/* Stats Bar */
.stats-bar { background: var(--primary-blue); color: var(--white); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat-item { padding: 20px; }
.stat-icon { font-size: 3.5rem; color: var(--accent-green); margin-bottom: 25px; transition: transform 0.3s; display: inline-block; }
.stat-item:hover .stat-icon { transform: scale(1.1) rotate(5deg); }
.stat-item h3 { font-size: 1.5rem; font-weight: 500; }

/* Products Page */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border-color); display: flex; flex-direction: column; height: 100%; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(0,68,129,0.3); }
.product-img-box { height: 220px; background: #f0f4f8; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 4rem; position: relative; overflow: hidden; }
.product-img-box::before { content: ''; position: absolute; width: 150%; height: 150%; background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(240,244,248,0) 70%); opacity: 0.5; }
.product-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { color: var(--primary-blue); margin-bottom: 12px; font-size: 1.35rem; font-weight: 700; }
.product-info p { color: var(--text-grey); font-size: 1rem; line-height: 1.6; }

/* Contact Page */
.contact-wrapper { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-details { flex: 1; min-width: 320px; }
.contact-map { flex: 1; min-width: 320px; height: 500px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.contact-card { background: var(--white); padding: 40px; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.contact-item-icon { background: rgba(0, 200, 83, 0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0; }
.contact-item-icon i { color: var(--accent-green); font-size: 18px; }
.contact-text strong { display: block; font-size: 1.1rem; margin-bottom: 5px; color: var(--primary-blue); }
.contact-text div, .contact-text a { color: var(--text-grey); font-size: 1rem; }
.contact-text a:hover { color: var(--primary-blue); text-decoration: underline; }
.person-box { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.person-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 20px; background: #f8fafc; border-radius: 10px; border-left: 4px solid var(--primary-blue); transition: var(--transition); }
.person-row:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateX(5px); }
.person-info strong { display: block; font-size: 1.15rem; color: var(--text-dark); }
.person-info span { font-size: 0.9rem; color: var(--text-grey); display: block; margin-top: 2px; }
.person-actions { display: flex; gap: 15px; flex-direction: column; align-items: flex-end;}
.action-link { display: flex; align-items: center; font-size: 0.95rem; color: var(--text-dark); gap: 8px;}
.action-link:hover { color: var(--primary-blue); }
.action-link i { color: var(--accent-green); }

/* SEO Text Area */
.seo-text-section { background-color: #f0f2f5; padding: 60px 0; border-top: 1px solid #e5e7eb; }
.seo-text-content h4 { color: var(--primary-dark); font-size: 1.2rem; margin-bottom: 15px; }
.seo-text-content p { font-size: 0.9rem; color: #666; line-height: 1.8; margin-bottom: 15px; text-align: justify; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.seo-tag { font-size: 0.85rem; color: var(--primary-blue); background: rgba(0,68,129,0.1); padding: 5px 12px; border-radius: 4px; }

/* Footer */
footer { background: var(--primary-dark); color: rgba(255, 255, 255, 0.7); text-align: center; padding: 50px 0; font-size: 0.9rem; border-top: 4px solid var(--accent-green); }
footer p { margin-top: 10px; }
#back-to-top { position: fixed; bottom: 40px; right: 40px; background: var(--primary-blue); color: white; width: 50px; height: 50px; border-radius: 50%; text-align: center; line-height: 50px; cursor: pointer; opacity: 0; visibility: hidden; z-index: 998; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: var(--transition); }
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--accent-green); transform: translateY(-5px); }