/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 全局样式 */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f9f9f9; /* 与主容器背景色相同 */
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 主容器 - 现在占据整个屏幕 */
.main-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: #f9f9f9; /* 与页面背景色匹配 */
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    height: var(--navbar-height);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* 页面容器 - 水平滑动布局 */
.page-container {
    display: flex;
    width: 600%; /* 6个页面，每个页面100% */
    height: 100%;
    transition: transform 0.5s ease;
    position: absolute; /* 改为绝对定位 */
    top: 0;
    left: 0;
    bottom: 0;
    background-color: #f9f9f9; /* 与主容器背景色相同 */
}

/* 每个页面的基本样式 */
.resume-page {
    flex: 0 0 16.6666%;
    width: 16.6666%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    padding: 20px 0 60px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box; /* 确保内边距包含在高度计算中 */
}

/* 页面背景颜色 */
#cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#basic-info {
    background-color: var(--light-color);
}

#about {
    background-color: white;
}

#courses {
    background-color: var(--light-color);
}

#specialties {
    background-color: white;
}

#certificates {
    background-color: var(--light-color);
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* 页面导航按钮 */
.page-nav-buttons {
    position: absolute; /* 改为绝对定位而非固定定位 */
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 1010;
    background: none; /* 移除背景 */
    padding: 10px 0;
    backdrop-filter: none; /* 移除背景模糊 */
}

.prev-page-btn,
.next-page-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(74, 107, 255, 0.8); /* 半透明背景 */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.prev-page-btn:hover,
.next-page-btn:hover {
    background-color: #3a57e8;
    transform: translateY(-3px);
    color: white;
}

.prev-page-btn i,
.next-page-btn i {
    font-size: 1.5rem;
}

/* 页面指示器 */
.page-indicator {
    display: none; /* 完全隐藏这个元素 */
}

/* 首页滑动提示 */
.page-nav-hint {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pulse 2s infinite;
}

.page-nav-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 页脚 */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: var(--dark-color);
    color: white;
    z-index: 1020;
}

/* 封面部分相关样式 */
.profile-image-container {
    margin-bottom: 2rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border: 5px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.profile-image i {
    font-size: 120px;
}

/* 确保头像图片正确显示 */
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 个人基本信息 */
.info-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

.info-label {
    font-weight: 600;
    margin-right: 5px;
}

.info-content {
    color: #666;
}

/* 个人简介 */
.about-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.about-content .lead {
    font-weight: 500;
    color: var(--primary-color);
}

/* 专业课程 */
.course-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
    margin-bottom: 50px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.course-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.course-list {
    list-style-type: none;
    padding-left: 0;
}

.course-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.course-list li:last-child {
    border-bottom: none;
}

/* 专业特长 */
.specialty-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.specialty-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.specialty-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 技能条样式增强 */
.skill-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: var(--dark-color);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #8e9aff);
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

/* 专业领域标签 */
.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialty-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

/* 证书与奖项 */
.certificate-group {
    margin-bottom: 25px;
    position: relative;
}

.certificate-group h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
    color: var(--dark-color);
}

