* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
body { background-color: #f4f4f4; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== 顶部导航栏 ========== */
header { 
    background-color: #1a1a1a; color: #fff; padding: 20px 5%; 
    display: flex; justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.logo a { font-size: 24px; font-weight: bold; color: #e50914; letter-spacing: 1px; }
nav { display: flex; align-items: center; }
.nav-links { display: flex; flex-direction: row; gap: 30px; }
.nav-links li { position: relative; padding: 8px 0; }
.nav-links a { font-size: 14px; font-weight: bold; text-transform: uppercase; transition: color 0.3s; white-space: nowrap; }
.nav-links a:hover { color: #e50914; }
.nav-links li.active > a { color: #e50914; }

/* 下拉菜单 */
.dropdown {
    position: absolute; top: 100%; left: 0; background-color: #1a1a1a;
    min-width: 220px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-top: 3px solid #e50914; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s ease; z-index: 999;
}
.dropdown li { padding: 0; border-bottom: 1px solid #333; }
.dropdown a { display: block; padding: 12px 20px; font-size: 13px; color: #ccc; text-transform: capitalize; }
.dropdown a:hover { background-color: #222; color: #e50914; }
.nav-links li.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* 汉堡菜单 */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.hamburger span { width: 25px; height: 3px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }

/* ========== 页面Banner ========== */
.page-banner { background: #9c1c1c; color: #fff; padding: 50px 5%; text-align: center; }
.page-banner h1 { font-size: 34px; text-transform: uppercase; margin-bottom: 12px; }
.page-banner p { color: #f0bebe; font-size: 16px; }

/* ========== 产品网格 ========== */
.product-container {
    max-width: 1200px; margin: 60px auto; padding: 0 5%;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.product-box {
    background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px; overflow: hidden; transition: transform 0.3s ease;
}
.product-box:hover { transform: translateY(-5px); }
.product-img { width: 100%; height: 180px; background: #eee; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 15px; text-align: center; }
.product-info h3 { font-size: 15px; margin-bottom: 8px; color: #1a1a1a; }
.product-info p { font-size: 13px; color: #666; }

/* ========== 右侧在线客服 ========== */
.online-service { 
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    background: #fff; border: 1px solid #ddd; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); width: 60px;
    display: flex; flex-direction: column; z-index: 9999; overflow: hidden;
}
.service-title { background: #e50914; color: #fff; font-size: 11px; text-align: center; padding: 8px 2px; font-weight: bold; line-height: 1.2; text-transform: uppercase; }
.service-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; border-bottom: 1px solid #eee; transition: background 0.3s; }
.service-item:hover { background: #f9f9f9; }
.service-item img { width: 28px; height: 28px; margin-bottom: 4px; }
.service-item span { font-size: 9px; color: #666; }

/* ========== 页脚 ========== */
footer { 
    background-color: #111; color: #bbb; padding: 60px 5% 20px; font-size: 14px;
    border-top: 4px solid #e50914; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-logo h3 { color: #fff; font-size: 22px; margin-bottom: 15px; letter-spacing: 1px; }
.footer-logo p { color: #999; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.social-icons { margin-top: 15px; }
.social-icons a {
    display: inline-flex; align-items: center; background: #222; color: #fff;
    padding: 8px 16px; border-radius: 4px; font-size: 12px; font-weight: bold;
    text-transform: uppercase; border: 1px solid #333; letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.social-icons a:hover { background: #e50914; border-color: #e50914; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3); }
.footer-title { color: #fff; font-size: 16px; font-weight: bold; margin-bottom: 25px; text-transform: uppercase; position: relative; }
.footer-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background: #e50914; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: all 0.3s; color: #aaa; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contact-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; color: #aaa; }
.footer-contact-list .icon { color: #e50914; font-weight: bold; }
.footer-bottom { text-align: center; border-top: 1px solid #222; margin-top: 50px; padding-top: 20px; font-size: 12px; color: #555; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    header { padding: 15px; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 70px; right: 0; flex-direction: column;
        background-color: #1a1a1a; width: 100%; height: calc(100vh - 70px);
        gap: 0; padding: 20px 0; align-items: center; justify-content: flex-start;
        transform: translateX(100%); transition: transform 0.3s ease-in;
        box-shadow: -2px 4px 5px rgba(0,0,0,0.2); z-index: 999; overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { width: 100%; text-align: center; padding: 15px 0; border-bottom: 1px solid #333; }
    .dropdown { display: none; position: static; background: #222; min-width: 100%; box-shadow: none; border-top: none; margin-top: 8px; }
    .nav-links li.open .dropdown { display: block; }
    .product-container { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 600px) {
    .product-container { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 26px; }
    .product-img { height: 140px; }
}