/* ============================================================
   简历样式 v1.01
   - 移除 jQuery/Velocity 滚动劫持，改用原生 CSS scroll-snap
   - CSS 变量统一主题、玻璃拟态卡片、响应式布局
   - 保留品牌主色 #CF2782
   ============================================================ */

:root {
	/* 主题色 */
	--bg: #0f172a;
	--bg-soft: #1e293b;
	--bg-elev: rgba(255, 255, 255, 0.04);
	--bg-elev-strong: rgba(255, 255, 255, 0.07);
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.16);

	/* 文本 */
	--text: #e2e8f0;
	--text-soft: #94a3b8;
	--text-mute: #64748b;

	/* 强调色 */
	--accent: #cf2782;
	--accent-2: #f97316;
	--accent-grad: linear-gradient(135deg, #cf2782 0%, #f97316 100%);
	--accent-soft: rgba(207, 39, 130, 0.14);

	/* 状态色 */
	--mastered: #3498db;
	--mastered-bg: rgba(52, 152, 219, 0.12);
	--practised: #80bd01;
	--practised-bg: rgba(128, 189, 1, 0.12);

	/* 字体与尺寸 */
	--font: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--container: 1200px;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 全局重置（覆盖 reset.css 中过时部分） ---------- */
html, body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	min-height: 100vh;
	overflow-x: hidden;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
a:hover { opacity: 0.8; }

::selection { background: var(--accent); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elev-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- 顶部进度条 ---------- */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--accent-grad);
	z-index: 100;
	transition: width 0.1s linear;
}

/* ---------- 顶部品牌栏 ---------- */
.topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 64px;
	padding: 0 clamp(20px, 5vw, 48px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 90;
	pointer-events: none;
}
.topbar__brand,
.topbar__cta {
	pointer-events: auto;
	font-weight: 700;
	letter-spacing: 0.5px;
}
.topbar__brand {
	font-size: 1.05rem;
	color: #fff;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.topbar__brand span {
	color: var(--accent);
	margin-left: 2px;
}
.topbar__cta {
	font-size: 0.85rem;
	color: var(--text);
	padding: 8px 18px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
}
.topbar__cta:hover {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: #fff;
	opacity: 1;
}
body.scrolled .topbar__brand,
body.scrolled .topbar__cta {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- 侧边锚点导航 ---------- */
.nav-dots {
	position: fixed;
	right: clamp(16px, 2.5vw, 32px);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 18px;
	z-index: 80;
}
.nav-dot {
	position: relative;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: transparent;
	border: 1px solid var(--border-strong);
	transition: all 0.25s var(--ease);
}
.nav-dot::after {
	content: attr(data-label);
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%) translateX(8px);
	white-space: nowrap;
	font-size: 0.75rem;
	color: var(--text-soft);
	background: var(--bg-soft);
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid var(--border);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-dot:hover::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}
.nav-dot.is-active {
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- 滚动 snap 容器 ---------- */
.snap-container {
	scroll-snap-type: y proximity;
}
.section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
	padding: 96px clamp(20px, 5vw, 48px) 64px;
	position: relative;
}
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
}

/* ---------- 区块标题 ---------- */
.section-head {
	text-align: center;
	margin-bottom: 56px;
}
.section-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: 0.5px;
	background: linear-gradient(135deg, #fff 0%, var(--text-soft) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.section-sub {
	margin-top: 10px;
	font-size: 0.95rem;
	color: var(--accent);
	letter-spacing: 2px;
}

/* ---------- 通用卡片 ---------- */
.card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--shadow-soft);
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow);
}

/* ---------- 按钮 ---------- */
.btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn--primary {
	background: var(--accent-grad);
	color: #fff;
	box-shadow: 0 8px 24px rgba(207, 39, 130, 0.4);
}
.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(207, 39, 130, 0.55);
	opacity: 1;
}
.btn--ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
	background: var(--bg-elev);
	border-color: var(--accent);
	color: #fff;
	opacity: 1;
}

