@charset "utf-8";
/* ==========================================================
   运动健身分享站 · 全站统一样式表
   主色调 #2478b8 ｜ 简洁运动调性 ｜ 响应式（手机 / PC）
   ========================================================== */

:root {
    --primary: #2478b8;
    --primary-dark: #1b5f93;
    --primary-light: #4399d4;
    --primary-soft: #e8f2fa;
    --ink: #1f2933;
    --text: #3d4a57;
    --muted: #6b7a8c;
    --line: #e5ebf1;
    --bg: #ffffff;
    --bg-soft: #f5f9fc;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 10px rgba(31, 41, 51, .06);
    --shadow-hover: 0 8px 22px rgba(36, 120, 184, .16);
    --maxw: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .25s ease;
}

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

ul, ol {
    padding-left: 22px;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 顶部导航 ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .5px;
    white-space: nowrap;
}

.logo .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 13px;
    font-size: 15px;
    color: var(--text);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-menu a.is-active {
    color: var(--primary);
    font-weight: 600;
}

.nav-menu a.is-active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

/* 移动端才展示的次级链接（关于本站 / 免责声明） */
.nav-foot-links {
    display: none;
}

/* 汉堡按钮 */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    position: relative;
    transition: background-color .2s ease;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform .28s ease, top .28s ease;
}

.nav-toggle .bar::before {
    top: -6px;
}

.nav-toggle .bar::after {
    top: 6px;
}

/* 展开态：变成 X */
.nav-toggle.is-open .bar {
    background: transparent;
}

.nav-toggle.is-open .bar::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.is-open .bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============ 首屏 Banner ============ */
.banner {
    background: linear-gradient(135deg, var(--primary) 0%, #3f97d6 55%, #5cb0e0 100%);
    color: #fff;
    padding: 92px 0 96px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .16) 0, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(255, 255, 255, .12) 0, transparent 45%);
    pointer-events: none;
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 38px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.banner .banner-sub {
    font-size: 17px;
    opacity: .93;
    margin-bottom: 30px;
}

.banner-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary-dark);
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: transform .25s ease, background .25s ease;
}

.banner-btn:hover {
    background: #eef6fc;
    transform: translateY(-2px);
    color: var(--primary-dark);
}

/* 栏目页小 Banner */
.banner-sm {
    padding: 54px 0 56px;
}

.banner-sm h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.banner-sm .banner-sub {
    font-size: 15px;
    margin-bottom: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    text-align: center;
    font-size: 26px;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 34px;
}

/* 面包屑 */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    padding: 16px 0 0;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
    opacity: .6;
}

/* ============ 分类入口卡片 ============ */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.entry-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 28px 22px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.entry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #cfe2f1;
}

.entry-card .entry-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.entry-card h3 {
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 8px;
}

.entry-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
}

/* ============ 文章卡片 ============ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.article-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #cfe2f1;
}

.card-thumb {
    height: 168px;
    background: #dbe8f3;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    transition: transform .45s ease;
}

.article-card:hover .card-thumb img {
    transform: scale(1.045);
}

.card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 16.5px;
    color: var(--ink);
    line-height: 1.55;
    margin-bottom: 8px;
}

.article-card:hover .card-body h3 {
    color: var(--primary);
}

.card-body p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 14px;
    flex: 1;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    line-height: 1.9;
}

/* 分类标签行 */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.chip {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #d3e3f0;
    background: #fff;
    color: var(--primary);
    font-size: 13.5px;
}

.chip:hover {
    background: var(--primary-soft);
}

/* ============ 正文页布局 ============ */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px;
    align-items: start;
    padding: 34px 0 60px;
}

.article-main {
    min-width: 0;
}

.article-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 26px;
}

.article-head h1 {
    font-size: 28px;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: 12px;
}

.article-lead {
    font-size: 15.5px;
    color: var(--muted);
    background: var(--bg-soft);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 14px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--muted);
}

.article-body h2 {
    font-size: 20px;
    color: var(--ink);
    margin: 34px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    line-height: 1.5;
}

.article-body h3 {
    font-size: 17px;
    color: var(--ink);
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 14px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--ink);
}

/* 正文配图 */
.article-figure {
    margin: 24px 0;
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #dbe8f3;
}

.article-figure figcaption {
    margin-top: 9px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* 提示框 */
.tip-box,
.note-box {
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 14.5px;
}

.tip-box {
    background: #eef7fc;
    border: 1px solid #cfe4f2;
    color: #24506d;
}

.note-box {
    background: #fff8ec;
    border: 1px solid #f3e2c1;
    color: #7a5a1c;
}

.tip-box strong,
.note-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

.note-box strong {
    color: #a3701a;
}

/* 表格 */
.table-wrap {
    overflow-x: auto;
    margin: 18px 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 480px;
}

.table-wrap th,
.table-wrap td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table-wrap th {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 600;
    white-space: nowrap;
}

.table-wrap tr:last-child td {
    border-bottom: none;
}

/* 侧栏 */
.side-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 84px;
}

.side-card h3 {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.side-list {
    list-style: none;
    padding: 0;
}

.side-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}

.side-list li:last-child {
    border-bottom: none;
}

.side-list a:hover {
    color: var(--primary);
}

/* 相关推荐 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* 免责提示条 */
.disclaimer-bar {
    background: #fff8ec;
    border: 1px solid #f3e2c1;
    color: #7a5a1c;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    margin-top: 26px;
}

/* ============ 关于 / 免责 页面 ============ */
.page-block {
    padding: 40px 0 60px;
}

.page-block h1 {
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 8px;
}

.page-block .page-sub {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 14px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 26px 0;
}

.info-item {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.info-item h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.info-item p {
    font-size: 14px;
    color: var(--text);
}

/* ============ 页脚 ============ */
.site-footer {
    background: #222c38;
    color: #a9b6c4;
    padding: 46px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 32px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.8;
    font-size: 13.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand .logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0 24px;
    text-align: center;
    font-size: 13px;
    color: #8b98a6;
}

.footer-bottom a {
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ============ 响应式 ============ */
@media (max-width: 1000px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 880px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 20px rgba(31, 41, 51, .08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 14px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height .3s ease, opacity .25s ease, visibility .25s ease, padding .3s ease;
    }

    .nav-menu.is-open {
        max-height: 460px;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

    .nav-menu a {
        padding: 12px 8px;
        font-size: 15.5px;
        border-radius: 0;
        border-bottom: 1px solid #f0f4f8;
    }

    .nav-menu a.is-active::after {
        display: none;
    }

    .nav-foot-links {
        display: flex;
        gap: 18px;
        padding: 12px 8px 0;
        font-size: 14px;
        color: var(--muted);
    }

    .banner {
        padding: 64px 0 68px;
    }

    .banner h1 {
        font-size: 27px;
    }

    .banner .banner-sub {
        font-size: 15px;
    }

    .banner-sm h1 {
        font-size: 24px;
    }

    .section {
        padding: 42px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .article-head h1 {
        font-size: 23px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14.5px;
    }

    .container {
        padding: 0 16px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .entry-grid,
    .article-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-body h2 {
        font-size: 18px;
    }
}
