/* ==================== 手机端专用样式 ==================== */

/* 小屏幕设备（手机） */
@media (max-width: 640px) {
    /* 导航栏 */
    .navbar {
        padding: 10px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 70%;
        max-width: 280px;
        height: calc(100vh - 60px);
        background: var(--card-bg);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    /* 汉堡菜单按钮 - 移动端显示 */
    .hamburger {
        display: block !important;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 联系信息卡片 - 移动端适配 */
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .contact-card {
        padding: 12px 8px;
    }

    .contact-icon {
        font-size: 20px;
    }

    .contact-label {
        font-size: 10px;
    }

    .contact-value {
        font-size: 11px;
    }

    /* 微信二维码卡片 - 占用一行 */
    .contact-card:last-child,
    .contact-card:has(.wechat-wrapper) {
        grid-column: span 2;
    }

    /* 微信弹出框 - 移动端适配 */
    .wechat-popup {
        width: 130px;
        padding: 10px;
    }

    .wechat-qr-img {
        width: 110px;
        height: 110px;
    }

    .wechat-trigger {
        font-size: 10px;
        padding: 4px 8px;
    }

    .wechat-tip {
        font-size: 9px;
    }

    /* 联系表单 */
    .contact-form {
        padding: 25px 20px;
    }

    .contact-form h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-control {
        padding: 12px;
        font-size: 14px;
    }

    textarea.form-control {
        min-height: 120px;
    }

    /* 成功提示 */
    .success-message {
        padding: 25px 20px;
    }

    .success-message h3 {
        font-size: 20px;
    }

    /* 关注我板块 */
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .social-card {
        padding: 25px 20px;
    }

    .social-card .icon {
        font-size: 45px;
    }

    .social-card h3 {
        font-size: 16px;
    }

    .social-card p {
        font-size: 12px;
    }

    /* 工作地点 */
    .contact-container section:last-of-type > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .contact-container section:last-of-type > div > div {
        padding: 15px;
    }

    .contact-container section:last-of-type > div > div div {
        font-size: 40px;
    }

    .contact-container section:last-of-type > div > div h3 {
        font-size: 18px;
    }

    /* 时间线 */
    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }

    .timeline-content {
        padding: 20px 15px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-company {
        font-size: 14px;
    }

    /* 技能卡片 */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-card {
        padding: 30px 20px;
    }

    .skill-icon {
        font-size: 40px;
    }

    .skill-title {
        font-size: 20px;
    }

    /* 认证证书 */
    .skills-grid + section ul {
        grid-template-columns: 1fr;
    }

    .skills-grid + section ul li {
        padding: 15px;
        font-size: 14px;
    }

    .skills-grid + section ul li div {
        font-size: 30px;
    }

    .skills-grid + section ul li div + div {
        font-size: 16px;
    }

    /* 关于我 */
    .content > section:last-of-type > div {
        padding: 30px 20px;
    }

    .content > section:last-of-type > div p {
        font-size: 14px;
    }

    /* 兴趣标签 */
    .contact-container section:last-of-type > div > div > div {
        gap: 8px;
    }

    .contact-container section:last-of-type > div > div > div > span {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 页脚 */
    footer {
        padding: 30px 20px;
    }

    footer p {
        font-size: 12px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* 超小屏幕设备 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-card:last-child {
        grid-column: span 1;
    }
}

/* 平板设备（中等屏幕） */
@media (min-width: 641px) and (max-width: 1024px) {
    .navbar {
        padding: 15px 25px;
    }

    .nav-menu {
        gap: 25px;
    }

    .content {
        padding: 100px 30px 40px;
    }

    .section-title {
        font-size: 38px;
    }

    .hero {
        padding: 80px 0;
    }

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

    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* 横屏手机 */
@media (max-width: 640px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .avatar-container {
        width: 200px;
        height: 200px;
    }
}
/* ==================== 页面特定样式 ==================== */
/* 这个文件包含各个页面特有的样式 */

/* ==================== 联系方式页面样式 ==================== */

/* 联系方式卡片 - 左右布局结构 */
.contact-layout {
    display: grid;
    grid-template-columns: 380px 0.8fr;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

@media (max-width: 1100px) {
    .contact-layout {
        grid-template-columns: 340px 1fr;
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 居中提示容器 */
.center-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 102, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
}

.center-notice p {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* 左侧联系方式卡片 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card {
    background: var(--card-bg);
    padding: 22px 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
    min-height: auto;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 30px;
    margin-bottom: 12px;
    display: inline-block;
}

.contact-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    color: var(--text-color);
    font-weight: bold;
    word-break: break-all;
}

.contact-value.email {
    color: var(--primary-color);
}

/* 微信二维码 - 悬停弹出显示 */
.wechat-wrapper {
    position: relative;
    display: inline-block;
}

.wechat-trigger {
    font-size: 11px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.wechat-trigger:hover {
    background: rgba(0, 240, 255, 0.2);
}

.wechat-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wechat-wrapper:hover .wechat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.wechat-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: var(--card-bg);
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.wechat-qr-img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.wechat-popup-text {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.wechat-tip {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* 留言表单区域 */
.contact-form-section {
    max-width: 650px;
    margin: 0;
}

.contact-form-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    margin-top: 0;
    color: var(--text-color);
    text-align: left;
    padding-left: 5px;
}

/* 成功提示样式 */
.success-message {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 关注我板块 - 4列布局 */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto 0;
}

@media (max-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.social-card {
    text-decoration: none;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 240, 255, 0.2);
    border-color: var(--primary-color);
}

.social-card .icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.social-card h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.social-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== 个人履历页面样式 ==================== */

/* 时间轴交互效果 */
.timeline-item {
    position: relative;
    cursor: pointer;
}

.timeline-content {
    transition: all 0.3s ease;
    max-height: 60px;
    overflow: hidden;
    opacity: 0.6;
}

.timeline-content.default-hidden .timeline-date {
    opacity: 1;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.timeline-content.default-hidden .timeline-title,
.timeline-content.default-hidden .timeline-company,
.timeline-content.default-hidden .timeline-description,
.timeline-content.default-hidden .timeline-achievements {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    max-height: 1000px;
    opacity: 1;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item:hover .timeline-content .timeline-title,
.timeline-item:hover .timeline-content .timeline-company,
.timeline-item:hover .timeline-content .timeline-description,
.timeline-item:hover .timeline-content .timeline-achievements {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:hover .timeline-content .timeline-achievements li {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date {
    transition: all 0.3s ease;
}

/* 时间点颜色 */
.timeline-dot {
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

/* 提示信息 */
.timeline-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
    padding: 10px;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 10px;
    border: 1px dashed rgba(0, 240, 255, 0.3);
}

.timeline-hint i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ==================== 移动端响应式优化 ==================== */

/* 移动端联系页面 */
@media (max-width: 950px) {
    .contact-layout {
        padding: 0 20px;
    }

    .contact-info {
        gap: 12px;
    }

    .contact-card {
        padding: 15px 12px;
    }

    .contact-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-value {
        font-size: 14px;
    }

    .center-notice p {
        font-size: 16px;
    }

    .contact-form-section {
        padding: 0 10px;
    }

    .contact-form-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .social-card {
        padding: 20px 15px;
    }

    .social-card .icon {
        font-size: 40px;
    }

    .social-card h3 {
        font-size: 16px;
    }
}

/* 移动端履历页面 */
@media (max-width: 950px) {
    .timeline-content.default-hidden .timeline-date {
        font-size: 16px;
    }

    .timeline-item:hover .timeline-content {
        padding: 15px;
        border-width: 1px;
    }

    .timeline-item:hover .timeline-dot {
        transform: scale(1.2);
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .section-title {
        font-size: 28px !important;
    }

    .contact-layout {
        max-width: 100%;
        padding: 0 15px;
    }

    .center-notice p {
        font-size: 14px;
    }

    .contact-form-section {
        padding: 0;
    }

    .contact-form-section h2 {
        font-size: 20px;
    }
}
