



/* 全局样式优化 */
.container {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 5%;
    overflow-x: hidden;
}

/* 图片懒加载样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
    background-color: var(--light-accent, #f0f0f0);
}

img.lazy.loaded,
img:not(.lazy) {
    opacity: 1;
}

img.lazy.error {
    opacity: 0.5;
    background-color: #ffebee;
}

/* 响应式媒体 */
img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 可访问性增强 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 书籍详情主区域 */
.book-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 书籍封面区域 */
.book-cover-container {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.book-cover-main {
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.book-cover-main img {
    width: 100%;
    height: auto;
    display: block;
}

/* 图书缩略图优化 */
.book-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.book-thumbnail {
    width: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: none;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
}

.book-thumbnail:hover, 
.book-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.book-thumbnail:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.book-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.book-thumbnail:hover img {
    transform: scale(1.1);
}

/* 图书信息区域优化 */
.book-info {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.book-info header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-accent, #e0e0e0);
    padding-bottom: 1rem;
}

.book-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    line-height: 1.3;
    font-weight: 600;
}

.book-isbn {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color, #666);
    font-family: 'Courier New', monospace;
}

.book-author {
    font-size: 1.1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-author .meta-label {
    font-weight: 600;
    color: var(--secondary-color);
}

/* 元数据列表优化 */
.book-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    color: var(--secondary-color, #666);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 500;
    color: var(--text-color, #333);
    font-size: 1rem;
}

.book-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 1.5rem 0;
    font-weight: 700;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    flex-grow: 1;
}

.btn-primary:hover {
    background-color: #6B0000;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--light-accent);
    color: var(--text-color);
    flex-grow: 1;
}

.btn-secondary:hover {
    background-color: #C8BDB8;
    text-decoration: none;
}

.book-description {
    margin-bottom: 2rem;
}

.book-description h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--light-accent);
    padding-bottom: 0.5rem;
}
.book-description p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

/* 书籍详情标签页 */
.book-tabs {
    margin-bottom: 3rem;
}