/* ============================================================
   Hero 首页
   ============================================================ */
.hero {
	overflow: hidden;
	text-align: center;
}
.hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 20%, rgba(207, 39, 130, 0.25), transparent 50%),
		radial-gradient(ellipse at 80% 80%, rgba(249, 115, 22, 0.22), transparent 55%),
		radial-gradient(ellipse at 50% 50%, rgba(52, 152, 219, 0.12), transparent 60%),
		linear-gradient(180deg, #0b1224 0%, #0f172a 100%);
	z-index: -1;
}
.hero__bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__inner {
	max-width: 760px;
}
.hero__greeting {
	color: var(--accent);
	letter-spacing: 4px;
	font-size: 0.95rem;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.hero__name {
	font-size: clamp(3rem, 9vw, 5.5rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 2px;
	background: linear-gradient(135deg, #fff 0%, #ffd6e7 50%, #ffb88a 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
}
.hero__role {
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	font-weight: 600;
	color: var(--text);
	margin-bottom: 8px;
}
.hero__tagline {
	color: var(--text-soft);
	font-size: 0.95rem;
	margin-bottom: 36px;
}
.hero__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* 滚动提示 */
.scroll-hint {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--text-mute);
	font-size: 0.75rem;
	letter-spacing: 1px;
	animation: float 2.4s ease-in-out infinite;
}
.scroll-hint__mouse {
	width: 22px;
	height: 36px;
	border: 2px solid var(--text-mute);
	border-radius: 12px;
	display: flex;
	justify-content: center;
	padding-top: 6px;
}
.scroll-hint__mouse span {
	width: 3px;
	height: 8px;
	background: var(--text-mute);
	border-radius: 2px;
	animation: wheel 1.6s ease infinite;
}
@keyframes wheel {
	0% { opacity: 0; transform: translateY(-4px); }
	40% { opacity: 1; }
	100% { opacity: 0; transform: translateY(8px); }
}
@keyframes float {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   About 个人简介
   ============================================================ */
.about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.card__icon {
	font-size: 1.8rem;
	margin-bottom: 12px;
}
.card .card__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}
.info-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 0.92rem;
	color: var(--text);
	border-bottom: 1px dashed var(--border);
	word-break: break-word;
}
.info-list li:last-child { border-bottom: none; }
.info-list li > span:first-child {
	color: var(--text-mute);
	font-size: 0.8rem;
	letter-spacing: 1px;
	flex-shrink: 0;
}

/* ============================================================
   Experience 时间线
   ============================================================ */
.timeline {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
	padding-left: 32px;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
	opacity: 0.5;
}
.timeline__item {
	position: relative;
	padding-left: 32px;
	margin-bottom: 32px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
	position: absolute;
	left: -32px;
	top: 8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid var(--bg);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.timeline__time {
	font-size: 0.85rem;
	color: var(--accent);
	font-weight: 600;
	letter-spacing: 1px;
	margin-bottom: 10px;
}
.timeline__body {
	padding: 24px 28px;
}
.timeline__company {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
}
.timeline__company a { color: #fff; }
.timeline__company a:hover { color: var(--accent); }
.timeline__role {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--accent);
	padding: 4px 12px;
	background: var(--accent-soft);
	border-radius: 999px;
}
.timeline__summary {
	color: var(--text-soft);
	font-size: 0.92rem;
	margin-bottom: 14px;
	line-height: 1.7;
}
.timeline__list {
	padding-left: 18px;
	list-style: none;
}
.timeline__list li {
	position: relative;
	color: var(--text);
	font-size: 0.9rem;
	line-height: 1.9;
	padding-left: 4px;
}
.timeline__list li::before {
	content: "▹";
	position: absolute;
	left: -14px;
	color: var(--accent);
}

/* ============================================================
   Skills 技能
   ============================================================ */
.skills-grid {
	display: grid;
	grid-template-columns: minmax(340px, 480px) 1fr;
	gap: 32px;
	align-items: start;
}
.skills-wheel {
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.skills-wheel #circleText {
	display: block;
}
.skills-wheel__tip {
	margin-top: 16px;
	font-size: 0.78rem;
	color: var(--text-mute);
	letter-spacing: 1px;
}

.skill-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	list-style: none;
}
.skill-card {
	position: relative;
	padding: 18px 20px 18px 24px;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.skill-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
}
.skill-card__bar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--lv, 50%);
	background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
	transition: width 0.6s var(--ease);
}
.skill-card--mastered .skill-card__bar {
	background: linear-gradient(90deg, var(--mastered-bg) 0%, transparent 100%);
}
.skill-card--practised .skill-card__bar {
	background: linear-gradient(90deg, var(--practised-bg) 0%, transparent 100%);
}
.skill-card__head {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.skill-card__head h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}
.skill-tag {
	font-size: 0.7rem;
	padding: 3px 10px;
	border-radius: 999px;
	letter-spacing: 1px;
	color: var(--text-soft);
	background: var(--bg-elev-strong);
	border: 1px solid var(--border);
}
.skill-card--mastered .skill-tag {
	color: var(--mastered);
	background: var(--mastered-bg);
	border-color: transparent;
}
.skill-card--practised .skill-tag {
	color: var(--practised);
	background: var(--practised-bg);
	border-color: transparent;
}
.skill-card__detail {
	position: relative;
	list-style: none;
}
.skill-card__detail li {
	position: relative;
	padding-left: 16px;
	font-size: 0.85rem;
	line-height: 1.8;
	color: var(--text-soft);
}
.skill-card__detail li::before {
	content: "·";
	position: absolute;
	left: 4px;
	color: var(--accent);
	font-weight: bold;
}

