/* ===================== 悦动健身门户样式 ===================== */
:root {
    --primary: #00a86b;
    --primary-dark: #008f5b;
    --dark: #14332a;
    --text: #333;
    --text-light: #777;
    --bg-light: #f6f8f7;
    --border: #e5e9e7;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 46px; height: 46px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #3cba92);
    color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center;
}
.logo-text h1 { font-size: 22px; color: var(--dark); letter-spacing: 1px; }
.logo-text span { font-size: 12px; color: var(--text-light); letter-spacing: .5px; }

.main-nav { display: flex; gap: 8px; }
.main-nav a {
    padding: 10px 20px; font-size: 16px; color: #444; border-radius: 6px;
    transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; position: relative; }
.main-nav a.active::after {
    content: ""; position: absolute; left: 20px; right: 20px; bottom: 2px;
    height: 3px; border-radius: 2px; background: var(--primary);
}

/* ---------- 首页轮播 ---------- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-track { display: flex; transition: transform .6s ease; }
.hero-slide {
    min-width: 100%; height: 520px; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15));
}
.hero-caption {
    position: relative; z-index: 2; color: #fff; text-align: center; padding: 0 20px;
}
.hero-caption h2 { font-size: 44px; letter-spacing: 4px; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-caption p { font-size: 18px; letter-spacing: 2px; opacity: .92; }
.hero-caption .btn { margin-top: 28px; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .25); color: #fff; font-size: 22px;
    transition: background .2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .45); }
.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dots button {
    width: 34px; height: 4px; border: none; border-radius: 2px; cursor: pointer;
    background: rgba(255, 255, 255, .45); transition: background .2s;
}
.hero-dots button.active { background: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section.bg { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; color: var(--dark); letter-spacing: 2px; }
.section-head p { color: var(--text-light); margin-top: 6px; letter-spacing: 1px; }
.section-head .line {
    width: 46px; height: 4px; border-radius: 2px; background: var(--primary); margin: 14px auto 0;
}

.btn {
    display: inline-block; padding: 10px 30px; border-radius: 24px;
    background: var(--primary); color: #fff; font-size: 15px; border: none; cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn.outline:hover { background: var(--primary); color: #fff; }
.more-link { text-align: center; margin-top: 36px; }

/* ---------- 卡片栅格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.card-img { height: 210px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .tag {
    position: absolute; top: 12px; left: 12px; padding: 3px 12px; border-radius: 12px;
    background: rgba(0, 168, 107, .92); color: #fff; font-size: 12px;
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.card-body .desc {
    font-size: 14px; color: var(--text-light);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; }
.card-body .price { color: #f4511e; font-weight: 700; font-size: 17px; }
.card-body .coach { color: var(--text-light); }

/* ---------- 首页新闻/公告两栏 ---------- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news-item { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-item .thumb { width: 210px; height: 130px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 17px; margin-bottom: 8px; }
.news-item h3 a:hover { color: var(--primary); }
.news-item .desc { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .date { font-size: 13px; color: #aaa; margin-top: 8px; }

.side-box { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.06); padding: 24px; }
.side-box h3 { font-size: 18px; color: var(--dark); border-left: 4px solid var(--primary); padding-left: 10px; margin-bottom: 16px; }
.side-box li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.side-box li:last-child { border-bottom: none; }
.side-box li a { display: flex; justify-content: space-between; gap: 10px; }
.side-box li a:hover { color: var(--primary); }
.side-box li .d { color: #aaa; font-size: 12px; white-space: nowrap; }

/* ---------- 特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature {
    text-align: center; padding: 36px 18px; background: #fff; border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: transform .2s;
}
.feature:hover { transform: translateY(-5px); }
.feature .icon { font-size: 40px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.feature p { font-size: 13px; color: var(--text-light); }

/* ---------- 视频区块 ---------- */
.video-block { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.video-block video { width: 100%; }

/* ---------- 内页头 ---------- */
.page-banner {
    height: 220px; background: linear-gradient(120deg, #0f2b21, var(--primary-dark));
    display: flex; align-items: center; color: #fff;
}
.page-banner h1 { font-size: 34px; letter-spacing: 3px; }
.page-banner p { margin-top: 8px; opacity: .85; letter-spacing: 1px; }

.sub-nav-bar { background: #fff; border-bottom: 1px solid var(--border); }
.sub-nav-inner { display: flex; justify-content: space-between; align-items: center; }
.sub-nav { display: flex; }
.sub-nav a {
    padding: 16px 28px; font-size: 15px; color: #555; position: relative; display: block;
}
.sub-nav a:hover { color: var(--primary); }
.sub-nav a.active { background: var(--primary); color: #fff; }
.breadcrumb { font-size: 13px; color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 列表（解决方案样式） ---------- */
.list-item {
    display: flex; gap: 30px; background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.06); margin-bottom: 28px; padding: 24px;
    transition: box-shadow .2s;
}
.list-item:hover { box-shadow: 0 8px 26px rgba(0,0,0,.1); }
.list-item .thumb { width: 380px; height: 240px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .info { flex: 1; display: flex; flex-direction: column; }
.list-item h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 12px; }
.list-item h3 a:hover { text-decoration: underline; }
.list-item .desc { font-size: 14px; color: #666; flex: 1; }
.list-item .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.list-item .meta { font-size: 13px; color: #999; }

/* ---------- 公告/新闻简单列表 ---------- */
.simple-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 18px 6px; border-bottom: 1px solid var(--border);
}
.simple-list li a { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simple-list li a::before { content: "•"; color: var(--primary); margin-right: 8px; }
.simple-list li a:hover { color: var(--primary); }
.simple-list .date { color: #aaa; font-size: 14px; white-space: nowrap; }

/* ---------- 详情页 ---------- */
.detail-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.06); padding: 44px 50px; }
.detail-card h1 { font-size: 26px; color: var(--dark); text-align: center; }
.detail-meta {
    text-align: center; color: #999; font-size: 13px; margin: 14px 0 26px;
    padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.detail-content { font-size: 15px; line-height: 2; color: #444; white-space: pre-line; }
.detail-content img, .detail-content video { margin: 20px auto; border-radius: 8px; }
.detail-video { margin: 24px 0; border-radius: 10px; overflow: hidden; }
.back-row { text-align: center; margin-top: 34px; }

/* ---------- 招聘 ---------- */
.job-card {
    background: #fff; border-radius: 12px; padding: 28px 32px; margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center;
    transition: transform .2s;
}
.job-card:hover { transform: translateY(-3px); }
.job-card h3 { font-size: 19px; color: var(--dark); }
.job-card .tags { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.job-card .tags span {
    font-size: 12px; background: var(--bg-light); color: #666; padding: 4px 12px; border-radius: 12px;
}
.job-card .salary { color: #f4511e; font-weight: 700; font-size: 18px; margin-right: 26px; }
.job-duty { background: var(--bg-light); border-radius: 10px; padding: 22px 26px; margin-top: 20px; white-space: pre-line; font-size: 14px; }
.job-duty h4 { color: var(--dark); margin-bottom: 8px; font-size: 15px; }

/* ---------- 关于我们 ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-block img { border-radius: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.1); }
.about-block h2 { color: var(--dark); font-size: 26px; margin-bottom: 16px; }
.about-block p { color: #555; font-size: 15px; margin-bottom: 12px; text-indent: 2em; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-row .num { font-size: 38px; font-weight: 700; color: var(--primary); }
.stat-row .label { color: var(--text-light); font-size: 14px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 6px; font-size: 14px; color: #555; background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-info { text-align: center; color: #999; font-size: 13px; margin-top: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); margin-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 36px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer p, .site-footer li { font-size: 14px; margin-bottom: 10px; }
.site-footer a:hover { color: var(--primary); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; margin-bottom: 14px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .header-inner { flex-direction: column; height: auto; padding: 14px 0; gap: 10px; }
    .main-nav { flex-wrap: wrap; justify-content: center; }
    .hero-slide { height: 320px; }
    .hero-caption h2 { font-size: 28px; }
    .card-grid, .feature-grid, .stat-row { grid-template-columns: repeat(2, 1fr); }
    .two-col, .about-block { grid-template-columns: 1fr; }
    .list-item { flex-direction: column; }
    .list-item .thumb { width: 100%; height: 200px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .detail-card { padding: 26px 20px; }
}
@media (max-width: 560px) {
    .card-grid, .feature-grid, .stat-row, .footer-inner { grid-template-columns: 1fr; }
}
