html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #f4f8fc;
    color: #1f2d3d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    transition: all .2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.fun88-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 隐藏部分主题默认壳子 */
.site-header,
.site-footer,
#masthead,
#colophon {
    display: none !important;
}

/* 让全站正文背景统一 */
.fun88-global-main,
.site-main,
#primary {
    background: #f4f8fc;
    min-height: 60vh;
}

/* ========== 顶部蓝色横栏头部 ========== */
.fun88-header {
    background: linear-gradient(180deg, #1ea7ef 0%, #199fe9 100%);
    box-shadow: 0 8px 24px rgba(0, 130, 220, .12);
    position: relative;
    z-index: 100;
}

.fun88-nav-wrap {
    min-height: 112px;
    display: flex;
    align-items: center;
}

.fun88-nav-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.fun88-site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.fun88-site-logo img {
    width: auto;
    height: 62px;
    display: block;
}

.fun88-primary-nav {
    flex: 1 1 auto;
}

.fun88-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.fun88-menu > li {
    margin: 0;
    padding: 0;
}

.fun88-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.fun88-menu > li > a:hover,
.fun88-menu > li.current-menu-item > a,
.fun88-menu > li.current_page_item > a,
.fun88-menu > li.current-menu-ancestor > a {
    color: rgba(255,255,255,.95);
}

.fun88-menu .sub-menu {
    display: none;
}

/* ========== 首页 Hero ========== */
.fun88-hero {
    padding: 24px 0 18px;
    background: #f4f8fc;
}

.fun88-hero-box {
    background: linear-gradient(135deg, #1ea7ef 0%, #52caff 100%);
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 16px 32px rgba(17,131,223,.14);
}

.fun88-hero-content h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
}

.fun88-hero-content p {
    margin: 0;
    color: rgba(255,255,255,.95);
    font-size: 17px;
    max-width: 760px;
}

/* ========== 通用区块 ========== */
.fun88-section {
    padding: 42px 0;
}

.white-section {
    background: #ffffff;
}

.light-section {
    background: #f7fbff;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-size: 30px;
    color: #172b4d;
    font-weight: 800;
}

.section-more {
    font-size: 14px;
    font-weight: 700;
    color: #1292dd;
}

.section-more:hover {
    color: #0e80c3;
}

/* ========== 卡片布局 ========== */
.post-grid,
.promo-grid,
.simple-list-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* ========== 通用卡片 ========== */
.post-card,
.promo-card,
.simple-list-card,
.feature-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e5eef8;
    box-shadow: 0 10px 24px rgba(37,125,198,.08);
}

.post-card:hover,
.promo-card:hover,
.simple-list-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(37,125,198,.12);
}

.post-card a,
.promo-card a,
.simple-list-card a {
    display: block;
    color: inherit;
}

/* ========== 缩略图 ========== */
.post-thumb,
.promo-thumb,
.simple-list-thumb {
    aspect-ratio: 16 / 9;
    background: #dff2ff;
    overflow: hidden;
}

.post-thumb img,
.promo-thumb img,
.simple-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 卡片内容 ========== */
.post-body,
.promo-body,
.simple-list-body {
    padding: 18px;
}

.post-body h3,
.promo-body h3,
.simple-list-body h3,
.feature-card h3 {
    margin: 0 0 10px;
    color: #172b4d;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.post-body p,
.promo-body p,
.simple-list-body p,
.feature-card p {
    margin: 0;
    color: #5f7087;
    font-size: 14px;
    line-height: 1.8;
}

.feature-card {
    padding: 22px;
}

.card-link,
.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #1ba2ea;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.card-link:hover,
.promo-btn:hover {
    background: #0f8dd4;
}

/* ========== 页面正文、文章正文基础样式 ========== */
.single .entry-content,
.page .entry-content,
.archive .page-content,
.category .page-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    color: #1f2d3d;
}

.single .entry-title,
.page .entry-title,
.archive .page-title,
.category .page-title {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 10px;
    color: #172b4d;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}

.single .post-thumbnail,
.page .post-thumbnail {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.single .post-thumbnail img,
.page .post-thumbnail img {
    width: 100%;
    border-radius: 20px;
}

.entry-content p,
.page-content p {
    margin: 0 0 18px;
    line-height: 1.9;
    color: #34465a;
}

.entry-content h2,
.entry-content h3,
.page-content h2,
.page-content h3 {
    color: #172b4d;
    margin: 28px 0 14px;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    margin: 0 0 18px 22px;
}

/* ========== 页脚 ========== */
.fun88-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-top: 1px solid #e6eef8;
    padding: 28px 0 20px;
}

.fun88-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8f0f8;
}

.fun88-footer-brand {
    max-width: 340px;
}

.fun88-footer-brand img {
    height: 48px;
    width: auto;
    margin-bottom: 10px;
}

.fun88-footer-brand p {
    margin: 0;
    color: #6f8197;
    font-size: 13px;
    line-height: 1.8;
}

.fun88-footer-links {
    flex: 1;
}

.fun88-footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    margin: 0;
    padding: 0;
}

.fun88-footer-menu li {
    margin: 0;
    padding: 0;
}

.fun88-footer-menu a {
    color: #5f7087;
    font-size: 14px;
    font-weight: 600;
}

.fun88-footer-menu a:hover {
    color: #1395df;
}

.fun88-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
}

.fun88-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.fun88-footer-bottom-links a {
    color: #6b7d93;
    font-size: 13px;
}

.fun88-footer-bottom-links a:hover {
    color: #1395df;
}

.fun88-footer-copy {
    color: #8a9bb0;
    font-size: 12px;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .post-grid,
    .promo-grid,
    .simple-list-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fun88-nav-inner,
    .fun88-footer-top,
    .fun88-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .fun88-footer-menu {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .fun88-nav-wrap,
    .fun88-nav-inner {
        min-height: auto;
    }

    .fun88-nav-inner {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .fun88-site-logo img {
        height: 54px;
    }

    .fun88-menu {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .fun88-menu > li > a {
        min-height: 44px;
        font-size: 16px;
    }

    .fun88-hero-box {
        padding: 30px 24px;
    }

    .fun88-hero-content h1 {
        font-size: 32px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .post-grid,
    .promo-grid,
    .simple-list-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .fun88-nav-inner,
    .fun88-footer-top,
    .fun88-footer-bottom {
        align-items: center;
        text-align: center;
    }

    .fun88-menu,
    .fun88-footer-menu,
    .fun88-footer-bottom-links {
        justify-content: center;
    }

    .fun88-site-logo img {
        height: 48px;
    }

    .fun88-hero-box {
        padding: 24px 20px;
    }

    .fun88-hero-content h1 {
        font-size: 28px;
    }

    .section-head h2,
    .single .entry-title,
    .page .entry-title,
    .archive .page-title,
    .category .page-title {
        font-size: 26px;
    }
}