/* 强制主内容区使用 Noto 字体，避免被其他样式覆盖 */
.content1,
.content1 * {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif !important;
}

/* 恢复导航栏等处的图标字体 */
.content1 .fa,
.content1 [class^="fa-"],
.content1 [class*=" fa-"] {
    font-family: 'FontAwesome' !important;
}

.content1 .glyphicon {
    font-family: 'Glyphicons Halflings' !important;
}

.content1 .download-section-title,
.content1 .faq-item-title,
.content1 .section-title {
    font-family: 'Noto Serif SC', serif !important;
}

.content1 .box1 .nav.nav-tabs li a {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
}

/* 侧栏快捷导航：与主标题字号、颜色一致 */
.content1 .sidebar-nav-links .form-group a.link-gold,
.content1 .sidebar-nav-links .form-group p {
    font-family: 'Noto Serif SC', serif !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    color: #f4e4a6 !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

.content1 .sidebar-nav-links .form-group a.link-gold:hover {
    color: #f8ecb8 !important;
}

/* 欢迎区与 howtoconnect 问题解答区样式完全一致 */
.welcome-section.download-section-wrap {
    background: rgba(15, 20, 30, 0.88) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.5) !important;
    padding: 24px 20px !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
}

.welcome-section .download-section-header {
    text-align: center !important;
    margin-bottom: 24px !important;
    padding: 0 16px !important;
}

.welcome-section .download-section-title {
    font-family: 'Noto Serif SC', serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    color: #f4e4a6 !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.4 !important;
    display: block !important;
}

.welcome-section .download-section-subtitle {
    margin-top: 10px !important;
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500 !important;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif !important;
}

.welcome-section .faq-item-title {
    font-family: 'Noto Serif SC', serif !important;
    font-weight: 700 !important;
    font-size: 1.45rem !important;
    color: #f4e4a6 !important;
    margin: 20px 0 10px !important;
    letter-spacing: 0.02em !important;
}

.welcome-section .faq-item-title:first-of-type {
    margin-top: 0 !important;
}

.welcome-section .faq-body {
    text-align: left !important;
}

.welcome-section .faq-body p {
    font-size: 1.375rem !important;
    line-height: 1.65 !important;
    margin-bottom: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif !important;
}

