
/* 
版权所有 © 2025 木子青. 保留所有权利。
版本号: v1.0.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 移除移动端点击元素时的默认蓝色背景 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 加载动画样式 */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    background-image: linear-gradient(rgb(186, 66, 255) 35%,rgb(0, 225, 255));
    width: 100px;
    height: 100px;
    animation: spinning82341 1.7s linear infinite;
    text-align: center;
    border-radius: 50px;
    filter: blur(1px);
    box-shadow: 0px -5px 20px 0px rgb(186, 66, 255), 0px 5px 20px 0px rgb(0, 225, 255);
}

.spinner1 {
    background-color: rgb(36, 36, 36);
    width: 100px;
    height: 100px;
    border-radius: 50px;
    filter: blur(10px);
}

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




:root {
    --primary: #000000;
    --secondary: #f5f5f7;
    --accent: #0071e3;
    --accent-hover: #0077ED;
    --text: #1d1d1f;
    --text-light: #86868b;
    --white: #ffffff;
    --gray-light: #f5f5f7;
    --gray-border: #d2d2d7;
    --gradient-start: #f5f5f7;
    --gradient-end: #ffffff;
    --background: #ffffff;
}


[data-theme="dark"] {
    /* 颜色变量 */
    --primary: #ffffff;
    --secondary: #1a1a1a;
    --accent: #3498db;
    --accent-hover: #2980b9;
    --text: #f5f5f7;
    --text-light: #999999;
    --white: #1d1d1f;
    --gray-light: #2d2d2d;
    --gray-border: #444444;
    --gradient-start: #1d1d1f;
    --gradient-end: #2d2d2d;
    --background: #1a1a1a;
}


[data-theme="dark"] footer {
    background-color: #000000; /* 保持原来的黑色背景 */
    color: white; /* 文字保持白色 */
}


[data-theme="dark"] nav {
    background-color: rgba(25, 25, 25, 0.8); /* 深色半透明背景 */
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* 更细微的边框 */
}

[data-theme="dark"] nav.scrolled {
    background-color: rgba(25, 25, 25, 0.95); /* 滚动时更深的背景色 */
    border-bottom-color: rgba(255, 255, 255, 0.1);
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background-color: var(--secondary);
    color: var(--text);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* 全局滚动条样式 -  */
/* 应用到html和body元素以确保全浏览器兼容性 */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px; /* 更宽的滚动条使其更明显 */
    height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(240, 240, 240, 0.1); /* 添加轻微背景色 */
    border-radius: 6px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #888888; /* 使用实色而非半透明 */
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background-color: #666666;
}

/* Firefox滚动条样式 */
html,
body {
    scrollbar-width: thin;
    scrollbar-color: #888888 rgba(240, 240, 240, 0.1);
}

/* 深色主题下的滚动条样式 */
[data-theme="dark"] html::-webkit-scrollbar-track,
[data-theme="dark"] body::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.3);
}

[data-theme="dark"] html::-webkit-scrollbar-thumb,
[data-theme="dark"] body::-webkit-scrollbar-thumb {
    background-color: #aaaaaa;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] html::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] body::-webkit-scrollbar-thumb:hover {
    background-color: #cccccc;
}

[data-theme="dark"] html,
[data-theme="dark"] body {
    scrollbar-color: #aaaaaa rgba(30, 30, 30, 0.3);
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(245, 245, 247, 0.6);
    backdrop-filter: saturate(180%) blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.32s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    background-color: rgba(245, 245, 247, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.08);
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    position: relative;
}

/* 移动端汉堡菜单按钮样式 */
.mobile-menu-button {
    display: none; /* 默认隐藏，只在移动端显示 */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1010;
    /* 覆盖通用button样式，移除拟态效果 */
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    box-shadow: none !important;
}

.menu-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 18px;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    bottom: 0;
}

/* 汉堡菜单激活状态 */
.menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端导航菜单容器 - 部分显示效果 */
.mobile-nav-container {
    position: fixed;
    top: 44px;
    left: -60%;
    width: 60%;
    height: calc(100vh - 44px);
    background-color: var(--secondary);
    z-index: 1005;
    transition: left 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gray-border);
    border-top: 1px solid var(--gray-border);
    overflow: hidden;
}

