/* 全局样式重置和基础设置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 面包屑导航样式 - 隐藏但保留SEO语义 */
.breadcrumb {
    /* 完全隐藏但保留语义标记 */
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    /* 确保屏幕阅读器仍能读取 */
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* 确保内部链接和文本仍然可被搜索引擎索引 */
.breadcrumb a, .breadcrumb span {
    color: transparent;
    font-size: 1px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.5;
}

/* 容器样式 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 15px;
}

/* 页头样式 */
header {
    text-align: center;
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.banner-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #6c63ff;
}

/* 欢迎区域样式 */
.welcome {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.greeting {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #6c63ff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
    font-weight: 500;
}

/* 随机答案样式 */
.random-answer {
    font-size: 1.1rem;
    font-style: italic;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    display: inline-block;
    max-width: 100%;
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.1);
}

.random-answer-text {
    color: #3498db;
    font-weight: bold;
    font-style: normal;
    text-shadow: 0 1px 2px rgba(52, 152, 219, 0.2);
}

#random-answer {
    color: #27ae60;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(39, 174, 96, 0.2);
}

/* 内容区域样式 */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-type {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #ff6b6b;
    font-weight: bold;
    padding: 8px 0;
    border-bottom: 2px solid #ff6b6b;
}

.content-box {
    min-height: 150px;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f1f1f1 100%);
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.answer-box {
    margin-top: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    color: #1976d2;
    font-size: 1rem;
    display: none;
    border: 1px solid #90caf9;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.15);
}

/* 按钮区域样式 */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover:before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 按钮颜色样式 */
.btn-prev {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    color: white;
}

.btn-prev:hover {
    background: linear-gradient(135deg, #6c757d 0%, #7f8c8d 100%);
}

.btn-next {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-next:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6dad 100%);
}

.btn-answer {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-answer:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* 广告区域样式 */
.ad-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* 热门推荐标题样式 */
.ad-section h3 {
    font-size: 1.5rem;
    color: #6c63ff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(108, 99, 255, 0.2);
    position: relative;
    display: inline-block;
}

.ad-section h3:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6c63ff, #ff6b6b);
    border-radius: 2px;
}

.ad-section:hover {
    transform: translateY(-2px);
}

/* 热门推荐区域的答题挑战按钮 */
.ad-section .btn-challenge {
    display: block;
    margin: 0 auto 20px;
    width: 180px;
    height: 48px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.ad-section .btn-challenge:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.ad-section .btn-challenge:hover:before {
    left: 100%;
}

.ad-section .btn-challenge:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #e74c3c 100%);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

.ad-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.ad-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
footer {
    text-align: center;
    padding: 30px;
    background: #34495e;
    color: white;
    border-radius: 10px;
}
.current-type {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #ff6b6b;
    font-weight: bold;
}
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .container {
        padding: 10px;
    }
    button {
        padding: 10px 20px;
        width: 100%;
        max-width: 150px;
    }
}

/* 热门推荐脑筋急转弯样式 */
.hot-riddles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.hot-riddle-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hot-riddle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.hot-riddle-question {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border-left: 3px solid #6c63ff;
}

.hot-riddle-item:hover .hot-riddle-question {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
}

footer p {
    margin: 6px 0;
    font-size: 1rem;
    line-height: 1.4;
}

footer .social-links {
    margin-top: 20px;
}

footer .social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #6c63ff;
}

/* 答题挑战按钮样式 - 通用 */
.btn-challenge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    font-weight: bold;
}

.btn-challenge:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #e74c3c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .welcome, .content-section, .ad-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .greeting {
        font-size: 1.5rem;
    }
    
    .random-answer {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .content-box {
        min-height: 180px;
        padding: 20px;
        font-size: 1.1rem;
    }
    
    button {
        padding: 12px 24px;
        width: 100%;
        max-width: 200px;
        font-size: 1rem;
    }
    
    .ad-section .btn-challenge {
        width: 180px;
        height: 48px;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .hot-riddles {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    button {
        width: 100%;
        max-width: 220px;
    }
    
    .banner-img {
        max-height: 180px;
    }
    
    .greeting {
        font-size: 1.3rem;
    }
    
    .date {
        font-size: 1.1rem;
    }
    
    .current-type {
        font-size: 1.3rem;
        padding: 8px 0;
    }
}

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

.content-section, .welcome, .ad-section {
    animation: fadeIn 0.6s ease-out;
}

/* 按钮点击波纹效果 */
button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}