/*
Theme Name: QuizDay2025
Theme URI:
Author:
Author URI:
Description: 一个专为Quiz网站设计的WordPress主题
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7.2
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quizday2025
Tags: quiz, responsive, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, block-patterns
*/

/* 重置样式 */
:root {
    --primary-color: #B886F8;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Euclid Circular A', sans-serif;
    font-size: 16px;
    /* line-height: 1.6; */
    color: #333;
    background-color: #F9F5FF;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* viewport height */
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    /* color: #00a0d2; */
}

.code-block-label {
    font-weight: 400;
    font-size: 16px;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}


/* header部分样式 */

#header {
    width: 100%;
    background-color: #fff;
    /* 底部阴影 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 90px;
    max-height: 90px;
}

.header-container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.search {
    position: relative;
    margin-right: 16px;
}

.search-icon {
    cursor: pointer;
}

.search-icon img {
    width: 25px;
    height: auto;
    vertical-align: middle;
}

/* 搜索框容器 */
.search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.search-form-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* 搜索表单 */
.search-form {
    display: flex;
    width: 100%;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.search-field:focus {
    border-color: #B886F8;
}

.search-submit {
    padding: 10px 15px;
    background-color: #B886F8;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #8D55D6;
}

/* 分类筛选列表样式 */
.filter-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    padding: 15px 0;
    justify-content: center;
}

.category-item {
    display: inline-block;
    padding: 7px 16px 6px;
    border-radius: 22px;
    background-color: #fff;
    color: #B886F8;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #B886F8;
    color: #fff;
}

.category-item.active {
    background-color: #B886F8;
    color: white;
}

.quiz-date-item-title {
    font-size: 20px;
    font-weight: 600;
    padding: 13px 16px 12px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

/* 问题列表容器样式 */
.quiz-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* 列表项样式 */
.quiz-list-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.quiz-list-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 封面图区域 */
.quiz-list-item-cover {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 60%; /* 维持宽高比例 */
    overflow: hidden;
}

.quiz-list-item-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 鼠标悬浮效果 - 添加遮罩和Start Quiz按钮 */
.quiz-list-item-cover:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 降低背景色不透明度 */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px); /* 添加毛玻璃效果 */
    -webkit-backdrop-filter: blur(5px); /* Safari 兼容 */
}

/* 添加Start Quiz按钮样式 */
.start-quiz-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #B886F8; /* 紫色按钮背景 */
    color: white;
    padding: 8px 47px;
    border-radius: 30px;
    font-size: 22px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 101;
    white-space: nowrap;
    text-align: center;
}

/* 添加链接样式 */
.start-quiz-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 102; /* 确保链接在按钮上方 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.quiz-list-item:hover .quiz-list-item-cover:before,
.quiz-list-item:hover .start-quiz-button {
    opacity: 1;
}

.quiz-list-item:hover .quiz-list-item-cover img {
    transform: scale(1.05); /* 图片轻微放大效果 */
}

/* 分类标签 */
.quiz-list-item-category-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 16px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 400;
    z-index: 3; /* 确保分类标签在遮罩上方 */
}

/* 标题区域 */
.quiz-list-item-title {
    padding: 15px 20px 20px;
    cursor: pointer;
}

.quiz-list-item-title-text {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

/* Footer 样式 */
.site-footer {
    color: white;
    margin-top: 40px;
    flex-shrink: 0; /* 防止footer被压缩 */
}

.footer-content {
    padding: 80px 0 50px;
    background-color: #B886F8;
}

.footer-content .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
}

.footer-about {
    max-width: 35%;
}

.footer-about p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: #B886F8;
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon i {
    /* 确保图标正常显示 */
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #8D55D6;
}

.footer-bottom {
    text-align: center;
    background-color: #8D55D6;
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.footer-copyright p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content .container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-about {
        max-width: 100%;
        display: none;
    }

    .footer-social {
        align-self: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        padding: 50px 0 20px;
    }
    .site-footer {
        margin-top: 0;
    }

    .code-block-label {
        font-size: 14px;
    }
}

/* 搜索结果页面样式 */
.search-result-container {
    margin: 30px 0;
}

.search-result-title {
    margin-bottom: 25px;
}

.search-result-title h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    position: relative;
    display: inline-block;
}

.search-result-title h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #B886F8;
}

/* 搜索结果页中的搜索框 */
/* 删除或注释掉这个可能造成冲突的样式
.search-form-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
*/

.search-result-title .search-keyword {
    color: #B886F8;
    font-weight: 700;
}

/* 搜索结果页面中的搜索框 - 使用特定前缀避免冲突 */
.search-page-form-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.search-page-form {
    width: 100%;
}

.search-page-input-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.search-page-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    width: 100%;
}

.search-page-field:focus {
    border-color: #B886F8;
}

.search-page-submit {
    padding: 0 20px;
    background-color: #B886F8;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-page-submit:hover {
    background-color: #8D55D6;
}