.mobile-nav-container.active {
    left: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav li {
    margin-bottom: 1px;
}

.mobile-nav a {
    display: block;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 2px 0;
}

.mobile-nav .theme-toggle {
    margin-top: 20px;
    padding: 0 20px;
}

/* 移动端菜单底部版权信息样式 */
.mobile-copyright {
    padding: 16px 20px;
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
    margin-top: auto;
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    background-color: var(--secondary);
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
}

.mobile-copyright p {
    margin-bottom: 6px;
    line-height: 1.4;
}

.mobile-copyright .beian {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-copyright .beian a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 9px;
    transition: color 0.2s ease;
}

.mobile-copyright .beian a:hover {
    color: var(--accent);
}

.logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo-link:hover .logo {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-links a:hover {
    color: var(--accent);
}

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


main {
    padding-top: 44px;
}


.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* 英雄区域顶部渐色光边 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd700, #000000, #ff0000, #ff7f00, #0000ff, transparent);
    opacity: 0.8;
    filter: blur(2px);
    animation: glowEdge 4s ease-in-out infinite;
}

@keyframes glowEdge {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.9;
        transform: scaleX(1);
    }
}


.floating-shape {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    z-index: 1; /* 提高z-index确保可见 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}


.floating-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 8s infinite alternate;
}

.floating-shape:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.25) 0%, rgba(0, 113, 227, 0) 70%);
    animation: float 10s infinite alternate-reverse;
    animation-delay: -2s;
}

.floating-shape:nth-child(5) {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 12s infinite alternate;
    animation-delay: -4s;
}

.floating-shape:nth-child(6) {
    width: 100px;
    height: 100px;
    top: 35%;
    right: 30%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, rgba(0, 113, 227, 0) 70%);
    animation: float 7s infinite alternate-reverse;
    animation-delay: -6s;
}


@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(40px, -30px) rotate(5deg) scale(1.05);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg) scale(0.95);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 10px) rotate(3deg) scale(1.02);
        opacity: 0.55;
    }
    100% {
        transform: translate(-10px, -40px) rotate(-3deg) scale(0.98);
        opacity: 0.5;
    }
}


.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}


.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: glowMove 20s infinite alternate ease-in-out;
}

.hero-glow:nth-child(1) {
    top: -300px;
    right: -300px;
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
    animation-delay: -5s;
}

.hero-glow:nth-child(2) {
    bottom: -300px;
    left: -300px;
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.03) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes glowMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    max-width: 980px;
    text-align: center;
    position: relative;
    z-index: 1;
}


.greeting {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: none;
    opacity: 0;
    animation: appleFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}


.hero-title {
    font-size: clamp(56px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
    opacity: 0;
    animation: appleFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.14286;
    letter-spacing: -0.016em;
    margin-bottom: 32px;
    opacity: 0;
    animation: appleFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
}


.dynamic-text-container {
    min-height: 48px;
    margin-bottom: 48px;
    opacity: 0;
    animation: appleFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
}

.dynamic-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.016em;
    display: inline-block;
    position: relative;
}

.dynamic-text::after {
    content: '|';
    color: var(--accent);
    margin-left: 2px;
    animation: appleBlink 1s infinite;
}

@keyframes appleFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes appleBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: appleFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
}

.apple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    text-decoration: none;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid transparent;
    min-width: 140px;
}

.apple-button.primary {
    background-color: var(--accent);
    color: var(--white);
}

.apple-button.primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.apple-button.secondary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.apple-button.secondary:hover {
    background-color: rgba(0, 113, 227, 0.1);
    transform: scale(1.02);
}


.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.scroll-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


.skills-section {
    max-width: 980px;
    margin: 300px auto 120px;
    padding: 0 22px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 64px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.skill-card {
    padding: 32px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    aspect-ratio: 6/8;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.16667;
    letter-spacing: -0.009em;
    margin-bottom: 12px;
    color: var(--primary);
}

.skill-card p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--gray-light);
    color: var(--text);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: 1px solid var(--gray-border);
}


.portfolio-section {
    max-width: 980px;
    margin: 120px auto;
    padding: 0 22px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 9/12;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: none;
    border: 1px solid #cccccc; /* 细淡灰色边框 */
}

