/* filepath: e:\scr\BluePoint\SaturnBot\src\resource\css\mobile_responsive.css */
/* 移动端响应式样式 */

/* 基础设置 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
}

/* 移动端顶部导航栏 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4eb289;
    font-size: 16px;
    font-weight: 600;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 移动端侧边菜单 */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    transition: left 0.3s ease;
    display: none;
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.mobile-nav-content-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-menu.active .mobile-nav-content-menu {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.mobile-nav-header h3 {
    color: #4eb289;
    margin: 0;
    font-size: 18px;
    flex: 1;
}

.close-mobile-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #4eb289;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact h4 {
    color: #4eb289;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.mobile-contact p {
    color: #ccc;
    margin: 5px 0;
    font-size: 12px;
}

.mobile-contact a {
    color: #4eb289;
    text-decoration: none;
}

/* 移动端音乐播放器 */
.mobile-music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.toggle-music-btn {
    background: rgba(78, 178, 137, 0.9);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toggle-music-btn:hover {
    transform: scale(1.1);
    background: rgba(78, 178, 137, 1);
}

.music-player-content {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 250px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 桌面端头部隐藏控制 */
.desktop-header {
    display: block;
}

/* 个人信息卡片 */
.personal-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(5px);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.info-icon {
    font-size: 16px;
    min-width: 20px;
}

.info-label {
    color: #ccc;
    min-width: 80px;
    font-weight: 500;
}

.info-item a {
    color: #4eb289;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* 技能展示 */
.skills-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.skills-section h3 {
    color: #4eb289;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 14px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(78, 178, 137, 0.3);
    color: #4eb289;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid rgba(78, 178, 137, 0.5);
}

/* 游戏信息 */
.gaming-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.gaming-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gaming-info a {
    color: #4eb289;
    text-decoration: none;
}

/* 个人照片 */
.personal-photo {
    text-align: center;
    margin: 20px 0;
}

.personal-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 章节容器 */
.section-container {
    margin: 40px 0;
}

/* 文档网格 */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.doc-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.doc-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 178, 137, 0.3);
}

.doc-card h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.doc-card h5 a {
    color: #4eb289;
    text-decoration: none;
}

.doc-card h5 a:hover {
    text-decoration: underline;
}

.doc-card p {
    color: #ccc;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.doc-tag {
    background: rgba(78, 178, 137, 0.2);
    color: #4eb289;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid rgba(78, 178, 137, 0.3);
}

/* 项目描述 */
.project-description {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.project-description p {
    margin: 10px 0;
    color: #ccc;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(78, 178, 137, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: rgba(78, 178, 137, 1);
}

/* 底部信息 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4px;
    padding: 4px;
    /* background: rgba(36, 35, 35, 0.5); */
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

.footer-section {
    text-align: center;
    color: #ccc;
    flex: 0 0 auto;
}

.footer-section h4 {
    color: #4eb289;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.footer-section a {
    color: #4eb289;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #5bc29a;
    text-decoration: underline;
}

/* 底角信息栏样式 */
.foot {
    background: #1A1D23;
    border-top: 1px solid #333;
    padding: 0px 0;
    margin-top: 0px;
    /* height: 100px; */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.footer-section {
    text-align: center;
    color: #ccc;
    flex: 0 0 auto;
}

.footer-section h4 {
    color: #4eb289;
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.footer-section a {
    color: #4eb289;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #5bc29a;
    text-decoration: underline;
}

/* 移动端底角信息栏适配 */
@media (max-width: 768px) {
    .foot {
        padding: 15px 0;
        margin-top: 0px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .foot {
        padding: 12px 0;
        margin-top: 20px;
    }
    
    .footer-content {
        gap: 15px;
        padding: 0 10px;
    }
    
    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .footer-section p {
        font-size: 12px;
    }
}

/* 平板横屏模式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        gap: 40px;
    }
    
    .footer-section h4 {
        font-size: 15px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
}

/* 桌面端优化 */
@media (min-width: 1025px) {
    .footer-content {
        gap: 80px;
    }
    
    .footer-section h4 {
        font-size: 17px;
    }
    
    .footer-section p {
        font-size: 15px;
    }
}

/* 添加分隔线效果 */
.footer-section:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: #333;
    display: none;
}

@media (min-width: 769px) {
    .footer-section {
        position: relative;
    }
    
    .footer-section:not(:last-child)::after {
        display: block;
    }
}

/* 悬停效果 */
.footer-section {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* 响应式字体大小 */
@media (max-width: 360px) {
    .footer-section h4 {
        font-size: 13px;
    }
    
    .footer-section p {
        font-size: 11px;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .foot {
        background: #1A1D23;
        border-top-color: #1A1D23;
    }
    
    .footer-section {
        color: #ddd;
    }
    
    .footer-section h4 {
        color: #5bc29a;
    }
    
    .footer-section:not(:last-child)::after {
        background: #222;
    }
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 显示移动端元素 */
    .mobile-header {
        display: flex;
    }
    
    .mobile-nav-menu {
        display: block;
    }
    
    .mobile-music-player {
        display: block;
    }
    
    /* 隐藏桌面端元素 */
    .desktop-header {
        display: none;
    }
    
    .right_top_fixed {
        display: none;
    }
    
    /* 调整主内容区域 */
    #article {
        padding-top: 70px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .main-content {
        padding: 0 5px;
    }
    
    /* 调整个人信息卡片 */
    .personal-info-card {
        padding: 15px;
    }
    
    .info-item {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
        font-size: 14px;
    }
    
    /* 调整技能展示 */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-category {
        text-align: center;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    /* 调整文档网格 */
    .doc-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .doc-card {
        padding: 15px;
    }
    
    .doc-card h5 {
        font-size: 14px;
    }
    
    .doc-card p {
        font-size: 13px;
    }
    
    /* 调整太阳系模型控制 */
    .solar-system-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .solar-system-controls button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* 调整太阳系容器 */
    .solar-system-container {
        margin: 15px 0;
    }
    
    .solar-system-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .solar-system-tips {
        font-size: 11px;
    }
    
    .solar-system-iframe-wrapper {
        height: 400px;
    }
    
    /* 调整返回顶部按钮位置 */
    .back-to-top {
        bottom: 20px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    #article {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .personal-info-card {
        padding: 10px;
    }
    
    .skills-section {
        padding: 15px;
    }
    
    .doc-card {
        padding: 12px;
    }
    
    .solar-system-iframe-wrapper {
        height: 300px;
    }
    
    .mobile-nav-content-menu {
        width: 90%;
    }
    
    .music-player-content {
        width: 200px;
    }
}

/* 横屏模式适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .solar-system-iframe-wrapper {
        height: 350px;
    }
    
    .mobile-nav-content-menu {
        width: 60%;
    }
}

/* 高分辨率屏幕适配 */
@media (min-width: 1200px) {
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .doc-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* 暗色模式优化 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0a;
        color: #e0e0e0;
    }
    
    .personal-info-card,
    .skills-section,
    .gaming-info,
    .doc-card,
    .project-description {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .doc-card:hover {
        background: rgba(255, 255, 255, 0.06);
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-container {
    animation: fadeIn 0.6s ease-out;
}

/* 移动端设备标识 */
.mobile-device .desktop-only {
    display: none !important;
}

.desktop-device .mobile-only {
    display: none !important;
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .doc-card:hover {
        transform: none;
    }
    
    .doc-card:active {
        transform: scale(0.98);
    }
    
    .back-to-top:hover {
        transform: none;
    }
    
    .back-to-top:active {
        transform: scale(0.95);
    }
}