/* ===== 全局重置 & 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #222222;
    min-height: 100vh;
    padding-bottom: 70px;
    position: relative;
}

/* ===== 背景装饰 ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(240, 185, 11, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(240, 185, 11, 0.04) 0%, transparent 50%),
                linear-gradient(135deg, #fafafa 0%, #f0f0f5 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== 顶部导航 ===== */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.top-nav .nav-logo {
    flex-shrink: 0;
    margin-right: 20px;
    overflow: visible;
    line-height: 0;
}
.top-nav .nav-logo .logo-img {
    height: 40px;
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}
.top-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.top-nav ul li a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.top-nav ul li a:hover,
.top-nav ul li a.active {
    color: #f0b90b;
    border-bottom-color: #f0b90b;
}

/* 移动端菜单按钮 */
.hamburger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 99;
}
.mobile-menu a {
    display: block;
    padding: 12px 24px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a:hover { background: #f9f9f9; color: #f0b90b; }
.mobile-menu.active { display: block; }

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: none;
    justify-content: space-around;
    padding: 8px 0 6px;
    z-index: 200;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s;
}
.bottom-nav a i {
    font-size: 20px;
    margin-bottom: 2px;
}
.bottom-nav a.active,
.bottom-nav a:hover {
    color: #f0b90b;
}
.bottom-nav a span {
    font-size: 10px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .top-nav ul { display: none; }
    .top-nav { justify-content: space-between; height: 50px; padding: 0 12px; }
    .top-nav .nav-logo .logo-img { height: 36px; }
    .hamburger { display: flex; }
    .bottom-nav { display: flex; }
    .top-nav .nav-logo { margin-right: 0; }
}

@media (min-width: 769px) {
    .top-nav .nav-logo .logo-img { height: 50px; }
    .hamburger { display: none; }
    .mobile-menu { display: none !important; }
    .bottom-nav { display: none !important; }
    body { padding-bottom: 0; }
}

/* ===== Hero 区域 ===== */
.hero { text-align: center; padding: 20px 20px 10px; }
.carousel-container { max-width: 800px; margin: 0 auto 16px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.carousel-container img { width: 100%; height: auto; display: block; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.carousel-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; cursor: pointer; }
.carousel-dots .dot.active { background: #f0b90b; box-shadow: 0 0 8px rgba(240,185,11,0.4); }
.hero h1 { font-size: 32px; color: #222; margin: 12px 0 6px; text-shadow: none; }
.hero h2 { font-size: 16px; color: #666; font-weight: normal; }

/* ===== 开奖结果 ===== */
.lottery-result { max-width: 700px; margin: 16px auto 24px; background: #ffffff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 20px 20px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.lottery-result h3 { text-align: center; font-size: 20px; color: #f0b90b; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.lottery-header { display: flex; justify-content: space-between; font-size: 14px; color: #666; margin-bottom: 14px; flex-wrap: wrap; }
.lottery-numbers { display: flex; justify-content: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0; }
.ball-wrapper { display: flex; flex-direction: column; align-items: center; width: 40px; flex-shrink: 0; }
.ball { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%; font-weight: bold; font-size: 14px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.zodiac-below { font-size: 10px; color: #555; margin-top: 2px; font-weight: 500; }

@media (min-width: 768px) {
    .lottery-result { max-width: 860px; padding: 28px 36px; }
    .ball-wrapper { width: 54px; }
    .ball { width: 48px; height: 48px; line-height: 48px; font-size: 20px; }
    .zodiac-below { font-size: 14px; }
    .lottery-numbers { gap: 8px; }
}

/* ===== 功能按钮 ===== */
.service-list { max-width: 420px; margin: 0 auto 30px; display: flex; flex-direction: column; gap: 14px; padding: 0 20px; }
.service-item { background: #f8f8fa; border: 1px solid #e0e0e0; color: #333; padding: 18px 20px; border-radius: 12px; text-align: center; font-size: 18px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.service-item:hover { background: #fef7e0; border-color: #f0b90b; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(240,185,11,0.1); }

/* ===== 联系方式 ===== */
.contact-card { max-width: 420px; margin: 0 auto 40px; background: #ffffff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px; }
.contact-card h4 { color: #f0b90b; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 12px; }
.contact-card ul { list-style: none; }
.contact-card ul li { padding: 6px 0; color: #555; font-size: 14px; }
.contact-card ul li a { color: #f0b90b; text-decoration: none; }
.contact-card ul li a:hover { text-decoration: underline; }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 20px; color: #aaa; font-size: 12px; border-top: 1px solid #f0f0f0; }

/* ===== 弹窗 ===== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 1000; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 20px; max-width: 420px; width: 90%; padding: 30px 24px; max-height: 90vh; overflow-y: auto; color: #222; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.modal-close { position: absolute; top: 16px; right: 20px; color: #999; font-size: 28px; background: none; border: none; cursor: pointer; }
.modal-close:hover { color: #e74c3c; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; color: #222; font-size: 15px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #f0b90b; outline: none; background: #fff; }
.btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #f0b90b, #d4a30a); color: #0b0f1a; border: none; border-radius: 10px; font-size: 17px; font-weight: 700; cursor: pointer; transition: 0.2s; margin-top: 10px; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.success-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 2000; justify-content: center; align-items: center; }
.success-modal.active { display: flex; }
.success-content { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 20px; padding: 30px; text-align: center; max-width: 320px; color: #222; }
.success-content h3 { color: #f0b90b; margin-bottom: 10px; }

/* ===== “可得分数”数字样式（修改后） ===== */
.score-display {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    text-align: center;
    font-size: 16px;
    color: #22543d;
}
.score-display span {
    font-weight: 700;
    font-size: 28px;         /* 数字更大 */
    color: #f0b90b;          /* 金色，更醒目 */
    display: inline-block;
    margin: 0 4px;
}

/* ===== 跑马灯公告栏 ===== */
.notice-bar {
    max-width: 800px;
    margin: 0 auto 12px auto;
    padding: 10px 0;
    background: #fef9e7;
    border-radius: 30px;
    border: 1px solid #f0d68a;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(240, 185, 11, 0.12);
}

.notice-track {
    display: inline-block;
    animation: scrollNotice 30s linear infinite;
    padding-left: 100%; /* 从右侧外部开始 */
}

.notice-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 15px;
    color: #6b4f1b;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 滚动动画 */
@keyframes scrollNotice {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .notice-bar {
        margin: 0 12px 10px 12px;
        padding: 8px 0;
        border-radius: 20px;
    }
    .notice-item {
        font-size: 13px;
        padding: 0 30px;
    }
    .notice-track {
        animation-duration: 25s;
    }
}

@media (max-width: 480px) {
    .notice-item {
        font-size: 12px;
        padding: 0 20px;
    }
    .notice-track {
        animation-duration: 20s;
    }
}