/* 联系页面专用样式 */

/* 移动端背景图片 */
@media (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        position: relative;
    }
    
    /* 添加遮罩层 */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: -1;
        transition: background-color 0.6s ease;
    }
    
    /* 浅色主题遮罩 */
    html[data-theme="light"] body::before {
        background-color: rgba(0, 0, 0, 0.4);
    }
    
    /* 深色主题遮罩 */
    html[data-theme="dark"] body::before {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

/* 移动端布局重置 */
@media (max-width: 768px) {
    /* 重置主容器 */
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 20px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    /* 重置内容容器 */
    .container-content {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    /* 重置个人信息容器 */
    .profile-container {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }
    
    /* 重置头部信息 */
    .profile-header {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
    }
    
    .avatar {
        margin-bottom: 8px !important;
    }
    
    /* 关键：重置导航按钮 */
    .nav-buttons {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: flex-start !important;
        justify-self: flex-start !important;
        max-height: none !important;
    }
    
    /* 按钮样式 */
    .nav-btn {
        padding: 15px 10px !important;
        min-height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        color: #fff !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-2px) !important;
    }
    
    .nav-btn .icon {
        font-size: 24px !important;
    }
    
    .nav-btn span {
        font-size: 14px !important;
    }
    
    /* 联系页面按钮特定样式 */
    .phone-btn {
        border-left: 4px solid #4CAF50 !important;
    }
    
    .phone-btn:hover {
        border-left-color: #45a049 !important;
    }
    
    .email-btn {
        border-left: 4px solid #2196F3 !important;
    }
    
    .email-btn:hover {
        border-left-color: #1976D2 !important;
    }
    
    .qq-btn {
        border-left: 4px solid #FF9800 !important;
    }
    
    .qq-btn:hover {
        border-left-color: #F57C00 !important;
    }
    
    .github-btn {
        border-left: 4px solid #9C27B0 !important;
    }
    
    .github-btn:hover {
        border-left-color: #7B1FA2 !important;
    }
    
    /* 浅色主题 */
    html[data-theme="light"] .nav-btn {
        color: #000 !important;
        background: rgba(0, 0, 0, 0.1) !important;
    }
    
    html[data-theme="light"] .nav-btn:hover {
        background: rgba(0, 0, 0, 0.15) !important;
    }
    
    html[data-theme="light"] .main-container {
        background: rgba(255, 255, 255, 0.8) !important;
    }
    
    html[data-theme="dark"] .main-container {
        background: rgba(0, 0, 0, 0.3) !important;
    }
    
    /* 主题切换按钮样式 */
    .theme-switch {
        position: fixed !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 20px !important;
        padding: 8px 15px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
        z-index: 1000 !important;
        display: flex !important;
        gap: 10px !important;
    }
    
    .theme-btn {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 8px 12px !important;
        border: none !important;
        border-radius: 6px !important;
        background: transparent !important;
        color: #fff !important;
        cursor: pointer !important;
        transition: all 0.6s ease !important;
    }
    
    .theme-btn:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .theme-btn.active {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .theme-btn .icon {
        font-size: 16px !important;
    }
    
    .theme-btn .text {
        font-size: 14px !important;
    }
    
    /* 浅色主题按钮样式 */
    html[data-theme="light"] .theme-switch {
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    html[data-theme="light"] .theme-btn {
        color: #000 !important;
    }
    
    html[data-theme="light"] .theme-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
    }
    
    html[data-theme="light"] .theme-btn.active {
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    html[data-theme="dark"] .theme-switch {
        background: rgba(0, 0, 0, 0.6) !important;
    }
}

/* 更小屏幕的额外调整 */
@media (max-width: 380px) {
    .main-container {
        padding: 15px !important;
    }
    
    .nav-buttons {
        gap: 8px !important;
    }
    
    .nav-btn {
        padding: 12px 8px !important;
    }
    
    .nav-btn .icon {
        font-size: 20px !important;
    }
    
    .nav-btn span {
        font-size: 13px !important;
    }
    
    /* 小屏幕主题按钮调整 */
    .theme-switch {
        padding: 5px 10px !important;
    }
    
    .theme-btn {
        padding: 5px 8px !important;
    }
    
    .theme-btn .text {
        display: none !important;
    }
} 