/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* ========== 加载器 ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #fff;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 状态栏 ========== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    min-height: 32px;
}

.status-icons {
    display: flex;
    gap: 8px;
}

/* ========== 头部导航 ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.refresh-btn, .menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover, .menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.refresh-btn:active, .menu-btn:active {
    transform: scale(0.95);
}

/* ========== 下拉刷新 ========== */
.pull-refresh {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
    z-index: 100;
}

.pull-refresh.active {
    transform: translateY(60px);
}

.pull-refresh-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.pull-refresh-text {
    color: #666;
    font-size: 14px;
}

/* ========== 主内容区域 ========== */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

.page {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

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

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.back-btn {
    background: #667eea;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

/* ========== 卡片样式 ========== */
.info-card, .data-card, .numbers-card, .prediction-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover, .data-card:hover, .numbers-card:hover, .prediction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.info-card h2, .data-card h3, .numbers-card h3, .prediction-card h3 {
    color: #2d3748;
    margin-bottom: 16px;
    font-weight: 700;
}

/* ========== 彩票结果显示 ========== */
.lottery-result {
    text-align: center;
}

.result-period {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
}

.result-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.number {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: bounce 0.6s ease;
}

.number.big {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.number.small {
    background: linear-gradient(135deg, #4834d4, #667eea);
}

.number.odd {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.number.even {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.result-time {
    font-size: 14px;
    color: #718096;
}

/* ========== 走势统计 ========== */
.trend-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 16px 8px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* ========== 热门号码网格 ========== */
.hot-numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.hot-number {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hot-number.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.hot-number.normal {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hot-number.cold {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.hot-number:hover {
    transform: scale(1.1);
}

.hot-number::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
}

/* ========== 预测结果 ========== */
.prediction-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.prediction-label {
    font-weight: 600;
    color: #4a5568;
}

.prediction-value {
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
}

.prediction-value.big {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.prediction-value.small {
    background: linear-gradient(135deg, #4834d4, #667eea);
}

.prediction-value.odd {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.prediction-value.even {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
}

.prediction-value.red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.prediction-value.green {
    background: linear-gradient(135deg, #26de81, #20bf6b);
}

.prediction-value.blue {
    background: linear-gradient(135deg, #4834d4, #667eea);
}

.predict-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.predict-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.predict-btn:active {
    transform: translateY(0);
}

/* ========== 标签页导航 ========== */
.type-tabs, .pattern-tabs {
    display: flex;
    background: #f7fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
}

/* ========== 预测内容 ========== */
.prediction-content, .pattern-content {
    display: none;
}

.prediction-content.active, .pattern-content.active {
    display: block;
}

.prediction-analysis {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.analysis-chart {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 14px;
}

.prediction-recommendation {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.recommendation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.rec-type {
    font-weight: 600;
    color: #4a5568;
}

.rec-value {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    color: #fff;
}

.rec-confidence {
    font-size: 14px;
    color: #718096;
}

.rec-numbers {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

/* ========== 号码网格 ========== */
.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.number-item {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.number-item.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.number-item.cold {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.number-item:hover {
    transform: scale(1.1);
}

/* ========== 颜色统计 ========== */
.color-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-box.red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.color-box.green {
    background: linear-gradient(135deg, #26de81, #20bf6b);
}

.color-box.blue {
    background: linear-gradient(135deg, #4834d4, #667eea);
}

.color-name {
    font-weight: 600;
    color: #4a5568;
}

.color-count {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

/* ========== 路单网格 ========== */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.pattern-item {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.pattern-stats {
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-row:last-child {
    margin-bottom: 0;
}

/* ========== 策略卡片 ========== */
.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strategy-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.strategy-card h3 {
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

.strategy-card p {
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
}

.strategy-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.strategy-stats span {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.use-strategy-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.use-strategy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ========== 追号计划 ========== */
.add-plan-btn {
    background: linear-gradient(135deg, #26de81, #20bf6b);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-plan-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(38, 222, 129, 0.4);
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
}

.plan-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.plan-status.active {
    background: #c6f6d5;
    color: #22543d;
}

.plan-status.paused {
    background: #fed7d7;
    color: #822727;
}

.plan-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.plan-detail {
    text-align: center;
    padding: 8px;
    background: #f7fafc;
    border-radius: 8px;
}

.plan-detail-label {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.plan-detail-value {
    display: block;
    font-weight: 700;
    color: #2d3748;
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.plan-action-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-action-btn.edit {
    background: #bee3f8;
    color: #2b6cb7;
}

.plan-action-btn.pause {
    background: #fbb6ce;
    color: #97266d;
}

.plan-action-btn.delete {
    background: #fed7d7;
    color: #822727;
}

.plan-action-btn:hover {
    transform: translateY(-1px);
}

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 60px;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-item:not(.active) {
    color: #718096;
}

.nav-item:hover:not(.active) {
    background: #f7fafc;
    color: #4a5568;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
}

/* ========== 弹窗样式 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.close-btn {
    background: #f7fafc;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #4a5568;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid #e2e8f0;
}

.cancel-btn,
.confirm-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f7fafc;
    color: #718096;
    border: 2px solid #e2e8f0;
}

.cancel-btn:hover {
    background: #e2e8f0;
    color: #4a5568;
}

.confirm-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ========== 消息提示 ========== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #2d3748;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 3000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 80%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, #26de81, #20bf6b);
}

.toast.error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.toast.warning {
    background: linear-gradient(135deg, #ffa726, #ff9800);
}

/* ========== 响应式设计 ========== */
@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }
    
    .app-title {
        font-size: 18px;
    }
    
    .page {
        padding: 16px;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    .trend-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .hot-numbers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .number-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .pattern-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .strategy-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .plan-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
}

/* ========== 横屏适配 ========== */
@media (orientation: landscape) and (max-height: 500px) {
    .main-content {
        padding-bottom: 70px;
    }
    
    .bottom-nav {
        padding: 4px 0;
    }
    
    .nav-item {
        padding: 4px 8px;
    }
    
    .nav-icon {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .nav-label {
        font-size: 10px;
    }
}

/* ========== 深色模式支持 ========== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    
    .app-container {
        background: #1a202c;
        color: #f7fafc;
    }
    
    .info-card, .data-card, .numbers-card, .prediction-card,
    .strategy-card, .plan-card, .prediction-analysis {
        background: #2d3748;
        border-color: #4a5568;
        color: #f7fafc;
    }
    
    .info-card h2, .data-card h3, .numbers-card h3, .prediction-card h3,
    .strategy-card h3, .page-header h2 {
        color: #f7fafc;
    }
    
    .bottom-nav {
        background: #2d3748;
        border-top-color: #4a5568;
    }
    
    .modal-content {
        background: #2d3748;
        color: #f7fafc;
    }
    
    .modal-header {
        border-bottom-color: #4a5568;
    }
    
    .modal-footer {
        border-top-color: #4a5568;
    }
    
    .form-group input,
    .form-group select {
        background: #4a5568;
        border-color: #718096;
        color: #f7fafc;
    }
    
    .form-group input::placeholder {
        color: #a0aec0;
    }
    
    .cancel-btn {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
}

/* ========== 触摸优化 ========== */
@media (hover: none) and (pointer: coarse) {
    .refresh-btn, .menu-btn, .back-btn, .nav-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    .number, .number-item, .hot-number {
        min-height: 44px;
        min-width: 44px;
    }
    
    .tab-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .predict-btn, .use-strategy-btn {
        min-height: 44px;
    }
}

/* ========== 动画增强 ========== */
.number {
    animation-delay: calc(var(--index) * 0.1s);
}

.hot-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.strategy-card, .plan-card {
    animation: slideInUp 0.5s ease;
    animation-delay: calc(var(--index) * 0.1s);
    animation-fill-mode: both;
}

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

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
} 