.certificate-group h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.certificate-list {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.certificate-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:last-child {
    margin-bottom: 0;
}

.certificate-icon {
    background-color: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.certificate-icon i {
    font-size: 1.5rem;
}

.certificate-info {
    flex: 1;
}

.certificate-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.certificate-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 3px;
    font-weight: 500;
}

.certificate-org {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* 证书互动效果 */
.certificate-item:hover, 
.certificate-item:active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 基础布局调整 */
    html, body {
        overflow-x: hidden;
    }
    
    .resume-page {
        padding: 15px 0 90px; /* 在移动端增加更多底部空间 */
    }
    
    /* 导航栏优化 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    /* 内容区域优化 */
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .title-underline {
        width: 60px;
        height: 3px;
    }
    
    /* 个人信息区调整 */
    .info-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .info-item {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0;
        padding: 8px;
        background-color: rgba(0, 0, 0, 0.02);
        border-radius: 5px;
        height: 100%;
    }
    
    .info-item i {
        margin-right: 8px;
        margin-bottom: 0;
        font-size: 0.9rem;
        color: var(--primary-color);
    }
    
    .info-label {
        font-size: 0.8rem;
        margin-right: 5px;
        white-space: nowrap;
    }
    
    .info-content {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    /* 技能条调整 */
    .skill-item {
        margin-bottom: 10px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-percentage {
        font-size: 0.9rem;
    }
    
    .skill-bar {
        height: 6px;
    }
    
    /* 课程卡片调整 */
    .course-card, .specialty-card, .certificate-list {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .course-icon {
        font-size: 2rem;
        margin-bottom: 0.7rem;
    }
    
    .course-card h3, .specialty-card h3, .certificate-group h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* 证书页面布局优化 */
    #certificates .row > div {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 在中小屏幕上调整样式 */
    .certificate-group h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .certificate-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .certificate-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .certificate-icon i {
        font-size: 1.3rem;
    }
    
    .certificate-info h4 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .certificate-date {
        font-size: 0.85rem;
    }
    
    .certificate-org {
        font-size: 0.8rem;
    }
    
    /* 导航控制优化 */
    .page-nav-buttons {
        bottom: 10px;
        background: none;
    }
    
    .prev-page-btn, .next-page-btn {
        width: 44px;
        height: 44px;
    }
    
    .prev-page-btn i, .next-page-btn i {
        font-size: 1.2rem;
    }
    
    /* 页面指示器调整 */
    .page-indicator {
        right: 7px;
    }
    
    .indicator-dot {
        width: 8px;
        height: 8px;
    }
    
    /* 页脚调整 */
    footer {
        padding: 5px 0 !important;
    }
    
    footer p {
        font-size: 0.8rem;
    }
    
    /* 封面页调整 */
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-image i {
        font-size: 80px;
    }
    
    #cover h1 {
        font-size: 1.8rem !important;
    }
    
    #cover .lead {
        font-size: 0.9rem;
    }
    
    /* 改进导航栏 */
    .navbar {
        padding: 0.4rem 0;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
    
    /* 改进页面内容区域 */
    .resume-page {
        padding: 15px 0 90px; /* 在移动端增加更多底部空间 */
    }
    
    /* 改进滑动指示器位置 */
    .page-indicator {
        right: 7px;
    }
    
    /* 改进内容间距 */
    .section-content {
        margin-top: 1rem;
    }
    
    /* 优化按钮触摸区域 */
    .prev-page-btn, .next-page-btn {
        width: 44px;
        height: 44px;
    }
    
    /* 只针对基本信息页面的移动布局 */
    #basic-info .mobile-info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    #basic-info .mobile-info-grid .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
    }
    
    #basic-info .info-item {
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 8px;
        padding: 10px;
        height: 100%;
        margin-bottom: 0;
        flex-direction: column;
        align-items: flex-start;
    }
    
    #basic-info .info-item i {
        font-size: 1rem;
        margin-bottom: 5px;
        color: var(--primary-color);
    }
    
    #basic-info .info-label {
        font-size: 0.85rem;
        display: inline-block;
    }
    
    #basic-info .info-content {
        font-size: 0.9rem;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 课程页面布局优化 */
    #courses .course-card {
        display: flex;
        flex-direction: column;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }
    
    #courses .course-icon {
        margin-bottom: 10px;
        align-self: flex-start;
    }
    
    #courses .course-icon i {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    /* 课程内容优化 */
    #courses .course-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    #courses .course-description {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 5px;
    }
    
    #courses .course-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 8px;
        align-items: center;
    }
    
    #courses .course-instructor,
    #courses .course-duration {
        font-size: 0.8rem;
        background-color: rgba(0, 0, 0, 0.05);
        padding: 3px 8px;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    /* 单列布局优化 */
    #courses .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* 课程图标颜色增强 */
    #courses .course-card:nth-child(1) .course-icon i {
        color: #FF6B6B;
    }
    
    #courses .course-card:nth-child(2) .course-icon i {
        color: #4ECDC4;
    }
    
    #courses .course-card:nth-child(3) .course-icon i {
        color: #FFD166;
    }
    
    #courses .course-card:nth-child(4) .course-icon i {
        color: #6A0572;
    }
    
    #courses .course-card:nth-child(5) .course-icon i {
        color: #1A936F;
    }
    
    #courses .course-card:nth-child(6) .course-icon i {
        color: #3D5A80;
    }
    
    /* 专业特长页面卡片优化 */
    .specialty-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .specialty-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    /* 技能条样式调整 */
    .skill-wrapper {
        gap: 12px;
    }
    
    .skill-item {
        margin-bottom: 10px;
    }
    
    .skill-info {
        margin-bottom: 5px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-percentage {
        font-size: 0.9rem;
    }
    
    .skill-bar {
        height: 6px;
    }
    
    /* 专业领域标签调整 */
    .specialty-tags {
        gap: 8px;
    }
    
    .specialty-tag {
        padding: 5px 12px;
        font-size: 0.85rem;
        border-radius: 15px;
    }
}

