/* ========================================
   xy-005 体育企业模板 - 深紫+亮橙
   ======================================== */

/* --- Variables --- */
:root {
    --primary: #2d1b69;
    --primary-light: #4a2c8a;
    --primary-dark: #1a0f40;
    --accent: #ff6d00;
    --accent-hover: #e65100;
    --bg-dark: #0f0829;
    --bg-light: #f5f0ff;
    --bg-gray: #f8f6fc;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --border: #e5e1f0;
    --shadow: 0 4px 16px rgba(45,27,105,.1);
    --shadow-lg: 0 12px 40px rgba(45,27,105,.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all .3s ease;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 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(--accent); }
img { max-width: 100%; height: auto; }

/* --- Header --- */
.xy5-header { background: transparent; padding: 20px 0; position: absolute; top: 0; left: 0; right: 0; z-index: 1000; transition: var(--transition); }
.xy5-header.scrolled { background: var(--primary-dark); padding: 12px 0; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.xy5-header .logo { display: flex; align-items: center; }
.xy5-header .logo mip-img { height: 42px; width: auto; }
.xy5-header .logo-text { color: var(--text-white); font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.xy5-header .logo-text i { color: var(--accent); font-size: 1.6rem; }
.xy5-nav { display: flex; align-items: center; gap: 6px; }
.xy5-nav .nav-item { position: relative; }
.xy5-nav .nav-link { color: rgba(255,255,255,.9); padding: 10px 16px; display: block; font-size: .9rem; font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition); }
.xy5-nav .nav-link:hover { background: rgba(255,255,255,.1); color: var(--accent); }
.xy5-nav .nav-search { font-size: 1.1rem; }
.xy5-nav .has-dropdown:hover .dropdown-menu { display: block; }
.xy5-nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 160px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 100; }
.xy5-nav .dropdown-item { display: block; padding: 10px 18px; color: var(--text); font-size: .85rem; }
.xy5-nav .dropdown-item:hover { background: var(--bg-light); color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.xy5-hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.xy5-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.xy5-hero-bg mip-img { width: 100%; height: 100%; object-fit: cover; }
.xy5-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(45,27,105,.92) 0%, rgba(15,8,41,.85) 60%, rgba(255,109,0,.3) 100%); z-index: 1; }
.xy5-hero-content { position: relative; z-index: 2; padding: 80px 0 60px; }
.xy5-hero-tag { display: inline-block; background: rgba(255,109,0,.2); color: var(--accent); padding: 8px 20px; border-radius: 25px; font-size: .85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,109,0,.3); }
.xy5-hero-content h1 { color: var(--text-white); font-size: 3rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.xy5-hero-desc { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 500px; margin-bottom: 30px; }
.xy5-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.xy5-hero-stats { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; padding: 40px 0; }
.xy5-stat-card { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 20px 28px; text-align: center; transition: var(--transition); }
.xy5-stat-card:hover { background: rgba(255,255,255,.15); transform: translateX(-8px); }
.xy5-stat-card .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.xy5-stat-card .stat-label { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 4px; }

/* --- Buttons --- */
.xy5-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; transition: var(--transition); cursor: pointer; border: none; }
.xy5-btn-primary { background: var(--accent); color: #fff; }
.xy5-btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,109,0,.3); }
.xy5-btn-outline { border: 2px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.xy5-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.xy5-btn-sm { padding: 8px 18px; font-size: .8rem; }

/* --- Sections --- */
.xy5-section { padding: 70px 0; }
.xy5-section-gray { background: var(--bg-gray); }
.xy5-section-dark { background: var(--bg-dark); color: #fff; }
.xy5-section-header { margin-bottom: 45px; }
.xy5-section-header h2 { font-size: 2.2rem; font-weight: 700; color: var(--primary-dark); margin: 10px 0; }
.xy5-section-dark .xy5-section-header h2 { color: #fff; }
.xy5-section-header p { color: var(--text-light); font-size: 1rem; }
.xy5-section-dark .xy5-section-header p { color: rgba(255,255,255,.7); }
.xy5-section-tag { display: inline-block; background: var(--bg-light); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.xy5-section-tag-light { background: rgba(255,255,255,.1); color: var(--accent); }

/* --- About Section --- */
.xy5-about-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.xy5-about-img mip-img { border-radius: var(--radius); }
.xy5-about-badge { position: absolute; bottom: 20px; right: 20px; background: var(--accent); color: #fff; padding: 16px 24px; border-radius: var(--radius); text-align: center; }
.xy5-about-badge .badge-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.xy5-about-badge .badge-text { font-size: .75rem; }
.xy5-about-content h2 { font-size: 2rem; font-weight: 700; color: var(--primary-dark); margin: 12px 0 16px; }
.xy5-about-content > p { color: var(--text-light); margin-bottom: 24px; }
.xy5-about-features { display: flex; flex-direction: column; gap: 18px; }
.xy5-feature-item { display: flex; gap: 14px; align-items: flex-start; }
.xy5-feature-item i { color: var(--accent); font-size: 1.2rem; margin-top: 4px; }
.xy5-feature-item h4 { font-size: 1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.xy5-feature-item p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* --- Services Grid --- */
.xy5-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.xy5-service-card { background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.xy5-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.xy5-service-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.5rem; color: #fff; }
.xy5-service-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 10px; }
.xy5-service-card p { font-size: .85rem; color: var(--text-light); margin-bottom: 14px; }
.xy5-service-link { color: var(--accent); font-weight: 600; font-size: .85rem; }
.xy5-service-link:hover { color: var(--accent-hover); }

/* --- Timeline --- */
.xy5-timeline { position: relative; max-width: 700px; margin: 0 auto; padding-left: 40px; }
.xy5-timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.2); }
.xy5-timeline-item { position: relative; padding-bottom: 36px; }
.xy5-timeline-item:last-child { padding-bottom: 0; }
.xy5-timeline-dot { position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; background: var(--accent); border-radius: 50%; border: 3px solid var(--bg-dark); }
.xy5-timeline-content { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px 24px; }
.timeline-year { display: inline-block; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 15px; font-size: .75rem; font-weight: 700; margin-bottom: 8px; }
.xy5-timeline-content h4 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.xy5-timeline-content p { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }

/* --- News Grid --- */
.xy5-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.xy5-news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.xy5-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.xy5-news-img mip-img { width: 100%; }
.xy5-news-body { padding: 20px; }
.xy5-news-body time { font-size: .8rem; color: var(--text-light); }
.xy5-news-body h3 { font-size: 1rem; font-weight: 600; margin: 8px 0; }
.xy5-news-body h3 a { color: var(--primary-dark); }
.xy5-news-body h3 a:hover { color: var(--accent); }
.xy5-news-body p { font-size: .85rem; color: var(--text-light); }

/* --- CTA Section --- */
.xy5-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); padding: 60px 0; text-align: center; }
.xy5-cta h2 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.xy5-cta p { color: rgba(255,255,255,.8); margin-bottom: 24px; }

/* --- Category Page --- */
.xy5-cat-header { position: relative; min-height: 280px; display: flex; align-items: center; overflow: hidden; }
.xy5-cat-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.xy5-cat-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(45,27,105,.9) 0%, rgba(255,109,0,.5) 100%); z-index: 1; }
.xy5-cat-header h1 { position: relative; z-index: 2; color: #fff; font-size: 2.2rem; font-weight: 700; padding: 40px 0; }
.xy5-breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--text-light); }
.xy5-breadcrumb a { color: var(--text-light); }
.xy5-breadcrumb a:hover { color: var(--accent); }
.xy5-breadcrumb span { color: var(--primary); font-weight: 600; }
.xy5-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; padding: 20px 0 40px; }
.xy5-cat-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.xy5-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.xy5-cat-card-img mip-img { width: 100%; }
.xy5-cat-card-body { padding: 20px; }
.xy5-cat-card-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.xy5-cat-card-body h3 a { color: var(--primary-dark); }
.xy5-cat-card-body h3 a:hover { color: var(--accent); }
.xy5-cat-card-body p { font-size: .85rem; color: var(--text-light); margin-bottom: 12px; }
.xy5-read-more { color: var(--accent); font-weight: 600; font-size: .85rem; }
.xy5-pagination { text-align: center; padding: 20px 0 40px; }
.xy5-pagination .pagination { display: flex; justify-content: center; gap: 6px; list-style: none; }
.xy5-pagination .pagination a, .xy5-pagination .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; color: var(--text); }
.xy5-pagination .pagination .active span, .xy5-pagination .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Gallery Layout --- */
.xy5-gallery-layout { max-width: 900px; margin: 0 auto; padding: 30px 15px 60px; }
.xy5-gallery-img { margin: 20px 0; text-align: center; }
.xy5-gallery-img mip-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.xy5-gallery-nav { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px 0; }
.xy5-gallery-counter { font-size: .85rem; color: var(--text-light); }

