/* ========================================
   xy-008 体育企业模板 - 锈橙+钢蓝
   ======================================== */

:root {
    --primary: #37474f;
    --primary-light: #546e7a;
    --primary-dark: #1c2a30;
    --rust: #d84315;
    --rust-hover: #bf360c;
    --rust-light: #fbe9e7;
    --bg-dark: #1a2327;
    --bg-light: #f7f8f9;
    --bg-gray: #eceff1;
    --text: #263238;
    --text-light: #78909c;
    --text-white: #ffffff;
    --border: #cfd8dc;
    --shadow: 0 4px 16px rgba(55,71,79,.1);
    --shadow-lg: 0 12px 40px rgba(55,71,79,.15);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif; color: var(--text); line-height: 1.7; background: #fff; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--rust); }
img { max-width: 100%; height: auto; }

/* Header */
.xy8-header { background: var(--primary-dark); box-shadow: 0 2px 12px rgba(0,0,0,.3); z-index: 1000; }
.xy8-header-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.xy8-header .logo { display: inline-block; }
.xy8-header .logo-text { color: var(--text-white); font-size: 1.35rem; font-weight: 700; }
.xy8-header .logo-text i { color: var(--rust); margin-right: 8px; }
.xy8-header .logo mip-img { height: 38px; width: auto; }
.xy8-nav { display: flex; align-items: center; gap: 6px; }
.xy8-nav .nav-link { color: rgba(255,255,255,.8); padding: 8px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; transition: var(--transition); }
.xy8-nav .nav-link:hover { color: var(--rust); background: rgba(255,255,255,.06); }
.xy8-search-btn { color: var(--text-white); background: var(--rust); padding: 8px 18px; border-radius: 20px; font-size: .85rem; font-weight: 600; transition: var(--transition); }
.xy8-search-btn:hover { background: var(--rust-hover); color: var(--text-white); }
.xy8-mobile-btn { display: none; background: none; border: none; color: var(--text-white); font-size: 1.4rem; cursor: pointer; }

/* Hero */
.xy8-hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.xy8-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.xy8-hero-bg mip-img { width: 100%; height: 100%; object-fit: cover; }
.xy8-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(28,42,39,.9) 0%, rgba(55,71,79,.7) 50%, rgba(28,42,39,.6) 100%); }
.xy8-hero-content { text-align: center; padding: 80px 0 60px; color: var(--text-white); }
.xy8-hero-badge { display: inline-block; background: rgba(216,67,21,.15); border: 1px solid rgba(216,67,21,.4); color: var(--rust); padding: 6px 20px; border-radius: 20px; font-size: .82rem; margin-bottom: 20px; letter-spacing: 1px; }
.xy8-hero-content h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.xy8-hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 28px; line-height: 1.8; }
.xy8-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.xy8-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.xy8-btn-rust { background: var(--rust); color: var(--text-white); }
.xy8-btn-rust:hover { background: var(--rust-hover); color: var(--text-white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(216,67,21,.35); }
.xy8-btn-ghost { background: transparent; color: var(--text-white); border: 2px solid rgba(255,255,255,.35); }
.xy8-btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

/* Sections */
.xy8-section { padding: 65px 0; }
.xy8-section-alt { background: var(--bg-light); }
.xy8-section-dark { background: var(--bg-gray); }
.xy8-section-head { text-align: center; margin-bottom: 44px; }
.xy8-section-head h2 { font-size: 1.9rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.xy8-section-head p { color: var(--text-light); font-size: 1rem; max-width: 550px; margin: 0 auto; }
.xy8-head-line { width: 50px; height: 3px; background: var(--rust); margin: 14px auto 0; border-radius: 2px; }

/* Magazine Grid */
.xy8-magazine { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.xy8-mag-featured { grid-row: span 2; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.xy8-mag-featured:hover { box-shadow: var(--shadow-lg); }
.xy8-mag-featured .xy8-mag-img mip-img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.xy8-mag-featured .xy8-mag-body { padding: 24px; }
.xy8-mag-featured h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.5; }
.xy8-mag-featured h3 a { color: var(--primary); }
.xy8-mag-featured h3 a:hover { color: var(--rust); }
.xy8-mag-featured p { color: var(--text-light); font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.xy8-mag-small { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); display: grid; grid-template-columns: 140px 1fr; }
.xy8-mag-small:hover { box-shadow: var(--shadow-lg); }
.xy8-mag-small .xy8-mag-img { height: 100%; }
.xy8-mag-small .xy8-mag-img mip-img { width: 100%; height: 100%; object-fit: cover; }
.xy8-mag-small .xy8-mag-body { padding: 14px; display: flex; flex-direction: column; justify-content: center; }
.xy8-mag-small h4 { font-size: .92rem; margin-bottom: 6px; line-height: 1.4; }
.xy8-mag-small h4 a { color: var(--primary); }
.xy8-mag-small h4 a:hover { color: var(--rust); }
.xy8-mag-cat { display: inline-block; background: var(--rust-light); color: var(--rust); padding: 3px 10px; border-radius: 12px; font-size: .75rem; font-weight: 600; margin-bottom: 8px; }
.xy8-mag-date { font-size: .8rem; color: var(--text-light); }
.xy8-mag-date i { margin-right: 4px; }

/* About */
.xy8-about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.xy8-about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.xy8-about-img mip-img { width: 100%; display: block; }
.xy8-about-text h2 { font-size: 1.7rem; color: var(--primary); margin-bottom: 16px; font-weight: 700; }
.xy8-about-text p { color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.xy8-about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.xy8-feat { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.xy8-feat i { color: var(--rust); font-size: 1rem; }
.xy8-feat span { font-size: .88rem; font-weight: 500; }

/* Process */
.xy8-process { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.xy8-step { background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); flex: 1; min-width: 180px; max-width: 220px; transition: var(--transition); }
.xy8-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--rust); }
.xy8-step-num { font-size: 2rem; font-weight: 800; color: var(--rust); margin-bottom: 12px; }
.xy8-step h4 { font-size: 1rem; color: var(--primary); margin-bottom: 8px; font-weight: 600; }
.xy8-step p { color: var(--text-light); font-size: .85rem; }
.xy8-step-arrow { color: var(--border); font-size: 1.2rem; }

/* News Grid */
.xy8-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.xy8-news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.xy8-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.xy8-news-img mip-img { width: 100%; display: block; transition: var(--transition); }
.xy8-news-card:hover .xy8-news-img mip-img { transform: scale(1.03); }
.xy8-news-body { padding: 20px; }
.xy8-news-body h4 { font-size: 1rem; margin-bottom: 8px; line-height: 1.5; }
.xy8-news-body h4 a { color: var(--primary); }
.xy8-news-body h4 a:hover { color: var(--rust); }
.xy8-news-body p { color: var(--text-light); font-size: .85rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.xy8-news-date { font-size: .8rem; color: var(--text-light); }
.xy8-news-date i { margin-right: 4px; }

/* CTA */
.xy8-cta { background: linear-gradient(135deg, var(--rust) 0%, var(--rust-hover) 100%); padding: 60px 0; text-align: center; color: var(--text-white); }
.xy8-cta h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 12px; }
.xy8-cta p { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 26px; }
.xy8-cta .xy8-btn-rust { background: var(--text-white); color: var(--rust); }
.xy8-cta .xy8-btn-rust:hover { background: var(--bg-light); color: var(--rust-hover); }

/* Category */
.xy8-cat-header { position: relative; overflow: hidden; }
.xy8-cat-bg { width: 100%; }
.xy8-cat-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(28,42,39,.7), rgba(55,71,79,.85)); }
.xy8-cat-header .container { position: relative; z-index: 2; padding: 55px 0 45px; }
.xy8-cat-header h1 { color: var(--text-white); font-size: 1.9rem; font-weight: 700; }
.xy8-breadcrumb { padding: 14px 0; font-size: .85rem; color: var(--text-light); }
.xy8-breadcrumb a { color: var(--text-light); }
.xy8-breadcrumb a:hover { color: var(--rust); }
.xy8-breadcrumb span { color: var(--primary); font-weight: 500; }
.xy8-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: .85rem; }
.xy8-breadcrumb .breadcrumb-item a { color: var(--text-light); }
.xy8-breadcrumb .breadcrumb-item a:hover { color: var(--rust); }
.xy8-breadcrumb .breadcrumb-item.active { color: var(--primary); font-weight: 600; }
.xy8-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); content: "/"; }
.xy8-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 24px 0 40px; }
.xy8-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.xy8-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.xy8-card-img mip-img { width: 100%; display: block; transition: var(--transition); }
.xy8-card:hover .xy8-card-img mip-img { transform: scale(1.03); }
.xy8-card-body { padding: 18px; }
.xy8-card-body h3 { font-size: .98rem; margin-bottom: 8px; line-height: 1.5; }
.xy8-card-body h3 a { color: var(--primary); }
.xy8-card-body h3 a:hover { color: var(--rust); }
.xy8-card-body p { color: var(--text-light); font-size: .84rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xy8-card-meta { display: flex; gap: 14px; margin-top: 10px; font-size: .8rem; color: var(--text-light); }
.xy8-card-meta i { margin-right: 4px; }
.xy8-pagination { padding: 16px 0 40px; text-align: center; }
.xy8-pagination .pagination { justify-content: center; gap: 6px; }
.xy8-pagination .page-link { color: var(--primary); border-color: var(--border); padding: 8px 14px; border-radius: var(--radius-sm); }
.xy8-pagination .page-item.active .page-link { background: var(--rust); border-color: var(--rust); color: var(--text-white); }

/* Detail */
.xy8-detail-layout { max-width: 850px; margin: 0 auto; padding: 40px 15px 50px; }
.article-title { font-size: 1.7rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; line-height: 1.4; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px; font-size: .85rem; color: var(--text-light); }
.article-meta a { color: var(--rust); }
.article-content { font-size: 1rem; line-height: 2; color: var(--text); }
.article-content mip-img { margin: 14px 0; border-radius: var(--radius-sm); }
.article-content p { margin-bottom: 16px; }
.article-tags { padding: 20px 0; border-top: 1px solid var(--border); margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.article-tags a { display: inline-block; background: var(--rust-light); color: var(--rust); padding: 5px 14px; border-radius: 18px; font-size: .82rem; font-weight: 500; }
.article-tags a:hover { background: var(--rust); color: var(--text-white); }

/* Related */
.xy8-related { margin-top: 40px; }
.xy8-related-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--rust); display: inline-block; }
.xy8-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xy8-related-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.xy8-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.xy8-related-img mip-img { width: 100%; display: block; }
.xy8-related-card h4 { padding: 12px 14px; font-size: .88rem; line-height: 1.5; }
.xy8-related-card h4 a { color: var(--primary); }
.xy8-related-card h4 a:hover { color: var(--rust); }

