/* 得意黑字体引入 */
@font-face {
    font-family: 'Smiley Sans';
    src: url('./SmileySans-Oblique.ttf.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 全局样式 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-gradient-1: #667eea;
    --bg-gradient-2: #764ba2;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
    background-color: #e0e7ff;
    transition: background-color 0.35s ease;
}

html[data-theme="dark"] {
    background-color: #070707;
}

body {
    font-family: 'Smiley Sans', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: transparent;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: color 0.3s ease;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* 深色模式文字 */
body.dark-mode {
    color: rgba(255, 255, 255, 0.95);
}

/* 背景动画：用两个固定图层交叉淡化，避免切换时重绘整张页面 */
.bg-animation {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    isolation: isolate;
    pointer-events: none;
}

.bg-animation::before,
.bg-animation::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: opacity 0.35s ease;
}

.bg-animation::before {
    background:
        radial-gradient(ellipse at top, rgba(254, 215, 170, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(147, 197, 253, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #ffedd5 0%, #e0e7ff 50%, #f0f9ff 100%);
    opacity: 1;
}

.bg-animation::after {
    inset: -8%;
    background-color: #070707;
    background-image: url('./assets/dark-frosted-highlights.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: translate3d(-2%, -1%, 0) scale(1.06);
}

body.dark-mode .bg-animation::before {
    opacity: 0;
}

body.dark-mode .bg-animation::after {
    opacity: 1;
    animation: frosted-highlight-loop 22s ease-in-out infinite;
}

@keyframes frosted-highlight-loop {
    0%, 100% {
        transform: translate3d(-2%, -1%, 0) scale(1.06);
    }
    50% {
        transform: translate3d(2%, 1.5%, 0) scale(1.12);
    }
}

/* 浅色模式 - 气泡效果 */
.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    opacity: 0.6;
    animation: rise 15s infinite ease-in-out;
}

body.dark-mode .bubble {
    display: none;
}

.bubble:nth-child(1) { left: 5%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 12s; }
.bubble:nth-child(2) { left: 12%; width: 40px; height: 40px; animation-delay: 2s; animation-duration: 10s; }
.bubble:nth-child(3) { left: 20%; width: 80px; height: 80px; animation-delay: 4s; animation-duration: 14s; }
.bubble:nth-child(4) { left: 30%; width: 50px; height: 50px; animation-delay: 1s; animation-duration: 11s; }
.bubble:nth-child(5) { left: 40%; width: 70px; height: 70px; animation-delay: 3s; animation-duration: 13s; }
.bubble:nth-child(6) { left: 50%; width: 45px; height: 45px; animation-delay: 5s; animation-duration: 12s; }
.bubble:nth-child(7) { left: 58%; width: 55px; height: 55px; animation-delay: 2.5s; animation-duration: 10.5s; }
.bubble:nth-child(8) { left: 68%; width: 65px; height: 65px; animation-delay: 1.5s; animation-duration: 13.5s; }
.bubble:nth-child(9) { left: 75%; width: 75px; height: 75px; animation-delay: 4.5s; animation-duration: 11.5s; }
.bubble:nth-child(10) { left: 82%; width: 50px; height: 50px; animation-delay: 3.5s; animation-duration: 12.5s; }
.bubble:nth-child(11) { left: 88%; width: 60px; height: 60px; animation-delay: 6s; animation-duration: 14s; }
.bubble:nth-child(12) { left: 15%; width: 35px; height: 35px; animation-delay: 7s; animation-duration: 9s; }
.bubble:nth-child(13) { left: 45%; width: 55px; height: 55px; animation-delay: 5.5s; animation-duration: 13s; }
.bubble:nth-child(14) { left: 65%; width: 45px; height: 45px; animation-delay: 8s; animation-duration: 11s; }
.bubble:nth-child(15) { left: 92%; width: 70px; height: 70px; animation-delay: 2.8s; animation-duration: 15s; }

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(80px) scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110vh;
        transform: translateX(-50px) scale(0.8);
        opacity: 0;
    }
}

/* 星空容器 */
.stars-container {
    display: none;
}

body.dark-mode .stars-container {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

#ink-trail {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    pointer-events: none;
    mix-blend-mode: normal;
    opacity: 0.68;
    filter: drop-shadow(0 0 7px rgba(102, 126, 234, 0.16));
    transition: opacity 0.25s ease;
}

body.dark-mode #ink-trail {
    mix-blend-mode: difference;
    opacity: 1;
    filter: none;
}

body.ink-effects-disabled #ink-trail {
    visibility: hidden;
    opacity: 0;
}

