/* main.css - 主样式文件 */

:root {
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
a.brand-reg-btn,
a.mobile-recommend-cta {
    font-family: inherit;
}

/* --- 促销横幅 --- */
.promo-banner {
    max-width: 600px;
    margin: 0 auto 15px;
    padding: 0 10px;
    opacity: 0;
    animation: promoBannerFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes promoBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.promo-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(12, 18, 34, 0.92));
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 12px;
    padding: 16px 18px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 26px rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.promo-title {
    font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.35;
    margin-bottom: 0;
    width: 100%;
}

.promo-subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    margin-top: 0;
    font-weight: 500;
    line-height: 1.55;
    max-width: 32em;
}

.promo-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    margin-top: 0;
    line-height: 1.55;
    font-weight: 500;
    max-width: 34em;
}

/* 倒计时：与副文案同级字重字号，避免再碎一层 */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 230, 150, 0.95);
    line-height: 1.4;
    width: 100%;
}

.countdown-timer-digits {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

/* 仅手机需要底部栏说明，PC 不展示避免版面飘字 */
@media (min-width: 769px) {
    .promo-note {
        display: none;
    }
}

.promo-icon {
    font-size: 1rem;
    display: inline-block;
}

/* --- 信任条（与主内容同宽、居中；PC 双列避免左飘） --- */
.trust-strip {
    max-width: 600px;
    margin: 0 auto 18px;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-strip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 4px;
}

.trust-strip-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.35;
    opacity: 0.9;
    width: 1.5rem;
    text-align: center;
}

.trust-strip-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.trust-strip-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8125rem;
    font-weight: 600;
}

@media (min-width: 769px) {
    .trust-strip {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        gap: 12px;
        padding: 14px 12px;
    }

    .trust-strip-item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 12px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        align-items: center;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .trust-strip-icon {
        width: auto;
        font-size: 1.35rem;
    }

    .trust-strip-text {
        text-align: center;
        align-items: center;
    }

    .trust-strip-text strong {
        display: block;
    }
}

/* --- 手机底部：本时段推荐 --- */
.mobile-recommend-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 39, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.mobile-recommend-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-recommend-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.mobile-recommend-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mobile-recommend-name {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-recommend-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #e2e8f0;
    text-decoration: none;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: none;
    border: 1px solid rgba(96, 165, 250, 0.45);
}

.mobile-recommend-cta:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .mobile-recommend-bar {
        display: block;
    }
}

/* --- 网络提示模块 --- */
.network-section {
    max-width: 600px;
    margin: 15px auto 20px;
    padding: 0 10px;
}

.network-tool-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(10px);
}
@keyframes networkNoticeFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.network-tool-card:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(15, 23, 42, 0.88);
}

.network-tool-card:active {
    transform: translateY(0);
}

.network-tool-card:focus {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    outline-offset: 2px;
}

.network-tool-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    line-height: 1;
}

.network-tool-body {
    flex: 1;
    min-width: 0;
}

.network-tool-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.network-tool-tip {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    margin: 0 0 12px;
}

.network-tool-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin: 0 -4px 0 0;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.network-tool-card:hover .network-tool-cta {
    background: rgba(37, 99, 235, 0.26);
    border-color: rgba(96, 165, 250, 0.45);
}

.network-tool-cta-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.network-tool-cta-text {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.network-tool-cta-arrow {
    font-size: 1.1rem;
    color: rgba(147, 197, 253, 0.95);
    font-weight: 700;
    transition: transform 0.25s ease;
}

.network-tool-card:hover .network-tool-cta-arrow {
    transform: none;
}

/* --- 品牌网格 --- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

/* --- 备用入口快速区（常驻可见） --- */
.backup-section {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 0 10px;
}

.backup-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 6px;
}

.backup-tip {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 10px;
    line-height: 1.45;
}

.backup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.backup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.backup-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 420px) {
    .backup-grid {
        grid-template-columns: 1fr;
    }
}