.portfolio-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.9) 0%, rgba(245, 87, 108, 0.9) 100%);
}

.portfolio-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.9) 0%, rgba(0, 242, 254, 0.9) 100%);
}

.portfolio-item:hover {
    transform: translateY(-8px); /* 向上移动8px */
    box-shadow: none;
    border: 1px solid #999999; /* 悬停时使用较深的淡灰色细边框 */
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    color: white;
    transform: translateY(0); /* 移除默认位移 */
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-item h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: -0.009em;
}

.portfolio-item p {
    font-size: 14px;
    opacity: 0.9;
    letter-spacing: -0.016em;
}

/* 滚动按钮样式 */
.scroll-container-wrapper {
    position: relative;
    margin: 0 -10px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    /* 重置 */
    margin: 0;
    padding: 0;
    /* 回归到flex布局但增加内边距 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 重要：增加内边距调整 */
    padding: 12px;
}

.scroll-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-btn svg {
    /* 让SVG图标适应容器 */
    width: 100%;
    height: 100%;
    fill: var(--text);
    /* 确保SVG内容在内部完全居中 */
    display: block;
    object-fit: contain;
}

.scroll-btn-left {
    left: 0;
}

.scroll-btn-right {
    right: 0;
}

/* 响应式设计 - 移动端隐藏滚动按钮 */
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
}

/* 深色模式适配 */
[data-theme="dark"] .scroll-btn {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--background);
}

[data-theme="dark"] .scroll-btn svg {
    fill: var(--text);
}

[data-theme="dark"] .scroll-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* 滚动按钮隐藏状态 */
.scroll-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.contact-section {
    max-width: 980px;
    margin: 120px auto;
    padding: 64px 22px;
    text-align: center;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-section h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}

.contact-section p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.381;
    letter-spacing: -0.022em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.022em;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 8px 16px;
    border-radius: 12px;
}

.contact-link:hover {
    background-color: rgba(0, 113, 227, 0.1);
    transform: translateX(4px);
}


.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}


footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 40px 22px;
    margin-top: 80px;
    font-size: 14px;
    letter-spacing: -0.01em;
}

footer p {
    margin-bottom: 8px;
    opacity: 0.8;
}