.search-page-submit span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-page-submit i {
    font-size: 18px;
}

/* 无搜索结果样式 */
.no-search-results {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 40px;
}

.no-results-icon {
    font-size: 60px;
    color: #B886F8;
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-search-results h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.no-search-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
    background-color: #f9f5ff;
    padding: 20px 30px;
    border-radius: 8px;
}

.search-suggestions h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.search-suggestions ul {
    padding-left: 20px;
}

.search-suggestions li {
    margin-bottom: 8px;
    color: #555;
}

.popular-categories {
    margin-top: 30px;
}

.popular-categories h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

/* 页面布局 - 确保底部固定在窗口底部 */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main, .container {
    flex: 1 0 auto; /* 让主内容区域自动扩展填充空间 */
    width: 100%;
}


.recommend-list {
    margin-top: 60px;
}

.recommend-list-title {
    font-size: 22px;
    color: #2F2F2F;
    margin-bottom: 30px;
}

.ad-placeholder {
    text-align: center;
}

.ad-placeholder-h-180 {
    width: 100%;
    height: 180px;
    line-height: 180px;
    border: 2px solid #000;
    font-size: 30px;
    color: #000;
    font-weight: 600;
}

.ad-placeholder-h-360 {
    width: 100%;
    color: #000;
    position: sticky;
    top: 10px;
}
/* 单个测验页面样式 */
.single-quiz-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative; /* 添加相对定位作为sticky的参考 */
}

.single-quiz-container-left {
    flex: 3;
    width: 100%;
}

.single-quiz-container-right {
    flex: 1;
    width: 100%;
    /*position: sticky;*/
    top: 110px; /* header高度(90px) + 间距(20px) */
    height: fit-content;
    align-self: flex-start; /* 确保sticky元素不会拉伸 */
}

.single-quiz-info {
    /* margin-top: 30px; */
    background-color: #fff;
    border-radius: 20px;
    padding: 30px 40px 40px;
    border: 1px solid #E5E5E5;
}

/* 单个测验测试信息 */
.single-quiz-test-info {
    width: 100%;
    margin: 0 auto;
}

.play-now-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.play-now-button a, .play-now-button .play-now-button-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #B886F8;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    border-radius: 10px;
    padding: 21px 0;
    width: 100%;
    width: 500px;
    box-shadow: 0 6px 24px rgba(186,134,248,0.18);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    gap: 18px;
    line-height: 38px;
}

.play-now-button a:hover, .play-now-button .play-now-button-inner:hover {
    background: #a06be7;
    box-shadow: 0 10px 32px rgba(186,134,248,0.28);
}

.play-now-arrow svg {
    display: block;
    width: 2.2em;
    height: 2.2em;
}

.breadcrumb {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--primary-color);
}

.breadcrumb a {
    color: var(--primary-color);
}

.single-quiz-title {
    margin-top: 30px;
    font-size: 30px;
    margin-bottom: 10px;
}
.wq-start-img {
    height: 475px;
    width: 100%;
}
.wq-start-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.intro-text {
    font-weight: 400;
    font-size: 17px;
    line-height: 28px;
    text-align: left;
}
.intro-text-1 {
    margin-bottom: 30px;
}
.intro-2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
    line-height: 28px;
    text-align: left;
}
.intro-3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    text-align: left;
}
.custom-logo {
    width: 220px;
    height: 44px;
}

/* 响应式布局优化 */
@media (min-width: 992px) {
    .single-quiz-test-info {
        flex: 3;
        margin: 0 auto;
    }
    .single-quiz-container-right {
        /* padding-left: 20px; */
        max-width: 336px; /* 限制最大宽度 */
    }
}

@media (max-width: 991px) {
    .single-quiz-container {
        flex-direction: column;
    }

    .single-quiz-container-left,
    .single-quiz-container-right {
        width: 100%;
        position: static; /* 在移动端取消sticky定位 */
    }

    .single-quiz-container-right {
        padding-left: 0;
        max-width: none;
    }
    .single-quiz-test-sidebar{
        /*display: none;*/
        width:0;
    }
}
@media (max-width: 768px) {
    .single-quiz-info {
        padding: 15px 20px 20px;
    }
    .single-quiz-title {
        margin-top: 15px;
    }
    .intro-text-1 {
        margin-bottom: 15px;
    }
    .play-now-button {
        margin: 20px 0;
    }
}
@media (max-width: 430px) {
    .single-quiz-info {
        padding: 10px 15px 15px;
        /* margin-left: -15px; */
        /* margin-right: -15px; */
    }
    .breadcrumb {
        font-size: 12px;
        line-height: 8px;
    }
    .single-quiz-title {
        margin-top: 8px;
        font-size: 22px;
        line-height: 24px;
        margin-bottom: 8px;
    }
    .intro-text {
        font-size: 17px;
        line-height: 23px;
    }
    .intro-text-1 {
        margin-bottom: 10px;
    }
    .intro-2 {
        font-size: 18px;

    }
    .wq-start-img {
        height: 196px;
    }
    .play-now-button a {
        padding: 14px 0;
        font-size: 18px;
        line-height: 23px;
    }
    .intro-2 {
        line-height: 20px;
        margin-top: 10px;
        margin-bottom: 4px;
    }
    .intro-3 {
        line-height: 10px;
        font-size: 13px;
    }
}

