/*
 Theme Name:   Neve Child - 戒赌专题
 Theme URI:    https://jiedu.org
 Description:  戒赌网站专用子主题，优化SEO和用户体验，符合Google E-E-A-T标准
 Author:       戒赌团队
 Author URI:   https://jiedu.org
 Template:     neve
 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:  neve-child
*/

/* ===========================
   E-E-A-T 优化 - 信任度提升
   =========================== */

/* 作者信息突出显示 - Experience & Expertise */
.author-info-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #2c5282;
}

.author-credentials {
    font-size: 14px;
    color: #4a5568;
    margin-top: 10px;
    font-style: italic;
}

/* 文章发布日期和更新日期 - Freshness Signal */
.entry-meta {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
}

.updated-date {
    background: #fef5e7;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
}

/* ===========================
   首页自定义样式
   =========================== */

/* 网站标题和描述优化 */
.site-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.site-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* 信任标识区域 */
.trust-signals {
    background: #edf2f7;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    border-radius: 10px;
}

.trust-signals h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2d3748;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-badge {
    flex: 0 1 200px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trust-badge-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.trust-badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

/* ===========================
   文章列表优化
   =========================== */

/* 文章卡片样式 */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

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

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.article-card-content {
    padding: 25px;
}

.article-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a202c;
}

.article-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #2c5282;
}

.article-card-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 15px;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #718096;
}

.read-more-btn {
    background: #2c5282;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    background: #1a365d;
    color: white;
}

/* ===========================
   内容页面优化
   =========================== */

/* 文章内容可读性优化 */
.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2d3748;
}

.entry-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a202c;
    font-weight: 700;
    border-left: 4px solid #2c5282;
    padding-left: 15px;
}

.entry-content h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content strong {
    color: #1a202c;
    font-weight: 700;
}

/* 引用样式 */
.entry-content blockquote {
    border-left: 4px solid #4299e1;
    padding: 20px 25px;
    margin: 30px 0;
    background: #ebf8ff;
    font-style: italic;
    color: #2c5282;
}

/* ===========================
   专业性标识 - E-E-A-T
   =========================== */

/* 医学免责声明 */
.medical-disclaimer {
    background: #fff5f5;
    border: 2px solid #fc8181;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.medical-disclaimer h4 {
    color: #c53030;
    margin-bottom: 10px;
    font-size: 16px;
}

.medical-disclaimer p {
    color: #742a2a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 专家建议框 */
.expert-tip {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.expert-tip-title {
    color: #22543d;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.expert-tip-title:before {
    content: "💡";
    margin-right: 8px;
}

/* 真实案例标识 */
.real-story-badge {
    background: #e6fffa;
    border: 2px solid #319795;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #234e52;
    margin-bottom: 15px;
}

/* ===========================
   结构化数据支持样式
   =========================== */

/* FAQ 样式 */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f7fafc;
    padding: 15px 20px;
    font-weight: 700;
    color: #2d3748;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.faq-answer {
    padding: 20px;
    line-height: 1.7;
    color: #4a5568;
}

/* ===========================
   移动端优化
   =========================== */

@media (max-width: 768px) {
    .site-title {
        font-size: 24px;
    }
    
    .site-description {
        font-size: 14px;
    }
    
    .article-card img {
        height: 200px;
    }
    
    .article-card-title {
        font-size: 18px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-content h2 {
        font-size: 22px;
    }
}

/* ===========================
   可访问性增强
   =========================== */

/* 焦点可见性 */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #4299e1;
    outline-offset: 2px;
}

/* 跳转到主内容链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c5282;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

/* 图片懒加载占位 */
img[loading="lazy"] {
    background: #f7fafc;
}

/* 减少重绘 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   CTA 按钮优化
   =========================== */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 30px;
    text-align: center;
    color: white;
    margin: 50px 0;
    border-radius: 15px;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #667eea;
}

/* ===========================
   社交证明
   =========================== */

.testimonials-section {
    padding: 40px 0;
    background: #f7fafc;
}

.testimonial {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: #2d3748;
}

.testimonial-role {
    font-size: 13px;
    color: #718096;
}
