/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('./images/背景.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background-color: rgba(192, 224, 240, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;  /* 在logo和社交按钮之间创建空间 */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;  /* 防止图片被压缩 */
    transition: transform 0.3s ease;  /* 添加过渡效果 */
    cursor: pointer;  /* 添加手型光标 */
}

.logo-image:hover {
    transform: scale(1.2);  /* 鼠标悬停时放大1.2倍 */
}

.logo-image.rotate {
    animation: rotate360 1s linear;  /* 添加旋转动画 */
    transform: scale(1.2);  /* 保持放大状态 */
}

@keyframes rotate360 {
    from {
        transform: scale(1.2) rotate(0deg);  /* 从放大状态开始旋转 */
    }
    to {
        transform: scale(1.2) rotate(360deg);  /* 旋转结束时保持放大 */
    }
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;  /* 防止文字换行 */
}

.nav-links {
    display: none;
}

.social-links {
    display: flex;
    gap: 1rem;  /* 减小图标间距 */
}

.social-icon {
    width: 35px;  /* 稍微减小图标尺寸 */
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon img {
    width: 20px;  /* 调整图标大小 */
    height: 20px;
    object-fit: contain;
}

.bilibili-icon {
    background-color: #00A1D6;
}

.weibo-icon {
    background-color: #E6162D;
}

.twitter-icon {
    background-color: #000000;
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    margin-bottom: 250px;  /* 调整底部间距适应新的页脚高度 */
    min-height: calc(100vh - 80px - 250px);
    position: relative;
    z-index: 1;
}

.hero {
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    display: inline-block;
    padding: 2rem 3rem;
    background: rgba(192, 224, 240, 0.25);  /* 使用主题色，降低透明度 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(192, 224, 240, 0.3);  /* 使用主题色的阴影 */
    border: 1px solid rgba(192, 224, 240, 0.4);  /* 使用主题色的边框 */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(192, 224, 240, 0.5);  /* 使用主题色的阴影 */
}

.hero h1 .text-primary {
    color: #c0e0f0;  /* 恢复主题色 */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);  /* 深色阴影提高可读性 */
}

.hero h1 .text-white {
    color: #385c78;  /* 使用主题色的深色变体 */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(192, 224, 240, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #385c78;  /* 使用主题色的深色变体 */
    margin: 0;
    text-shadow: 1px 1px 2px rgba(192, 224, 240, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;  /* 增加字间距提高可读性 */
}

.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(192, 224, 240, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 页脚样式 */
.footer {
    background-color: rgba(192, 224, 240, 0.9);
    padding: 2rem 0 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
    text-align: center;
}

.footer-section p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #385c78;
    text-align: center;
}

.friend-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.2rem;
    justify-content: center;
}

.friend-link {
    color: #385c78;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-align: center;
}

.friend-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .social-icon img {
        width: 15px;
        height: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .friend-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
} 