* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.3s ease;
    cursor: none;
}

:root {
    --primary: #FF85A2;
    --secondary: #FFB6C1;
    --dark: #5D4157;
    --light: #FFF0F5;
    --accent: #A5DEE5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 182, 193, 0.9);
    --text-color: #5D4157;
    --shadow-color: rgba(157, 97, 145, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4E9 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 40px;
    font-family: 'Comfortaa', cursive;
    overflow-x: hidden;

    /* cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FF85A2" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/><circle cx="12" cy="12" r="3" fill="%23FF85A2"/></svg>'), auto; */
}

.theme-pink-purple {
    --primary: #FF85A2;
    --secondary: #FFB6C1;
    --dark: #5D4157;
    --light: #FFF0F5;
    --accent: #A5DEE5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 182, 193, 0.9);
    --text-color: #5D4157;
}

.theme-blue-pink {
    --primary: #7FB5FF;
    --secondary: #B8E5FF;
    --dark: #4A696D;
    --light: #F0FCFF;
    --accent: #FF9E9E;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(184, 229, 255, 0.9);
    --text-color: #4A696D;
}

.theme-lavender {
    --primary: #C4ADFF;
    --secondary: #D9CFFF;
    --dark: #4B3B76;
    --light: #F7F3FF;
    --accent: #FFB8B8;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(217, 207, 255, 0.9);
    --text-color: #4B3B76;
}

.theme-mint {
    --primary: #7FDFD4;
    --secondary: #C6FFFA;
    --dark: #3C746D;
    --light: #F0FFFD;
    --accent: #FFB6C1;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(198, 255, 250, 0.9);
    --text-color: #3C746D;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow-color);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    font-family: 'Mochiy Pop One', sans-serif;
}

.logo i {
    color: var(--primary);
    margin-right: 10px;
    animation: bounce 2s infinite;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-family: 'Comfortaa', cursive;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links i {
    margin-right: 8px;
    font-size: 18px;
}

/* 主题切
换器 */
.theme-switcher {
    position: fixed;
    right: 20px;
    top: 90px;
    z-index: 99;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: float 6s infinite ease-in-out;
}

.theme-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 8px 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.active {
    border-color: var(--dark);
    transform: scale(1.15);
}

.theme-1 {
    background: linear-gradient(135deg, #FF85A2 0%, #FFB6C1 100%);
}

.theme-2 {
    background: linear-gradient(135deg, #7FB5FF 0%, #B8E5FF 100%);
}

.theme-3 {
    background: linear-gradient(135deg, #C4ADFF 0%, #D9CFFF 100%);
}

.theme-4 {
    background: linear-gradient(135deg, #7FDFD4 0%, #C6FFFA 100%);
}

/* 英雄区域样式 */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100% 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Mochiy Pop One', sans-serif;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Comfortaa', cursive;
    animation: pulse 2s infinite;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-color);
    animation: none;
}

.btn:hover::before {
    opacity: 1;
}

/* 个人简介区域 */
.profile {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 35px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.profile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.1;
    transform: rotate(30deg);
    animation: rotateBg 20s linear infinite;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 5px solid var(--primary); */
    box-shadow: 0 10px 25px var(--shadow-color);
    margin-right: 40px;
    transition: transform 0.5s;
    position: relative;
    z-index: 2;
}

.profile-avatar:hover {
    transform: rotate(5deg) scale(1.05);
}

.profile-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.profile-name {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Mochiy Pop One', sans-serif;
}

.profile-title {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 700;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* 作品展示区域 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    font-family: 'Mochiy Pop One', sans-serif;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--primary);
    margin: 15px auto;
    border-radius: 3px;
    animation: stretch 2s infinite alternate;
}

.portfolio {
    padding: 80px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: none;
    padding: 12px 25px;
    margin: 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 5px 15px var(--shadow-color);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    font-family: 'Comfortaa', cursive;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    animation: fadeInUp 1s ease-out;
}

.portfolio-item:hover {
    transform: translateY(-12px) rotate(2deg);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.portfolio-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
    font-family: 'Mochiy Pop One', sans-serif;
}

.portfolio-desc {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* 联系区域 */
.contact {
    padding: 80px 0;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
}

.contact-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    width: 280px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: transform 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    animation: fadeInUp 1s ease-out;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.03);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.contact-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-family: 'Mochiy Pop One', sans-serif;
}

/* 装饰元素 */
.decoration {
    position: absolute;
    z-index: 1;
    opacity: 0.7;
    pointer-events: none;
}

.star {
    font-size: 24px;
    color: var(--primary);
    animation: float 5s infinite ease-in-out;
}

.heart {
    font-size: 20px;
    color: var(--secondary);
    animation: pulse 2s infinite alternate;
}

.bubble {
    position: absolute;
    background: var(--glass-bg);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    animation: float 8s infinite ease-in-out;
}


/* 鼠标跟随元素 */
#mouse {
    z-index: 999999999;
    position: relative;
}

.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 999999999;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 999999999;
    transform: translate(-50%, -50%);
}

/* 鼠标点击特效 */
.click-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999999;
    transform: translate(-50%, -50%);
    animation: clickAnimation 0.5s ease-out forwards;
}

@keyframes clickAnimation {
    0% {
        width: 0;
        height: 0;
        opacity: 0.7;
        border: 2px solid var(--primary);
    }

    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
        border: 8px solid var(--accent);
    }
}

/* 动画关键帧 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stretch {
    0% {
        transform: scaleX(0.8);
    }

    100% {
        transform: scaleX(1.2);
    }
}

@keyframes rotateBg {
    0% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(390deg);
    }
}

/* 页脚区域 */
footer {
    background: var(--header-bg);
    color: var(--dark);
    padding: 50px 0;
    text-align: center;
    margin-top: 80px;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -5px 20px var(--shadow-color);
    position: relative;
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    overflow: hidden;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--dark);
    margin: 0 12px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    animation: fadeInUp 1s ease-out;
}

.social-links a:hover {
    /* background: var(--primary); */
    color: white;
    transform: translateY(-5px) scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 25px;
    }

    .theme-switcher {
        top: auto;
        bottom: 20px;
        right: 20px;
        flex-direction: row;
    }

    .theme-option {
        margin: 0 8px;
    }

    /* 在移动设备上隐藏自定义鼠标效果 */
    .cursor-follower,
    .cursor-dot {
        display: none;
    }
}