/* theme-a2.css - 博彩通风格 */
:root {
    --bg: #f0f4f7; --card: #ffffff; --head: #0a7e50;
    --accent: #0a7e50; --accent-light: #0ca362;
    --text: #1e293b; --text-dim: #64748b; --border: #e2e8f0;
    --btn-1-bg: #f1c40f; --btn-1-text: #4a3e00;
    --btn-2-bg: #e74c3c; --btn-2-text: #ffffff;
    --radius: 16px; --head-text: #ffffff;
    --badge-bg: var(--accent); --badge-border: var(--accent); --badge-color: #ffffff;
    --desc-bg: #f8fafc; --desc-border: var(--accent);
    --card-hover-shadow: 0 15px 30px rgba(10,126,80,0.1);
    --live-bg: transparent; --feature-bg: #ffffff;
    --ticker-bg: #075a39; --footer-bg: #ffffff;
}
body { font-family: -apple-system,system-ui,'PingFang SC',sans-serif; background: var(--bg); color: var(--text); margin: 0; padding-top: 70px; }
.top-bar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(225,230,235,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid rgba(0,0,0,0.06); box-sizing: border-box; margin: 0; }
.top-bar .site-name { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 3px; }
.apply-btn { background: var(--accent); color: #fff; padding: 8px 18px; text-decoration: none; border-radius: 8px; font-size: 13px; font-weight: bold; transition: 0.3s; }
.apply-btn:hover { background: #08633f; transform: translateY(-1px); }
.ticker-wrap { background: var(--ticker-bg); height: 32px; line-height: 32px; font-size: 12px; color: #fff; overflow: hidden; }
.ticker { display: inline-block; white-space: nowrap; animation: tickerMove 40s ease infinite; font-weight: bold; }
@keyframes tickerMove { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
header { background: var(--head); padding: 50px 20px; text-align: center; border-bottom: 5px solid #08633f; }
.logo { font-size: 2.2rem; font-weight: 900; letter-spacing: 10px; color: var(--head-text); margin: 0; }
.sub-logo { font-size: 11px; opacity: 0.9; color: var(--head-text); margin-top: 10px; letter-spacing: 2px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 900px; margin: -30px auto 30px; padding: 0 15px; }
.f-item { background: var(--feature-bg); border: 2px solid var(--border); border-radius: var(--radius); padding: 15px 5px; text-align: center; cursor: pointer; transition: 0.3s; box-shadow: 0 8px 15px rgba(0,0,0,0.05); }
.f-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.f-icon-box { font-size: 20px; margin-bottom: 5px; display: block; }
.f-item span { font-size: 11px; font-weight: bold; color: var(--accent); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 15px 100px; }
.audit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.mobile-banner-wrap { display: none; }
.category-tabs { display: flex; gap: 10px; padding: 0 12px; margin-bottom: 20px; max-width: 1050px; margin-left: auto; margin-right: auto; }
.category-tabs span { flex: 1; text-align: center; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; background: var(--card); color: var(--text-dim); border: 1px solid var(--border); transition: 0.2s; display: inline-block; }
.category-tabs span.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.category-tabs span:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; }
@media (hover: hover) { .card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--card-hover-shadow); } }
@media (hover: none) { .card { transition: none !important; transform: none !important; } .card:active { transform: none !important; box-shadow: none !important; } .card-link:active { transform: none !important; } .card *:active { transform: none !important; } }
.card-link { color: inherit; display: block; cursor: pointer; }
.card-head { padding: 12px 15px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.tag { font-size: 10px; font-weight: bold; color: var(--accent); }
.badge { font-size: 10px; background: var(--badge-bg); color: var(--badge-color); padding: 3px 8px; border-radius: 5px; }
.card-main { padding: 25px; flex-grow: 1; }
.app-row { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.icon { width: 75px; height: 75px; background: #f8fafc; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.name-wrapper { display: flex; flex-direction: column; justify-content: space-between; }
.name h3 { margin: 0; font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.live { font-size: 10px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; display: inline-block; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.stars { color: #f1c40f; font-size: 13px; margin-top: 8px; }
.desc-wrap { position: relative; }
.desc-wrap .desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; background: var(--desc-bg); padding: 15px; border-radius: 12px; margin-bottom: 15px; border-left: 4px solid var(--desc-border); min-height: 60px; }
.desc-wrap .desc-toggle { font-size: 11px; color: var(--accent); cursor: pointer; display: none; }
.card-btns { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #f8fafc; }
.btn { padding: 12px; border-radius: 10px; font-size: 13px; font-weight: bold; text-decoration: none; text-align: center; display: block; transition: 0.3s; }
.btn-1 { background: var(--btn-1-bg); color: var(--btn-1-text); }
.btn-1:hover { opacity: 0.85; }
.btn-2 { background: var(--btn-2-bg); color: var(--btn-2-text); }
.btn-2:hover { opacity: 0.85; }
footer { text-align: center; padding: 60px 20px; font-size: 11px; color: var(--text-dim); background: var(--footer-bg); border-top: 1px solid var(--border); }
.footer-auth { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.auth-node { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 75px; }
.auth-icon { width: 55px; height: 55px; background: #f0f4f7; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.auth-icon img { width: 35px; height: 35px; object-fit: contain; }
.auth-node span { font-size: 9px; font-weight: bold; color: var(--text-dim); white-space: nowrap; }
.footer-copy { opacity: 0.8; font-size: 10px; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal { background: #fff; width: 90%; max-width: 450px; border-radius: 20px; padding: 30px; animation: slideUp 0.3s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal h2 { color: var(--accent); border-bottom: 2px solid var(--bg); padding-bottom: 10px; margin-top: 0; }
.modal-body { font-size: 14px; color: var(--text-dim); line-height: 1.8; }
.close-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; margin-top: 20px; }
@media (max-width: 768px) {
    .audit-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: repeat(2, 1fr); }
    body { padding-top: 75px; }
    .top-bar { padding: 12px 16px; }
    .top-bar .site-name { font-size: 16px; letter-spacing: 2px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; }
    .apply-btn { padding: 7px 14px; font-size: 12px; font-weight: 600; }
    .ticker-wrap { margin: 8px 0; }
    header { display: none; }
    .mobile-banner-wrap { display: block; margin: 8px 0; overflow: hidden; height: 120px; }
    .mobile-banner-track { display: flex; height: 120px; transition: transform 0.4s ease; }
    .mobile-banner-track.no-transition { transition: none; }
    .mobile-banner-track { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
    
    .mobile-banner-track a { display: block; flex-shrink: 0; text-decoration: none; border: none; outline: none; }
    .mobile-banner-track img { width: 100vw; height: 120px; object-fit: cover; flex-shrink: 0; -webkit-user-drag: none; user-select: none; }
    .category-tabs { gap: 8px; padding: 0 12px; margin-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .category-tabs::-webkit-scrollbar { display: none; }
    .category-tabs span { flex: none; white-space: nowrap; padding: 7px 18px; border-radius: 20px; font-size: 12px; }
    .icon { width: 64px; height: 64px; border-radius: 14px; }
    .icon img { width: 100%; height: 100%; border-radius: 14px; }
    .card-main { padding: 12px; }
    .card-btns { padding: 10px; }
    .desc-wrap { position: relative; }
    .desc-wrap .desc { font-size: 12px; line-height: 1.6; padding: 10px; min-height: auto; max-height: 2.6em; overflow: hidden; position: relative; display: block; align-items: unset; }
    .desc-wrap .desc::after { content: ""; position: absolute; right: 0; bottom: 0; width: 60%; height: 1.6em; background: linear-gradient(to right, transparent, var(--card) 50%); pointer-events: none; }
    .desc-wrap .desc-toggle { position: absolute; right: 10px; bottom: 2px; font-size: 11px; color: var(--accent); cursor: pointer; background: var(--card); padding-left: 12px; z-index: 1; display: inline-block; }
    .desc-wrap.expanded .desc { max-height: none; overflow: visible; }
    .desc-wrap.expanded .desc::after { display: none; }
    .desc-wrap.expanded .desc-toggle { position: static; display: block; text-align: right; padding: 4px 10px; }
}

/* 弹窗广告 */
.popup-ad-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 3000; justify-content: center; align-items: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.popup-ad-box { background: linear-gradient(135deg, #141416 0%, #201726 100%); border-radius: 16px; border: 1px solid rgba(255, 45, 85, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.8); color: #ffffff; width: 85%; max-width: 380px; padding: 30px; text-align: center; position: relative; animation: popupSlideUp 0.3s ease; }
@keyframes popupSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.popup-ad-img { width: 100%; border-radius: 10px; margin-bottom: 15px; }
.popup-ad-text { color: #FFD700; font-weight: bold; font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.popup-ad-btn { display: inline-block; padding: 12px 36px; background: linear-gradient(90deg, #FF0844 0%, #FF4E50 100%); color: #FFFFFF; font-weight: bold; font-size: 18px; border-radius: 30px; text-decoration: none; box-shadow: 0 4px 15px rgba(255, 8, 68, 0.5); animation: pulse 1.5s infinite; transition: 0.2s; }
.popup-ad-btn:hover { opacity: 0.9; }
.popup-ad-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 24px; cursor: pointer; line-height: 1; }
.popup-ad-close:hover { color: #fff; }
@media (max-width: 768px) { .popup-ad-box { width: 90%; padding: 24px 20px; } }