.welcome-section .welcome-close {
    margin-top: 20px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 悬浮动画导航栏 - 固定在轮播与侧栏顶部，左右留白避免与整体金边重合 */
.float-nav-wrap {
    width: calc(100% - 24px);
    box-sizing: border-box;
    margin: 0 12px 12px 12px;
    background: rgba(18, 25, 38, 0.45);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(212, 175, 55, 0.15) inset;
    padding: 10px 20px;
}
.float-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.float-nav li { margin: 0; }
.float-nav a {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif !important;
    font-size: clamp(0.9rem, 2.2vw, 1.45rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    padding: 10px 16px;
    display: inline-block;
    border-radius: 8px;
    position: relative;
    transition: color 0.25s ease;
}
/* 自包含：从中心展开的下划线 + 发光效果 */
.float-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: #f4e4a6;
    box-shadow: 0 0 8px rgba(244, 228, 166, 0.9), 0 0 16px rgba(212, 175, 55, 0.5);
    transform: translateX(-50%);
    transition: width 0.3s ease, box-shadow 0.3s ease;
}
.float-nav a:hover::after,
.float-nav a:focus::after {
    width: 80%;
    box-shadow: 0 0 12px rgba(244, 228, 166, 1), 0 0 24px rgba(212, 175, 55, 0.7);
}
/* 与 Hover.css 配合：覆盖为金色主题 */
.float-nav a:hover,
.float-nav a:focus {
    color: #f8ecb8 !important;
}
.float-nav a.hvr-grow {
    transition: transform 0.3s ease, color 0.25s ease;
}
.float-nav a.hvr-grow:hover,
.float-nav a.hvr-grow:focus {
    transform: scale(1.06);
}
/* 当前所在页面：背光 + 颜色对比 */
.float-nav a.nav-current {
    color: #f8ecb8 !important;
    text-shadow: 0 0 12px rgba(248, 236, 184, 0.9), 0 0 24px rgba(212, 175, 55, 0.6), 0 0 36px rgba(212, 175, 55, 0.35), 0 2px 4px rgba(0, 0, 0, 0.4);
}
.float-nav a.nav-current::after {
    width: 80%;
    box-shadow: 0 0 12px rgba(244, 228, 166, 1), 0 0 24px rgba(212, 175, 55, 0.7);
}
/* 平板及以下：导航栏字体缩小 */
@media (max-width: 767px) {
    .float-nav-wrap { padding: 8px 12px; }
    .float-nav a { font-size: 1.05rem; padding: 8px 12px; }
}
/* 手机端：导航栏字体再缩小 */
@media (max-width: 480px) {
    .float-nav a { font-size: 0.9rem; padding: 6px 10px; }
}
/* 侧栏服务器信息区块：文字略小（介于默认与更小之间） */
.content1 .server-info-box,
.content1 .server-info-box p,
.content1 .server-info-box .text-gold,
.content1 .server-info-box .link-gold {
    font-size: 1.3rem !important;
}
/* 背景音乐浮动按钮：金色边框与图标，背景非金色 */
.bgm-btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    background: rgba(18, 25, 38, 0.9);
    color: #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bgm-btn .bgm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.bgm-btn .bgm-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.bgm-btn .bgm-icon[hidden] {
    display: none !important;
}
.bgm-btn:hover {
    background: rgba(18, 25, 38, 0.95);
    color: #f8ecb8;
    border-color: #f4e4a6;
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.bgm-btn.playing {
    color: #f4e4a6;
    border-color: #f4e4a6;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}

/* 下载指南页 (howtoconnect) 相关样式 */
.howtoconnect-block .btn-download-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #1e4d6b 0%, #153a52 50%, #0f2d42 100%) !important;
    border: 1px solid rgba(80, 150, 200, 0.5) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
    cursor: pointer !important;
}
.howtoconnect-block .btn-download-block:hover { color: #fff !important; text-decoration: none !important; }
.howtoconnect-block .download-section-wrap { background: rgba(15,20,30,0.88); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.5); padding: 24px 20px; margin-bottom: 24px; }
.howtoconnect-block .download-section-header { text-align: center; margin-bottom: 24px; padding: 0 16px; }
.howtoconnect-block .download-section-title { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: clamp(1.35rem, 4vw, 1.85rem); color: #f4e4a6; text-shadow: 0 0 20px rgba(212,175,55,0.4); margin: 0; letter-spacing: 0.02em; }
.howtoconnect-block .download-section-subtitle { margin-top: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.85); font-weight: 500; }
.howtoconnect-block .download-card { background: rgba(0,0,0,0.25); border-radius: 8px; padding: 16px 18px; border: 1px solid rgba(255,255,255,0.08); }
.howtoconnect-block .download-card-title { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 1.1rem; color: #f4e4a6; margin: 0 0 6px; letter-spacing: 0.02em; }
.howtoconnect-block .download-card-subtitle { font-size: 0.95rem; color: rgba(255,255,255,0.85); font-weight: 500; margin: 0 0 12px; line-height: 1.5; }
/* 问题解答区 + 全区块字号大 2 档 */
.howtoconnect-block { font-size: 18px; }
.howtoconnect-block .download-section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.howtoconnect-block .download-section-subtitle { font-size: 1.05rem; }
.howtoconnect-block .download-card-title { font-size: 1.45rem; }
.howtoconnect-block .download-card-subtitle { font-size: 1.4rem; }
.howtoconnect-block .faq-section .download-section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.howtoconnect-block .faq-item-title { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 1.2rem; color: #f4e4a6; margin: 20px 0 10px; letter-spacing: 0.02em; }
.howtoconnect-block .faq-item-title:first-of-type { margin-top: 0; }
.howtoconnect-block .faq-body p { font-size: 1.125rem; line-height: 1.65; margin-bottom: 12px; color: rgba(255,255,255,0.9); }
.howtoconnect-block .code-path { font-size: 1.05rem; padding: 4px 12px; }
.howtoconnect-block .connect-tip { font-size: 1.05rem; }