/* ============ 全局基础样式 ============ */
:root {
    --bg-gradient: radial-gradient(circle at 0% 0%, #ff9bd2 0, transparent 50%),
    radial-gradient(circle at 100% 0%, #9b8cff 0, transparent 50%),
    radial-gradient(circle at 0% 100%, #72f0ff 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #ffb3ff 0, transparent 55%),
    linear-gradient(135deg, #141326, #1b1235 60%, #120f26);
    --accent-pink: #ff9bd2;
    --accent-blue: #9ddfff;
    --accent-purple: #c9a7ff;
    --text-primary: #f5f5ff;
    --text-muted: #c6c8e5;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.35);
    --nav-height: 70px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --radius-lg: 24px;
    --radius-full: 999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* 锚点平滑滚动 */
}

body {
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: #0a0715;
    position: relative;
    overflow-x: hidden;
}

/* 多层渐变 + 模糊光斑背景（伪元素） */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    background: var(--bg-gradient);
    z-index: -3;
}

body::after {
    filter: blur(40px);
    opacity: 0.65;
}

/* 星光粒子层 */
.star-layer {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
            radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px),
            radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
    background-size: 120px 120px, 200px 200px;
    background-position: 0 0, 60px 80px;
    opacity: 0.35;
    animation: twinkle 16s linear infinite;
}

@keyframes twinkle {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-80px, -80px, 0);
    }
}

/* 全局容器宽度控制 */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用毛玻璃卡片样式 */
.glass-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

/* orange卡片*/
.project-link {
    text-decoration: none;   /* 去掉下划线 */
    color: inherit;          /* 继承父级颜色，不要蓝色 */
    display: block;          /* 让它和原来的卡片一样是一个整体块级元素 */
}

/* 头像*/
.hero-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* 保持比例裁切 */
    display: block;
}


/* 通用按钮样式 */
.btn {
    border: none;
    cursor: pointer;
    border-radius: var(--radius-full);
    padding: 0.7rem 1.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9bd2, #9ddfff);
    color: #1b1028;
    box-shadow: 0 0 25px rgba(255, 155, 210, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 32px rgba(157, 223, 255, 0.6);
    filter: brightness(1.05);
}

.btn:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(255, 155, 210, 0.22), rgba(157, 223, 255, 0.22));
}

/* ============ 顶部导航栏 ============ */
header {
    position: sticky; /* 跟随滚动固定顶部 */
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    background: linear-gradient(to bottom, rgba(10, 8, 24, 0.85), rgba(10, 8, 24, 0.35));
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-symbol {
    width: 34px;
    height: 34px;
    border-radius: 40% 60% 60% 40%;
    background: conic-gradient(from 220deg, #ff9bd2, #9ddfff, #c9a7ff, #ff9bd2);
    box-shadow: 0 0 22px rgba(255, 155, 210, 0.7);
    position: relative;
    overflow: hidden;
}

.nav-logo-symbol::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.85), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.85;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    position: relative;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff9bd2, #9ddfff);
    box-shadow: 0 0 15px rgba(157, 223, 255, 0.9);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--accent-blue);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links-mobile {
    display: none;
}

