/* CSS 变量定义 */
:root {
    --bg-url: url('621.jpg');
    --brand: #6366f1; /* 主品牌色 */
    --brand-600: #4f46e5; /* 品牌色深色变体 */
    --text-light: hsl(240 6% 90%); /* 浅色文本 */
    --text-muted: hsl(240 5% 64%); /* 柔和文本 */
    --card-bg: hsl(222 20% 10%); /* 卡片背景色 */
    --card-bg-2: hsl(222 20% 12%); /* 辅助卡片背景色 */
    --ring-color: hsl(240 5% 64% / 0.35); /* 光环/边框颜色 */
}

/* 全局重置与基础样式 */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-light);
    background: #0b1220;
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

/* 背景层与叠加层 */
.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1000px 500px at 10% -10%, rgba(99, 102, 241, .35), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(147, 51, 234, .25), transparent 60%),
        var(--bg-url);
    background-size: auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.1) contrast(1.05);
    animation: fadeIn 2s forwards;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 8, 15, .45), rgba(5, 8, 15, .75) 40%, rgba(5, 8, 15, .9));
    z-index: -1;
}

/* 通用容器与 section 间距 */
#container {
    display: grid; /* 网格布局 */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* 自动适应列数，每列最小 240px */
    gap: 5px; /* 卡片间距，水平+垂直都生效 */
    margin-top: 2px; /* 容器顶部间距 */
    margin-bottom: 2px; /* 容器底部间距 */
}

.container1 {
    width: 98%; /* 使用百分比，使其自适应父容器 */
    max-width: 500px; /* 添加一个最大宽度，防止在超宽屏幕上拉伸过度 */
    height: 50px; /* 设定一个固定的高度 */
    margin: 0 auto;
}
.section-padding {
    /* 调整为更紧凑的内边距 */
    padding: 20px 0;
}

/* 头部导航 */
header {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(1.4) blur(10px);
    background: hsla(0, 0%, 5%, .35);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    z-index: 50;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.logo-img {
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    opacity: .9;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover {
    opacity: 1;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease-out;
    transform: skewX(-20deg);
}
.btn:hover::before {
    transform: translateX(100%);
}
.btn:hover {
    border-color: rgba(255, 255, 255, .15);
}
.btn.primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-600));
    box-shadow: 0 8px 28px rgba(79, 70, 229, .45);
}
.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(79, 70, 229, .55);
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, .06);
}
@media (max-width: 760px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .mobile-panel { display: block; }
}

