/* style.css - 完整版（含 .live-schedule 等所有首页样式） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #f4f7fc;
    color: #1e2b3c;
    line-height: 1.5;
}

.site-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 20, 30, 0.08);
    border-radius: 32px 32px 0 0;
    overflow: hidden;
}

/* 头部导航 */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border-bottom: 1px solid rgba(0,70,120,0.1);
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #003f5c, #2b4f6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.site-title i {
    color: #f08a4b;
    -webkit-text-fill-color: initial;
    background: none;
    margin-right: 5px;
}

.site-tagline {
    font-size: 0.9rem;
    background: #eef2f9;
    padding: 4px 10px;
    border-radius: 40px;
    color: #2a5f7a;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #1f3a4b;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: #f08a4b;
    color: #003f5c;
}

.header-extra .login-btn {
    background: #fff;
    border: 1px solid #cfdee9;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    color: #1e4b66;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: #e6f0f8;
    border-color: #8fb5cc;
}

/* 通用卡片 */
.card {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.8rem 1.8rem;
    box-shadow: 0 8px 22px rgba(0, 30, 50, 0.05);
    border: 1px solid rgba(170, 200, 220, 0.3);
    transition: transform 0.1s ease;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0,70,120,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #113946;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    background: #f08a4b;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge.blue {
    background: #1e6f9f;
}
.badge.green {
    background: #2a9d8f;
}
.badge.red {
    background: #e63946;
}
.badge.hot {
    background: #f08a4b; /* 热门标记使用橙色 */
}

/* 页面主要内容区域 */
.main-content {
    padding: 2rem 2.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a384b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 8px solid #f08a4b;
    padding-left: 1.2rem;
}

/* 首页专用样式 */
.hero-results {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
}

.latest-result-card {
    background: linear-gradient(125deg, #0a2a38 0%, #1b4b64 100%);
    border-radius: 32px;
    padding: 2rem 2rem;
    color: white;
    box-shadow: 0 18px 30px rgba(6, 60, 80, 0.3);
}

.result-header {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.result-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
}

.result-numbers {
    display: flex;
    gap: 1rem;
    margin: 1.8rem 0 1.2rem;
    flex-wrap: wrap;
}

.lottery-ball {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle at 30% 30%, #ffe68f, #f4b740);
    color: #1d2c3a;
    font-size: 1.7rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 0 #b16200, 0 10px 18px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,220,0.6);
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: center;
    font-size: 1rem;
}

.result-meta span {
    background: rgba(255,255,255,0.15);
    padding: 5px 15px;
    border-radius: 40px;
}

.next-draw-card {
    background: white;
    border-radius: 28px;
    padding: 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,40,60,0.1);
}

.next-draw-card h3 {
    font-size: 1.3rem;
    color: #003f5c;
    margin-bottom: 1rem;
}

.countdown-timer {
    font-size: 3rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 5px;
    background: #eef3f7;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: #c44536;
    text-align: center;
    margin-bottom: 0.8rem;
}

.btn-live {
    background: #e63946;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 40px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.8rem;
    padding: 0 2.5rem 2.5rem 2.5rem;
}

.left-col, .right-col {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* 预测卡片 */
.prediction-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.expert-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5faff;
    padding: 0.8rem 1.2rem;
    border-radius: 60px;
}

.expert-name {
    font-weight: 600;
    color: #1f5e8e;
    min-width: 110px;
}

.predict-numbers {
    display: flex;
    gap: 0.3rem;
}
.predict-ball {
    width: 34px; height: 34px;
    background: #d9e9f5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #12455f;
    border: 1px solid #9ac2d9;
}
.hit-rate {
    background: #cbddee;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-footer {
    margin-top: 1rem;
    text-align: right;
}
.card-footer a {
    text-decoration: none;
    color: #1f6793;
    font-weight: 500;
}

/* 历史记录 */
.search-mini {
    display: flex;
    gap: 5px;
}
.search-mini input {
    border: 1px solid #bcd3e3;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    width: 170px;
}
.search-mini button {
    background: #1f6793;
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    color: white;
    cursor: pointer;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.history-table th {
    text-align: left;
    color: #4e6a7c;
    font-weight: 600;
    padding-bottom: 8px;
}
.history-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e5ecf2;
}
.mini-ball {
    display: inline-block;
    width: 24px; height: 24px;
    background: #e2ecf5;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 2px;
}