.effects-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1em;
    height: 1em;
}

.effects-icon > i {
    grid-area: 1 / 1;
}

.effects-off-slash {
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 0.18s ease;
}

.effects-toggle.is-off .effects-off-slash {
    opacity: 1;
}

.star {
    position: absolute;
    left: var(--star-left);
    top: var(--star-top);
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 1px 0.5px rgba(255, 255, 255, 0.6);
    animation: twinkle var(--star-duration) var(--star-delay) infinite ease-in-out;
}

.star.medium {
    width: 1.5px;
    height: 1.5px;
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.7);
    animation-name: twinkleBright;
}

.star.large {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 3px 1.5px rgba(255, 255, 255, 0.8);
    animation-name: twinkleBright;
}

.shooting-star {
    position: absolute;
    left: var(--shooting-left);
    top: var(--shooting-top);
    width: 120px;
    height: 1.5px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.4);
    transform: rotate(-45deg);
    animation: shootingStar var(--shooting-duration) ease-out;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

@keyframes twinkleBright {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes shootingStar {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(-400px, 400px) rotate(-45deg);
        opacity: 0;
    }
}



/* 液态玻璃卡片 - 白天模式
   薄玻璃：低不透明度 + 轻度模糊，让背景内容隐约可辨 */
.glass-card {
    font-family: 'Smiley Sans', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-radius: 26px;
    border: none;
    box-shadow:
        /* 外缘亮线 — 玻璃边缘聚光（更亮、更锐） */
        0 0 0 0.5px rgba(255, 255, 255, 1),
        /* 柔和的彩色投影 — 悬浮感 */
        0 24px 60px -18px rgba(102, 126, 234, 0.28),
        0 8px 20px -6px rgba(0, 0, 0, 0.04),
        /* 内顶部强镜面高光 — 玻璃的"光带"（更厚、更亮） */
        inset 0 2.5px 1px -1.5px rgba(255, 255, 255, 1),
        /* 内底部冷色厚度阴影 */
        inset 0 -2px 4px -2px rgba(102, 126, 234, 0.22),
        /* 整圈细描边 */
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 2rem 2.2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
    position: relative;
    z-index: 2001;
    color: #1f2937;
    isolation: isolate;
}

/* 液态玻璃卡片 - 深色模式
   关键：去掉 saturate（会泵爆深蓝底色）+ 轻模糊 + 中性色阴影 */
body.dark-mode .glass-card {
    z-index: 1;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        /* 外缘亮线 */
        0 0 0 0.5px rgba(255, 255, 255, 0.45),
        /* 中性深色投影（不染蓝） */
        0 24px 60px -18px rgba(0, 0, 0, 0.45),
        0 8px 20px -6px rgba(0, 0, 0, 0.3),
        /* 内顶部镜面高光 */
        inset 0 2.5px 1px -1.5px rgba(255, 255, 255, 0.8),
        /* 内底部白色厚度高光（中性，不再用蓝） */
        inset 0 -2px 4px -2px rgba(255, 255, 255, 0.18),
        /* 整圈描边 */
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
}

/* 顶部高光线 — 玻璃顶面反光带 */
.glass-card::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 1) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

