/* ========================================
   QYServer 全站公共样式表
   包含：重置样式、导航栏、页脚、弹窗、音乐控制等
   ======================================== */

@import url('/lib/fontawesome-free-7.2.0-web/css/all.min.css');

/* ---------- 1. 基础重置 ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Microsoft YaHei", Roboto, Arial, sans-serif;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: #f5f5f5;
    color: #5F5F5F;
    scroll-behavior: smooth;
}

/* 隐藏滚动条 */
html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- 2. 导航栏 ---------- */
#menu-box {
    position: fixed;
    width: 100%;
    height: 60px;
    background: none;
    z-index: 100;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h2 {
    color: #C6CDD4;
    font-size: 28px;
    transition: all 0.4s ease;
}

.logo h2:hover {
    color: white;
    font-size: 30px;
}

.nav-links {
    display: flex;
    gap: 0px;
}

.nav-links a {
    color: #C6CDD4;
    padding: 8px 0;           /* 左右内边距改成 0 */
    border-radius: 4px;
    transition: all 0.4s ease;
    font-size: 16px;
    width: 70px;              /* 👈 新增固定宽度 */
    text-align: center;       /* 👈 文字居中 */
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    font-size: 17px;
}

/* 导航栏滚动后的样式（由 JS 动态添加，这里定义样式） */
#menu-box.scrolled {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

/* ---------- 3. 页脚 ---------- */
#footer {
    background: #333;
    color: #ddd;
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #f8a5c2;
}

.footer-links a {
    display: block;
    padding: 8px 0;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #f8a5c2;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #f8a5c2;
    transition: all 0.3s;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ---------- 4. 音乐控制按钮 ---------- */
#musicControl {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(128, 128, 128, 0.3);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#musicControl:hover {
    transform: scale(1.1);
    background: rgba(248, 165, 194, 0.5) !important;
}

#musicControl:active {
    transform: scale(0.95);
}

#musicIcon {
    width: 30px;
    height: 30px;
    opacity: 0.9;
    display: block;
}

/* ---------- 5. 响应式 ---------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu {
        justify-content: center;
    }

    .footer-section {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .popup-footer {
        flex-direction: column;
        gap: 15px;
    }
}