/* ============================================================
   Contact 联系方式
   ============================================================ */
.contact-inner { text-align: center; }
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	max-width: 960px;
	margin: 0 auto;
}
.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 32px 20px;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-align: center;
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.contact-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
	background: var(--bg-elev-strong);
	opacity: 1;
}
.contact-card__icon {
	font-size: 2rem;
}
.contact-card__label {
	font-size: 0.78rem;
	color: var(--text-mute);
	letter-spacing: 2px;
	text-transform: uppercase;
}
.contact-card__value {
	font-size: 1rem;
	color: var(--text);
	font-weight: 600;
	word-break: break-all;
}
.footer {
	margin-top: 56px;
	color: var(--text-mute);
	font-size: 0.82rem;
	letter-spacing: 1px;
}

/* ============================================================
   滚动揭示动画
   ============================================================ */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* 多元素错开延迟 */
.about-grid .reveal:nth-child(2),
.timeline__item.reveal:nth-child(2),
.skill-list .reveal:nth-child(2),
.contact-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.about-grid .reveal:nth-child(3),
.timeline__item.reveal:nth-child(3),
.skill-list .reveal:nth-child(3),
.contact-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.about-grid .reveal:nth-child(4),
.skill-list .reveal:nth-child(4),
.contact-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.skill-list .reveal:nth-child(5) { transition-delay: 0.32s; }
.skill-list .reveal:nth-child(6) { transition-delay: 0.4s; }
.hero .reveal { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }
.hero .reveal:nth-child(5) { transition-delay: 0.5s; }

/* 尊重用户偏好 */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.reveal { opacity: 1; transform: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
	.skills-grid {
		grid-template-columns: 1fr;
	}
	.skills-wheel {
		max-width: 460px;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.nav-dots { display: none; }
	.section { padding: 88px 16px 56px; }
	.timeline { padding-left: 24px; }
	.timeline__item { padding-left: 24px; }
	.timeline__dot { left: -24px; }
	.timeline__body { padding: 18px 20px; }
	.hero__actions .btn { padding: 10px 22px; font-size: 0.88rem; }
	.scroll-hint { display: none; }
}

/*# sourceMappingURL=index.css.map */
