/* 全局基础设置 */
:root { 
    --primary-color: #0b2a59; /* 完美契合你Logo的深蓝色 */ 
    --text-color: #333; 
    --bg-gray: #f4f4f4; 
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; color: var(--text-color); line-height: 1.6; background-color: #fff; }
.container { width: 1200px; max-width: 90%; margin: 0 auto; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 导航栏 Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.logo a { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo img { height: 55px; width: auto; object-fit: contain; }
.logo .company-name { font-size: 28px; color: var(--primary-color); font-weight: 900; font-family: 'Arial Black', sans-serif; letter-spacing: 1px; margin: 0; }
nav a { margin-left: 30px; font-weight: 600; font-size: 16px; transition: 0.3s; color: #333; }
nav a:hover, nav a.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }

/* 页面通用 Banner (用于Products和Contact) */
.page-banner { position: relative; height: 350px; background: #001f3f; overflow: hidden; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.page-banner h1 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 48px; letter-spacing: 2px; margin: 0; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }

/* 首页：轮播图 */
.hero-slider { position: relative; width: 100%; height: 600px; background: #000; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,0.4); color: white; border: none; padding: 15px 20px; cursor: pointer; font-size: 24px; }
.slider-btn.prev { left: 20px; } .slider-btn.next { right: 20px; }

/* 首页：About Us */
.about-section { padding: 80px 0; background-color: #fff; }
.section-title { text-align: center; font-size: 36px; color: var(--primary-color); margin-bottom: 40px; }
.section-title span { display: block; width: 60px; height: 3px; background: red; margin: 15px auto 0; }
.about-content { font-size: 16px; color: #555; text-align: justify; }
.about-content p { margin-bottom: 20px; }

/* 首页：产品轮动 (图3) */
.carousel-section { padding: 60px 0; background: #f9f9f9; }
.carousel-wrapper { display: flex; align-items: center; position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; padding: 20px 0; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; } /* 隐藏滚动条 */
.product-card { min-width: 280px; background: #fff; border: 1px solid #eee; text-align: center; transition: 0.3s; }
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-5px); }
.product-card .img-bg { background: #666; padding: 20px; height: 200px; display: flex; align-items: center; justify-content: center; }
.product-card img { max-height: 100%; }
.product-card h3 { padding: 15px; margin: 0; font-size: 18px; color: var(--text-color); }

/* 产品页 (图6) */
.products-layout { display: flex; gap: 40px; padding: 60px 0; }
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar h3 { background: var(--primary-color); color: #fff; padding: 15px; margin: 0; font-size: 20px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; border: 1px solid #ddd; border-top: none; }
.sidebar li { border-bottom: 1px solid #eee; }
.sidebar a { display: block; padding: 15px; color: #555; transition: 0.3s; }
.sidebar a:hover, .sidebar a.active { background: #f4f4f4; color: var(--primary-color); font-weight: bold; border-left: 3px solid var(--primary-color); }

.product-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.grid-item { border: 1px solid #eee; background: #fff; transition: 0.3s; }
.grid-item:hover { box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.grid-item .img-box { background: #666; height: 220px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.grid-item .img-box img { max-height: 100%; }
.grid-item .info { padding: 20px; text-align: center; }
.grid-item h4 { margin: 0 0 10px 0; color: var(--primary-color); font-size: 18px; }
.grid-item p { margin: 0; font-size: 14px; color: #777; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 产品详情页 (图4) */
.detail-layout { display: flex; gap: 50px; padding: 60px 0; }
.detail-gallery { width: 45%; }
.main-img-box { background: #666; padding: 40px; display: flex; justify-content: center; align-items: center; min-height: 300px; }
.detail-info { width: 55%; }
.detail-info h2 { color: var(--primary-color); border-left: 4px solid var(--primary-color); padding-left: 15px; margin-top: 0; font-size: 28px; }
.meta { border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 0; margin: 20px 0; }
.meta p { margin: 8px 0; font-size: 15px; }
.meta strong { color: #333; }
.features h3 { color: var(--primary-color); font-size: 20px; margin-bottom: 15px; }
.features p { color: #555; white-space: pre-wrap; }
.action-btns { margin-top: 40px; display: flex; gap: 20px; }
.btn { padding: 12px 30px; font-size: 16px; border-radius: 30px; cursor: pointer; text-align: center; border: 1px solid var(--primary-color); transition: 0.3s; }
.btn-outline { background: #fff; color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-solid { background: var(--primary-color); color: #fff; }
.btn-solid:hover { background: #061836; }

/* 联系我们页 (图7) */
.contact-layout { display: flex; gap: 50px; padding: 80px 0; }
.contact-form { flex: 1; background: #fff; padding: 40px; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.contact-form h3 { margin-top: 0; color: var(--primary-color); font-size: 24px; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 15px; box-sizing: border-box; font-family: inherit; }
textarea { resize: vertical; min-height: 120px; }
.contact-info { flex: 1; }
.contact-info h3 { margin-top: 0; color: var(--primary-color); font-size: 24px; margin-bottom: 25px; }
.info-card { background: var(--bg-gray); padding: 30px; border-left: 4px solid var(--primary-color); }
.info-card p { margin-bottom: 15px; font-size: 16px; display: flex; flex-direction: column; }
.info-card strong { color: #333; margin-bottom: 5px; }
.info-card a { color: var(--primary-color); }

/* 页脚 */
footer { background: #111; color: #ccc; text-align: center; padding: 30px 0; margin-top: 40px; }