body.dark-mode .glass-card::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.9),
        0 32px 70px -18px rgba(102, 126, 234, 0.4),
        0 12px 24px -6px rgba(0, 0, 0, 0.06),
        inset 0 2px 1px -1px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px -2px rgba(102, 126, 234, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body.dark-mode .glass-card:hover {
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.68),
        0 32px 70px -20px rgba(255, 255, 255, 0.2),
        0 12px 24px -6px rgba(0, 0, 0, 0.5),
        inset 0 2px 1px -1px rgba(255, 255, 255, 0.82),
        inset 0 -2px 4px -2px rgba(255, 255, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}



/* 顶部导航只负责定位；玻璃效果放到独立按钮上 */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    isolation: isolate;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0.7rem 0;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav .nav-logo,
.glass-nav .nav-menu {
    position: relative;
    z-index: 1;
}

.glass-nav.scrolled {
    padding: 0.55rem 0;
    background: transparent;
    box-shadow: none;
}

body.dark-mode .glass-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.dark-mode .glass-nav.scrolled {
    background: transparent;
    box-shadow: none;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 clamp(2rem, 5vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

.nav-logo {
    font-family: 'Smiley Sans', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
    font-weight: normal;
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    color: #1f2937;
    text-decoration: none;
    transition: opacity 0.25s ease;
    text-shadow: none;
    white-space: nowrap;
}

.nav-logo:hover {
    color: #1f2937;
    opacity: 0.62;
}

body.dark-mode .nav-logo {
    color: white;
    text-shadow: none;
}

body.dark-mode .nav-logo:hover {
    opacity: 0.68;
    text-shadow: none;
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(0.5rem, 1vw, 1rem);
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
}

.nav-menu a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
    padding: clamp(0.4rem, 1vw, 0.55rem) clamp(0.85rem, 2vw, 1.15rem);
    border-radius: 999px;
    transition: color 0.3s ease,
                background 0.3s ease,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow:
        0 10px 24px -12px rgba(31, 38, 135, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.68);
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px -12px rgba(31, 38, 135, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #5b5fe8;
}

body.dark-mode .nav-menu a {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 12px 28px -14px rgba(0, 0, 0, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.dark-mode .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 14px 30px -14px rgba(0, 0, 0, 0.82),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    color: #fff;
}

/* 主题切换按钮 - 白天模式 */
.theme-toggle {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.68);
    color: #667eea;
    width: clamp(42px, 6vw, 46px);
    height: clamp(36px, 5vw, 40px);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    box-shadow:
        0 10px 24px -12px rgba(31, 38, 135, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: all 0.3s ease;
    margin-left: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.68);
    transform: translateY(-2px) rotate(10deg);
    color: #764ba2;
}

/* 主题切换按钮 - 深色模式 */
body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.35),
        0 0 16px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

/* 首次访问时提示右上角的显示控制 */
.controls-hint {
    position: fixed;
    top: 76px;
    right: clamp(1rem, 5vw, 5rem);
    z-index: 2200;
    width: min(238px, calc(100vw - 2rem));
    padding: 0.72rem 0.8rem 0.78rem;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.16);
    border: none;
    border-radius: 18px;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 1),
        0 24px 60px -18px rgba(102, 126, 234, 0.28),
        0 8px 20px -6px rgba(0, 0, 0, 0.04),
        inset 0 2.5px 1px -1.5px rgba(255, 255, 255, 1),
        inset 0 -2px 4px -2px rgba(102, 126, 234, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.controls-hint::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 1), transparent);
    pointer-events: none;
}

.controls-hint.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.controls-hint[hidden] {
    display: none;
}

.controls-hint-title {
    margin: 0 1.8rem 0.45rem 0;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
}

.controls-hint-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.38rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.controls-hint-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    color: #667eea;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.controls-hint-close {
    position: absolute;
    top: 0.55rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.controls-hint-close:hover {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.56);
}

.controls-hint-confirm {
    display: block;
    width: auto;
    margin: 0.58rem 0 0 auto;
    padding: 0.38rem 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #7c6fd0);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 20px -12px rgba(102, 126, 234, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
}

body.dark-mode .controls-hint {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.45),
        0 24px 60px -18px rgba(0, 0, 0, 0.45),
        0 8px 20px -6px rgba(0, 0, 0, 0.3),
        inset 0 2.5px 1px -1.5px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px -2px rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

body.dark-mode .controls-hint::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

body.dark-mode .controls-hint-title,
body.dark-mode .controls-hint-close:hover {
    color: #fff;
}

body.dark-mode .controls-hint-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .controls-hint-close {
    color: rgba(255, 255, 255, 0.68);
}

body.dark-mode .controls-hint-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .controls-hint-confirm {
    color: #151515;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 主页区域 */
.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    width: 100%;
}

