/* ========================================
   xy-004 体育企业模板 - 深翠绿+琥珀金
   ======================================== */

/* --- Variables --- */
:root {
    --primary: #065f46;
    --primary-light: #047857;
    --primary-dark: #064e3b;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --bg-dark: #022c22;
    --bg-light: #f0fdf4;
    --bg-gray: #f8faf9;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --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.6; background: #fff; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* --- Header --- */
.xy-header { background: var(--primary-dark); padding: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.xy-header .logo { display: flex; align-items: center; }
.xy-header .logo mip-img { height: 40px; width: auto; }
.xy-header .logo-text { color: var(--text-white); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.xy-header .logo-text i { color: var(--accent); font-size: 1.5rem; }
.xy-nav { display: flex; align-items: center; gap: 4px; }
.xy-nav .nav-item { position: relative; }
.xy-nav .nav-link { color: rgba(255,255,255,.85); padding: 16px 14px; display: block; font-size: .9rem; font-weight: 500; transition: var(--transition); }
.xy-nav .nav-link:hover, .xy-nav .nav-item:hover .nav-link { color: var(--accent); }
.xy-nav .has-dropdown:hover .dropdown-menu { display: block; }
.xy-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; }
.xy-nav .dropdown-item { display: block; padding: 8px 16px; color: var(--text); font-size: .85rem; }
.xy-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 --- */
.xy-hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.xy-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.xy-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(6,95,70,.92) 0%, rgba(2,44,34,.88) 100%); z-index: 1; }
.xy-hero-content { position: relative; z-index: 2; padding: 60px 0; }
.xy-hero-badge { display: inline-block; background: rgba(245,158,11,.2); color: var(--accent); padding: 6px 18px; border-radius: 20px; font-size: .85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(245,158,11,.3); }
.xy-hero-content h1 { color: var(--text-white); font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.xy-hero-desc { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }
.xy-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.xy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; transition: var(--transition); cursor: pointer; border: none; }
.xy-btn-primary { background: var(--accent); color: var(--bg-dark); }
.xy-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.xy-btn-outline { border: 2px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.xy-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.xy-btn-dark { background: var(--primary-dark); color: #fff; }
.xy-btn-dark:hover { background: var(--primary); }
.xy-btn-sm { padding: 6px 16px; font-size: .8rem; }

/* --- Stats Bar --- */
.xy-stats { background: var(--primary); padding: 30px 0; }
.xy-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.xy-stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.xy-stat-label { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 4px; }

/* --- Sections --- */
.xy-section { padding: 60px 0; }
.xy-section-gray { background: var(--bg-gray); }
.xy-section-dark { background: var(--bg-dark); color: #fff; }
.xy-section-title { margin-bottom: 40px; }
.xy-section-title h2 { font-size: 2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.xy-section-dark .xy-section-title h2 { color: #fff; }
.xy-section-title p { color: var(--text-light); font-size: 1rem; }
.xy-section-dark .xy-section-title p { color: rgba(255,255,255,.7); }

/* --- Why Us Cards --- */
.xy-whyus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.xy-whyus-card { background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.xy-whyus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.xy-whyus-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.4rem; color: #fff; }
.xy-icon-green { background: linear-gradient(135deg, #059669, #10b981); }
.xy-icon-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.xy-icon-emerald { background: linear-gradient(135deg, #047857, #34d399); }
.xy-icon-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.xy-icon-lime { background: linear-gradient(135deg, #65a30d, #a3e635); }
.xy-whyus-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; }
.xy-whyus-card p { font-size: .85rem; color: var(--text-light); line-height: 1.6; }

/* --- Tabs --- */
.xy-tabs-nav { display: flex; gap: 8px; margin-bottom: 30px; justify-content: center; flex-wrap: wrap; }
.xy-tab-btn { padding: 10px 28px; border: 2px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.7); border-radius: 30px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.xy-tab-btn.active, .xy-tab-btn:hover { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }
.xy-tab-pane { display: none; }
.xy-tab-pane.active { display: block; }
.xy-tab-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.xy-tab-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.xy-tab-text p { color: rgba(255,255,255,.75); margin-bottom: 20px; line-height: 1.7; }
.xy-tab-img mip-img { border-radius: var(--radius); overflow: hidden; }

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

/* --- App Section --- */
.xy-app-img mip-img { max-width: 350px; border-radius: var(--radius); }
.xy-app-desc { color: var(--text-light); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.xy-app-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.xy-app-feature { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--primary); font-weight: 500; }
.xy-app-feature i { color: var(--accent); }
.xy-app-btns { display: flex; gap: 12px; flex-wrap: wrap; }

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

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

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

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

/* --- Detail Layout --- */
.xy-detail-layout { max-width: 900px; margin: 0 auto; padding: 30px 15px 60px; }
.xy-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); }
.xy-tag { display: inline-block; padding: 4px 14px; background: var(--bg-light); color: var(--primary); border-radius: 20px; font-size: .8rem; font-weight: 500; transition: var(--transition); }
.xy-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 --- */
.xy-related { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--border); }
.xy-related h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; }
.xy-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.xy-related-card { background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.xy-related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.xy-related-img mip-img { width: 100%; }
.xy-related-title { padding: 10px 12px; font-size: .85rem; font-weight: 500; color: var(--text); }

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

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

/* --- Footer --- */
.xy-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 50px 0 0; }
.xy-footer h6 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.xy-footer .logo-text { color: #fff; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.xy-footer .logo-text i { color: var(--accent); }
.xy-footer p { font-size: .85rem; line-height: 1.6; }
.xy-footer ul { list-style: none; padding: 0; }
.xy-footer ul li { margin-bottom: 8px; }
.xy-footer ul li a { color: rgba(255,255,255,.6); font-size: .85rem; }
.xy-footer ul li a:hover { color: var(--accent); }
.xy-footer .contact-list li { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.xy-footer .contact-list 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; }

/* --- Back to Top --- */
#back-to-top-wrapper { right: 20px; bottom: 20px; position: fixed; z-index: 999; }
.back-top-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 1rem; box-shadow: var(--shadow); transition: var(--transition); }
.back-top-btn:hover { background: var(--accent); color: var(--bg-dark); }

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