/* ============ 英雄区（首屏） ============ */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0 90px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-card {
    padding: 32px 32px 36px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 220deg, rgba(255,155,210,0.2), rgba(157,223,255,0.2), rgba(201,167,255,0.2), transparent 60%);
    filter: blur(35px);
    opacity: 0.7;
    z-index: -1;
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-title span {
    background: linear-gradient(135deg, #ffb3ff, #9ddfff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.hero-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(198, 200, 229, 0.9);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* 英雄区右侧头像 / 装饰 */
.hero-aside {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar-wrap {
    position: relative;
    width: 260px;
    max-width: 100%;
    aspect-ratio: 1 / 1.2;
}

.hero-orb {
    position: absolute;
    inset: 10%;
    border-radius: 40% 60% 55% 45%;
    background: radial-gradient(circle at 20% 15%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(157,223,255,0.9), transparent 55%),
    linear-gradient(145deg, #ff9bd2, #9ddfff, #c9a7ff);
    box-shadow:
            0 0 60px rgba(255, 155, 210, 0.85),
            0 0 120px rgba(157, 223, 255, 0.55);
    animation: float 7s ease-in-out infinite;
}

.hero-orb::after {
    content: "";
    position: absolute;
    inset: 16%;
    border-radius: inherit;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    mix-blend-mode: screen;
    opacity: 0.6;
}

.hero-avatar-circle {
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow:
            0 0 25px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #ffe0ff, #c7f3ff);
}

.hero-avatar-circle span {
    font-size: 3.2rem;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}

.hero-glow-ring {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0.3;
    filter: blur(3px);
}

.hero-floating-badge {
    position: absolute;
    right: -6px;
    top: 14%;
    padding: 8px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(72, 41, 124, 0.75));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 18px rgba(157, 223, 255, 0.75);
    animation: float 5.5s ease-in-out infinite;
}

.hero-floating-badge span {
    color: var(--accent-blue);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ============ 通用版块布局 ============ */
main {
    padding-bottom: 80px;
}

section {
    padding: 70px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ============ 关于我区域 ============ */
.about-card {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 28px;
    padding: 26px 28px;
    align-items: center;
}

.about-avatar-shell {
    position: relative;
    width: 210px;
    max-width: 100%;
    aspect-ratio: 1/1;
    margin: 0 auto;
}

.about-avatar-shell::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 45%;
    background: conic-gradient(from 180deg, rgba(255,155,210,0.4), rgba(157,223,255,0.4), rgba(201,167,255,0.4), transparent 70%);
    filter: blur(18px);
    opacity: 0.9;
}

.about-avatar-core {
    position: absolute;
    inset: 10%;
    border-radius: 45%;
    background: radial-gradient(circle at 25% 20%, #ffffff, #ffc9ff 55%, #9ddfff);
    box-shadow:
            0 22px 30px rgba(0, 0, 0, 0.45),
            0 0 36px rgba(255, 255, 255, 0.9) inset;
}

.about-avatar-core::after {
    content: "映";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.1rem;
    color: #3c1b53;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-meta h3 {
    font-size: 1.3rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 4px;
}

.about-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,155,210,0.18), rgba(157,223,255,0.12));
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--text-primary);
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ============ 作品展示区域 ============ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    padding: 18px 18px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 0 0, rgba(255, 155, 210, 0.38), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(198, 200, 229, 0.8);
    margin-bottom: 6px;
}

.project-title {
    font-size: 1.03rem;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.project-meta {
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(198, 200, 229, 0.85);
}

.project-pill {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow:
            0 22px 50px rgba(0, 0, 0, 0.6),
            0 0 25px rgba(157, 223, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.09);
}

.project-card:hover::before {
    opacity: 1;
    transform: translate3d(8px, -8px, 0);
}

.project-card:active {
    box-shadow:
            0 0 35px rgba(255, 200, 255, 0.55),
            0 0 12px rgba(157, 223, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

/* ============ 技能 / 标签云区域 ============ */
.skills-cloud {
    padding: 26px 24px 24px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.skill-badge {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    background: linear-gradient(135deg, rgba(20, 17, 44, 0.9), rgba(33, 20, 73, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.skill-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 155, 210, 0.3), rgba(157, 223, 255, 0.3));
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

.skill-badge span {
    position: relative;
    z-index: 1;
}

.skill-badge:hover {
    transform: translateY(-3px);
    box-shadow:
            0 0 22px rgba(157, 223, 255, 0.7),
            0 0 32px rgba(255, 155, 210, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
}

.skill-badge:hover::before {
    opacity: 1;
}

/* 粒子点缀 */
.skills-cloud::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
            radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1px),
            radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 140px 140px, 200px 200px;
    background-position: 20px 40px, 80px 120px;
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ============ 时间轴 + 动漫语录区域 ============ */
.timeline-quotes {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff9bd2, #9ddfff);
    opacity: 0.75;
}

.timeline-item {
    position: relative;
    padding: 10px 0 16px;
}

.timeline-dot {
    position: absolute;
    left: -1px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9bd2, #9ddfff);
    box-shadow: 0 0 12px rgba(157, 223, 255, 0.9);
}

.timeline-content {
    margin-left: 18px;
    padding: 10px 14px 11px;
    border-radius: 16px;
    background: rgba(12, 8, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.timeline-year {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 动漫语录卡片 */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-card {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(14, 9, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.22);
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.quote-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 10% 0, rgba(255, 155, 210, 0.4), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.quote-text {
    font-size: 0.88rem;
    line-height: 1.7;
}

.quote-text mark {
    background: linear-gradient(120deg, rgba(255, 155, 210, 0.5), rgba(157, 223, 255, 0.4));
    -webkit-background-clip: text;
    color: transparent;
    padding: 0;
}

.quote-meta {
    font-size: 0.8rem;
    color: rgba(198, 200, 229, 0.85);
    margin-top: 6px;
    text-align: right;
}

.quote-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.5);
}

.quote-card:hover::before {
    opacity: 1;
    transform: translate3d(10px, -10px, 0);
}

/* ============ 联系方式区域 ============ */
.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 26px;
}

.contact-form-card {
    padding: 24px 24px 26px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input,
.textarea {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(9, 7, 23, 0.9);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    resize: vertical;
    min-height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.textarea {
    min-height: 90px;
}

.input::placeholder,
.textarea::placeholder {
    color: rgba(198, 200, 229, 0.55);
}

.input:focus,
.textarea:focus {
    border-color: rgba(157, 223, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(157, 223, 255, 0.7);
    background: rgba(9, 7, 23, 0.98);
}

.contact-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.contact-status {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.contact-status.success {
    color: #a6f3d6;
}

.contact-status.error {
    color: #ffb4b4;
}

.contact-social-card {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.contact-social-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.9), rgba(157,223,255,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(157, 223, 255, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px) rotate(-6deg);
    box-shadow:
            0 0 22px rgba(157, 223, 255, 0.85),
            0 0 30px rgba(255, 155, 210, 0.7);
    filter: brightness(1.1);
}

/* ============ 页脚 ============ */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 18px 0 22px;
    font-size: 0.8rem;
    color: rgba(198, 200, 229, 0.8);
    text-align: center;
    background: radial-gradient(circle at 50% 0, rgba(255, 155, 210, 0.18), transparent 55%);
}

/* ============ 进入视口的动画（IntersectionObserver 配合） ============ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 响应式适配 ============ */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links-mobile {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0 16px;
    }

    .nav-links-mobile .nav-link {
        font-size: 0.78rem;
    }

    .nav-open .nav-links-mobile {
        display: flex;
        animation: fadeDown 0.3s ease forwards;
    }

    @keyframes fadeDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 菜单按钮动画 */
    .nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero {
        padding-top: 54px;
    }

    .hero-card {
        padding: 24px 20px 26px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-avatar-wrap {
        width: 220px;
    }

    .about-card {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-quotes {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    section {
        padding: 54px 0;
    }

    .skill-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .contact-form-card,
    .contact-social-card {
        padding: 18px 16px 20px;
    }
}

