/* ============================================================
 * sports_style.css — 西瓜看球app全站公共样式（Header / Nav / Footer / 返回顶部 / 通用卡片）
 * 所有模板文件（index.htm / lists_*.htm / view_*.htm）都必须引用本文件
 * 颜色基：深 slate-950 渐变 / 翡翠绿 emerald #13b675 / 天空蓝 sky #12b4e5
 * ============================================================ */

/* ---------- 全局背景基调（若模板内未再定义则用此默认） ---------- */
body {
    background: linear-gradient(180deg, #020817 0%, #101929 50%, #020817 100%) !important;
    background-attachment: fixed !important;
    color: #e3e9ef;
}

/* ---------- Skip-link (无障碍：跳到主要内容) ---------- */
a.skip-link {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
a.skip-link:focus {
    position: fixed !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 1rem !important;
    background: #07945e !important;
    color: #fff !important;
    z-index: 99999 !important;
    border-radius: 0.375rem !important;
    border: 2px solid #38cf8e !important;
    box-shadow: 0 6px 18px rgba(5,150,105,0.4);
    font-weight: 600;
    outline: none;
}

/* ============================================================
 * HEADER — .dtchgh_header 全家桶
 * ============================================================ */
.dtchgh_header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(180deg, rgba(2,6,23,0.98), rgba(15,23,42,0.97));
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(16,185,129,0.22);
    box-shadow: 0 4px 20px -8px rgba(16,185,129,0.22);
}

/* 顶部小导航条 */
.dtchgh_header .topnav { border-bottom: 1px solid rgba(255,255,255,0.05); }
.dtchgh_header .topnav .dtchgh_head-nav {
    font-size: 12px;
    text-align: center;
    background: linear-gradient(90deg, #082f49, #064e3b);
    color: #e0f2fe;
    padding: 6px 0;
}
.dtchgh_header .topnav .dtchgh_head-nav a {
    color: #bae6fd;
    margin: 0 8px;
    font-weight: 500;
}
.dtchgh_header .topnav .dtchgh_head-nav a:hover { color: #38cf8e; }

/* 主导航容器 */
.dtchgh_mainnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* Logo */
.dtchgh_logo {
    margin: 0;
    flex: 0 0 auto;
}
.dtchgh_logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    transition: transform 0.25s;
}
.dtchgh_logo a:hover { transform: translateY(-1px); }
.dtchgh_logo .logo_icon {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-right: 0.55rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    padding: 3px;
    box-shadow: 0 4px 12px rgba(16,185,129,0.15), 0 0 0 1px rgba(255,255,255,0.08) inset;
    transition: transform 0.25s ease;
}
.dtchgh_logo a:hover .logo_icon { transform: rotate(-6deg) scale(1.05); }
@media (min-width: 768px) {
    .dtchgh_logo .logo_icon { width: 38px; height: 38px; margin-right: 0.65rem; }
}
.dtchgh_logo .logo_text {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #a7f3d0, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) {
    .dtchgh_logo .logo_text { font-size: 1.55rem; }
}

/* 主导航 menu */
.dtchgh_menu { flex: 1; display: flex; justify-content: center; }
.dtchgh_menu > ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.dtchgh_menu > ul > li.nli { position: relative; }
.dtchgh_menu > ul > li.nli > span { display: block; }
.dtchgh_menu > ul > li.nli > span > a {
    display: block;
    padding: 0.65rem 1.05rem;
    color: #ccd7e0;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}
.dtchgh_menu > ul > li.nli > span > a:hover {
    background: rgba(16,185,129,0.1);
    color: #88eda5;
}
/* 当前栏目高亮：.on 类（由 header.htm 末尾的 setActiveNav 脚本自动添加） */
.dtchgh_menu > ul > li.nli.on > span > a {
    background: linear-gradient(90deg, rgba(16,185,129,0.22), rgba(14,165,233,0.18));
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.dtchgh_menu > ul > li.nli.on::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #13b675, #12b4e5);
    box-shadow: 0 2px 8px rgba(16,185,129,0.45);
}

/* 移动端汉堡按钮 */
.dtchgh_menubtn {
    display: none;
    width: 44px; height: 44px;
    border-radius: 0.6rem;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.dtchgh_menubtn .navbtn {
    display: block;
    width: 22px; height: 2px;
    background: linear-gradient(90deg, #13b675, #38cf8e);
    border-radius: 2px;
    transition: all 0.25s;
}
@media (max-width: 900px) {
    .dtchgh_mainnav { flex-wrap: wrap; }
    .dtchgh_menu {
        order: 3;
        flex-basis: 100%;
        display: none;
        padding: 0.5rem 0 1rem 0;
    }
    .dtchgh_menu.nav_open { display: block; }
    .dtchgh_menu > ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
    .dtchgh_menu > ul > li.nli > span > a { padding: 0.75rem 1rem; border-radius: 0.5rem; }
    .dtchgh_menu > ul > li.nli.on::after { bottom: 2px; }
    .dtchgh_menubtn { display: inline-flex; }
    .dtchgh_menubtn.btn_open .navbtn:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .dtchgh_menubtn.btn_open .navbtn:nth-child(2) { opacity: 0; }
    .dtchgh_menubtn.btn_open .navbtn:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
 * FOOTER — .dtchgh_footer 全家桶
 * ============================================================ */
.dtchgh_footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(16,185,129,0.15), transparent 55%),
        radial-gradient(ellipse at 80% 10%, rgba(14,165,233,0.12), transparent 55%),
        linear-gradient(180deg, #020817, #020817 100%);
    border-top: 1px solid rgba(255,255,255,0.07);
}
.dtchgh_footer * { box-sizing: border-box; }

/* 友情链接区 */
.footer_links_title {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    line-height: 2;
}
.footer_links_title h4 {
    margin: 0 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #88eda5;
    letter-spacing: 0.05em;
}
.footer_links_title a {
    color: #97a5b5;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer_links_title a:hover { color: #38cf8e; }

/* 主区：4 列 */
.footer_main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) { .footer_main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer_main { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; } }

.footer_col h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e3e9ef;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(16,185,129,0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer_col h4::before {
    content: '';
    width: 4px; height: 1rem;
    background: linear-gradient(180deg, #13b675, #12b4e5);
    border-radius: 3px;
}
.footer_col ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer_col ul li {
    color: #97a5b5;
    font-size: 0.85rem;
    line-height: 1.7;
    padding-left: 0;
}
.footer_col ul li a {
    color: #97a5b5;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.footer_col ul li a:hover {
    color: #38cf8e;
    padding-left: 4px;
}

.contact_list li { display: flex; align-items: flex-start; gap: 0.4rem; }
.contact_list li::before {
    content: '';
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

/* 二维码列表 */
.qr_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
@media (max-width: 480px) { .qr_list { grid-template-columns: repeat(2, 1fr); } }
.qr_item {
    text-align: center;
    padding: 0.75rem 0.35rem;
    border-radius: 0.6rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s;
}
.qr_item:hover { transform: translateY(-2px); border-color: rgba(16,185,129,0.28); }
.qr_img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
    background: #fff !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.qr_item p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #97a5b5;
    font-weight: 500;
}

/* 底部版权区 */
.footer_bottom {
    padding-top: 1.75rem;
    border-top: 1px dashed rgba(255,255,255,0.08);
    text-align: center;
}
.footer_bottom p {
    margin: 0 0 0.6rem 0;
    font-size: 0.8rem;
    line-height: 1.85;
    color: #687787;
}
.footer_bottom a { color: #97a5b5; font-weight: 500; }
.footer_bottom a:hover { color: #38cf8e; }

/* ============================================================
 * 返回顶部 — .gotop
 * ============================================================ */
a.gotop {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 890;
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #13b675, #12b4e5);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 44px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 25px -8px rgba(16,185,129,0.55);
    border: 2px solid rgba(255,255,255,0.18);
    transition: all 0.3s;
}
a.gotop:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -8px rgba(16,185,129,0.7);
    text-decoration: none;
}
@media (max-width: 639px) {
    a.gotop { right: 0.8rem; bottom: 0.8rem; }
}


/* 2e44c5 */
.4540116 {
    -webkit-tap-highlight-color: transparent;
}
