:root {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --accent-color: #f59e0b;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --light-gray: #f9f9f9;
    --white: #fff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --container-padding: 20px;
    --section-spacing: 80px;
    --cute-blue: #a5d7fd;
    --cute-pink: #ffd6e0;
    --cute-yellow: #ffe9a8;
    --cute-text: #6a6a6a;
    --cute-border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-gray);
    overflow-x: hidden;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* 头部样式 */
.header {
    background: rgba(17, 25, 40, 0.95);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Arial Black", "Noto Sans SC", sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.3);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    position: relative;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.5px;
    background: transparent;
    overflow: hidden;
}

.nav a:hover {
    color: #a5b4fc;
    text-shadow: 0 0 8px rgba(165, 180, 252, 0.5);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #a5b4fc, #6366f1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: #a5b4fc;
    background: rgba(165, 180, 252, 0.1);
}

/* 添加滚动效果 */
.header.scrolled {
    background: rgba(17, 25, 40, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 修改 hero 区域样式 */
.hero {
    background: linear-gradient(135deg, #1a1f35 0%, #2a3149 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 添加动态背景 */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(165, 180, 252, 0.1) 0%, 
            transparent 50%);
    animation: rotate 30s linear infinite;
}

/* 欢迎文字样式 */
.welcome-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.text-animation {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(165, 180, 252, 0.5);
}

.subtitle-animation {
    font-size: 36px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.3);
}

/* 添加新的动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 修改 profile-card 样式 */
.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 200px;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-title {
    font-size: 48px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-bottom: 30px;
}

/* 修改按钮样式 */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* 添加光晕效果 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(165, 180, 252, 0.1) 0%, 
        transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 个人亮点展示区样式 */
.highlights {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #f6f9fc 0%, #f1f4f9 100%);
    position: relative;
    overflow: hidden;
}

.highlights .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.message-board {
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.board-header {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.board-header h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 4px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 500;
}

.board-header p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    position: relative;
    opacity: 0.9;
}

.messages-container {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    margin: 10px;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.message-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out forwards;
}

.message-item.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.user-name {
    color: #3b82f6;
    padding: 2px 0;
    font-size: 15px;
}

.message-time {
    font-size: 12px;
    color: #94a3b8;
}

.message-content {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 16px;
}

.message-footer {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 12px;
}

.reply-section {
    margin-left: 16px;
    position: relative;
}

.reply-section::before {
    display: none;
}

.reply {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.reply .user-name {
    display: block;
    margin-bottom: 4px;
}

.message-form {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.message-form textarea,
.message-form input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.message-form textarea:focus,
.message-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.form-footer {
    display: flex;
    gap: 12px;
}

.form-footer input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.message-form button {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.message-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.message-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: 0.5s;
}

.message-form button:hover::before {
    left: 100%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 照片墙样式优化 */
.photo-wall {
    padding: var(--section-spacing) 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    font-family: "Times New Roman", serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 4/3;
    border: none;
    will-change: transform;
    backface-visibility: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    loading: lazy;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    transform: translateY(20px);
}

.photo-overlay p {
    font-size: 16px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 联系方式样式 */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 169, 110, 0.2);
    will-change: transform;
    backface-visibility: hidden;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item .icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: inline-block;
}

.contact-item h3 {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-item p {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.qr-code {
    width: 180px;
    height: 180px;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    background: white;
    border: 1px solid rgba(201, 169, 110, 0.2);
    transition: all 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* 底部样式 */
.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
}

.footer-icon:hover {
    transform: translateY(-3px);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.copyright {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* 音乐控制按钮样式 */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.music-btn.playing {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 优化滚动性能 */
.messages-container {
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

/* 优化动画性能 */
.photo-item,
.contact-item,
.message-item {
    will-change: transform;
    backface-visibility: hidden;
}

/* 添加加载状态样式 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 优化焦点状态 */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* 添加骨架屏样式 */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .footer {
        bottom: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .footer-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
}

/* 加载动画样式 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1f35 0%, #2a3149 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-text {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    animation: glow 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.5);
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(165, 180, 252, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(165, 180, 252, 0.8),
                     0 0 30px rgba(165, 180, 252, 0.6),
                     0 0 40px rgba(165, 180, 252, 0.4);
    }
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    animation: progress 2s ease-in-out forwards;
}

@keyframes progress {
    to {
        width: 100%;
    }
}

/* 入场动画 */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 页面加载时的状态 */
body.loading {
    overflow: hidden;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes titleIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 可爱风格留言板 */
.message-board {
    background: var(--cute-blue);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: none;
}

.board-header {
    background: white;
    padding: 15px;
    text-align: center;
    border-bottom: 2px dashed var(--cute-border);
}

.cute-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 24px;
}

.messages-container {
    background: white;
    border-radius: 20px;
    margin: 15px;
    padding: 20px;
    position: relative;
    min-height: 300px;
}

.cute-character {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 100px;
    height: 100px;
    background-image: url('./images/cute-character.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.message-form {
    padding: 20px;
    background: white;
    border-radius: 0 0 25px 25px;
}

.form-wrapper {
    background: var(--cute-yellow);
    border-radius: 15px;
    padding: 15px;
    position: relative;
}

.cute-textarea {
    width: 100%;
    min-height: 80px;
    border: 2px solid var(--cute-border);
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    resize: none;
    background: white;
    transition: all 0.3s ease;
}

.cute-textarea:focus {
    outline: none;
    border-color: var(--cute-blue);
    box-shadow: 0 0 0 4px rgba(165, 215, 253, 0.2);
}

.cute-button {
    background: var(--cute-blue);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cute-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: #8ec8fb;
}

/* 消息气泡样式 */
.message-item {
    background: var(--cute-yellow);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    max-width: 80%;
}

.message-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--cute-yellow) transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonsIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 