* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.logo .title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;      /* 水平居中 */
    justify-content: center;
}

.logo h1 {
    font-family: 'Impact', 'Arial Black', 'Helvetica Bold', sans-serif;
    font-weight: 900;
    font-size: 32px;          /* 可根据需要调整 */
    margin-bottom: 5px;
}

.site-url {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #475569;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.site-url:hover {
    color: #3b82f6;
    text-decoration: underline;
}
.site-url {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #475569;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.site-url:hover {
    color: #3b82f6;
    text-decoration: underline;
}
body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Impact', 'Arial Black', 'Helvetica Bold', sans-serif;
    font-weight: 900;
    font-size: 32px;          /* 可根据需要调整 */
    margin-bottom: 5px;
}

.lang-switch a {
    color: #666;
    text-decoration: none;
    margin-left: 10px;
}

.lang-switch a:hover {
    text-decoration: underline;
}

/* ========== 分类导航样式 ========== */
.lottery-categories {
    margin-bottom: 20px;
}

.category {
    margin-bottom: 15px;
}

.category-title {
    font-size: 18px;
    font-weight: normal;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

.lottery-nav {
    background-color: #ddd;
    border-radius: 5px;
    padding: 10px;
}

/* 彩种导航网格布局 */
.lottery-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
}

.lottery-nav a {
    display: block;
    width: 100%;
    padding: 10px 8px;
    background-color: #e0e0e0;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.lottery-nav a:hover,
.lottery-nav a.active {
    background-color: #888;
    color: white;
}

/* 移动端适配：标签宽度自适应 */
@media (max-width: 768px) {
    .lottery-nav ul {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    .lottery-nav a {
        padding: 8px 4px;
        font-size: 13px;
    }
}

/* ========== 主要内容区域 ========== */
main {
    clear: both;
}

.current-panel {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.lottery-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.lottery-header h2 {
    font-size: 24px;
    color: #555;
    font-weight: normal;
}

.countdown-box {
    text-align: right;
}

.countdown-box .label {
    margin-left: 20px;
    color: #777;
}

.timer {
    margin-top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.result-display {
    text-align: center;
}

.result-label {
    font-size: 18px;
    color: #777;
    margin-bottom: 15px;
}

.numbers {
    min-height: 80px;
    font-size: 48px;
    letter-spacing: 15px;
    font-weight: bold;
    color: #222;
}

.number-ball {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 36px;
    color: #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.waiting {
    font-size: 24px;
    color: #999;
}

/* ========== 历史记录面板 ========== */
.history-panel {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.history-panel h3 {
    margin-bottom: 15px;
    color: #555;
    font-weight: normal;
}

.history-search {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.history-search input,
.history-search select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.history-search button {
    padding: 8px 20px;
    background-color: #888;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.history-search button:hover {
    background-color: #666;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.history-table th {
    background-color: #eee;
    color: #555;
    font-weight: normal;
}

.history-table tr:hover {
    background-color: #f9f9f9;
}

/* ========== 滚动动画 ========== */
.rolling .number-ball {
    animation: pulse 0.2s infinite alternate;
}
.lang-switch select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}
.lang-switch select:hover {
    border-color: #3b82f6;
}

@keyframes pulse {
    from { opacity: 0.7; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1.02); }
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .lottery-header {
        flex-direction: column;
    }
    .countdown-box {
        text-align: left;
        margin-top: 10px;
    }
    .countdown-box .label {
        margin-left: 0;
        margin-right: 20px;
    }
    .numbers {
        font-size: 32px;
        letter-spacing: 5px;
    }
    .number-ball {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
    }
    .lottery-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
    
}