/* ============================================================
   Lusion 风格极简白色高级设计
   ============================================================ */

:root {
    --bg-primary: #ffffff;
    --bg-warm: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent: #4f46e5;
    --accent-light: #818cf8;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
    --radius: 16px;
    --radius-lg: 24px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- SVG 动态曲线：固定全屏背景 ---------- */
#scrollCurve {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

#scrollCurve .curve-path {
    fill: none;
    stroke: #7cc4f8;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dashoffset 0.35s ease-out;
}

#main-wrapper {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo);
    position: relative;
    z-index: 10;
}

#main-wrapper.show {
    opacity: 1;
}

/* ============================================================
   Loading 加载动画
   ============================================================ */
#loading-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 1;
    transition: opacity 0.7s var(--ease-out-expo);
    pointer-events: all;
}

#loading-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    animation: logoFadeIn 0.8s var(--ease-out-expo) both;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.loading-icon {
    font-size: 1.8rem;
    color: var(--accent);
    animation: iconPulse 2s var(--ease-out-expo) infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

.loading-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.loading-stream-track {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.loading-stream-bar {
    width: 50%;
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    animation: dataStreamFlow 2.2s var(--ease-out-expo) infinite;
}

@keyframes dataStreamFlow {
    0%   { transform: translateX(-120%); opacity: 0.6; }
    40%  { opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translateX(240%); opacity: 0.4; }
}

.loading-tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    animation: taglineBreathe 1.8s var(--ease-out-expo) infinite;
}

@keyframes taglineBreathe {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.9; }
}

/* ============================================================
   导航栏 — 纯白毛玻璃
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    height: 56px;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.72);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
    cursor: default;
}

.nav-brand span {
    color: var(--accent);
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.5s var(--ease-out-expo);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: width 0.5s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-active {
    color: var(--text-primary) !important;
}

.nav-active::after {
    width: 100% !important;
}

/* ---------- 汉堡菜单按钮（桌面端隐藏，移动端显示） ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out-expo),
                opacity 0.35s var(--ease-out-expo);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   页面整体布局
   ============================================================ */
.page-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    z-index: 5;
}

/* ============================================================
   Hero 区块
   ============================================================ */
.hero-section {
    padding-top: 9.5rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    max-width: 700px;
}

.hero-subhead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: 0.3px;
    max-width: 500px;
    line-height: 1.6;
}

.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.6s var(--ease-spring),
                box-shadow 0.6s var(--ease-spring);
    margin-bottom: 3rem;
}

.profile-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.2rem;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--border-medium);
    opacity: 0.4;
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f2;
    z-index: 2;
    border: 1px solid var(--border-subtle);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    min-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cursor {
    display: inline-block;
    color: var(--text-secondary);
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    background: transparent;
    border: 1px solid var(--border-subtle);
    transition: all 0.5s var(--ease-spring);
    text-decoration: none;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.5s var(--ease-spring);
}

.social-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.04);
    transform: translateY(-3px) scale(1.06);
}

/* ============================================================
   区块标题
   ============================================================ */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

/* ============================================================
   About / 技能卡片网格
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.skill-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    transition: transform 0.5s var(--ease-spring),
                box-shadow 0.5s var(--ease-spring),
                border-color 0.4s var(--ease-out-expo);
    cursor: pointer;
    user-select: none;
}

.skill-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.skill-card.open {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.skill-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    padding-right: 2rem;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 展开箭头 */
.skill-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    transition: transform 0.5s var(--ease-spring),
                background 0.4s var(--ease-out-expo),
                color 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.skill-card.open .skill-arrow {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 展开内容：丝滑高度过渡 */
.skill-more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--ease-out-expo);
}

.skill-card.open .skill-more {
    grid-template-rows: 1fr;
}

.skill-more-inner {
    overflow: hidden;
    min-height: 0;
}

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.1rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--border-subtle);
}

.skill-tags li {
    font-size: 0.78rem;
    color: var(--accent);
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
    transition: transform 0.4s var(--ease-spring),
                background 0.4s var(--ease-out-expo);
}

