/* ===== 全局 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #0a0a14 url('../images/bj.png') no-repeat center center;
    background-size: cover;
    color: #f0f0f0;
    min-height: 100vh;
    padding: 0;
}

/* 只在桌面端固定背景，手机端不要 fixed */
@media (min-width: 769px) {
    body {
        background-attachment: fixed;
    }
}

/* ===== 主容器 ===== */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 6px 15px 12px;
}

/* ===== 顶部 Banner ===== */
.top-banner {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    position: relative;
}

.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.top-banner:hover img {
    transform: scale(1.03);
}

.banner-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
}

.banner-content h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.banner-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 600px;
}

/* ===== 跑马灯 ===== */
.marquee-container {
    width: 100%;
    height: 34px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 6px;
    margin: 6px 0;
    border: 1px solid #ff6b6b;
}

.marquee {
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    font-size: 0.95rem;
    padding-left: 100%;
    display: inline-block;
}

.marquee i {
    color: #ff6b6b;
    margin: 0 10px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== 标题 ===== */
.section-title {
    text-align: center;
    margin: 6px 0;
    position: relative;
    padding-bottom: 8px;
}

.section-title h2 {
    display: inline-block;
    background: rgba(20, 1, 1, 0.92);
    padding: 6px 40px;
    border-radius: 25px;
    font-size: 1.3rem;
    color: #6def6d;
    border: 1px solid rgba(255, 107, 179, 0.3);
    box-shadow: 0 3px 10px rgba(255, 107, 179, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff6bb3, transparent);
    border-radius: 1px;
}

/* ===== 卡片列表 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.card {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    display: flex;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-image {
    flex: 0 0 85px;
    min-height: 120px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-content {
    flex: 1;
    padding: 10px 12px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    border-radius: 0 10px 10px 0;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #ff6bb3, #ffa5d8);
    border-radius: 1px;
}

.card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.appointment-range {
    display: flex;
    align-items: center;
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(255, 107, 179, 0.15);
    border-radius: 4px;
    width: fit-content;
}

.appointment-range i {
    color: #ff6bb3;
    margin-right: 5px;
    font-size: 0.8rem;
}

.appointment-range span {
    color: #70ff00;
    font-size: 0.78rem;
    font-weight: 500;
}

.jump-links {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: nowrap;
}

.jump-link.detail {
    background: #3b82f6;
}

.jump-link.detail:hover {
    background: #2563eb;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);
}

.jump-link.secondary {
    background: #10b981;
}

.jump-link.secondary:hover {
    background: #059669;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content:hover {
    background: rgba(40, 40, 60, 0.45);
}

.appointment-range:hover {
    background: rgba(255, 107, 179, 0.25);
}

/* ===== 页脚 ===== */
footer {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 浮动装饰 ===== */
.floating-icons {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 107, 179, 0.1);
    font-size: 1.2rem;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -12px) rotate(8deg); }
    50% { transform: translate(-8px, 12px) rotate(-8deg); }
    75% { transform: translate(12px, 8px) rotate(4deg); }
}

/* ===== 状态提示 ===== */
.mobile-indicator {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(255, 107, 179, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 100;
    display: none;
}

.jump-status {
    position: fixed;
    top: 50px;
    left: 20px;
    background: rgba(255, 107, 179, 0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(255, 107, 179, 0.5);
    max-width: 300px;
    display: none;
}

.jump-status.visible {
    display: block;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.jump-status h3 {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jump-status p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.status-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* ===== 客服按钮（图片版）===== */
.fake-kefu-entry {
    position: fixed;
    right: 16px;
    bottom: 90px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: url('static/kefu.png') no-repeat center center;
    background-size: 100% 100%;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    animation: fakeKefuFloat 2s ease-in-out infinite;
    overflow: hidden;
}

.fake-kefu-entry::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 120, 0, 0.35);
    animation: kefuPulse 1.6s infinite;
}

.fake-kefu-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    display: none;
}

.fake-kefu-box {
    position: fixed;
    right: 16px;
    bottom: 160px;
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #111;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 9999;
    display: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    animation: fakeKefuUp 0.25s ease;
}

.fake-kefu-head {
    height: 48px;
    background: linear-gradient(135deg, #ff9f2f, #ff6a00);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 16px;
    font-weight: bold;
}

.fake-kefu-head button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.fake-kefu-body {
    padding: 16px;
}

.fake-kefu-tip {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    margin-bottom: 12px;
}

.fake-kefu-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.fake-kefu-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffb14a;
}

.fake-kefu-line {
    font-size: 14px;
    line-height: 1.9;
}

.fake-kefu-qrcode {
    text-align: center;
    margin-bottom: 14px;
}

.fake-kefu-qrcode img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.fake-kefu-qrcode p {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.fake-kefu-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.fake-kefu-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.main-btn {
    background: linear-gradient(135deg, #ff9f2f, #ff6a00);
    color: #fff;
}

.sub-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.fake-kefu-note {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}

@keyframes fakeKefuFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

@keyframes kefuPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ===== 平板 ===== */
@media (max-width: 900px) {
    .top-banner {
        height: 190px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }
}

/* ===== 手机 ===== */
@media (max-width: 600px) {
    .mobile-indicator {
        display: block;
    }

    .container {
        padding: 4px 10px 8px;
    }

    .top-banner {
        height: 155px;
        margin-bottom: 4px;
        border-radius: 10px;
    }

    .marquee-container {
        height: 30px;
        margin: 4px 0;
    }

    .marquee {
        font-size: 0.8rem;
    }

    .section-title {
        margin: 4px 0;
    }

    .section-title h2 {
        padding: 5px 20px;
        font-size: 1rem;
    }

    .banner-content {
        padding: 10px 12px;
    }

    .banner-content h1 {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .banner-content p {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .card {
        min-height: 110px;
    }

    .card-image {
        flex: 0 0 80px;
        min-height: 110px;
    }

    .card-content {
        padding: 8px 10px 40px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.74rem;
        line-height: 1.3;
    }

    .appointment-range {
        margin-top: 4px;
        padding: 3px 7px;
    }

    .appointment-range span {
        font-size: 0.72rem;
    }

    .jump-links {
        right: 8px;
        bottom: 8px;
        gap: 6px;
    }

    .jump-link {
        padding: 4px 9px;
        font-size: 0.72rem;
        border-radius: 14px;
    }
}