footer .beian {
    margin-top: 16px;
    font-size: 12px;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

footer .beian a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer .beian a:hover {
    opacity: 1;
}

/* 项目按钮样式 - From Uiverse.io by gharsh11032000 */
.project-button {
  position: relative;
  width: 120px;
  height: 40px;
  background-color: #000;
  display: flex;
  align-items: center;
  color: white;
  flex-direction: column;
  justify-content: center;
  border: none;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
}

.project-button::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -4px;
  top: -1px;
  margin: auto;
  width: 128px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-button::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.project-button:hover::after {
  filter: blur(30px);
}

.project-button:hover::before {
  transform: rotate(-180deg);
}

.project-button:active::before {
  transform: scale(0.7);
}

/* 渐变按钮样式 - From Uiverse.io by Spacious74 */
button {
  font-size: 1.4em;
  padding: 0.6em 0.8em;
  border-radius: 0.5em;
  border: none;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 3px #000000b4;
}

.container {
  position: relative;
  padding: 3px;
  background: linear-gradient(90deg, #03a9f4, #f441a5);
  border-radius: 0.9em;
  transition: all 0.4s ease;
  display: inline-block;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 0.9em;
  z-index: -10;
  filter: blur(0);
  transition: filter 0.4s ease;
}

.container:hover::before {
  background: linear-gradient(90deg, #03a9f4, #f441a5);
  filter: blur(1.2em);
}
.container:active::before {
  filter: blur(0.2em);
}

/* From Uiverse.io by vikas7754 - 修改为微信风格 */ 
.tooltip-container {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 17px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    width: fit-content;
}

.tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border-radius: 15px;
    background: #f5f5f5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    z-index: 100;
    min-width: 220px;
}

.profile {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tooltip-container:hover .tooltip {
    top: -150px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.icon {
    text-decoration: none;
    color: #fff;
    display: block;
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.layer {
    width: 55px;
    height: 55px;
    transition: transform 0.3s;
}

.icon:hover .layer {
    transform: rotate(-35deg) skew(20deg);
}

.layer span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border: 1px solid #fff;
    border-radius: 10px;
    transition: all 0.3s;
}

.layer span,
.text {
    color: #07C160; /* 微信绿色 */ 
    border-color: #07C160;
}

.icon:hover.layer span {
    box-shadow: -1px 1px 3px #07C160;
}

.icon .text {
    position: absolute;
    left: 50%;
    bottom: -5px;
    opacity: 0;
    font-weight: 500;
    transform: translateX(-50%);
    transition: bottom 0.3s ease, opacity 0.3s ease;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.icon:hover .text {
    bottom: -35px;
    opacity: 1;
}

.icon:hover .layer span:nth-child(1) {
    opacity: 0.2;
}
.icon:hover .layer span:nth-child(2) {
    opacity: 0.4;
    transform: translate(5px, -5px);
}
.icon:hover .layer span:nth-child(3) {
    opacity: 0.6;
    transform: translate(10px, -10px);
}
.icon:hover .layer span:nth-child(4) {
    opacity: 0.8;
    transform: translate(15px, -15px);
}
.icon:hover .layer span:nth-child(5) {
    opacity: 1;
    transform: translate(20px, -20px);
}

.layer span i {
    font-size: 28px;
    line-height: 55px;
    text-align: center;
    color: #07C160;
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.img {
    width: 52px;
    height: 52px;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid #07C160;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #07C160;
}

.name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.username {
    font-size: 14px;
    color: #666;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.about {
    color: #07C160;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 13px;
    margin-top: 3px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #07C160;
    border-radius: 50%;
}

/* 默认隐藏移动端主题切换按钮 - 仅在移动端媒体查询中显示 */
.mobile-theme-toggle {
    display: none;
    z-index: 1010;
}


@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-button {
        display: block;
    }
    
    /* 隐藏桌面端导航链接 */
    .desktop-nav {
        display: none;
    }
    

    
    /* 移动端导航栏布局调整 */
    .nav-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        height: 44px;
        padding: 0 16px;
    }
    
    /* 汉堡菜单按钮在移动端始终显示在左侧 */
    .mobile-menu-button {
        display: block;
        justify-self: start;
        position: relative;
        z-index: 1010;
        /* 覆盖通用button样式，移除拟态效果 */
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 8px !important;
        color: inherit !important;
        font-size: inherit !important;
        box-shadow: none !important;
    }
    
    /* Logo链接样式调整 - 保持居中 */
    .logo-link {
        justify-self: center;
        position: static;
        transform: none;
    }
    
    /* 移动端主题切换按钮始终显示在右侧 */
    .mobile-theme-toggle {
        display: block;
        justify-self: end;
        z-index: 1010;
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .dynamic-text {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .apple-button {
        width: auto;
        flex: 1;
        min-width: 120px;
        max-width: 180px;
    }

    .skills-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }
    
    /* 移动端减小各区域间距 */
    .skills-section,
    .portfolio-section {
        margin: 40px auto;
    }
    
    .contact-section {
        margin: 40px auto;
        padding: 32px 16px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 16px;
    }
    
    /* 移动端页脚字体大小调整 */
    footer {
        font-size: 12px;
        padding: 30px 16px;
    }
    
    footer .beian {
        font-size: 10px;
        gap: 6px;
    }
}


.nav-links .theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 16px;
    margin-top: 2px;
}


.toggle-wrapper { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: relative; 
  border-radius: .5em; 
  padding: .125em; 
  background-image: linear-gradient(to bottom, #d5d5d5, #e8e8e8); 
  box-shadow: 0 1px 1px rgb(255 255 255 / .6); 
  font-size: 0.8em; 
}

.toggle-checkbox { 
  appearance: none; 
  position: absolute; 
  z-index: 1; 
  border-radius: inherit; 
  width: 100%; 
  height: 100%; 
  font: inherit; 
  opacity: 0; 
  cursor: pointer; 
}

.toggle-container { 
  display: flex; 
  align-items: center; 
  position: relative; 
  border-radius: .375em; 
  width: 3em; 
  height: 1.5em; 
  background-color: #e8e8e8; 
  box-shadow: inset 0 0 .0625em .125em rgb(255 255 255 / .2), inset 0 .0625em .125em rgb(0 0 0 / .4); 
  transition: background-color .4s linear; 
}

.toggle-checkbox:checked + .toggle-container { 
  background-color: #f3b519; 
}

.toggle-button { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: absolute; 
  left: .0625em; 
  border-radius: .3125em; 
  width: 1.375em; 
  height: 1.375em; 
  background-color: #e8e8e8; 
  box-shadow: inset 0 -.0625em .0625em .125em rgb(0 0 0 / .1), inset 0 -.125em .0625em rgb(0 0 0 / .2), inset 0 .1875em .0625em rgb(255 255 255 / .3), 0 .125em .125em rgb(0 0 0 / .5); 
  transition: left .4s; 
}

.toggle-checkbox:checked + .toggle-container > .toggle-button { 
  left: 1.5625em; 
}

.toggle-button-circles-container { 
  display: grid; 
  grid-template-columns: repeat(3, min-content); 
  gap: .125em; 
  position: absolute; 
  margin: 0 auto; 
}

.toggle-button-circle { 
  border-radius: 50%; 
  width: .125em; 
  height: .125em; 
  background-image: radial-gradient(circle at 50% 0, #f5f5f5, #c4c4c4); 
}


[data-theme="dark"] .toggle-wrapper {
    background-image: linear-gradient(to bottom, #4a4a4a, #5d5d5d);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .toggle-button {
    background-color: #3a3a3a;
    box-shadow: inset 0 -.0625em .0625em .125em rgba(0, 0, 0, 0.3), inset 0 -.125em .0625em rgba(0, 0, 0, 0.4), inset 0 .1875em .0625em rgba(255, 255, 255, 0.1), 0 .125em .125em rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .toggle-button-circle {
    background-image: radial-gradient(circle at 50% 0, #4a4a4a, #333333);
}

/* From Uiverse.io by gharsh11032000 */
.project-button {
  position: relative;
  width: 120px;
  height: 40px;
  background-color: #000;
  display: flex;
  align-items: center;
  color: white;
  flex-direction: column;
  justify-content: center;
  border: none;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.project-button::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -4px;
  top: -1px;
  margin: auto;
  width: 128px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-button::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.project-button:hover::after {
  filter: blur(30px);
}

.project-button:hover::before {
  transform: rotate(-180deg);
}

.project-button:active::before {
  transform: scale(0.7);
}

/* 深色模式适配 */
/* 进度条基础样式 */
.skill-progress-bar {
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 1s ease-in-out;
}

/* 深色模式适配 */
body[data-theme="dark"] .skill-progress-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 深色模式下除英雄区域外的背景设置为纯黑色 */
/* 删除强制的黑色背景，使用变量控制 */

/* 技能卡片滚动容器样式 */
.skills-scroll-container::-webkit-scrollbar {
    display: none;
}

.skills-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 进度条样式 */
.skill-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 最多显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    cursor: pointer; /* 显示指针表明可交互 */
    position: relative;
}

/* 添加自定义tooltip样式，提升用户体验 */
.skill-card p:hover {
    transition: color 0.2s ease;
}

/* 自定义tooltip容器样式 */
.custom-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: pre-wrap;
    max-width: 300px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 深色模式下的tooltip样式调整 */
body[data-theme="dark"] .custom-tooltip {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.skill-progress-container {
    margin-top: auto; /* 推到底部 */
    padding-top: 15px;
}

.skill-progress-item {
    margin-bottom: 10px;
}

.skill-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    font-weight: 600;
}