/* ========================================
   页面模板样式 (Page Template Styles)
   ======================================== */

/* 页面主容器 */
.site-main {
    margin: 40px 0;
    animation: fadeInUp 0.6s ease-out;
}

/* 页面内容容器 */
.page-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out;
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #B886F8 0%, #8D55D6 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.page-header::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.page-excerpt {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* 页面内容包装器 */
.page-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 40px;
}

/* 当有侧边栏时的布局 */
.page-content-wrapper:has(.page-sidebar) {
    grid-template-columns: 2fr 1fr;
}

/* 主要内容区域 */
.page-content-main {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.page-content-main h1,
.page-content-main h2,
.page-content-main h3,
.page-content-main h4,
.page-content-main h5,
.page-content-main h6 {
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-content-main h1 {
    font-size: 36px;
    border-bottom: 3px solid #B886F8;
    padding-bottom: 15px;
}

.page-content-main h2 {
    font-size: 30px;
    color: #B886F8;
}

.page-content-main h3 {
    font-size: 24px;
}

.page-content-main p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.page-content-main ul,
.page-content-main ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content-main li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #555;
}

.page-content-main blockquote {
    background: #f8f9fa;
    border-left: 4px solid #B886F8;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 20px;
    color: #666;
}

.page-content-main img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 分页链接 */
.page-links {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: #B886F8;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #8D55D6;
    transform: translateY(-2px);
}

/* 侧边栏 */
.page-sidebar {
    animation: slideInRight 0.8s ease-out 0.5s both;
}

.page-sidebar .widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sidebar .widget-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #B886F8;
}

/* 页面底部 */
.page-footer {
    padding: 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-edit-link .edit-link {
    background: #B886F8;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-edit-link .edit-link:hover {
    background: #8D55D6;
    transform: translateY(-2px);
}

.page-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.meta-label {
    font-weight: 600;
}

.meta-value {
    color: #B886F8;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-content-wrapper:has(.page-sidebar) {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 20px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-excerpt {
        font-size: 18px;
    }

    .page-content-wrapper {
        padding: 40px 20px;
        gap: 30px;
    }

    .page-content-main h1 {
        font-size: 28px;
    }

    .page-content-main h2 {
        font-size: 24px;
    }

    .page-content-main p,
    .page-content-main li {
        font-size: 16px;
    }

    .page-footer {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }
    .ad-box{
        width:100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-excerpt {
        font-size: 16px;
    }

    .page-content-wrapper {
        padding: 30px 15px;
        gap: 20px;
    }

    .page-content-main h1 {
        font-size: 24px;
    }

    .page-content-main h2 {
        font-size: 20px;
    }

    .page-sidebar .widget {
        padding: 20px;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .site-main,
    .page-content,
    .page-title,
    .page-excerpt,
    .page-content-main,
    .page-sidebar {
        animation: none;
    }

    .page-links a,
    .page-edit-link .edit-link {
        transition: none;
    }
}

/* 页面布局样式 */

.single-quiz-test-wrapper {
    display: flex;
    gap: 30px;
    position: relative;
}

.single-quiz-test-info {
    min-width: 0; /* 防止内容溢出 */
}

.single-quiz-test-sidebar {
    max-width: 336px;
    flex: 1;
    flex-shrink: 0;
}

/* 响应式布局 */
@media (max-width: 991px) {
    .single-quiz-test-wrapper {
        flex-direction: column;
    }

    .single-quiz-test-sidebar {
        width: 100%;
        max-width: 336px;
        margin: 0 auto;
    }
}



/* 按钮呼吸效果动画 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        /* opacity: 0.8; */
    }
    50% {
        transform: scale(1.05);
        /* opacity: 1; */
    }
}

.play-now-button .play-now-button-inner {
    /* 基础样式 */
    /* transition: all 0.3s ease; */
    
    /* 呼吸动画效果 */
    animation: breathe 1.4s ease-in-out infinite;
}

.play-now-button-inner:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    opacity: 1;
}

@keyframes bounce {
    0%,100% {
        -moz-transform: translateX(12px);
        -o-transform: translateX(12px);
        -webkit-transform: translateX(12px);
        transform: translateX(12px)
    }

    62% {
        -moz-transform: translateX(24px);
        -o-transform: translateX(24px);
        -webkit-transform: translateX(24px);
        transform: translateX(24px)
    }
}

/* 左右移动动画 */
.wq_btn-continue:not(.disabled) .fa-arrow-right {
    -webkit-animation: bounce 1s infinite;
    -moz-animation: bounce 1s infinite;
    animation: bounce 1s infinite;
}