/* 主页卡片保持更高的高亮 */
.hero-content.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex: 1;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

/* 液态玻璃头像框 - 白天模式 */
.profile-image-wrapper {
    flex-shrink: 0;
    position: relative;
    padding: 7px;
    border-radius: 50%;
    /* 棱镜折射底色 */
    background:
        conic-gradient(
            from 220deg,
            rgba(102, 126, 234, 0.55) 0deg,
            rgba(236, 72, 153, 0.4) 90deg,
            rgba(56, 189, 248, 0.45) 180deg,
            rgba(167, 139, 250, 0.5) 270deg,
            rgba(102, 126, 234, 0.55) 360deg
        );
    box-shadow:
        0 30px 60px -18px rgba(102, 126, 234, 0.45),
        0 12px 28px -10px rgba(236, 72, 153, 0.25),
        0 4px 12px -4px rgba(56, 189, 248, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.9),
        inset 0 -2px 3px rgba(102, 126, 234, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease;
    isolation: isolate;
}

/* 磨砂玻璃覆盖层 — 高光与折射 */
.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.85) 0%, transparent 28%),
        radial-gradient(circle at 75% 85%, rgba(255, 255, 255, 0.35) 0%, transparent 30%),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.15) 100%
        );
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

/* 外发光光环 */
.profile-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 200deg,
        rgba(102, 126, 234, 0.4) 0deg,
        rgba(236, 72, 153, 0.35) 120deg,
        rgba(56, 189, 248, 0.3) 240deg,
        rgba(102, 126, 234, 0.4) 360deg
    );
    filter: blur(22px);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.6s ease;
}

.profile-image-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
}

.profile-image-wrapper:hover::after {
    opacity: 0.85;
    animation: rotate 12s linear infinite;
}

/* 液态玻璃头像框 - 深色模式 */
body.dark-mode .profile-image-wrapper {
    background: #181818;
    border: 1px solid #a8a8a8;
    box-shadow:
        0 24px 52px -18px rgba(0, 0, 0, 0.72),
        0 8px 20px -10px rgba(0, 0, 0, 0.82),
        inset 0 1px 0 #f2f2f2,
        inset 0 -2px 0 #050505,
        inset 0 0 0 2px #3a3a3a;
}

body.dark-mode .profile-image-wrapper::before {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.72),
        inset -1px -1px 0 rgba(0, 0, 0, 0.82);
}

body.dark-mode .profile-image-wrapper::after {
    inset: -5px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.32);
    filter: none;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
    opacity: 1;
}

body.dark-mode .profile-image-wrapper:hover::after {
    animation: none;
    opacity: 1;
}

/* 在线状态标志 */
.online-status {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15);
    animation: pulse-online 2.2s ease-in-out infinite;
    z-index: 10;
}

body.dark-mode .online-status {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(16, 185, 129, 0.6),
            0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 0 0 7px rgba(16, 185, 129, 0),
            0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.12);
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

body.dark-mode .profile-image {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

.profile-image-wrapper:hover .profile-image {
    transform: scale(1.03);
}

.profile-info {
    flex: 1;
    color: #1f2937;
}

.name-title {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: #27272a;
    text-shadow: none;
}

.title-position {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #4b5563;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.05);
}

.institution {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #6b7280;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.05);
}

body.dark-mode .profile-info {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .name-title {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode .title-position {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .institution {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    color: #667eea;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.1),
        0 3px 6px rgba(102, 126, 234, 0.05);
}

.social-icon:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 12px 28px rgba(102, 126, 234, 0.25),
        0 6px 12px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    color: #764ba2;
}

body.dark-mode .social-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 6px 16px rgba(255, 255, 255, 0.08),
        0 3px 6px rgba(255, 255, 255, 0.04);
}

body.dark-mode .social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 28px rgba(255, 255, 255, 0.15),
        0 6px 12px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

/* 区域样式 */
.section {
    padding: 1.5rem 0;
    position: relative;
}

.section-title {
    font-family: 'Smiley Sans', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    letter-spacing: 0.02em;
}

body.dark-mode .section-title {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content {
    color: #4b5563;
    font-size: 1.2rem;
    text-shadow: none;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.2rem;
}

.content strong {
    font-family: 'Smiley Sans', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.02em;
}

.content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.content a:hover {
    color: #764ba2;
    border-bottom-color: rgba(118, 75, 162, 0.8);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

body.dark-mode .content {
    color: rgba(255, 255, 255, 0.92);
}

body.dark-mode .content p {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .content a {
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

body.dark-mode .content a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.32);
}

.subsection-title {
    font-family: 'Smiley Sans', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #1f2937;
    margin: 1.5rem 0 0.8rem;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    letter-spacing: 0.02em;
}

body.dark-mode .subsection-title {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.interest-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.interest-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.25) 100%
    );
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 16px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #1f2937;
}

body.dark-mode .interest-list li {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.interest-list li {
    position: relative;
}

.interest-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.8), 
        rgba(75, 159, 162, 0.8), 
        rgba(147, 189, 251, 0.8),
        rgba(102, 126, 234, 0.8)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateBorder 4s linear infinite;
    background-size: 200% 200%;
    pointer-events: none;
}

.interest-list li:hover {
    transform: translateX(8px);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.2),
        0 4px 12px rgba(118, 75, 162, 0.15),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
}

