/* 基础样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动漫背景图 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1578632767115-351597cf2477?w=1920') center/cover;
    opacity: 0.3;
    z-index: -1;
}

/* 毛玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 飘雪效果 */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 顶部导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-center {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

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

.lang-btn,
.settings-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover,
.settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.login-btn {
    background: #4F46E5;
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* 主内容区 */
.main-content {
    display: flex;
    gap: 40px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左侧个人信息区 */
.profile-section {
    flex: 0 0 400px;
}

/* 像素字体标题 */
.pixel-title {
    font-size: 64px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
}

.profile-card {
    padding: 30px;
}

.profile-quote {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
    font-weight: 500;
    border-left: 4px solid #4F46E5;
    padding-left: 16px;
}

.profile-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    padding-left: 20px;
}

/* 社交链接 */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.social-btn .icon {
    font-size: 18px;
}

.app-link {
    margin-top: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    width: fit-content;
}

.app-btn .icon {
    font-size: 20px;
}

/* 右侧内容区 */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

/* 主要内容卡片 */
.content-card {
    padding: 40px;
    text-align: center;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 32px;
    color: white;
    margin-bottom: 8px;
    font-weight: bold;
}

.card-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* 小卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.small-card {
    padding: 24px;
    text-align: center;
    cursor: pointer;
}

.card-avatar {
    font-size: 36px;
    margin-bottom: 12px;
}

.small-card h4 {
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.small-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 右侧悬浮按钮 */
.floating-buttons {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.float-btn {
    padding: 20px;
    text-align: center;
    cursor: pointer;
    width: 140px;
}

.float-btn .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.float-btn .label {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.float-btn .sublabel {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .floating-buttons {
        right: 20px;
    }

    .float-btn {
        width: 100px;
        padding: 16px;
    }

    .float-btn .icon {
        font-size: 24px;
    }

    .float-btn .label {
        font-size: 14px;
    }
}

@media (max-width: 968px) {
    .main-content {
        flex-direction: column;
        padding: 40px 20px;
    }

    .profile-section {
        flex: 1;
    }

    .pixel-title {
        font-size: 48px;
    }

    .floating-buttons {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .nav-center {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }

    .pixel-title {
        font-size: 36px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
