/* ============================================================
   共用样式文件 css/style.css
   适用于 导航链接.html 和 小洋哥.html
   ============================================================ */

/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    padding: 0;
    margin: 0;
}

/* ===== 外层容器：最大宽度100% ===== */
.app {
    max-width: 100%;
    width: 100%;
    background: #ffffff;
    padding: 0px 0px 0px;
    position: relative;
    margin: 0 auto;
}

/* ===== 固定顶部区域 ===== */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    padding-top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ===== LOGO 行：黑色背景，高30px，全屏宽 ===== */
.header-wrapper {
    width: 100%;
    background: #023b95;
    position: relative;
    left: 0;
    padding-left: 5px;
    padding-right: 5px;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    background: #023b95;
    padding: 0 12px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}
.header img {
    height: 28px;
    width: auto;
    display: block;
}
.header .nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.header .nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.header .nav-links a:hover {
    opacity: 1;
}

/* ===== iframe 样式 ===== */
.iframe-sticky {
    max-width: 720px;
    display: block;
    margin: 4px auto 8px;
}
.iframe-sticky iframe {
    display: block;
    width: 100%;
    height: 45px;
    border: none;
}
.iframe-scroll {
    max-width: 720px;
    display: block;
    margin: 4px auto 10px;
}
.iframe-scroll iframe {
    display: block;
    width: 100%;
    height: 60px;
    border: none;
}

/* ===== 导航网格：默认一行4个 (电脑) ===== */
.link-grid {
    max-width: 720px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 4px;
    margin: 0 auto;
}
.link-cell {
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s;
    background: #f8f9f8;
}

.link-cell a {
    display: block;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #023b95;
    line-height: 1.5;
    transition: 0.2s;
}
.link-cell a .site-domain {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #8a9a8a;
    margin-top: 2px;
    word-break: break-all;
    transition: 0.2s;
}
.link-cell:hover a,
.link-cell:hover a .site-domain {
    color: #c62828;
}

.link-celll {
    padding: 8px 8px;

    text-align: left;
    transition: 0.2s;
    background: #f8f9f8;
}

/* 文字样式 */
.link-celll a {
    color: #333;
    font-size: 16px;       /* 字加大 */
    font-weight: 700;      /* 加粗 */
    text-decoration: none;
    transition: 0.2s;
}

/* 文字前实心圆点 */
.link-celll a::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #38A169;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

/* 鼠标经过 */
.link-celll a:hover {
    color: #ff0000;
    text-decoration: underline;
}
/* 热字通用样式 */
.hot {
    color: #fff;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bg-red { background: #E53E3E; }
.bg-yellow { background: #ECC94B; }
.bg-green { background: #38A169; }
.bg-orange { background: #ED8936; }
.bg-purple { background: #805AD5; }
.bg-pink { background: #D53F8C; }
/* ===== 底部 ===== */
.footer {
    margin-top: 14px;
    font-size: 12px;
    color: #8a9a8a;
    text-align: center;
    border-top: 1px solid #e8ece8;
    padding-top: 12px;
}
.footer img {
    display: block;
    margin: 4px auto 0;
    height: 18px;
    width: auto;
}

/* ===== 手机适配：一行3个 ===== */
@media (max-width: 640px) {
    .app { padding: 0px 0px 0px; }
    .header {
        padding: 0 5px;
        max-width: 720px;
    }
    .header img {
        height: 26px;
    }
    .header .nav-links a {
        font-size: 18px;
    }
    .header .nav-links {
        gap: 10px;
    }

    .iframe-sticky iframe,
    .iframe-scroll iframe {
        height: 45px;
    }

    /* 手机端一行3个 */
    .link-grid {
		     padding: 0px 10px 10px;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .link-cell { padding: 6px 3px; }
    .link-cell a {
        font-size: 18px;
        font-weight: 700;
    }
    .link-cell a .site-domain { font-size: 12px; }
}