/* 全局样式和CSS变量 */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #151520;
    --accent-bg: #1a1a2e;
    --primary-color: #00d4ff;
    --secondary-color: #a855f7;
    --accent-color: #10f054;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #a855f7);
    --gradient-secondary: linear-gradient(135deg, #a855f7, #10f054);
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    --neon-glow: 0 0 20px rgba(0, 212, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 背景效果容器 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
}

/* 文字下雨效果 */
#text-rain {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.rain-text {
    position: absolute;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
    text-shadow: 0 0 10px currentColor;
    white-space: nowrap;
    animation: rain-fall linear infinite;
    opacity: 0;
}

.rain-text.secondary {
    color: var(--secondary-color);
}

.rain-text.accent {
    color: var(--accent-color);
}

.rain-text.glow {
    animation: rain-fall-glow linear infinite;
}

.rain-text.spiritual-fruit {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 0 15px #FFD700, 0 0 25px #FF6B35;
    animation: rain-fall-fruit linear infinite;
}

@keyframes rain-fall-fruit {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rain-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rain-fall-glow {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
        text-shadow: 0 0 10px currentColor;
    }
    10% {
        opacity: 1;
        text-shadow: 0 0 15px currentColor;
    }
    50% {
        text-shadow: 0 0 25px currentColor, 0 0 35px currentColor;
    }
    90% {
        opacity: 1;
        text-shadow: 0 0 15px currentColor;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
        text-shadow: 0 0 10px currentColor;
    }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dynamic-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.dynamic-time:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: scale(1.02);
}

.dynamic-time i {
    color: var(--accent-color);
    animation: pulse-clock 2s infinite;
}

.time-display {
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes pulse-clock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--neon-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero区域样式 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.avatar-container {
    position: relative;
    margin: 0 auto 2rem;
    width: 150px;
    height: 150px;
}

.avatar-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: pulse 2s ease-in-out infinite alternate;
    filter: blur(20px);
    opacity: 0.7;
}

.avatar {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-primary);
    box-shadow: var(--box-shadow);
    z-index: 1;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 人生格言 */
.life-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(142, 45, 226, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.life-motto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.motto-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.8;
}

.motto-text {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 1.3s both;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-family: var(--font-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--box-shadow);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 通用区域样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我区域 */
.about-section {
    background: var(--secondary-bg);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-card {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    animation: rotate 4s linear infinite;
    z-index: -2;
}

.about-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--accent-bg);
    border-radius: 13px;
    z-index: -1;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.profile-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.info-list strong {
    color: var(--text-primary);
}

.personality-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.radar-chart-container {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.interest-cloud {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.cloud-item {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.cloud-item[data-size="small"] {
    font-size: 0.8rem;
    animation-delay: 0s;
}

.cloud-item[data-size="medium"] {
    font-size: 1rem;
    animation-delay: 1s;
}

.cloud-item[data-size="large"] {
    font-size: 1.2rem;
    animation-delay: 2s;
}

.cloud-item:hover {
    transform: scale(1.1);
    box-shadow: var(--neon-glow);
}



/* 兴趣爱好区域 */
.hobbies-section {
    background: var(--secondary-bg);
}

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

.hobby-card {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(16, 240, 84, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.hobby-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 240, 84, 0.3);
}

.hobby-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: var(--text-primary);
}

.hobby-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hobby-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hobby-card.cooking {
    border-color: rgba(255, 165, 0, 0.3);
}

.hobby-card.cooking:hover {
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.3);
}

.hobby-card.cooking .hobby-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.hobby-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

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

.nature-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    background: rgba(16, 240, 84, 0.2);
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.1);
    background: rgba(16, 240, 84, 0.3);
}



/* 联系方式区域 */
.contact-section {
    background: var(--secondary-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: var(--text-primary);
}

.contact-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-form {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* 页脚样式 */
.footer {
    background: var(--primary-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

/* 动画定义 */
@keyframes pulse {
    0% { transform: scale(0.95); }
    100% { transform: scale(1.05); }
}

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

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(168, 85, 247, 0.5);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 15, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dynamic-time {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .dynamic-time .time-display {
        display: none;
    }
    
    .dynamic-time::after {
        content: "实时";
        font-size: 0.7rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .life-motto {
        margin: 2rem 0 1.5rem;
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }
    
    .motto-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .motto-icon {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    

    

    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-card,
    .hobby-card,
    .contact-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
}