/* ============================================
   ZunPai Sports Pro Theme - CSS
   完全匹配 www.zunpaitek.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-7 dark style) === */
.zp-header-dark {
    background-color: #1c1f3f !important;
}
.zp-header-dark .navbar { padding-top: 10px; padding-bottom: 10px; }
.zp-header-dark .navbar-brand img { max-height: 60px; max-width: 120px; height: auto; width: auto; }
.zp-header-dark .nav-link {
    color: rgba(255,255,255,0.85);
    transition: all 0.3s;
    font-size: 15px;
    padding: 8px 14px !important;
}
.zp-header-dark .nav-link:hover,
.zp-header-dark .nav-link.active {
    color: #ffc107;
    background-color: rgba(255,255,255,0.08);
    border-radius: 6px;
}
.zp-header-dark .btn-warning {
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    border-radius: 20px;
}
.zp-header-dark .btn-warning:hover {
    background-color: #e0a800;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,193,7,0.4);
}
.zp-nav-toggle {
    cursor: pointer;
    padding: 4px 8px;
}

/* === HERO (hero-10 centered style) === */
.zp-section-hero {
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1c1f3f 40%, #3d0b40 100%);
    overflow: hidden;
    position: relative;
    text-align: center;
    color: #fff;
}
.zp-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}
.zp-hero-content { position: relative; z-index: 1; }
.zp-hero-content h1 { font-size: 2.2rem; line-height: 1.4; font-weight: 800; }
.zp-hero-content .hero-subtitle {
    color: rgba(255,255,255,0.7);
    letter-spacing: 3px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.zp-hero-content p { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 24px; }
.zp-hero-img {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    max-width: 100%;
}
.zp-hero-badges { margin-top: 20px; }
.zp-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin: 0 4px;
    backdrop-filter: blur(4px);
}