/* --- Page Layout --- */
.xy5-page-layout { max-width: 900px; margin: 0 auto; padding: 30px 15px 60px; }

/* --- Detail Layout --- */
.xy5-detail-layout { max-width: 900px; margin: 0 auto; padding: 30px 15px 60px; }
.xy5-detail-article .article-title { font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--text-light); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-meta a { color: var(--primary); }
.article-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.article-content mip-img { border-radius: var(--radius-sm); margin: 12px 0; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border); }
.xy5-tag { display: inline-block; padding: 5px 14px; background: var(--bg-light); color: var(--primary); border-radius: 20px; font-size: .8rem; font-weight: 500; transition: var(--transition); }
.xy5-tag:hover { background: var(--primary); color: #fff; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.prev-next a { flex: 1; padding: 12px 16px; background: var(--bg-gray); border-radius: var(--radius-sm); font-size: .85rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-next a:hover { background: var(--primary); color: #fff; }

/* --- Related Articles --- */
.xy5-related { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--border); }
.xy5-related h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; }
.xy5-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.xy5-related-card { background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.xy5-related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.xy5-related-img mip-img { width: 100%; }
.xy5-related-title { padding: 10px 12px; font-size: .85rem; font-weight: 500; color: var(--text); }

/* --- Search Layout --- */
.xy5-so-layout { max-width: 900px; margin: 0 auto; padding: 30px 15px 60px; }
.xy5-so-header { text-align: center; margin-bottom: 30px; }
.xy5-so-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; }
.xy5-so-form { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; }
.xy5-so-input { flex: 1; padding: 12px 18px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; outline: none; transition: var(--transition); }
.xy5-so-input:focus { border-color: var(--primary); }
.xy5-so-result { padding: 12px 0; font-size: .9rem; color: var(--text-light); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.xy5-so-result strong { color: var(--primary); }
.xy5-so-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.xy5-so-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.xy5-so-item h3 a { color: var(--primary-dark); }
.xy5-so-item h3 a:hover { color: var(--accent); }
.xy5-so-item p { font-size: .85rem; color: var(--text-light); margin-bottom: 6px; }
.xy5-so-item time { font-size: .8rem; color: var(--text-light); }
.xy5-so-hot { text-align: center; padding: 40px 0; }
.xy5-so-hot h3 { font-size: 1.2rem; margin-bottom: 16px; color: var(--primary-dark); }
.xy5-so-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* --- Tag Layout --- */
.xy5-tag-layout { max-width: 1000px; margin: 0 auto; padding: 30px 15px 60px; }
.xy5-tag-header { text-align: center; margin-bottom: 30px; }
.xy5-tag-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); }
.xy5-tag-header p { color: var(--text-light); margin-top: 8px; }
.xy5-tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* --- Footer --- */
.xy5-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 50px 0 0; }
.xy5-footer-top { text-align: center; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.xy5-footer .logo-text { color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.xy5-footer .logo-text i { color: var(--accent); }
.xy5-footer .footer-desc { font-size: .85rem; max-width: 500px; margin: 0 auto; }
.xy5-footer h6 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.xy5-footer ul { list-style: none; padding: 0; }
.xy5-footer ul li { margin-bottom: 10px; }
.xy5-footer ul li a { color: rgba(255,255,255,.6); font-size: .85rem; }
.xy5-footer ul li a:hover { color: var(--accent); }
.xy5-footer .footer-contact li { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.xy5-footer .footer-contact i { color: var(--accent); width: 16px; }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

/* --- Responsive --- */
@media (max-width: 991px) {
    .xy5-hero { min-height: 500px; }
    .xy5-hero-content h1 { font-size: 2.2rem; }
}
@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .xy5-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: 10px 0; }
    .xy5-nav.show { display: flex; }
    .xy5-hero { min-height: 400px; }
    .xy5-hero-content h1 { font-size: 1.8rem; }
    .xy5-cat-grid { grid-template-columns: 1fr; }
    .xy5-services-grid { grid-template-columns: 1fr; }
    .xy5-news-grid { grid-template-columns: 1fr; }
    .xy5-related-grid { grid-template-columns: repeat(2, 1fr); }
    .xy5-so-form { flex-direction: column; }
    .prev-next { flex-direction: column; }
}