body.dark-mode .interest-list li::before {
    background: rgba(255, 255, 255, 0.72);
    animation: none;
}

body.dark-mode .interest-list li:hover {
    box-shadow: 
        0 10px 28px rgba(255, 255, 255, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 0 40px rgba(255, 255, 255, 0.08);
}

.interest-list li:hover::before {
    opacity: 1;
}

/* 研究项目网格 */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.research-item {
    text-align: center;
    color: #1f2937;
    padding: 2.5rem;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

body.dark-mode .research-item {
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.research-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.9), 
        rgba(38, 101, 196, 0.9), 
        rgba(147, 241, 251, 0.9),
        rgba(102, 126, 234, 0.9)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateBorder 5s linear infinite;
    background-size: 200% 200%;
    pointer-events: none;
}

.research-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 56px rgba(102, 126, 234, 0.25),
        0 8px 24px rgba(118, 75, 162, 0.2),
        inset 0 0 80px rgba(255, 255, 255, 0.5);
}

body.dark-mode .research-item::before {
    background: rgba(255, 255, 255, 0.76);
    animation: none;
}

body.dark-mode .research-item:hover {
    box-shadow: 
        0 18px 58px rgba(255, 255, 255, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.38),
        inset 0 0 80px rgba(255, 255, 255, 0.08);
}

.research-item:hover::before {
    opacity: 1;
}

@keyframes rotateBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.research-icon {
    font-size: 3rem;
    color: transparent;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 1rem;
}

body.dark-mode .research-icon {
    background: none;
    color: rgba(255, 255, 255, 0.95);
}

.research-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.research-item p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #4b5563;
}

body.dark-mode .research-item h3 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .research-item p {
    color: rgba(255, 255, 255, 0.85);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.12) 0%,
        rgba(118, 75, 162, 0.08) 100%
    );
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(102, 126, 234, 0.35);
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #667eea;
}

body.dark-mode .tag {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.tag {
    position: relative;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.25),
        0 3px 8px rgba(118, 75, 162, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.25);
    color: #764ba2;
}

body.dark-mode .tag:hover {
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.32),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

/* 论文列表 - 嵌套子面板（薄玻璃） */
.publications-list {
    color: #1f2937;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: none;
    border-radius: 18px;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.85),
        0 8px 22px -10px rgba(102, 126, 234, 0.18),
        inset 0 1.5px 1px -1px rgba(255, 255, 255, 1),
        inset 0 -1.5px 3px -1px rgba(102, 126, 234, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    position: relative;
}

