@import "./styles.css";


:root{
    /* 扩展styles.css中的Bootstrap变量 */
    --h-title-color: var(--bs-primary);
    --gradient-blue: var(--bs-primary);
    --gradient-purple: var(--bs-secondary);
    --gradient-pink: var(--bs-pink);
    --light-bg: var(--bs-white);
    --text-dark: var(--bs-dark);
    --text-light: var(--bs-white);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --main-gradient: linear-gradient(135deg, var(--gradient-blue), var(--gradient-purple), var(--gradient-pink));
    --light-gradient: linear-gradient(135deg, rgba(82, 113, 255, 0.05), rgba(160, 91, 255, 0.05), rgba(255, 97, 171, 0.05));
    --button-gradient: linear-gradient(90deg, var(--gradient-blue), var(--gradient-purple));
    --border-radius: 12px;
}

/* 扩展Bootstrap的body样式 */
body {
    background-color: var(--light-bg);
    font-family: var(--bs-body-font-family);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px; /* 为固定导航菜单留出空间 */
}

.header {
    border-bottom: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header .navbar-brand,
.header .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header .nav-link {
    position: relative;
}

.header .nav-link:hover {
    color: var(--gradient-purple) !important;
    transform: translateY(-2px);
}

.header .nav-link:not(.active):hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-purple);
    border-radius: 2px;
    margin: 0 10px;
    opacity: 0.6;
}

.header .nav-link.active {
    color: var(--gradient-blue) !important;
    position: relative;
}

.header .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--main-gradient);
    border-radius: 2px;
    margin: 0 10px;
}

.bg-bottom {
    background: var(--main-gradient);
    position: relative;
}

.top-section {
    position: relative;
    padding: 8rem 0;
    background-position: center;
    background-size: cover;
    height: 22rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-section h2 {
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
    font-size: 3rem; /* 减小桌面端字体大小 */
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(82, 113, 255, 0.8), rgba(160, 91, 255, 0.8), rgba(255, 97, 171, 0.8));
}

section header h2 {
    font-family: 'Inter', 'Poppins', sans-serif !important;
    color: var(--gradient-blue);
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

section .main-body {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-dark);
}

.bg-gradient-primary-to-secondary-light {
    background: var(--light-bg) !important;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    margin: 20px 0;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: none;
}

.bg-gradient-primary-to-secondary-light::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--main-gradient);
}

.bg-gradient-primary-to-secondary-gray {
    background: var(--light-bg) !important;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    margin: 20px 0;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: none;
}

.bg-gradient-primary-to-secondary-gray::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--main-gradient);
}

.bg-gradient-primary-to-secondary-dark {
    background: var(--main-gradient) !important;
    color: var(--text-light);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    margin: 20px 0;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary-to-secondary-dark header h2 {
    color: var(--text-light);
}

.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(82, 113, 255, 0.8), rgba(160, 91, 255, 0.8), rgba(255, 97, 171, 0.8));
}

#avatar {
    position: relative;
    text-align: center;
    z-index: 9000;
}

#avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: var(--card-shadow);
    border: 4px solid white;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#avatar img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 全屏时头像更小 */
@media screen and (min-width: 1400px) {
    #avatar img {
        width: 120px;
        height: 120px;
    }
}

@media screen and (min-width: 1600px) {
    #avatar img {
        width: 120px;
        height: 120px;
    }
}

@media screen and (min-width: 1920px) {
    #avatar img {
        width: 120px;
        height: 120px;
    }
}

/* Social Links Styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid white;
    border-radius: 50%;
    color: var(--gradient-purple);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1;
    /* 确保完全圆形 */
    min-width: 50px;
    min-height: 50px;
    flex-shrink: 0;
}

.social-link i {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--gradient-purple);
    border-color: white;
    color: white;
    box-shadow: 0 8px 25px rgba(160, 91, 255, 0.4);
}

/* Location Styles */
.location {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap; /* 防止换行 */
}

.location i {
    color: white;
    margin-right: 8px;
    font-size: 18px;
}

.location-text {
    color: white;
}

@media screen and (max-width: 991px) {
    body {
        padding-top: 90px; /* 移动设备上导航菜单高度可能更大 */
    }
    
    .header {
        padding: 10px 0;
    }
    
    .header.scrolled {
        padding: 8px 0;
    }
    
    .top-section {
        padding: 8rem 0; /* 保持与桌面版一致的padding */
        height: 22rem; /* 保持与桌面版一致的高度 */
    }
    
    .top-section .row {
        flex-direction: column;
        text-align: center;
    }
    
    .top-section h2 {
        font-size: 2rem !important; /* 进一步减小字体大小 */
        margin: 0; /* 保持与桌面版一致的margin */
    }
    
    #avatar {
        margin: 0; /* 保持与桌面版一致，让flex布局处理间距 */
    }
    
    #avatar img {
        width: 120px;
        height: 120px;
    }
    
    /* 移动端location样式调整 */
    .location {
        font-size: 14px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 18px;
    }
}

/* 针对更小的手机屏幕进一步优化 */
@media screen and (max-width: 767px) {
    .top-section {
        padding: 8rem 0; /* 保持与桌面版一致的padding */
        height: 22rem; /* 保持与桌面版一致的高度 */
    }
    
    .top-section h2 {
        font-size: 1.8rem !important; /* 更小屏幕上进一步减小字体 */
        margin: 0; /* 保持与桌面版一致的margin */
    }
    
    #avatar img {
        width: 100px;
        height: 100px;
    }
    
    .location {
        font-size: 12px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 16px;
    }
}

/* 针对非常小的屏幕 */
@media screen and (max-width: 480px) {
    .top-section {
        padding: 8rem 0; /* 保持与桌面版一致的padding */
        height: 22rem; /* 保持与桌面版一致的高度 */
    }
    
    .top-section h2 {
        font-size: 1.5rem !important;
        margin: 0; /* 保持与桌面版一致的margin */
    }
    
    #avatar img {
        width: 90px;
        height: 90px;
    }
    
    .location {
        font-size: 11px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 14px;
    }
}

/* 现代化的按钮样式 */
.btn-modern {
    background: var(--button-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(82, 113, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::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: all 0.5s ease;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(82, 113, 255, 0.4);
}

.btn-modern:hover::before {
    left: 100%;
}

/* 卡片悬停效果 */
section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* 图标样式 */
.bi {
    margin-right: 10px;
    color: var(--gradient-purple);
    transition: transform 0.3s ease;
}

section:hover .bi {
    transform: scale(1.1);
}

.bg-gradient-primary-to-secondary-dark .bi {
    color: var(--text-light);
}

/* 粒子背景样式 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 主页大标题样式 */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* 特性卡片 */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--light-gradient);
    color: var(--gradient-blue);
    font-size: 1.5rem;
}

/* 页脚样式 */
footer {
    padding: 3rem 0;
    background: var(--main-gradient);
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    color: white;
}

/* 确保experience部分的图标颜色与其他部分一致 */
#experience .bi {
    color: var(--gradient-purple);
}

/* 确保experience部分的标题颜色与其他部分一致 */
#experience header h2 {
    color: var(--gradient-blue);
}


