/* ============================
   全站蓝白科技风基础设定
============================ */
body {
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background: #f4f8ff;
    color: #1a2a4a;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* ============================
   TOP NAV 导航条
============================ */
.top-nav {
    width: 100%;
    background: linear-gradient(90deg, #1b4dff, #4ea3ff);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0, 80, 255, 0.25);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    width: 100%;
    max-width: 1150px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

/* 桌机长标题 */
.title-desktop {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* 手机版短标题（预设不显示） */
.title-mobile {
    display: none;
    color: #fff;
}

/* TG 按钮 */
.tg-btn {
    background: linear-gradient(135deg, #ffffff, #d9e8ff);
    border: 1px solid #4ea3ff;
    color: #0244c7;
    padding: 8px 28px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(120,180,255,0.5);
    transition: 0.25s ease;
}

.tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(50,140,255,0.9);
}

/* ============================
   TITLE Section
============================ */
.title-section h1 {
    color: #0244c7;
    font-size: 28px;
    font-weight: 700;
}

/* ============================
   项目卡片 ENTRY CARD
============================ */
.entry-card {
    width: 90%;
    max-width: 1150px;
    margin: 25px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px auto 150px;
    gap: 20px;
    background: #ffffff;
    border: 2px solid #d2e4ff;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,70,160,0.1);
}

.entry-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(120,180,255,0.6);
}

.entry-center h2 {
    margin: 0 0 4px;
    color: #0244c7;
    font-size: 20px;
    font-weight: 700;
}

.stars {
    color: #ffbb33;
    font-size: 18px;
}

.entry-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    background: linear-gradient(135deg, #1b4dff, #5db8ff);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(50,140,255,0.6);
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(50,140,255,1);
}

/* ============================
   Floating Toolbar
============================ */
.floating-toolbar { ... }
.tool-btn { ... }
.floating-toolbar svg { ... }

/* ============================
   手机版 RWD （非常重要）
============================ */
@media (max-width: 768px) {

    /* 短标题切换 */
    .title-desktop { display: none; }
    .title-mobile {
        display: inline-block;
        font-size: 16px;
        max-width: 150px;
        line-height: 1.2;
    }

    /* 卡片变成一栏 */
    .entry-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .entry-logo {
        width: 80px;
        height: 80px;
    }

    .btn {
        width: 100%;
        margin-top: 12px;
    }
}

/* 修复网页跑版：统一网站主宽度 */
.main-wrapper {
    max-width: 1150px;
    margin: auto;
}

/* 修复广告 Banner 撑破网页布局 */
.many-banners {
    max-width: 1150px;
    margin: 10px auto;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.many-banners img {
    width: 100%;
    height: auto;
    display: block;
}

/* 导航栏修复：避免挤压内容 */
.top-nav {
    width: 100%;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* 导航栏内部宽度修复 */
.nav-container {
    max-width: 1150px;
    margin: auto;
    padding: 0 12px;
}

/* ============================
   让广告横幅与入口卡片同宽
============================ */
.many-banners {
    width: 90%;
    max-width: 1150px;
    margin: 20px auto;   /* 自动置中 */
    display: flex;
    flex-direction: column;
    gap: 8px;            /* 横幅之间的间距 */
}

.many-banners img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}


/* ============================
   标题区置中 + 宽度统一
============================ */
.title-section {
    width: 90%;
    max-width: 1150px;
    margin: 30px auto 10px auto; /* 自动置中 */
    text-align: center;          /* 文字置中 */
}

.title-section h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}

.title-section p {
    text-align: center;
    font-size: 16px;
    color: #333;
}


/* ============================
   入口卡片外框（保持一致效果）
============================ */
.entry-card {
    width: 90%;
    max-width: 1150px; /* 与标题和横幅完全对齐 */
    margin: 25px auto;
}

.nav-container {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    margin: auto;
    padding: 0 16px;
}

/* ============================
   右下角悬浮功能列
============================ */
.floating-toolbar {
    position: fixed;
    right: 20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;  /* 让按钮永远在最上层 */
}

.tool-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
    transition: 0.25s ease;
}

.tool-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
}

.tool-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .floating-toolbar {
        right: 12px;
        bottom: 20px;
        transform: scale(0.9);
    }
}

/* ============================
   高级版右下角悬浮按钮
============================ */
.floating-toolbar {
    position: fixed;
    right: 26px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
}

/* 按钮外框光晕 */
.tool-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 10px rgba(120,180,255,0.4),
        0 0 22px rgba(80,130,255,0.45);

    cursor: pointer;
    transition: 0.28s ease-in-out;

    position: relative;
    overflow: hidden;
}

/* 按钮内部淡淡光线扫过 */
.tool-btn::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0.1) 100%
    );
    transform: rotate(25deg);
    transition: 0.6s;
    opacity: 0;
}

.tool-btn:hover::before {
    top: -20%;
    left: -20%;
    opacity: 1;
}


/* 悬停发光+缩放 */
.tool-btn:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow:
        0 0 18px rgba(120,180,255,0.8),
        0 0 30px rgba(60,130,255,0.9);
}

/* 图标大小 */
.tool-btn svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.4;
}

/* 回到顶部按钮额外高亮 */
.scroll-top-btn {
    background: linear-gradient(135deg, #5da7ff, #256dff);
    border: none;
    box-shadow:
        0 0 15px rgba(90,150,255,0.8),
        0 0 30px rgba(70,120,255,0.9);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #7db9ff, #367aff);
}


/* 📱 手机优化 */
@media (max-width: 600px) {
    .floating-toolbar {
        right: 14px;
        bottom: 22px;
        gap: 12px;
    }

    .tool-btn {
        width: 46px;
        height: 46px;
    }

    .tool-btn svg {
        width: 22px;
        height: 22px;
    }
}

