/* ========== 全局重置 & 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 移动端基础字体：不小于16px */
html {
    font-size: 16px;
}

section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #222;
}

/* ========== 导航栏（吸顶 + 响应式） ========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.navbar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

/* 桌面端导航 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* 移动端汉堡按钮 */
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ========== 移动端适配（核心） ========== */
@media (max-width: 768px) {
    .hamburger {
    display: block;
    }

    .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    /* 默认隐藏，JS控制显示 */
    display: none;
    }

    .nav-menu.active {
    display: flex;
    }
}

/* ========== 首页英雄区 ========== */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #555;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    /* 移动端按钮尺寸规范 */
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #1d4ed8;
}

/* ========== 技能标签 ========== */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    padding: 6px 15px;
    background: #e6f0ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ========== 卡片布局（作品集/博客） ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 20px;
}

.card h3 {
    margin-bottom: 10px;
    color: #222;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========== 联系区 ========== */
.contact {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

/* ========== 页脚 ========== */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
    background: white;
    margin-top: 40px;
}
/*大标题*/
.title-city h1{
	color: #052659;
	transform: skew(-4deg);
	background: linear-gradient(
		to right top,
		#0078f9 0%,
		#00b4ff 20%,
		#0078f953,
		#00b4ff,
		#012a7c,
		#0054ae,
		#00f2ff,
		#0078f9 80%,
		#00b4ff 100%
	);
	background-size: 500% 500%;
	background-clip: text;
	color: transparent;
	animation: blink 5s infinite linear;
	position: relative;
}
@keyframes blink{
	0%{background-position: 0% 100%;}
	100%{background-position: 100% 0%;}
}