/* 28圈预测插件样式 */

:root {
    --primary: #0284C7;
    --bg-body: #F5F7FA;
    --bg-card: #FFFFFF;
    --text-main: #1F2937;
    --text-sub: #6B7280;
    --red: #EF4444;
    --green: #10B981;
    --blue: #3B82F6;
    --radius: 11px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.zibll-28k-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

/* 导航样式 */
.scroll-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 0;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-nav::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    padding: 6px 16px;
    background: #F3F4F6;
    color: var(--text-sub);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-pill:hover {
    background: #E5E7EB;
    color: var(--text-main);
}

.nav-pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.sub-nav {
    border-top: 1px solid #f0f0f0;
    padding: 8px 0;
}

.sub-nav .nav-pill {
    background: transparent;
    border: 1px solid #E5E7EB;
    font-size: 12px;
    padding: 4px 12px;
}

.sub-nav .nav-pill.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: none;
}

/* 评分卡片 */
.score-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 15px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3F4F6;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.score-title .title-icon {
    font-size: 16px;
    margin-right: 5px;
}

.score-title .title-text {
    font-size: 16px;
    font-weight: bold;
}

.score-title .title-sub {
    font-size: 12px;
    color: #9CA3AF;
    margin-left: 8px;
}

.score-stars {
    font-size: 18px;
    letter-spacing: 2px;
}

.score-stars .star {
    color: #E5E7EB;
}

.score-stars .star.active {
    color: #F59E0B;
}

.score-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 10px;
    text-align: center;
}

.score-item {
    padding: 5px;
}

.score-item.center {
    border-left: 1px solid #F3F4F6;
    border-right: 1px solid #F3F4F6;
}

.score-label {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 5px;
}

.progress-bg {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.score-value {
    font-weight: bold;
    font-size: 16px;
    font-family: 'DIN Alternate', sans-serif;
    color: #3B82F6;
}

.algo-accuracy {
    font-size: 24px;
    font-weight: 800;
    color: #EF4444;
    line-height: 1.2;
}

.algo-accuracy .percent {
    font-size: 12px;
    font-weight: normal;
    color: #666;
}

.algo-num {
    font-size: 10px;
    color: #999;
}

.ai-tips {
    font-size: 13px;
    font-weight: 600;
    color: #3B82F6;
    padding: 5px 0;
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    border-radius: var(--radius);
    padding: 24px;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-header {
    margin-bottom: 10px;
}

.issue-label {
    font-size: 14px;
    opacity: 0.9;
}

.countdown-box {
    margin-bottom: 15px;
}

.countdown-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.countdown-num {
    font-size: 36px;
    font-weight: 800;
    font-family: 'DIN Alternate', sans-serif;
    letter-spacing: 1px;
}

.ball-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.ball {
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #fff;
    color: var(--blue);
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ball.tm {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #FEF3C7;
    color: #D97706;
    border: 2px solid #F59E0B;
    font-size: 20px;
}

.ball-container span {
    font-size: 18px;
    font-weight: bold;
}

/* 历史数据区域 */
.section-header {
    padding: 15px 5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin: 20px 0 10px 0;
}

.refresh-btn {
    font-size: 12px;
    color: var(--primary);
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.history-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3F4F6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.prediction-card {
    border-color: rgba(59, 130, 246, 0.4);
    background: #F0F9FF;
}

.row-top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-sub);
    border-bottom: 1px dashed #E5E7EB;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.row-nums {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mini-ball {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #EFF6FF;
    color: var(--blue);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
}

.plus {
    color: #ccc;
    font-size: 12px;
}

.sum-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sum-label {
    font-size: 12px;
    color: #999;
}

.sum-ball {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #FEF3C7;
    color: #D97706;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.row-pred {
    background: #F9FAFB;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.prediction-text .pred-label {
    color: #6B7280;
    margin-right: 5px;
}

.txt-correct {
    color: var(--red);
    font-weight: bold;
}

.txt-wrong {
    color: var(--blue);
    font-weight: bold;
}

.prediction-waiting {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    padding: 15px 0;
}

.waiting-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-pred {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
}

.badge-right {
    background: var(--red);
    color: #fff;
}

.badge-wrong {
    background: #E5E7EB;
    color: #9CA3AF;
}

/* SEO 文章区域 */
.seo-article {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    border-top: 4px solid #E5E7EB;
}

.seo-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #374151;
    font-weight: bold;
}

.seo-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    background: #F9FAFB;
    padding: 8px;
    border-radius: 6px;
    flex-wrap: wrap;
}

.seo-meta span {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.seo-content {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.8;
    text-align: justify;
}

.seo-content p {
    margin-bottom: 12px;
}

.seo-content .highlight {
    color: #ef4444;
}

.seo-footer {
    font-size: 12px;
    color: #D1D5DB;
    margin-top: 15px;
    border-top: 1px dashed #E5E7EB;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .zibll-28k-container {
        padding: 0 10px;
    }
    
    .score-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .score-item.center {
        border-left: none;
        border-right: none;
        border-top: 1px solid #F3F4F6;
        border-bottom: 1px solid #F3F4F6;
        padding: 10px 0;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 20px;
    }
    
    .ball {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }
    
    .ball.tm {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 18px;
    }
}