body.dark-mode .publications-list {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.28),
        0 8px 22px -10px rgba(0, 0, 0, 0.3),
        inset 0 1.5px 1px -1px rgba(255, 255, 255, 0.5),
        inset 0 -1.5px 3px -1px rgba(255, 255, 255, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.publications-list:last-child {
    margin-bottom: 0;
}

.publication-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

body.dark-mode .publication-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.publication-item:first-child {
    padding-top: 0;
}

.pub-number {
    flex-shrink: 0;
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

body.dark-mode .pub-number {
    color: rgba(255, 255, 255, 0.9);
}

.pub-year {
    display: none;
}

.pub-content {
    flex: 1;
}

.pub-content p {
    margin: 0;
    color: #1f2937;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 550;
}

body.dark-mode .pub-content p {
    color: rgba(255, 255, 255, 0.95);
}

.pub-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: flex-start;
}

.pub-link {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.12) 0%,
        rgba(118, 75, 162, 0.08) 100%
    );
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    white-space: nowrap;
}

.pub-link:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.25),
        0 3px 8px rgba(118, 75, 162, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.25);
    color: #764ba2;
}

body.dark-mode .pub-link {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark-mode .pub-link:hover {
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.32),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

/* 联系方式 - 白天模式 */
.contact-content {
    color: #1f2937;
}

body.dark-mode .contact-content {
    color: rgba(255, 255, 255, 0.95);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: block;
}

.contact-item h4 {
    font-family: 'Smiley Sans', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: #1f2937;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    letter-spacing: 0.02em;
}

.contact-item p {
    color: #4b5563;
    font-size: 1.2rem;
}

body.dark-mode .contact-item h4 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-item p {
    color: rgba(255, 255, 255, 0.85);
}

.email-link {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.email-link:hover {
    color: #764ba2;
    border-bottom: 1px solid rgba(118, 75, 162, 0.6);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

body.dark-mode .email-link {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .email-link:hover {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* 页脚 - 白天模式 */
.footer {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    box-shadow: none;
    color: #4b5563;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

.footer p {
    margin: 0.3rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

body.dark-mode .footer {
    background: transparent;
    border-top: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.7);
}

/* 添加装饰元素 */
.section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 响应式设计 */
/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .glass-nav {
        padding: 0.65rem 0;
    }
    
    .nav-container {
        padding: 0 1.5rem;
        min-height: 44px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        margin-left: 0.75rem;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* 导航栏 */
    .glass-nav {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
        gap: 0.4rem;
        min-height: 40px;
    }
    
    .nav-logo {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .nav-menu {
        gap: 0.4rem;
        flex-wrap: nowrap;
    }
    
    .nav-menu a {
        padding: 0.35rem 0.55rem;
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-left: 0.4rem;
    }

    .controls-hint {
        top: 70px;
        right: 1rem;
    }
    
    /* Hero 部分 */
    .hero-section {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-image-wrapper {
        margin: 0 auto;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .online-status {
        width: 22px;
        height: 22px;
        bottom: 12px;
        right: 12px;
    }
    
    .name-title {
        font-size: 1.8rem;
        margin-top: 1rem;
    }
    
    .title-position {
        font-size: 1rem;
    }
    
    .institution {
        font-size: 0.95rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* 内容区域 */
    section {
        padding: 3rem 0;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::before {
        height: 25px;
        width: 4px;
    }
    
    .subsection-title {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem;
    }
    
    /* About 部分 */
    .content {
        font-size: 1rem;
    }
    
    .content p {
        font-size: 0.95rem;
    }
    
    /* 研究部分 */
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .publications-list {
        padding: 1rem;
    }
    
    .publication-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .pub-number {
        position: static;
        width: auto;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .pub-content {
        padding-left: 0;
    }
    
    .pub-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .pub-authors {
        font-size: 0.85rem;
    }
    
    .pub-venue {
        font-size: 0.85rem;
    }
    
    .pub-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pub-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* 联系部分 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-item i {
        font-size: 1.5rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    /* Footer */
    footer {
        padding: 1.2rem 0;
        font-size: 0.8rem;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
        gap: 0.3rem;
        min-height: 36px;
    }
    
    .nav-logo {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin-left: 0.3rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .online-status {
        width: 18px;
        height: 18px;
        bottom: 8px;
        right: 8px;
        border-width: 3px;
    }
    
    .name-title {
        font-size: 1.5rem;
    }
    
    .title-position {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .glass-card {
        padding: 1.2rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 尊重 prefers-reduced-motion — 关闭装饰动画（不影响默认视觉） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bubble,
    .stars-container {
        display: none !important;
    }
}