/* === WHY-US (feature cards) === */
.zp-section-whyus { background: #f8f9fa; }
.zp-whyus-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    height: 100%;
}
.zp-whyus-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.zp-whyus-card img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 16px; }
.zp-whyus-card h3 { font-size: 17px; font-weight: 700; color: #212529; margin-bottom: 10px; }
.zp-whyus-card p { font-size: 14px; color: #6c757d; margin-bottom: 0; line-height: 1.6; }

/* === STATS (stats-9 heat map style) === */
.zp-section-stats {
    background: linear-gradient(135deg, #0d1b3e, #1a2d4a);
    color: #fff;
}
.zp-section-stats h2 { color: #fff; }
.zp-stats-map-wrapper { position: relative; max-width: 800px; margin: 0 auto; }
.zp-stats-map mip-img { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.zp-heat-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffc107;
    box-shadow: 0 0 12px rgba(255,193,7,0.6);
    animation: zp-pulse 2s infinite;
}
.zp-heat-dot span {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}
.zp-heat-dot.dot-1 { top: 30%; left: 75%; }
.zp-heat-dot.dot-2 { top: 55%; left: 68%; }
.zp-heat-dot.dot-3 { top: 25%; left: 45%; }
.zp-heat-dot.dot-4 { top: 60%; left: 30%; }
.zp-heat-dot.dot-5 { top: 35%; left: 15%; }
@keyframes zp-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* === SECURITY (security-14 network style) === */
.zp-section-security {
    background: linear-gradient(135deg, #1c1f3f, #2d1b4e);
    padding: 40px 0;
}
.zp-security-network {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    min-height: 400px;
}
.zp-core-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 30px rgba(13,110,253,0.4);
    z-index: 2;
}
.zp-node {
    position: absolute;
    width: 160px;
    padding: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    backdrop-filter: blur(4px);
}
.zp-node-title { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 14px; }
.zp-node.node-top-left { top: 10%; left: 5%; }
.zp-node.node-top-right { top: 10%; right: 5%; }
.zp-node.node-bottom-left { bottom: 10%; left: 5%; }
.zp-node.node-bottom-right { bottom: 10%; right: 5%; }

/* === FAQ (faq-11 timeline style) === */
.zp-section-faq { background: #fff; }
.zp-faq-timeline { max-width: 700px; margin: 0 auto; position: relative; }
.zp-faq-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0d6efd, #3d0b40);
}
.zp-faq-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
}
.zp-faq-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(13,110,253,0.3);
}
.zp-faq-content {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}
.zp-faq-content h5 { font-size: 16px; font-weight: 700; color: #212529; margin-bottom: 8px; }
.zp-faq-content p { font-size: 14px; color: #6c757d; margin-bottom: 0; line-height: 1.6; }

/* === APP (app-14 download section) === */
.zp-section-app {
    background: linear-gradient(135deg, #0d1b3e 0%, #1c1f3f 50%, #3d0b40 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.zp-app-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.zp-app-img {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.zp-btn-glass {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.zp-btn-glass:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* === NEWS (news-10 horizontal style) === */
.zp-section-news { background: #fff; }
.zp-news-item {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    padding: 16px;
    margin-bottom: 16px;
}
.zp-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.zp-news-img-wrap {
    flex-shrink: 0;
    width: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 20px;
    position: relative;
}
.zp-news-img-wrap mip-img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}
.zp-news-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.zp-news-body h3 { font-size: 16px; font-weight: 700; color: #212529; margin-bottom: 8px; line-height: 1.5; }
.zp-news-body h3 a { color: inherit; }
.zp-news-body h3 a:hover { color: #0d6efd; }
.zp-news-body p { font-size: 14px; color: #6c757d; line-height: 1.6; margin-bottom: 8px; }
.zp-news-read-more {
    font-weight: 600;
    font-size: 13px;
    color: #0d6efd;
    padding: 4px 14px;
    border: 1px solid #0d6efd;
    border-radius: 20px;
    transition: all 0.3s;
}
.zp-news-read-more:hover { background: #0d6efd; color: #fff; }

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

/* === FOOTER (footer-12 dark gradient) === */
.zp-footer-dark {
    background: url('../images/footer-bg.png') center/cover no-repeat;
    position: relative;
}
.zp-footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(28,31,63,0.95), rgba(61,11,64,0.95));
    z-index: 1;
}
.zp-footer-card {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.08);
}
.zp-footer-friendlink { border-top: 1px solid rgba(255,255,255,0.1); }

/* === SIDEBAR === */
.zp-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;
}
.zp-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0d6efd;
}
.zp-sidebar-title i { color: #dc3545; margin-right: 6px; }
.zp-sidebar-list { list-style: none; padding: 0; margin: 0; }
.zp-sidebar-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
}
.zp-sidebar-list li:last-child { border-bottom: none; }
.zp-sidebar-list li a { font-size: 14px; color: #333; line-height: 1.5; flex: 1; }
.zp-sidebar-list li a:hover { color: #0d6efd; }
.zp-sidebar-list li time { flex-shrink: 0; font-size: 12px; color: #6c757d; margin-left: 8px; }

/* === TAGS === */
.zp-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.zp-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;
}
.zp-tag-item:hover { background: #0d6efd; color: #fff; border-color: #0d6efd; }

/* === CONTENT BOX === */
.zp-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;
}
.zp-box-header { padding: 16px 24px; border-bottom: 1px solid #e9ecef; background: #f8f9fa; }
.zp-box-header h3 { font-size: 18px; font-weight: 700; color: #212529; margin: 0; }
.zp-box-body { padding: 20px 24px; }

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

/* === ARTICLE DETAIL === */
.zp-detail { padding: 24px; }
.zp-detail-title { font-size: 26px; font-weight: 800; color: #212529; line-height: 1.4; margin-bottom: 16px; }
.zp-detail-meta { display: flex; gap: 20px; font-size: 13px; color: #6c757d; margin-bottom: 12px; flex-wrap: wrap; }
.zp-detail-meta i { margin-right: 4px; }
.zp-detail-body { font-size: 16px; line-height: 1.9; color: #333; }
.zp-detail-body mip-img { border-radius: 8px; margin: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.zp-detail-body p { margin-bottom: 16px; }
.zp-detail-body h2, .zp-detail-body h3 { color: #212529; margin: 24px 0 12px; }
.zp-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 === */
.zp-detail-nav { padding: 16px 0; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; margin-bottom: 24px; }
.zp-detail-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; }
.zp-detail-nav li { flex: 1; }
.zp-detail-nav li span { display: block; font-size: 12px; color: #6c757d; margin-bottom: 4px; }
.zp-detail-nav li a { font-size: 14px; color: #333; font-weight: 500; }
.zp-detail-nav li a:hover { color: #0d6efd; }
.zp-detail-nav .zp-nav-next { text-align: right; }

/* === RELATED === */
.zp-related { margin-top: 24px; }
.zp-related h3 { font-size: 18px; font-weight: 700; color: #212529; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #0d6efd; }
.zp-related h3 i { color: #dc3545; margin-right: 6px; }
.zp-related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.zp-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.zp-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.zp-related-img-wrap { width: 100%; height: 160px; position: relative; overflow: hidden; }
.zp-related-img-wrap mip-img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.zp-related-info { padding: 12px; }
.zp-related-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.zp-related-info h4 a { color: #212529; }
.zp-related-info h4 a:hover { color: #0d6efd; }

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

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

/* === 404 === */
.zp-404 { text-align: center; padding: 80px 0; }
.zp-404-icon { font-size: 80px; color: #0d6efd; margin-bottom: 20px; }
.zp-404 h2 { font-size: 48px; font-weight: 800; color: #212529; margin-bottom: 12px; }
.zp-404 p { font-size: 16px; color: #6c757d; margin-bottom: 24px; }
.zp-btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.zp-btn-primary:hover { background: linear-gradient(135deg, #0a58ca, #0842a0); color: #fff; transform: translateY(-2px); }

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

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

/* === 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) {
    .zp-news-item { flex-direction: column; }
    .zp-news-img-wrap { width: 100%; height: 200px; margin-right: 0; margin-bottom: 12px; }
    .zp-related-list { grid-template-columns: 1fr; }
    .zp-section-hero { padding: 60px 15px 40px; }
    .zp-section-hero h1 { font-size: 1.5rem; }
    .zp-security-network { min-height: 300px; }
    .zp-node { width: 130px; padding: 10px; font-size: 12px; }
}
@media (max-width: 767px) {
    .zp-section-hero h1 { font-size: 1.3rem; }
    .zp-detail-title { font-size: 20px; }
    .zp-article-item { flex-direction: column; }
    .zp-article-item-img { width: 100%; height: 180px; margin-right: 0; margin-bottom: 12px; }
    .zp-core-node { width: 80px; height: 80px; font-size: 12px; }
    .zp-node { width: 120px; padding: 8px; font-size: 11px; }
    .zp-faq-timeline::before { left: 20px; }
    .zp-faq-icon { width: 40px; height: 40px; font-size: 16px; }
}
@media (max-width: 575px) {
    .zp-hero-content h1 { font-size: 1.2rem; }
}