.mobile-panel {
    display: block; /* 改为 block，transition 才能生效 */
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 10px 0 16px;
    background: rgba(10, 14, 22, 0.99);
    backdrop-filter: blur(10px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.mobile-panel.show {
    max-height: 500px;
    opacity: 1;
}
.mobile-panel a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #fff;
    opacity: .9;
}
.mobile-panel a:hover {
    background: rgba(255, 255, 255, .06);
}

/* Hero 区 - 内容与动画改进 */
.hero {
    /* 调整为更紧凑的内边距 */
    padding: 90px 0 60px;
    text-align: left;
}
.hero .container {
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
}
.eyebrow {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin: 16px 0;
    background: linear-gradient(90deg, #A4C6FF, #E0FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: clamp(14px, 2.2vw, 18px);
    color: var(--text-muted);
    max-width: 720px;
    margin-right: auto;
    margin-left: 0;
}
.cta {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* 卡片与网格改进 */
.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px) saturate(1.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
}
.card h3 {
    margin: 12px 0 6px;
}
.card p {
    color: var(--text-muted);
    font-size: 0.9em;
}
.card-icon {
    font-size: 2.5em;
    color: var(--brand-600);
    background: rgba(255, 255, 255, .05);
    padding: 10px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.card:hover .card-icon {
    transform: translateY(-5px) rotate(5deg);
}
/* 卡片内光晕效果 */
.card .sparkle {
    position: absolute;
    inset: auto;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    border-radius: 18px;
    background: radial-gradient(circle at 100% 100%, var(--brand), transparent);
    filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card:hover .sparkle {
    opacity: 0.5;
}

/* 内容区 */
.section-head {
    text-align: center;
    /* 调整为更紧凑的间距 */
    margin-bottom: 30px;
}
.section-head h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}
.section-head p {
    font-size: 1.1em;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.content {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(12, 1fr);
}
.content .panel {
    grid-column: span 8;
    background: hsl(var(--card-bg) / .7);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 30px;
}
.content .side {
    grid-column: span 4;
    background: hsl(var(--card-bg-2) / .7);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 30px;
}
.content ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
.content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}
.content ul li i {
    color: var(--brand);
    font-size: 1.1em;
}

@media (max-width: 760px) {
    .content .panel, .content .side {
        grid-column: span 12;
    }
}

/* 页脚改进 */
footer {
    background-color: var(--secondary-bg-color);
    color: var(--text-muted);
    /* 调整为更紧凑的内边距 */
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.foot-left, .foot-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.foot-social {
    display: flex;
    gap: 15px;
}
.foot-social a {
    color: var(--text-muted);
    font-size: 1.4em;
    transition: color 0.3s ease, transform 0.3s ease;
}
.foot-social a:hover {
    color: var(--brand);
    transform: translateY(-3px);
}
.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: 1px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.match {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team {
    flex: 1;
    text-align: center;
}

.team img {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.vs {
    font-size: 14px;
    font-weight: bold;
    margin: 0 20px;
    text-align: center;
    min-width: 80px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.date {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    color: #ddd;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.balls-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.ball {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.red {
    background: #e74c3c;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}
.blue {
    background: #3498db;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.league-tag {
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 6px;
}
.score {
    font-size: 16px;
    min-width: 40px;
    text-align: center;
}

.card-numbers {
    display: flex;
    gap: 4px; /* 数字间距 */
    flex-wrap: wrap;
}

.number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;  /* 固定宽度 */
    height: 32px; /* 固定高度 */
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.number.red {
    background-color: #B22222;
}

.number.blue {
    background-color: #4682B4;
}

.separator {
    display: none; /* 去掉分隔符，让数字方块整齐排列 */
}
@media (max-width: 760px) {
    /* 顶部导航内间距 */
    .nav {
        padding: 8px 0; /* 原本 14px  */
        gap: 8px;
    }

    .brand span {
        font-size: 14px; /* 字体小一点 */
    }

    /* Hero 区紧凑化 */
    .hero {
        padding: 25px 0 15px; /* 原本 90px 0 60px */
    }

    .hero .title {
        font-size: clamp(24px, 6vw, 36px); /* 调小标题 */
    }

    .hero .subtitle {
        font-size: clamp(12px, 3vw, 16px);
        max-width: 100%;
    }

    .cta .btn {
        padding: 8px 10px; /* 减小按钮 */
        font-size: 14px;
    }
}

@media (max-width: 760px) {
    .card {
        padding: 16px; /* 原 24px */
    }

    .card-icon {
        font-size: 2em; /* 原 2.5em */
        padding: 8px; /* 原 10px */
        margin-bottom: 10px; /* 原 15px */
    }

    .card h3 {
        margin: 8px 0 4px; /* 原 12px 0 6px */
        font-size: 1.1em;
    }

    .card p {
        font-size: 0.85em; /* 原 0.9em */
    }

    /* 彩票卡片数字缩小 */
    .card-numbers .number {
        width: 28px;  /* 原 32px */
        height: 28px; /* 原 32px */
        font-size: 12px; /* 原 14px */
    }
}

@media (max-width: 760px) {
    .section-padding {
        padding: 15px 0; /* 原 20px 0 */
    }

    .grid {
        gap: 16px; /* 原 24px */
    }

    .content {
        gap: 16px; /* 原 24px */
    }

    .container1 {
        height: 40px; /* 原 50px */
    }
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* 图标之间间距 */
    justify-content: center; /* 居中显示 */
    padding: 20px;
}

.icon-container img {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-container img:hover {
    width: 80px;
    height: 80px;
}

.social-icons {
    display: flex;
    justify-content: center; /* 水平居中 */
    gap: 20px;                /* 图标间距 */
    padding: 10px 0;
    margin-top: 35px;
}

/* 调整图标大小 */
.social-icons i {
    font-size: 50px;           /* 图标大小，可调整 */
    color: #fff;               /* 图标颜色 */
    transition: transform 0.3s ease;
}

/* 鼠标悬停放大效果 */
.social-icons i:hover {
    transform: scale(1.5);
    color: #6366f1;           /* 可选悬停颜色 */
}

/* 链接去掉默认样式 */
.social-icons a {
    text-decoration: none;
}

.weather-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* 卡片间距更小 */
}

.weather-card {
    flex: 1 1 120px; /* 紧凑宽度 */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    color: #fff;
    font-family: sans-serif;
    font-size: 12px;
}

.weather-card h4 {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: normal;
}

.weather-card .temp {
    font-size: 14px;
    font-weight: bold;
}

.weather-card .desc {
    font-size: 11px;
    color: #ffd700;
}

.weather-card .extra {
    font-size: 10px;
    color: #ccc;
}

#usdt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 320px; /* 容器最大宽度 */
}

#usdt-list li {
    display: grid;
    grid-template-columns: 30px 1fr auto; /* 序号 | 卖家 | 价格 */
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

/* 卖家名称左对齐 */
#usdt-list li span.seller {
    text-align: left;
    padding-left: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 价格右对齐，稍微离边缘5px */
#usdt-list li span.price {
    text-align: right;
    padding-right: 5px;
    font-weight: bold;
    color: #FFD700;
}

.icon-btn {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

/* 弹窗浮层和容器 */
//* 遮罩层显示 */

/* 遮罩层 */
#overlay {
   
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* 深色遮罩更柔和 */
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#overlay.show {
    visibility: visible;
    opacity: 1;
}

/* 弹窗 */
#popup {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 70%;              /* 桌面端默认宽度 */
    max-width: 900px;        /* 桌面端最大宽度 */
    max-height: 90vh;        /* 桌面端最大高度 */
    background: rgba(220, 220, 220, 0.0); /* 深色磨砂背景 */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 100000;
    padding: 12px;

    display: flex;
    flex-direction: column;
}

/* 弹窗显示状态 */
#popup.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* 关闭按钮 */
#popup-close {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 30px;
    color: #fff;   /* 深色背景下白色按钮 */
    cursor: pointer;
    font-weight: bold;
    z-index: 100001;
}

/* 弹窗 iframe */
#popup-iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: transparent;
}

/* 手机端优化 */
@media (max-width: 768px) {
    #popup {
        width: 90% !important;   /* 宽度 90% */
        height: 50vh !important; /* 高度固定为 70vh */
        max-height: none !important;
        position: fixed !important;
    }
}
/* 弹窗箭头 */
#popup.arrow-top::before {
    content: "";
    position: absolute;
    top: -12px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-width: 0 12px 12px 12px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.9) transparent;
}
#popup.arrow-bottom::before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-width: 12px 12px 0 12px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap; /* 换行 */
    justify-content: center; /* 水平居中 */
    gap: 20px; /* 图标间距 */
    padding: 20px;
}

.icon-item {
    text-align: center;
    cursor: pointer;
    height: 60px; /* 高度统一 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-item img {
    height: 60px; /* 固定高度 */
    width: auto; /* 宽度按比例缩放 */
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.2s;
}

.icon-item img:hover {
    transform: scale(1.1);
}

.icon-text {
    margin-top: 5px;
    font-size: 14px;
    color: #1C6EA4;
}