
:root {
    --primary-color: #4195f5;
    --secondary-color: #2c7be5;
    --text-color: #ffffff;
    --hover-color: rgba(255,255,255,0.2);
    --border-radius: 8px;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ===== 电脑端样式 (宽度 > 768px) ===== */
@media screen and (min-width: 769px) {
    body {
        padding-top: 60px;
        background-color: #f7f8fa;
        
    }
    
    .site-title {
        display: flex;
        align-items: center;
    }
    
    .site-title img {
        width: 150px;
        height: 40px;
    }
    
    
}

/* ===== 手机端样式 (宽度 ≤ 768px) ===== */
@media screen and (max-width: 768px) {
    /* 移除body上边距 */
    body {
        padding-top: 0;
        padding-bottom: 20px;
        background-color: #f7f8fa;
    }
    
    /* 顶部导航条改造 */
    .navbar {
        position: fixed;
        top: auto;
        bottom: 30px;
        right: 20px;
        left: auto;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        display: block;
        z-index: 1000;
    }
    
    /* 站点标题 - 移到顶部 */
    .site-title {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        padding: 8px 18px;
        border-radius: 40px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .site-title img {
        width: 120px;
        height: 32px;
        display: block;
    }
    
    
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
    .navbar {
        bottom: 20px;
        right: 15px;
    }
    
    .nav-list {
        min-width: 120px;
        padding: 8px 5px;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .site-title {
        top: 10px;
        left: 10px;
        padding: 6px 15px;
    }
    
    .site-title img {
        width: 100px;
        height: 28px;
    }
}

/* 手机端内容容器调整 */
@media screen and (max-width: 768px) {
    .content-container {
        width: 90%;
        padding: 25px 20px;
        margin: 80px auto 100px; /* 上边距避免被logo遮挡，下边距避免被导航遮挡 */
    }
}