.brand-item {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 16px 12px 14px;
    text-align: center;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.brand-item--top-pick {
    grid-column: span 2;
    min-height: 180px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(96, 165, 250, 0.45);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.brand-item--top-pick .brand-reg-btn {
    padding: 14px 24px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #e2e8f0;
}

.brand-reg-link {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 5px;
    display: inline-block;
}

.brand-reg-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

@keyframes brandItemFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-reg-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin-top: 10px;
    position: relative;
    z-index: 3;
}

.brand-reg-btn {
    display: block;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
    box-shadow: none;
    border: 1px solid rgba(96, 165, 250, 0.35);
    cursor: pointer;
}

.brand-reg-btn:hover {
    background: #1e40af;
    border-color: rgba(96, 165, 250, 0.55);
}

.brand-reg-btn:active {
    opacity: 0.92;
}

.brand-reg-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 品牌特定按钮颜色 */
.item-lewan .brand-reg-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.item-touhao .brand-reg-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.item-ued .brand-reg-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.item-jxf .brand-reg-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.item-rb88 .brand-reg-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.brand-item .title {
    font-size: 1.0625rem;
    font-weight: 700;
    display: block;
    letter-spacing: 0.06em;
    transition: all 0.3s ease;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.brand-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 8px;
    text-align: left;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
    flex-shrink: 0;
}

.brand-logo--touhao { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.brand-logo--ued { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.brand-logo--jxf { background: linear-gradient(135deg, #dc2626, #f87171); }
.brand-logo--lewan { background: linear-gradient(135deg, #d97706, #fbbf24); }
.brand-logo--rb88 { background: linear-gradient(135deg, #7c3aed, #c084fc); }

.brand-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.66);
    margin-top: 2px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-item--top-pick .title {
    font-size: 1.32rem;
    margin-bottom: 0;
}

.brand-item--top-pick .brand-logo {
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
}

.brand-item--top-pick .brand-desc {
    font-size: 0.78rem;
}

.brand-item:hover .title {
    transform: scale(1.02);
}

.brand-item .vip-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: none;
    z-index: 2;
}

.brand-spotlight-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
    letter-spacing: 0.04em;
    z-index: 2;
    box-shadow: none;
}

.brand-item--spotlight {
    border-color: rgba(96, 165, 250, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22) !important;
}

.brand-item--spotlight:hover {
    border-color: rgba(96, 165, 250, 0.55) !important;
}

.brand-item--user-picked {
    animation: userPickPulse 1.2s ease-out 2;
}

@keyframes userPickPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Backup entrance styles removed as we now use brand-reg-link */

/* 品牌悬停效果 */
.brand-item:hover {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(96, 165, 250, 0.45);
    transform: none;
    box-shadow: none;
}

.brand-item:active {
    opacity: 0.97;
}

/* 品牌特定颜色 */
.item-lewan .title { color: var(--lewan); }
.item-lewan:hover { border-color: rgba(96, 165, 250, 0.45); }

.item-touhao .title { 
    color: #93c5fd;
}
.item-touhao:hover { 
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: none;
}

.item-ued .title { color: var(--ued); }
.item-ued:hover { border-color: rgba(96, 165, 250, 0.45); }

.item-jxf .title { 
    color: #fca5a5;
}
.item-jxf:hover { border-color: rgba(96, 165, 250, 0.45); }

.item-rb88 .title {
    color: #d8b4fe;
}
.item-rb88:hover { border-color: rgba(96, 165, 250, 0.45); }

/* --- 信任保障模块 --- */
.trust-section {
    max-width: 600px;
    margin: 30px auto 25px;
    padding: 0 10px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 1.2rem;
}

.trust-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@media (min-width: 769px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- 客服模块 --- */
.service-section {
    max-width: 600px;
    margin: 30px auto 25px;
    padding: 0 10px;
}

.service-title {
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.service-title::before,
.service-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.service-title::before { left: 0; }
.service-title::after { right: 0; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-item {
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: none;
    opacity: 0;
    animation: serviceItemFadeIn 0.6s ease-out 0.5s forwards;
}

.service-item:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes serviceItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(96, 165, 250, 0.45);
    transform: none;
    box-shadow: none;
}

.service-item:active {
    opacity: 0.95;
}

.service-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.service-wangwang {
    border-color: rgba(255, 107, 53, 0.4);
}

.service-wangwang:hover {
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.45);
}

.service-feiyu {
    border-color: rgba(0, 212, 255, 0.4);
}

.service-feiyu:hover {
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.45);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* --- 手机端一致性优化（降低强迫感） --- */
@media (max-width: 768px) {
    .promo-banner,
    .service-item,
    .header {
        animation: none;
        opacity: 1;
    }

    .brand-grid,
    .backup-grid,
    .service-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brand-item,
    .backup-link,
    .network-tool-card,
    .trust-item,
    .service-item,
    .promo-card {
        border-radius: 12px;
    }

    .brand-item {
        padding: 14px 12px;
        text-align: left;
    }

    .brand-item--top-pick {
        grid-column: span 1;
        min-height: auto;
    }

    .brand-head {
        margin-top: 2px;
        margin-bottom: 10px;
    }

    .brand-item .title,
    .brand-item--top-pick .title {
        font-size: 1rem;
        letter-spacing: 0.03em;
    }

    .brand-desc,
    .brand-item--top-pick .brand-desc {
        font-size: 0.75rem;
    }

    .brand-reg-btns {
        max-width: 100%;
        margin-top: 8px;
    }

    .brand-reg-btn {
        width: 100%;
        min-height: 42px;
        border-radius: 10px;
        font-size: 0.875rem;
    }

    .backup-link {
        min-height: 40px;
        justify-content: flex-start;
        padding: 9px 12px;
    }

    .network-tool-card {
        padding: 12px;
    }

    .network-tool-title {
        font-size: 0.8125rem;
    }

    .network-tool-tip {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .trust-item {
        padding: 12px;
    }

    .service-item {
        padding: 14px 12px;
    }

    .service-icon {
        font-size: 1.35rem;
        margin-bottom: 8px;
        filter: none;
    }

    .service-name {
        font-size: 0.875rem;
    }

    .service-desc {
        font-size: 0.75rem;
    }
}