/* 小屏幕特别调整 */
@media (max-width: 576px) {
    /* 调整计算，确保正确高度 */
    :root {
        --navbar-height: 56px;
        --footer-height: 32px;
    }
    
    .page-container {
        height: calc(100% - 86px); /* 调整较小导航栏的高度 */
    }
    
    .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 10px; /* 增加底部空间 */
    }
    
    #cover h1 {
        font-size: 2rem !important;
    }
    
    #cover .lead {
        font-size: 1rem;
    }
    
    /* 修复iOS Safari上的滚动问题 */
    .resume-page {
        -webkit-overflow-scrolling: touch;
        padding: 10px 0 80px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* 调整标题字体大小 */
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    /* 减小内容元素间距 */
    .info-card, .course-card, .specialty-card, .certificate-list {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    /* 优化按钮位置，确保不遮挡内容 */
    .page-nav-buttons {
        bottom: 10px;
        gap: 25px;
    }
    
    /* 确保所有文字内容不会太大 */
    p {
        font-size: 0.95rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    #courses .course-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    #courses .course-icon i {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    
    #courses .course-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    #courses .course-description {
        font-size: 0.85rem;
    }
    
    #courses .course-meta {
        font-size: 0.75rem;
        gap: 8px;
    }
    
    /* 在超小屏幕上简化元数据显示 */
    #courses .course-instructor,
    #courses .course-duration {
        padding: 2px 6px;
        font-size: 0.75rem;
    }
    
    .specialty-card {
        padding: 12px;
    }
    
    .specialty-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .specialty-title::after {
        width: 40px;
        height: 2px;
    }
    
    .skill-name, .skill-percentage {
        font-size: 0.85rem;
    }
    
    .skill-bar {
        height: 5px;
    }
    
    .specialty-tag {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    /* 在小屏幕上改为单列布局 */
    #certificates .row {
        flex-direction: column;
    }
    
    #certificates .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    /* 简化布局 */
    .certificate-group {
        margin-bottom: 20px;
    }
    
    .certificate-group h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .certificate-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .certificate-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .certificate-icon i {
        font-size: 1.2rem;
    }
    
    .certificate-info h4 {
        font-size: 0.95rem;
    }
    
    .certificate-date, .certificate-org {
        font-size: 0.75rem;
    }
}

/* 为触摸设备优化 */
@media (hover: none) {
    .page-nav-hint {
        display: none;
    }
}

/* 针对iPhone和小屏Android特殊优化 */
@media (max-width: 375px) {
    :root {
        --navbar-height: 50px;
        --footer-height: 28px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .main-wrapper {
        top: var(--navbar-height);
        bottom: var(--footer-height);
    }
    
    /* 缩小边距节省空间 */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* 调整卡片间距 */
    .info-card, .course-card, .specialty-card, .certificate-list {
        padding: 0.9rem;
        margin-bottom: 15px;
    }
    
    /* 调整页面指示器 */
    .page-indicator {
        right: 5px;
        gap: 10px;
    }
    
    .indicator-dot {
        width: 6px;
        height: 6px;
    }
    
    /* 调整导航按钮 */
    .page-nav-buttons {
        bottom: 12px;
        gap: 25px;
    }
    
    .prev-page-btn, .next-page-btn {
        width: 36px;
        height: 36px;
    }
    
    /* 调整页面内边距 */
    .resume-page {
        padding: 10px 0 50px;
    }
    
    /* 调整标题 */
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    /* 调整封面内容 */
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-image i {
        font-size: 80px;
    }
    
    #cover h1 {
        font-size: 1.8rem !important;
    }
    
    #cover .lead {
        font-size: 0.9rem;
    }
    
    .info-item {
        padding: 6px;
    }
    
    .info-item i {
        margin-right: 5px;
        font-size: 0.8rem;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-content {
        font-size: 0.8rem;
    }
    
    #basic-info .mobile-info-grid {
        grid-template-columns: 1fr;
    }
    
    #basic-info .info-item {
        flex-direction: row;
        align-items: center;
    }
    
    #basic-info .info-item i {
        margin-right: 8px;
        margin-bottom: 0;
    }
}

/* 针对横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --navbar-height: 45px;
        --footer-height: 25px;
    }
    
    .main-wrapper {
        top: var(--navbar-height);
        bottom: var(--footer-height);
    }
    
    /* 横屏模式下优化内容排列 */
    .profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }
    
    .profile-image i {
        font-size: 70px;
    }
    
    #cover h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.3rem;
    }
    
    #cover .lead {
        font-size: 0.9rem;
    }
    
    .page-nav-buttons {
        bottom: 10px;
    }
    
    .resume-page {
        padding: 10px 0 40px;
    }
    
    /* 调整卡片布局以适应横屏 */
    .skill-item {
        margin-bottom: 0.5rem;
    }
    
    .skill-name {
        margin-bottom: 0.2rem;
    }
    
    .skill-bar {
        height: 6px;
    }
    
    .section-title {
        margin-bottom: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .title-underline {
        width: 50px;
        height: 3px;
        margin-top: 5px;
    }
}

/* 优化滚动条样式 */
.resume-page::-webkit-scrollbar {
    width: 5px;
}

.resume-page::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.resume-page::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.resume-page::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 触摸设备滚动优化 */
@supports (-webkit-overflow-scrolling: touch) {
    .resume-page {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* 防止iOS输入时的缩放 */
    input, select, textarea {
        font-size: 16px;
    }
}

/* 特殊情况下的样式调整 */
#certificates .certificate-list {
    margin-bottom: 30px; /* 确保证书页底部有足够空间 */
}

/* 防止布局问题而添加的辅助规则 */
.resume-page {
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* 调整页面底部样式 */
body::after {
    content: none; /* 移除可能的伪元素 */
} 