:root { 
    --apple-gray: #f5f5f7; 
    --apple-dark: #1d1d1f; 
    --orange: #ea580c; 
    --orange-hover: #c2410c;
    --text-muted: #86868b;
}

/* 🚀 核心升级：开启全局平滑滚动，并预留顶部高度 */
html {
    scroll-behavior: smooth;      /* 让所有锚点跳转变成丝滑的滚动动画 */
    scroll-padding-top: 110px;    /* 完美解决：滚动到达后，预留出悬浮导航栏的高度，防止标题被挡住 */
}

body { 
    margin: 0; 
    font-family: 'SF Pro Text', 'Segoe UI', -apple-system, sans-serif; 
    background: white; 
    color: var(--apple-dark); 
    overflow-x: hidden; 
}
* { box-sizing: border-box; }

/* 🚀 升级：悬浮胶囊毛玻璃导航栏 */
.glass-nav { 
    position: fixed; 
    top: 20px; /* 脱离上边界 */
    left: 50%; 
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1000px;
    height: 64px; 
    background: rgba(255, 255, 255, 0.65); /* 透明底色 */
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); /* 强力毛玻璃 */
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: 100px; /* 胶囊圆角 */
    z-index: 1000; 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 30px; font-size: 15px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* 悬浮阴影 */
    transition: all 0.3s ease;
}
.glass-nav a { text-decoration: none; color: var(--apple-dark); transition: 0.3s; font-weight: 600; }
.logo { font-size: 17px; }

/* PC端导航链接 */
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { opacity: 0.7; }
.nav-links a:hover { opacity: 1; color: var(--orange); }

/* 手机端汉堡按钮 (默认隐藏) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 3px; background: var(--apple-dark); border-radius: 3px; transition: 0.3s; }

/* --- Hero 首屏区 --- */
.hero { 
    /* 原来的网络链接换成下面这行 👇 */
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    position: relative; height: 100vh; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; text-align: center; 
}
.hero-overlay { position: absolute; inset: 0; background: rgba(253, 250, 246, 0.85); z-index: 1; } /* 叠加变亮层，保证文字清晰 */
.hero-content { position: relative; z-index: 10; padding: 0 20px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin: 0; letter-spacing: -1px; color: var(--apple-dark); }
.hero p { font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--orange); margin: 15px 0 40px; font-weight: 600; }
.hero-btn { 
    padding: 16px 36px; background: var(--apple-dark); color: white; 
    border-radius: 980px; text-decoration: none; font-weight: 600; 
    font-size: 16px; transition: all 0.3s ease; display: inline-block;
}
.hero-btn:hover { background: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3); }

/* --- 图文网格展示区 --- */
.section { padding: 120px 5%; max-width: 1200px; margin: 0 auto; }
.bg-gray { background-color: var(--apple-gray); max-width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.grid-2.reverse { direction: rtl; } 
.grid-2.reverse > * { direction: ltr; }

.text-box { padding: 20px 0; }
.section-tag { color: var(--orange); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 15px; }
.text-box h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 0 0 20px 0; line-height: 1.15; letter-spacing: -0.5px; }
.text-box p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0; }

.image-box { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.08); height: 400px; }
.image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.image-box:hover img { transform: scale(1.03); }

/* --- 玻璃拟态查询卡片 --- */
.query-section { 
    /* 原来的网络链接换成下面这行 👇 */
    background: url('../img/query-bg.jpg') center/cover fixed; 
    padding: 150px 20px; text-align: center; position: relative; 
}
.query-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.glass-card { 
    position: relative; z-index: 10; background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 50px 40px; border-radius: 28px; max-width: 550px; margin: 0 auto; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
}
.glass-card h2 { margin: 0 0 10px 0; font-size: 28px; }
.glass-card p { color: var(--text-muted); margin-bottom: 30px; font-size: 15px;}
.input-group { display: flex; gap: 10px; justify-content: center; }
.input-group input { 
    flex: 1; padding: 16px 20px; border: 1px solid #d2d2d7; border-radius: 14px; 
    font-size: 16px; outline: none; transition: 0.2s; 
}
.input-group input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1); }
.input-group button { 
    padding: 16px 28px; background: var(--orange); color: white; border: none; 
    border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 16px; transition: 0.2s; white-space: nowrap;
}
.input-group button:hover { background: var(--orange-hover); transform: translateY(-1px); }

/* --- 联系表单 --- */
.contact-section { padding: 100px 20px; background: white; }
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-header h2 { font-size: 32px; margin: 0 0 10px 0; }
.contact-header p { color: var(--text-muted); font-size: 16px; margin: 0; }
.contact-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { 
    padding: 16px 20px; background: var(--apple-gray); border: 1px solid transparent; 
    border-radius: 14px; font-size: 15px; font-family: inherit; transition: 0.2s; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { background: white; border-color: var(--orange); box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05); }
.contact-form button { 
    padding: 18px; background: var(--apple-dark); color: white; border: none; 
    border-radius: 14px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.2s; margin-top: 5px;
}
.contact-form button:hover { background: var(--orange); box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2); transform: translateY(-2px); }

footer { text-align: center; padding: 30px 20px; background: var(--apple-gray); color: var(--text-muted); font-size: 12px; }

/* 📱 手机端适配核心代码 */
@media (max-width: 768px) {
    .glass-nav { width: 92%; top: 15px; padding: 0 20px; height: 56px; }
    .hamburger { display: flex; } /* 显示汉堡按钮 */
    
    /* 将导航链接改为下拉菜单 */
    .nav-links {
        position: absolute; top: 70px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-radius: 20px; padding: 20px;
        flex-direction: column; gap: 20px; text-align: center;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links a { font-size: 16px; padding: 10px 0; display: block; border-bottom: 1px solid #f1f5f9; }
    .nav-links a:last-child { border-bottom: none; }

    /* 其他模块的手机端排版调整 */
    .grid-2 { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .grid-2.reverse { direction: ltr; }
    .image-box { height: 260px; border-radius: 20px; }
    .input-group { flex-direction: column; }
    .section { padding: 80px 5%; }
}