/* ============================================
   GLCPG Sports Pro Theme - CSS
   完全匹配 www.glcpg.com 设计风格
   ============================================ */

/* --- Base --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: #0d6efd; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #0a58ca; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === HEADER (header-2 dark style) === */
.gl-header-dark {
    background-color: #212529 !important;
}
.gl-header-dark .navbar { padding-top: 10px; padding-bottom: 10px; }
.gl-header-dark .navbar-brand img { max-height: 60px; max-width: 100px; height: auto; width: auto; }
.gl-header-dark .nav-link {
    color: rgba(255,255,255,0.85);
    transition: all 0.3s;
    font-size: 15px;
}
.gl-header-dark .nav-link:hover,
.gl-header-dark .nav-link.active {
    color: #ffc107;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.gl-header-dark .btn-warning {
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.gl-header-dark .btn-warning:hover {
    background-color: #e0a800;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255,193,7,0.4);
}
.gl-nav-toggle {
    cursor: pointer;
    padding: 4px 8px;
}

/* === HERO (hero-5 style) === */
.gl-section-hero {
    padding: 80px 20px 60px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    overflow: hidden;
}
.gl-section-hero h1 { font-size: 2rem; line-height: 1.4; }
.gl-section-hero .fw-semibold { color: #6c757d; letter-spacing: 2px; font-size: 0.9rem; }
.gl-hero-img { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.gl-btn-hero {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
    transition: all 0.3s;
}
.gl-btn-hero:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,110,253,0.4);
    background: linear-gradient(135deg, #0a58ca, #0842a0);
}

/* === ABOUT (about-14 style) === */
.gl-section-about { background: #fff; }
.gl-section-about h2 { color: #0d6efd; }
.gl-about-img { border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* === STATS (stats-5 style) === */
.gl-section-stats { background: #f8f9fa; }
.gl-section-stats h2 { color: #0d6efd; }
.gl-stats5-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.gl-stats5-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.gl-stats5-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.gl-stats5-icon { margin-bottom: 12px; }
.gl-stats5-data h5 { font-size: 14px; color: #495057; }
.gl-stats5-data p { color: #212529; margin-bottom: 4px; }
.gl-stats5-data small { color: #6c757d; }

/* === SECURITY (security-7 style) === */
.gl-section-security { background: #fff; }
.gl-security-visual mip-img { border-radius: 12px; }
.gl-security-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.gl-step-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* === UPDATE (update-11 dark bg accordion) === */
.gl-section-update {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.gl-accordion { max-width: 800px; margin: 0 auto; }
.gl-accordion-item {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.gl-accordion-header {
    padding: 16px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}
.gl-accordion-header:hover { background: rgba(255,255,255,0.05); }
.gl-accordion-header.active { background: rgba(13,110,253,0.15); }
.gl-accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.7);
}
.gl-accordion-body.show {
    padding: 16px 20px;
    max-height: 500px;
}
.gl-accordion-body ul { padding-left: 20px; margin: 0; }
.gl-accordion-body ul li { margin-bottom: 6px; }

/* === MISSION (mission-3 dark bg) === */
.gl-section-mission {
    background: linear-gradient(135deg, #0d1b2e, #1a2d4a);
    padding-bottom: 40px;
}
.gl-mission-img { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.gl-mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gl-mission-list li {
    padding: 8px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}
.gl-mission-list li strong { color: #fff; }

/* === NEWS (news-3 horizontal cards) === */
.gl-section-news { background: #fff; }
.gl-news3-wrapper { display: grid; gap: 20px; }
.gl-news3-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.gl-news3-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.gl-news3-img-wrap {
    flex-shrink: 0;
    width: 280px;
    position: relative;
    overflow: hidden;
}
.gl-news3-img-wrap mip-img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}
.gl-news3-content { flex: 1; }
.gl-news3-content h3 a { color: #212529; }
.gl-news3-content h3 a:hover { color: #0d6efd; }
.gl-read-more {
    font-weight: 600;
    font-size: 13px;
    color: #0d6efd;
}
.gl-read-more:hover { color: #0a58ca; }

/* === CATEGORIES === */
.gl-section-categories { background: #f8f9fa; }
.gl-category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.gl-category-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.gl-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 2px solid #0d6efd;
    background: #fff;
}
.gl-category-header h3 { font-size: 16px; font-weight: 700; margin: 0; color: #212529; }
.gl-more-link { font-size: 13px; color: #0d6efd; font-weight: 500; }
.gl-more-link:hover { color: #ffc107; }
.gl-category-list { list-style: none; padding: 0; margin: 0; }
.gl-category-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px dashed #e9ecef;
    font-size: 14px;
}
.gl-category-list li:last-child { border-bottom: none; }
.gl-category-list li a { color: #333; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-category-list li a:hover { color: #0d6efd; }
.gl-category-list li time { flex-shrink: 0; color: #6c757d; font-size: 12px; margin-left: 10px; }

/* === FOOTER (footer-10 dark style) === */
.gl-footer-dark {
    background: url('../images/footer-bg.png') center/cover no-repeat;
    position: relative;
}
.gl-footer-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    z-index: 1;
}
.gl-footer-friendlink { border-top: 1px solid rgba(255,255,255,0.1); }

/* === SIDEBAR (for article/tag/search pages) === */
.gl-sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}
.gl-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0d6efd;
}
.gl-sidebar-title i { color: #dc3545; margin-right: 6px; }
.gl-sidebar-list { list-style: none; padding: 0; margin: 0; }
.gl-sidebar-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
}
.gl-sidebar-list li:last-child { border-bottom: none; }
.gl-sidebar-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
}
.gl-sidebar-rank.gl-rank-hot { background: #dc3545; color: #fff; }
.gl-sidebar-list li a { font-size: 14px; color: #333; line-height: 1.5; flex: 1; }
.gl-sidebar-list li a:hover { color: #0d6efd; }
.gl-sidebar-list li time { flex-shrink: 0; font-size: 12px; color: #6c757d; margin-left: 8px; }

/* === TAGS === */
.gl-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-tag-item {
    display: inline-block;
    padding: 4px 14px;
    background: #f8f9fa;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.gl-tag-item:hover { background: #0d6efd; color: #fff; border-color: #0d6efd; }

/* === CONTENT BOX === */
.gl-content-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.gl-box-header { padding: 16px 24px; border-bottom: 1px solid #e9ecef; background: #f8f9fa; }
.gl-box-header h3 { font-size: 18px; font-weight: 700; color: #212529; margin: 0; }
.gl-box-body { padding: 20px 24px; }

/* === ARTICLE LIST ITEM === */
.gl-article-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}
.gl-article-item:last-child { border-bottom: none; }
.gl-article-item:hover { background: rgba(13,110,253,0.02); }
.gl-article-item-img {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
}
.gl-article-item-img mip-img { width: 100%; height: 100%; object-fit: cover; }
.gl-article-item-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.gl-article-item-content h4 { font-size: 16px; font-weight: 600; color: #212529; margin-bottom: 8px; line-height: 1.5; }
.gl-article-item-content h4 a { color: inherit; }
.gl-article-item-content h4 a:hover { color: #0d6efd; }
.gl-article-desc { font-size: 14px; color: #6c757d; line-height: 1.6; margin-bottom: 8px; }
.gl-article-meta { display: flex; gap: 16px; font-size: 13px; color: #6c757d; }
.gl-article-meta i { margin-right: 4px; }

/* === ARTICLE DETAIL === */
.gl-detail { padding: 24px; }
.gl-detail-title { font-size: 26px; font-weight: 800; color: #212529; line-height: 1.4; margin-bottom: 16px; }
.gl-detail-meta { display: flex; gap: 20px; font-size: 13px; color: #6c757d; margin-bottom: 12px; flex-wrap: wrap; }
.gl-detail-meta i { margin-right: 4px; }
.gl-detail-body { font-size: 16px; line-height: 1.9; color: #333; }
.gl-detail-body mip-img { border-radius: 8px; margin: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.gl-detail-body p { margin-bottom: 16px; }
.gl-detail-body h2, .gl-detail-body h3 { color: #212529; margin: 24px 0 12px; }
.gl-detail-body blockquote {
    border-left: 4px solid #0d6efd;
    padding: 12px 20px;
    background: #f8f9fa;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #6c757d;
}

/* === DETAIL NAV === */
.gl-detail-nav { padding: 16px 0; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; margin-bottom: 24px; }
.gl-detail-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; }
.gl-detail-nav li { flex: 1; }
.gl-detail-nav li span { display: block; font-size: 12px; color: #6c757d; margin-bottom: 4px; }
.gl-detail-nav li a { font-size: 14px; color: #333; font-weight: 500; }
.gl-detail-nav li a:hover { color: #0d6efd; }
.gl-detail-nav .gl-nav-next { text-align: right; }

/* === RELATED === */
.gl-related { margin-top: 24px; }
.gl-related h3 { font-size: 18px; font-weight: 700; color: #212529; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #0d6efd; }
.gl-related h3 i { color: #dc3545; margin-right: 6px; }
.gl-related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gl-related-list .gl-news3-card { flex-direction: column; }
.gl-related-list .gl-news3-img-wrap { width: 100%; height: 160px; position: relative; }

/* === BREADCRUMB === */
.gl-breadcrumb { list-style: none; padding: 16px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.gl-breadcrumb li { display: flex; align-items: center; }
.gl-breadcrumb li + li::before { content: "/"; margin: 0 8px; color: #6c757d; }
.gl-breadcrumb li a { color: #0d6efd; }
.gl-breadcrumb li.active { color: #6c757d; }

/* === TAG PAGE === */
.gl-tag-page { padding: 20px 0; }
.gl-tag-cloud-lg .gl-tag-item { padding: 8px 20px; font-size: 14px; }
.gl-tag-header-info { padding: 20px 0; margin-bottom: 16px; border-bottom: 1px solid #e9ecef; }
.gl-tag-header-info h2 { font-size: 22px; font-weight: 700; color: #212529; margin-bottom: 8px; }
.gl-tag-header-info h2 i { color: #0d6efd; margin-right: 8px; }
.gl-tag-header-info p { font-size: 14px; color: #6c757d; }

/* === 404 === */
.gl-404 { text-align: center; padding: 80px 0; }
.gl-404-icon { font-size: 80px; color: #0d6efd; margin-bottom: 20px; }
.gl-404 h2 { font-size: 48px; font-weight: 800; color: #212529; margin-bottom: 12px; }
.gl-404 p { font-size: 16px; color: #6c757d; margin-bottom: 24px; }
.gl-btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: #0d6efd;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.gl-btn-primary:hover { background: #0a58ca; color: #fff; }

/* === NO RESULT === */
.gl-no-result { text-align: center; padding: 60px 20px; color: #6c757d; }
.gl-no-result i { font-size: 48px; margin-bottom: 16px; display: block; }

/* === GO TOP === */
.gl-gotop {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(13,110,253,0.3);
    transition: all 0.3s;
}
.gl-gotop:hover { background: #0a58ca; transform: translateY(-3px); }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; list-style: none; padding: 20px 0; gap: 4px; }
.pagination li a, .pagination li span {
    display: block;
    padding: 6px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}
.pagination li.active span, .pagination li a:hover { background: #0d6efd; color: #fff; border-color: #0d6efd; }

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .gl-stats5-grid { grid-template-columns: repeat(2, 1fr); }
    .gl-news3-card { flex-direction: column; }
    .gl-news3-img-wrap { width: 100%; height: 200px; position: relative; }
    .gl-related-list { grid-template-columns: 1fr; }
    .gl-section-hero { padding: 60px 15px 40px; }
    .gl-section-hero h1 { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .gl-stats5-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gl-section-hero h1 { font-size: 1.3rem; }
    .gl-detail-title { font-size: 20px; }
    .gl-article-item { flex-direction: column; }
    .gl-article-item-img { width: 100%; height: 180px; margin-right: 0; margin-bottom: 12px; }
    .gl-security-step { flex-direction: column; gap: 8px; }
    .gl-step-icon { width: 40px; height: 40px; min-width: 40px; font-size: 16px; }
}
@media (max-width: 575px) {
    .gl-stats5-grid { grid-template-columns: 1fr; }
}