/* ============================================================
   作品/展示网格
   ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.work-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.5s var(--ease-spring),
                box-shadow 0.5s var(--ease-spring);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.work-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #eef0f5, #e4e7ed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.work-info {
    padding: 1.5rem;
}

.work-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.work-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   微信弹窗
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    max-width: 340px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
                0 4px 16px rgba(0, 0, 0, 0.06);
    transform: scale(0.95);
    transition: transform 0.5s var(--ease-spring);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.modal-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.2rem;
    border-radius: 16px;
    overflow: hidden;
    background: #f9f9fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-id {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================================
   About 区块：个人简介 + 时间线
   ============================================================ */
.about-intro {
    max-width: 700px;
}

.about-intro p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1.5px solid var(--border-medium);
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.timeline-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.work-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(79, 70, 229, 0.06);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

/* ---------- 联系区块网格 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.15rem;
}

.contact-link {
    font-size: 0.92rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--text-primary);
}

.contact-value {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 0.92rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    align-self: flex-start;
    min-height: 44px;
    padding: 0.75rem 2rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.3s var(--ease-spring);
}

.form-submit:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* ============================================================
   身份验证弹窗
   ============================================================ */

#verify-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: opacity 0.6s var(--ease-out-expo);
    opacity: 1;
}

#verify-overlay.fade-out-verify {
    opacity: 0;
    pointer-events: none;
}

#fireworkCanvas {
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    display: none;
}

#fireworkCanvas.active {
    display: block;
}

.verify-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.8rem 2.2rem 2.2rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    position: relative;
    z-index: 10002;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08),
                0 2px 12px rgba(0, 0, 0, 0.04);
    animation: verifySlideUp 0.6s var(--ease-spring) both;
}

@keyframes verifySlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.verify-icon {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.verify-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.verify-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.8rem;
}

.verify-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.4rem;
    position: relative;
}

.btn-handsome {
    padding: 0.7rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.3s var(--ease-spring);
    position: relative;
    z-index: 2;
}

.btn-handsome:hover {
    background: #4338ca;
    transform: scale(1.04);
}

.btn-not-handsome {
    padding: 0.7rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #f0f0f3;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: left 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                top 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.btn-not-handsome:hover {
    background: #e8e8ec;
}

.verify-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    letter-spacing: 0.3px;
}

.verify-toast {
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10003;
    background: #fff;
    border-radius: 18px;
    padding: 1.4rem 2rem;
    text-align: center;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: 90vw;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s var(--ease-spring);
}

.verify-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .navbar { padding: 0 1.2rem; }
    .page-section { padding: 3rem 1.5rem; }
    /* 修复：导航栏 position:fixed 不占位，给主内容容器留出「导航栏高度 + 24px」的顶部空间 */
    #main-wrapper { padding-top: calc(56px + 24px); }
    .hero-headline { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .hero-subhead { font-size: 1rem; margin-bottom: 2.2rem; }
    .section-heading { font-size: 1.7rem; }
    .work-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    #scrollCurve { opacity: 0.2; }

    /* 汉堡菜单 */
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.07);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s var(--ease-out-expo);
    }
    .nav-links.open { max-height: 340px; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    .nav-links a::after { display: none; }

    /* 移动端：验证弹窗卡片缩小 + 自动居中（由 #verify-overlay 的 flex 居中保证） */
    .verify-card {
        max-width: 300px;
        width: 86%;
        padding: 1.6rem 1.2rem 1.4rem;
    }
    .verify-icon { font-size: 2rem; }
    .verify-title { font-size: 1rem; }
    .verify-question { font-size: 1.1rem; margin-bottom: 1.2rem; }
    .verify-buttons { gap: 0.8rem; }
}

@media (max-width: 480px) {
    .navbar { padding: 0 1rem; }
    .page-section { padding: 2.5rem 1rem; }
    .hero-headline { font-size: 1.8rem; letter-spacing: -0.5px; }
    .section-heading { font-size: 1.5rem; }
    .profile-card { padding: 1.8rem 1.2rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .verify-buttons { flex-wrap: wrap; }
    .btn-handsome, .btn-not-handsome { min-width: 120px; min-height: 48px; }
    .form-submit { min-height: 48px; width: 100%; }
}