/*
Theme Name: Zakra Child - TiyuFun
Theme URI: https://tiyufun.com
Description: 专业体育竞彩分析推荐子主题，符合Google E-E-A-T标准
Author: TiyuFun Team
Author URI: https://tiyufun.com
Template: zakra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zakra-child
*/

/* ==========================================
   E-E-A-T 优化核心样式
   Experience | Expertise | Authoritativeness | Trustworthiness
   ========================================== */

/* 1. 专业性标识 - 突出专家身份和经验 */
.author-expertise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.author-credentials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
}

.author-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.author-experience {
    font-size: 14px;
    opacity: 0.9;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.expert-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

/* 2. 数据透明度 - 展示历史战绩和成功率 */
.prediction-stats {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 25px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* 3. 内容深度指标 - 显示分析深度 */
.analysis-depth {
    background: linear-gradient(to right, #e3f2fd, #ffffff);
    border: 1px solid #2196f3;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.depth-indicators {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.depth-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.depth-icon {
    width: 24px;
    height: 24px;
    background: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

/* 4. 时效性标识 */
.content-freshness {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    color: #856404;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin: 10px 0;
}

.freshness-icon::before {
    content: "🕒";
    font-size: 16px;
}

/* 5. 引用来源 - 提升可信度 */
.data-sources {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    margin: 25px 0;
}

.source-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.source-item {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-item::before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
}

/* ==========================================
   首页自定义布局
   ========================================== */

/* 英雄区 - 品牌定位 */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.05)"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 24px;
}

/* 信任指标栏 */
.trust-bar {
    background: #fff;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.trust-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-metric {
    text-align: center;
}

.trust-number {
    font-size: 36px;
    font-weight: 700;
    color: #2196f3;
    display: block;
}

.trust-text {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* 分类卡片网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 48px;
}

.category-content {
    padding: 20px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.category-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-count {
    color: #2196f3;
    font-size: 13px;
    font-weight: 500;
}

/* 最新推荐文章 */
.latest-predictions {
    background: #f8f9fa;
    padding: 50px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 16px;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.prediction-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.prediction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.prediction-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.prediction-content {
    padding: 20px;
}

.prediction-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.prediction-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.prediction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 13px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.prediction-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prediction-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 成功案例展示 */
.success-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.showcase-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.success-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 12px;
}

.success-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.success-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ==========================================
   SEO 优化样式
   ========================================== */

/* Schema 标记样式 */
.schema-article {
    display: none;
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 15px 0;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-nav a {
    color: #2196f3;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* FAQ Schema */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #495057;
    line-height: 1.6;
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .trust-metrics {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .success-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   可访问性优化
   ========================================== */

/* 焦点样式 */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* 跳过导航链接 */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2196f3;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* 屏幕阅读器文本 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   性能优化
   ========================================== */

/* 图片延迟加载占位符 */
.lazy-load-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
