/* =========================================
   1. 全局设置 (Global Reset)
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body { color: #1f2937; line-height: 1.6; background-color: #ffffff; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. 导航栏 (Navigation)
   ========================================= */
nav { background: #fff; padding: 18px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.3rem; color: #c01818; letter-spacing: -0.5px; }
.logo span { color: #6b7280; font-weight: 400; font-size: 0.85rem; margin-left: 8px; text-transform: uppercase; }
.nav-btn { background: #c01818; color: white; text-decoration: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; transition: background 0.3s; }
.nav-btn:hover { background: #a01414; }

/* =========================================
   3. Hero 区域 (Hero Section) - 已修复版
   ========================================= */
.hero {
    /* 确保你的图片文件名是 hero-bg.jpg */
    background-image: url('images/hero-bg.jpg'); 
    background-size: cover;
    /* 重点：让背景图在电脑上靠右对齐，保证盾牌不被切掉 */
    background-position: center right; 
    min-height: 650px; 
    display: flex;
    align-items: center;
    position: relative;
}

/* 修正容器布局：强制内容靠左 */
.hero .container {
    display: flex;
    justify-content: flex-start; /* 让盒子靠左 */
    width: 100%;
}

/* 文字框样式 */
.hero-text-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 45px;
    border-radius: 16px;
    max-width: 520px; /* 限制宽度 */
    width: 100%;
    margin-right: 0; /* 移除之前的 auto，确保靠左 */
    margin-left: 0; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.5);
}

.hero h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 15px; color: #111; letter-spacing: -1px; }
.hero p { margin-bottom: 25px; font-size: 1.05rem; color: #4b5563; }
.hero strong { color: #c01818; }

/* =========================================
   4. 按钮样式 (Buttons)
   ========================================= */
.cta-button {
    display: block;
    background: #00a500; /* Trusted Green */
    color: white;
    padding: 18px 30px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 165, 0, 0.3);
    margin-top: 20px;
}

.cta-button:hover { transform: translateY(-2px); }

/* 呼吸灯动画 */
.pulse-anim { animation: pulse 2s infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 165, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 165, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 165, 0, 0); }
}

.trust-text { margin-top: 15px; font-size: 0.85rem; color: #6b7280; text-align: center; font-weight: 500; }

/* =========================================
   5. 功能列表 (Features)
   ========================================= */
.features { padding: 80px 0; background: #f3f4f6; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 35px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid #e5e7eb; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.feature-card h3 { color: #1f2937; margin-bottom: 12px; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }

/* =========================================
   6. 吸尘器区域 (Visual Break)
   ========================================= */
.visual-break { padding: 100px 0; background: white; }
.split-layout { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.text-content { flex: 1; min-width: 300px; }
.image-content { flex: 1; min-width: 300px; text-align: center; }

.image-content img { max-width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,188,212,0.15); }

.text-content h2 { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.2; letter-spacing: -0.5px; }
.check-list { list-style: none; margin: 25px 0; }
.check-list li { margin-bottom: 12px; font-weight: 500; font-size: 1.05rem; color: #374151; }
.secondary-btn { display: inline-block; background: #1f2937; color: white; padding: 15px 35px; text-decoration: none; border-radius: 8px; font-weight: 600; transition: background 0.3s; }
.secondary-btn:hover { background: #000; }

/* Footer */
footer { padding: 40px 0; text-align: center; color: #9ca3af; font-size: 0.85rem; background: #f9fafb; border-top: 1px solid #e5e7eb; }

/* =========================================
   7. 移动端适配 (Mobile Adjustments)
   ========================================= */
@media (max-width: 900px) {
    .hero { 
        /* 手机上背景图居中，甚至可以偏左一点显示红色背景 */
        background-position: 25% center; 
        min-height: auto; 
        padding: 60px 0; 
    }
    
    .hero .container {
        justify-content: center; /* 手机上改回居中 */
    }

    .hero-text-box { 
        margin: 0; 
        text-align: center; 
        padding: 30px 20px; 
        max-width: 100%; 
    }
    
    .hero h1 { font-size: 1.8rem; }
    .split-layout { flex-direction: column-reverse; gap: 40px; }
    .nav-btn { display: none; } /* 手机上隐藏顶部按钮，省空间 */
}