/* Search / SO */
.xy8-so-layout { max-width: 850px; margin: 0 auto; padding: 40px 15px 50px; }
.xy8-so-header { text-align: center; margin-bottom: 32px; }
.xy8-so-header h1 { font-size: 1.7rem; color: var(--primary); margin-bottom: 18px; }
.xy8-so-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.xy8-so-input { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; outline: none; transition: var(--transition); }
.xy8-so-input:focus { border-color: var(--rust); }
.xy8-so-result { background: var(--bg-light); padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .88rem; color: var(--text-light); }
.xy8-so-result strong { color: var(--primary); }
.xy8-so-list { display: flex; flex-direction: column; gap: 16px; }
.xy8-so-item { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.xy8-so-item:hover { box-shadow: var(--shadow-lg); border-color: var(--rust); }
.xy8-so-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.xy8-so-item h3 a { color: var(--primary); }
.xy8-so-item h3 a:hover { color: var(--rust); }
.xy8-so-item p { color: var(--text-light); font-size: .86rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xy8-so-item .meta { font-size: .78rem; color: var(--text-light); margin-top: 8px; }
.xy8-so-hot { margin-top: 28px; }
.xy8-so-hot h4 { font-size: 1rem; color: var(--primary); margin-bottom: 12px; }
.xy8-so-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.xy8-so-tags a { background: var(--bg-light); color: var(--text-light); padding: 6px 14px; border-radius: 18px; font-size: .82rem; }
.xy8-so-tags a:hover { background: var(--rust-light); color: var(--rust); }

/* Tag */
.xy8-tag-layout { max-width: 880px; margin: 0 auto; padding: 40px 15px 50px; }
.xy8-tag-header { text-align: center; margin-bottom: 32px; }
.xy8-tag-header h1 { font-size: 1.7rem; color: var(--primary); margin-bottom: 8px; }
.xy8-tag-header p { color: var(--text-light); }
.xy8-tag-cloud { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.xy8-tag-item { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); padding: 8px 18px; border-radius: 20px; font-size: .88rem; color: var(--primary); transition: var(--transition); }
.xy8-tag-item:hover { background: var(--rust); color: var(--text-white); border-color: var(--rust); }
.xy8-tag-item i { color: var(--rust); font-size: .8rem; }
.xy8-tag-item:hover i { color: var(--text-white); }
.xy8-tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Gallery / Page Layout */
.xy8-gallery-layout, .xy8-page-layout { max-width: 880px; margin: 0 auto; padding: 40px 15px 50px; }
.xy8-page-layout .article-title { font-size: 1.7rem; }
.article-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }

/* Footer */
.xy8-footer { background: var(--primary-dark); color: rgba(255,255,255,.7); padding: 44px 0 0; }
.xy8-footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.xy8-footer-brand { margin-bottom: 12px; }
.xy8-footer-brand .logo-text { color: var(--text-white); font-size: 1.2rem; font-weight: 700; }
.xy8-footer-brand .logo-text i { color: var(--rust); }
.xy8-footer-brand mip-img { height: 34px; width: auto; }
.xy8-footer-brand p { font-size: .85rem; line-height: 1.7; margin-top: 10px; }
.xy8-footer-col h6 { color: var(--rust); font-size: .88rem; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.xy8-footer-col ul { list-style: none; }
.xy8-footer-col li { margin-bottom: 8px; }
.xy8-footer-col a { color: rgba(255,255,255,.6); font-size: .85rem; }
.xy8-footer-col a:hover { color: var(--rust); }
.xy8-footer-col p { font-size: .85rem; margin-bottom: 8px; }
.xy8-footer-col p i { margin-right: 6px; color: var(--rust); }
.xy8-footer-bottom { text-align: center; padding: 18px 0; font-size: .8rem; color: rgba(255,255,255,.4); }

/* Responsive */
@media (max-width: 991px) {
    .xy8-hero-content h1 { font-size: 2.2rem; }
    .xy8-magazine { grid-template-columns: 1fr; }
    .xy8-mag-featured { grid-row: span 1; }
    .xy8-about { grid-template-columns: 1fr; gap: 28px; }
    .xy8-news-grid { grid-template-columns: repeat(2, 1fr); }
    .xy8-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .xy8-related-grid { grid-template-columns: repeat(2, 1fr); }
    .xy8-tag-grid { grid-template-columns: repeat(2, 1fr); }
    .xy8-process { flex-direction: column; }
    .xy8-step-arrow { transform: rotate(90deg); }
    .xy8-footer-top { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
    .xy8-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 14px; gap: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
    .xy8-nav.show { display: flex; }
    .xy8-mobile-btn { display: block; }
    .xy8-hero { min-height: 380px; }
    .xy8-hero-content h1 { font-size: 1.7rem; }
    .xy8-hero-desc { font-size: .95rem; }
    .xy8-news-grid { grid-template-columns: 1fr; }
    .xy8-cat-grid { grid-template-columns: 1fr; }
    .xy8-tag-grid { grid-template-columns: 1fr; }
    .xy8-mag-small { grid-template-columns: 1fr; }
    .xy8-related-grid { grid-template-columns: 1fr; }
    .xy8-about-features { grid-template-columns: 1fr; }
    .xy8-so-form { flex-direction: column; }
    .xy8-section { padding: 45px 0; }
    .article-title { font-size: 1.35rem; }
}