/* 右侧直播卡片 */
.live-schedule {
    list-style: none;
    margin: 0.5rem 0 1rem;
}
.live-schedule li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #c9dae8;
    display: flex;
    align-items: center;
    gap: 10px;
}
.live-badge {
    background: #e63946;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.live-reminder {
    background: #fef3e4;
    padding: 0.8rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.btn-secondary {
    background: transparent;
    border: 2px solid #1f6793;
    color: #1f6793;
    padding: 0.7rem;
    border-radius: 40px;
    text-align: center;
    display: block;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.btn-secondary:hover {
    background: #1f6793;
    color: white;
}

/* 走势卡片 */
.trend-card {
    background: linear-gradient(145deg, #e6f2fa, #ffffff);
    border: none;
}
.trend-content h3 {
    color: #103a4c;
}
.trend-buttons {
    display: flex;
    gap: 0.8rem;
    margin: 1.2rem 0 0.8rem;
    flex-wrap: wrap;
}
.trend-link {
    background: white;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    text-decoration: none;
    color: #1d506b;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.trend-sample {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    background: #cbe0ee;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    margin-top: 0.8rem;
}
.trust-badge {
    background: #f1f7fb;
    border-radius: 50px;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: #246277;
    border: 1px solid #bed9ec;
}

/* 子页面样式 (开奖结果、直播计划、历史记录、号码预测、走势图、关于、服务、联系) */
.full-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.full-history-table th {
    background: #e2ecf5;
    color: #1b4b64;
    padding: 12px 8px;
    font-weight: 600;
    text-align: left;
}
.full-history-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #d4e2ed;
}
.full-history-table .lottery-balls {
    display: flex;
    gap: 5px;
}
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar input, .filter-bar select {
    padding: 0.6rem 1rem;
    border: 1px solid #bcd3e3;
    border-radius: 40px;
    font-size: 0.9rem;
}
.filter-bar button {
    background: #1f6793;
    border: none;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
}
.live-schedule-detailed {
    list-style: none;
    margin: 1.5rem 0;
}
.live-schedule-detailed li {
    padding: 1rem 1.2rem;
    background: #f5faff;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}
.live-time {
    font-weight: 700;
    color: #e63946;
    background: white;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.live-title {
    flex: 1;
    font-weight: 500;
}
.live-status {
    color: #2a9d8f;
    font-size: 0.9rem;
}
.video-placeholder {
    background: #0a2a38;
    border-radius: 28px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    margin: 1.8rem 0;
}
.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}
.advanced-search {
    background: #f2f8fe;
    border-radius: 28px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 1rem;
    align-items: end;
}
.advanced-search .field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.advanced-search label {
    font-weight: 600;
    color: #1d5a7a;
    font-size: 0.9rem;
}
.advanced-search input {
    padding: 0.6rem 1rem;
    border: 1px solid #bcd3e3;
    border-radius: 30px;
}
.search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.history-stats {
    display: flex;
    gap: 2rem;
    background: #eef2f9;
    border-radius: 50px;
    padding: 1rem 2rem;
    margin-top: 1rem;
    justify-content: space-around;
    flex-wrap: wrap;
}
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.expert-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid #d6e6f0;
    box-shadow: 0 5px 15px rgba(0,30,40,0.05);
    transition: all 0.2s;
}
.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0,70,100,0.1);
}
.expert-card .expert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}
.expert-avatar {
    width: 48px;
    height: 48px;
    background: #1e6f9f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.expert-info h4 {
    font-size: 1.2rem;
    color: #113946;
}
.expert-info p {
    font-size: 0.85rem;
    color: #4e6a7c;
}
.expert-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.2rem 0;
}
.expert-ball {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 30% 30%, #ffe68f, #f4b740);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #1d2c3a;
}
.expert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #1f6793;
}
.chart-container {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    height: 350px;
    position: relative;
}
.chart-controls {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}
.chart-btn {
    background: #e2ecf5;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    color: #1b4b64;
    cursor: pointer;
    transition: 0.2s;
}
.chart-btn.active {
    background: #1f6793;
    color: white;
}
.trend-stats {
    display: flex;
    gap: 2rem;
    background: #f5faff;
    border-radius: 28px;
    padding: 1.5rem 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-label {
    font-size: 0.9rem;
    color: #4e6a7c;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #003f5c;
}
.about-content, .services-grid, .contact-container {
    margin: 2rem 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.service-item {
    background: #f5faff;
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: 0.2s;
}
.service-item i {
    font-size: 2.8rem;
    color: #1f6793;
    margin-bottom: 1rem;
}
.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #113946;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-info {
    background: #f5faff;
    border-radius: 28px;
    padding: 2rem;
}
.contact-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid #cfdee9;
    border-radius: 40px;
    font-size: 1rem;
}
.contact-form textarea {
    border-radius: 24px;
    resize: vertical;
}
.contact-form button {
    background: #1f6793;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

/* 页脚 */
.main-footer {
    background: #102631;
    color: #d0e2ed;
    padding: 2.8rem 2.5rem 1.5rem;
    margin-top: 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.6rem;
}
.footer-col a {
    color: #b3d3e6;
    text-decoration: none;
    transition: 0.2s;
}
.footer-col a:hover {
    color: #f6b064;
}
.copyright-col p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    border-top: 1px solid #2e5068;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}
.footer-bottom {
    border-top: 1px solid #264a60;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom a {
    color: #9fc7e0;
    text-decoration: none;
    margin: 0 5px;
}

/* 响应式 */
@media (max-width: 1000px) {
    .main-header {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}