.tab-header {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--light-accent);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.tab-content p, .tab-content ul, .tab-content ol {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.tab-content ul, .tab-content ol {
    padding-left: 1.5rem;
}

/* 相关书籍推荐 */
.related-books h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.related-books h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.book-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.book-card .book-cover {
    height: 200px;
    overflow: hidden;
}

.book-card .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-card .book-info {
    padding: 1rem;
}

.book-card .book-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card .book-author {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card .book-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
}
.book-card .book-publishDate {
    color: var(--secondary-color);
    font-size: 0.95rem;
}
.book-card .book-publisher {
    color: var(--secondary-color);
    font-size: 0.95rem;
}



/* 平板设备样式 */
@media (min-width: 576px) {
    .book-detail {
        grid-template-columns: 300px 1fr;
    }

    .book-cover-container {
        position: sticky;
        /*top: 100px;*/
        align-self: start;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 桌面设备样式 */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .book-title {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem;
    }

    .book-card .book-cover {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.review-box {
    background:  var(--background-color);;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}
a {
    text-decoration: none;
}

/* 鼠标悬停时也保持无下划线 */
a:hover {
    text-decoration: none;
}

/* 操作按钮优化 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #a00000);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6B0000, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--light-accent), #d0d0d0);
    color: var(--text-color);
    border: 1px solid var(--light-accent);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #c0c0c0, var(--light-accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--text-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-icon {
    font-size: 1.2em;
    margin-left: 0.25rem;
}

.price {
    font-weight: 700;
    font-size: 1.1em;
}

/* 标签页组件优化 */
.book-tabs {
    margin: 3rem 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-header {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid var(--light-accent);
    margin: 0;
    padding: 0;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
    min-width: fit-content;
}

.tab-btn:hover {
    background: rgba(139, 0, 0, 0.05);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #a00000);
}

.tab-content {
    display: none;
    padding: 2rem;
    background: var(--white);
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.tab-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.tab-content p, 
.tab-content ul, 
.tab-content ol {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.tab-content ul, 
.tab-content ol {
    padding-left: 2rem;
}

.tab-content li {
    margin-bottom: 0.5rem;
}

/* 评论区域优化 */
.reviews-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.review-box {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.review-box:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-accent);
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.review-rating::before {
    content: '★★★★★';
    font-size: 1.2em;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) var(--rating-width, 100%), #ddd var(--rating-width, 100%), #ddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.review-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* 相关推荐区域优化 */
.related-books {
    margin: 4rem 0 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.related-books h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.related-books h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #a00000);
    border-radius: 2px;
}

/* 响应式设计优化 */
@media (max-width: 575px) {
    .container {
        padding: 0 3%;
    }
    
    .book-detail {
        gap: 1.5rem;
    }
    
    .book-title {
        font-size: 1.5rem;
    }
    
    .book-meta {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--light-accent);
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .tab-btn.active {
        background: #000;
        color: #fff;
    }
    
    .book-card {
        border: 2px solid #000;
    }
}

/* 动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    .action-buttons,
    .book-thumbnails,
    .tab-header,
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .book-detail {
        grid-template-columns: 1fr;
    }
    
    .book-cover-container {
        max-width: 200px;
        margin: 0 auto 2rem;
    }
}

/* ============ 预售功能样式 ============ */

/* 预售信息区域 */
.presale-info {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    overflow: hidden;
}

.presale-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    animation: presale-pattern 20s linear infinite;
}

@keyframes presale-pattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

/* 预售徽章 */
.presale-badge {
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.badge-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

/* 预售价格 */
.presale-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.presale-price .current-price {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.presale-price .original-price {
    font-size: 1rem;
    text-decoration: line-through;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* 价格信息区域 */
.price-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.price-info .current-price {
    font-size: 1.4rem;
    font-weight: bold;
}

.price-info .original-price {
    font-size: 1rem;
    text-decoration: line-through;
    opacity: 0.8;
    margin-left: 1rem;
}

/* 预售倒计时 */
.presale-countdown {
    position: relative;
    z-index: 1;
}

.countdown-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.9;
}

#countdown-timer {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

#countdown-timer span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* 预售按钮样式 */
.btn-presale {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.btn-presale::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;
}

.btn-presale:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-presale:hover::before {
    left: 100%;
}

.btn-presale:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

.btn-presale .btn-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.btn-presale .btn-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* 预售说明文字 */
.presale-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ff6b6b;
    line-height: 1.5;
}

/* 操作按钮区域调整 */
.presale-actions,
.normal-actions {
    margin-bottom: 1rem;
}

.normal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .presale-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #countdown-timer {
        gap: 0.5rem;
        font-size: 1rem;
    }
    
    #countdown-timer span {
        min-width: 2rem;
        padding: 0.3rem;
    }
    
    .btn-presale {
        width: 100%;
        min-width: auto;
    }
    
    .normal-actions {
        flex-direction: column;
    }
    
    .normal-actions .btn {
        width: 100%;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .presale-info {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .btn-presale {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .presale-info::before,
    .badge-text,
    .btn-presale .btn-icon {
        animation: none;
    }
    
    .btn-presale::before {
        display: none;
    }
}

/* ============ 通知系统样式 ============ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007bff;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.notification-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.notification-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.notification-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    background: currentColor;
    color: white;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: currentColor;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.notification-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* 倒计时已结束样式 */
.countdown-expired {
    color: #dc3545;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #dc3545;
}

#countdown-timer.expired {
    justify-content: center;
}

/* 加载状态样式 */
.btn-presale.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-presale.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-presale.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 移动端通知调整 */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .notification-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* ============ 购买按钮及弹窗拦截处理样式 ============ */

/* 购买按钮加载状态 */
.purchase-btn.loading {
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 弹窗拦截通知样式 */
.popup-blocked-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popup-fade-in 0.3s ease;
}

.popup-blocked-notification.closing {
    animation: popup-fade-out 0.3s ease;
}

@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popup-fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.popup-blocked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup-blocked-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: popup-slide-up 0.3s ease;
}

@keyframes popup-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-blocked-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.popup-blocked-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc3545;
}

.popup-blocked-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-blocked-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.popup-blocked-close:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.popup-blocked-body {
    padding: 1rem 1.5rem 1.5rem;
}

.popup-blocked-body p {
    margin: 0 0 1.5rem;
    line-height: 1.6;
    color: #495057;
}

.popup-blocked-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popup-blocked-actions .btn {
    justify-content: center;
    min-height: 44px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.popup-blocked-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-blocked-actions .btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .popup-blocked-content {
        width: 95%;
        margin: 1rem;
    }
    
    .popup-blocked-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .popup-blocked-header h3 {
        font-size: 1.1rem;
    }
    
    .popup-blocked-body {
        padding: 0.75rem 1rem 1rem;
    }
    
    .popup-blocked-actions {
        gap: 0.5rem;
    }
    
    .popup-blocked-actions .btn {
        min-height: 40px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .popup-blocked-actions {
        flex-direction: row;
    }
    
    .popup-blocked-actions .btn {
        flex: 1;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .popup-blocked-content {
        border: 2px solid #000;
    }
    
    .popup-blocked-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .popup-blocked-notification,
    .popup-blocked-content,
    .loading-spinner {
        animation: none;
    }
    
    .popup-blocked-actions .btn:hover {
        transform: none;
    }
}
/* ============ 转化率优化样式 ============ */

/* 社会认同：购买人数 */
.social-proof {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #ffc107;
}

.social-proof .fire-icon {
    font-size: 1.3rem;
}

.social-proof .purchase-count {
    font-size: 0.95rem;
    color: #333;
}

.social-proof .purchase-count strong {
    color: #e53935;
    font-size: 1.1rem;
}

.social-proof .hot-tag {
    background: #e53935;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    animation: pulse-tag 2s infinite;
}

@keyframes pulse-tag {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 限时折扣倒计时 */
.limited-time-offer {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    color: white;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.offer-icon {
    font-size: 1.2rem;
}

.offer-title {
    font-weight: 700;
    font-size: 1rem;
}

.offer-countdown {
    margin-left: auto;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.offer-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 价格对比 */
.price-comparison {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.price-row + .price-row {
    border-top: 1px dashed #dee2e6;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
}

.price-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.price-crossed {
    text-decoration: line-through;
    color: #999;
}

.price-highlight {
    color: #e53935;
    font-size: 1.5rem;
}

.price-current-row {
    background: #fff3e0;
    margin: 0 -1.2rem;
    padding: 0.8rem 1.2rem;
    border-radius: 0 0 8px 8px;
}

.price-save {
    background: #e53935;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

/* 版本选择器 */
.version-selector {
    margin: 1.5rem 0;
}

.version-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.version-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.version-option {
    cursor: pointer;
    position: relative;
}

.version-option input[type="radio"] {
    display: none;
}

.version-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.version-option input:checked + .version-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.version-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.version-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53935;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}

.version-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.version-desc {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    min-height: 2rem;
}

.version-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e53935;
}

/* CTA按钮强化 */
.btn-cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-grow: 2;
    animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(139, 0, 0, 0.5); }
}

.btn-cta .btn-price {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 保障栏 */
.guarantee-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem 0;
    margin: 0.5rem 0;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #4caf50;
    font-weight: 500;
}

/* 精选评价 */
.featured-review {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    border-left: 3px solid var(--primary-color);
}

.featured-review-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.featured-review-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-review-author {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

/* 实时购买提示 */
.purchase-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 9999;
    transform: translateX(-120%);
    transition: transform 0.4s ease;
    font-size: 0.9rem;
    border-left: 3px solid #4caf50;
    max-width: 320px;
}

.purchase-toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.3rem;
}

/* 优惠券弹窗 */
.coupon-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.coupon-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 360px;
    width: 90%;
    animation: coupon-pop 0.4s ease;
}

@keyframes coupon-pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.coupon-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.coupon-header {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.coupon-value {
    font-size: 3rem;
    font-weight: 900;
    color: #e53935;
    margin: 0.5rem 0;
}

.coupon-value span {
    font-size: 1.2rem;
}

.coupon-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.coupon-expire {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 1.2rem;
}

.coupon-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    color: white;
    text-decoration: none;
}

/* 响应式适配 */
@media (max-width: 575px) {
    .version-options {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .price-comparison {
        padding: 0.8rem;
    }
    
    .social-proof {
        flex-wrap: wrap;
    }
    
    .guarantee-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .purchase-toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .btn-cta {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .version-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============ 做任务按钮样式 ============ */

.btn-task {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.btn-task:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
    color: white;
}

.btn-task:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

.btn-task.loading {
    cursor: not-allowed;
    opacity: 0.7;
    background: linear-gradient(135deg, #81c784, #66bb6a);
}

.btn-task:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-task::after {
    content: '免费';
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff5722;
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0 6px 0 8px;
    font-weight: 700;
    line-height: 1;
}

.task-time-tip {
    display: block;
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: 400;
    letter-spacing: 0.5px;
}


