:root {
--primary: #0057c3;
--secondary: #ff7a00;
--bg: #f8fafc;
--radius: 12px;
--max-width: 1200px;
--gap: clamp(1rem, 2vw, 2rem);
--header-h: 76px;
--side-width: 260px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
overflow-x: hidden;
width: 100vw;
font-family: "Noto Sans SC", sans-serif;
color: #222;
background: var(--bg);
scroll-behavior: smooth;
}
img {
max-width: 100%;
display: block;
}
a {
text-decoration: none;
color: inherit;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.6em 1.6em;
border-radius: var(--radius);
background: var(--primary);
color: #fff;
font-weight: 500;
transition: background 0.3s;
}
.btn:hover {
background: var(--secondary);
}
.container {
width: min(92%, var(--max-width));
margin-inline: auto;
}
.section-title {
text-align: center;
font-size: clamp(1.8rem, 4vw, 2.5rem);
margin-bottom: 2.5rem;
color: var(--primary);
}
/* 头部统一 */
header {
position: sticky;
top: 0;
z-index: 999;
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
height: var(--header-h);
}
.nav-core {
display: flex;
align-items: center;
height: 100%;
padding: 0 1rem;
}
.logo-area {
display: flex;
align-items: center;
gap: 0.6rem;
}
#logo-img {
height: 50px;
width: auto;
}
.logo-text {
font-size: clamp(1.1rem, 2vw, 1.5rem);
font-weight: 700;
color: var(--primary);
}
.side-nav {
margin-left: auto;
}
.side-nav ul {
display: flex;
gap: clamp(1rem, 2vw, 2rem);
list-style: none;
}
.hamburger {
display: none;
flex-direction: column;
gap: 5px;
margin-left: auto;
}
.hamburger span {
width: 26px;
height: 3px;
background: var(--primary);
border-radius: 2px;
}
footer {
background: #001529;
color: #fff;
text-align: center;
padding: 2rem 0;
font-size: 0.9rem;
}
footer a {
color: #73d1ff;
}
/* 手机底部导航 */
.bottom-nav {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #fff;
box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
z-index: 998;
}
.bottom-nav a {
flex: 1;
text-align: center;
padding: 0.6rem 0;
font-size: 0.8rem;
color: #555;
border-right: 1px solid #f0f0f0;
}
.bottom-nav a.active,
.bottom-nav a:hover {
color: var(--primary);
font-weight: 500;
}