/**
 * 响应式样式 (v3.0.0)
 *
 * 合并了原 responsive.css + mobile-fixes.css 的全部内容
 * 断点: 1400/1024/768/480/360
 *
 * @package AI_Tools_Directory
 */

/* ===================================
   返回顶部按钮
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===================================
   通知样式
   =================================== */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--text-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   灯箱样式
   =================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.lightbox.show {
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* ===================================
   动画效果
   =================================== */
.post-card,
.widget {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.post-card.animate-in,
.widget.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   表单错误状态
   =================================== */
input.error,
textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ===================================
   移动端菜单
   =================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
}

/* ===================================
   大屏幕优化 (1400px 及以下)
   =================================== */
@media (max-width: 1400px) {
    .single-post .detail-container {
        max-width: 100%;
        grid-template-columns: 1fr 320px;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }

    .single-post .detail-main {
        max-width: 100%;
        padding: 2.5rem;
    }
}

/* ===================================
   平板设备 (1024px 及以下)
   =================================== */
@media (max-width: 1024px) {
    /* 主页布局 - 平板 */
    .home .site-content,
    .blog .site-content,
    .archive .site-content {
        display: block;
        padding: 0;
        margin: 0 auto;
    }

    .content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        padding: 2rem 1.5rem 0;
    }

    /* 详情页 site-content */
    .single .site-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static !important;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .post-card {
        grid-template-columns: 250px 1fr;
    }

    .post-thumbnail {
        width: 250px;
        height: 180px;
    }

    /* 头部导航响应式 */
    .header-container {
        padding: 0 1.5rem;
    }

    .main-navigation {
        margin: 0 1rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   平板/移动端 (768px 及以下)
   =================================== */
@media (max-width: 768px) {

    /* ---- 全局基础修复 (原 mobile-fixes §0) ---- */
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ---- 主页布局 ---- */
    body.home .site-content,
    body.blog .site-content,
    body.archive .site-content {
        display: block !important;
        padding: 0 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .home .site-content,
    .blog .site-content,
    .archive .site-content {
        display: block;
        padding: 0;
        margin: 0 auto;
    }

    .content-wrapper {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
        gap: 1.5rem !important;
    }

    .sidebar-featured {
        position: static !important;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    /* ---- site-content → block 布局 (原 mobile-fixes §1) ---- */
    .single-post.site-content,
    .single .site-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        grid-template-columns: unset !important;
        box-sizing: border-box;
    }

    .single .site-content,
    .single-post.site-content {
        padding: 0;
    }

    /* ---- detail-page 容器防护 (原 mobile-fixes §2) ---- */
    .single-post .detail-page,
    .detail-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* ---- 页面头部 Hero (原 mobile-fixes §3) ---- */
    .single-post .page-header,
    .page-header {
        padding: 1rem 0 1.5rem !important;
    }

    .page-header-container {
        padding: 0 1rem !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-header-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .page-header-right {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
    }

    .product-gallery-slider,
    .preview-image,
    .preview-placeholder {
        max-width: 100% !important;
        width: 100%;
        margin: 0 auto;
        aspect-ratio: 16 / 9;
    }

    .gallery-slides {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .page-title {
        font-size: 1.5rem !important;
    }

    .page-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .page-actions {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* ---- 快速总结 (原 mobile-fixes §4) ---- */
    .quick-summary {
        padding: 0 1rem !important;
        box-sizing: border-box;
        max-width: 100%;
    }

    .quick-summary-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .qs-metrics {
        justify-content: space-between;
    }

    /* ---- 目录导航 TOC (原 mobile-fixes §5) ---- */
    .toc-horizontal {
        padding: 0 1rem !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .toc-horizontal-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
    }

    .toc-horizontal-inner::-webkit-scrollbar {
        display: none;
    }

    .toc-tab {
        white-space: nowrap;
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* ---- detail-container → block 单列 (原 mobile-fixes §6) ---- */
    .single-post .detail-container,
    .detail-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        padding-bottom: 4.5rem !important;
        margin: 0 !important;
        gap: 0 !important;
        grid-template-columns: unset !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .single-post .detail-sidebar,
    .detail-sidebar {
        position: static !important;
        width: 100%;
        margin: 0;
    }

    /* ---- detail-main 内容卡片 (原 mobile-fixes §7) ---- */
    .detail-main,
    .single-post .detail-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 1.25rem 1rem !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* ---- detail-body 溢出保护 (原 mobile-fixes §8) ---- */
    .detail-body,
    .single-post .detail-body {
        overflow-wrap: break-word !important;
        word-break: break-word;
        min-width: 0;
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .detail-body h2,
    .detail-body h3,
    .detail-body h4,
    .detail-body h5,
    .detail-body h6 {
        overflow-wrap: break-word;
        word-break: break-word;
        min-width: 0;
    }

    .detail-body img,
    .detail-body video,
    .detail-body iframe,
    .detail-body embed,
    .detail-body object {
        max-width: 100% !important;
        height: auto;
        display: block;
    }

    .detail-body table {
        display: block;
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
    }

    .detail-body pre {
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }

    .detail-body pre code {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .detail-body ul,
    .detail-body ol {
        padding-left: 1.25rem;
        overflow-wrap: break-word;
    }

    /* ---- 对比表格滚动容器 (原 mobile-fixes §9) ---- */
    .comparison-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        border-radius: 8px;
    }

    .comparison-table {
        min-width: 420px;
        font-size: 0.8125rem;
    }

    /* ---- 价格方案 (原 mobile-fixes §10) ---- */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .pricing-card {
        padding: 1rem !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ---- 功能卡片 (原 mobile-fixes §11) ---- */
    .main-features-list,
    .features-list,
    .target-audience-section > ul {
        grid-template-columns: 1fr !important;
        gap: 0.625rem !important;
    }

    .main-features-list li,
    .features-list li,
    .target-audience-section li {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        border-radius: 10px;
        word-break: break-word;
    }

    /* ---- FAQ 手风琴 (原 mobile-fixes §12) ---- */
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .faq-answer {
        padding: 0 1rem 0.875rem;
        font-size: 0.875rem;
    }

    /* ---- 使用场景/用户评价/更新日志 (原 mobile-fixes §13) ---- */
    .use-cases-grid {
        grid-template-columns: 1fr !important;
    }

    .use-case-card {
        padding: 1rem;
    }

    .video-demo-section {
        margin: 2rem 0;
    }

    .update-timeline {
        padding-left: 1.5rem;
    }

    .user-reviews-section,
    .update-log-section,
    .faq-section,
    .use-cases-section {
        margin: 1.5rem 0;
    }

    /* ---- 评分区域 (原 mobile-fixes §14) ---- */
    .rating-container {
        flex-direction: column !important;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .rating-left {
        width: 100%;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .rating-right {
        width: 100%;
    }

    .score-big {
        font-size: 2.5rem;
    }

    /* ---- 相关产品 (原 mobile-fixes §15) ---- */
    .related-products-inline {
        margin-top: 1.5rem;
    }

    .related-products-inline .related-grid,
    .related-grid {
        grid-template-columns: 1fr !important;
        gap: 0.625rem !important;
    }

    .related-products-inline .related-card-inner,
    .related-card-inner {
        padding: 0.875rem 1rem;
        box-sizing: border-box;
        max-width: 100%;
    }

    .related-products-container {
        padding: 0 1rem;
        box-sizing: border-box;
        max-width: 100%;
    }

    .related-icon-wrap {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    /* ---- 页脚防护 (原 mobile-fixes §16) ---- */
    .site-footer {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    /* ---- 移动端固定 CTA (原 mobile-fixes §17) ---- */
    .mobile-fixed-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        box-sizing: border-box;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-fixed-cta a,
    .mobile-fixed-cta button {
        min-height: 48px;
    }

    .mobile-fixed-cta a:focus-visible,
    .mobile-fixed-cta button:focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

    /* ---- 列表区域 ---- */
    .posts-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: transparent;
    }

    .post-item {
        background: white;
        border-bottom: 1px solid #f3f4f6;
        margin: 0;
    }

    .post-item:last-child {
        border-bottom: none;
    }

    .post-link {
        display: flex;
        padding: 1rem;
        gap: 0.875rem;
        align-items: flex-start;
    }

    .post-icon {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .post-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-info {
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
    }

    .post-header {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .post-title {
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.4;
        flex: 1;
        min-width: 0;
    }

    .post-rating {
        padding: 0.2rem 0.5rem;
        flex-shrink: 0;
    }

    .rating-value {
        font-size: 0.75rem;
    }

    .external-icon {
        display: none;
    }

    .post-description {
        font-size: 0.8125rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        color: #6b7280;
    }

    .post-meta {
        gap: 0.375rem;
    }

    .meta-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .post-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .stat-item {
        font-size: 0.75rem;
        color: #9ca3af;
    }

    .stat-item svg {
        width: 12px;
        height: 12px;
    }

    /* ---- 区域标题 ---- */
    .latest-section {
        margin-bottom: 0;
    }

    .section-header {
        padding: 1rem;
        background: white;
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-bottom: 0.75rem;
    }

    .section-title {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .section-title svg {
        width: 18px;
        height: 18px;
    }

    .section-subtitle {
        font-size: 0.8125rem;
    }

    /* ---- 热门区域 ---- */
    .featured-section {
        margin-bottom: 2rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .featured-content {
        padding: 1rem;
    }

    .featured-title {
        font-size: 1rem;
    }

    .featured-description {
        font-size: 0.8125rem;
    }

    /* ---- 详情页 ---- */
    .page-header {
        padding: 1rem 0 2rem;
    }

    .page-header-container {
        padding: 0 1.5rem;
    }

    .page-header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .page-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .page-header-right {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .preview-image,
    .preview-placeholder,
    .product-gallery-slider {
        width: 100%;
        max-width: 550px;
        height: auto;
        aspect-ratio: 550/350;
    }

    .gallery-slides {
        height: auto;
        aspect-ratio: 550/350;
    }

    .preview-image,
    .preview-placeholder {
        border-radius: 8px;
    }

    .single-post .detail-container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .single-post .detail-main {
        padding: 1.5rem 1.25rem;
        overflow-x: auto;
    }

    .single-post .detail-body {
        overflow-x: auto;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .single-post .detail-sidebar {
        position: static;
    }

    .related-products {
        padding: 3rem 0 4rem;
    }

    .related-products-inline {
        margin-top: 2rem;
    }

    .related-products-inline .related-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .related-products-inline .related-card-inner {
        padding: 0.875rem 1rem;
        gap: 0.875rem;
    }

    .related-products-inline .related-icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .related-products-container {
        padding: 0 1.5rem;
    }

    .related-header {
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .related-heading {
        font-size: 1.125rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .related-card-inner {
        padding: 0.875rem 1rem;
        gap: 0.875rem;
    }

    .related-icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .related-tool-name {
        font-size: 0.875rem;
    }

    .related-score-num {
        font-size: 1.25rem;
    }

    /* ---- 侧边栏 ---- */
    .sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-featured {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .widget {
        background: white;
        border: 1px solid #f3f4f6;
        border-radius: 8px;
        padding: 1.25rem;
    }

    .widget-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .featured-item-link {
        padding: 0.75rem 0;
    }

    .featured-item-icon {
        width: 44px;
        height: 44px;
    }

    .featured-item-title {
        font-size: 0.875rem;
    }

    .featured-item-rating {
        font-size: 0.75rem;
    }

    .newsletter-input-widget {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }

    .newsletter-button-widget {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }

    .category-list li a {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .category-count {
        font-size: 0.75rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    /* ---- 收藏页面 ---- */
    .favorites-page .site-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .favorites-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .header-content .page-title {
        font-size: 1.5rem;
    }

    .header-content .page-subtitle {
        font-size: 0.875rem;
    }

    .header-content .header-actions {
        width: 100%;
    }

    .header-content .header-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .favorite-link {
        padding: 1rem;
        gap: 1rem;
    }

    .favorite-icon {
        width: 50px;
        height: 50px;
    }

    .favorite-title {
        font-size: 1rem;
    }

    .favorite-excerpt {
        font-size: 0.875rem;
    }

    .btn-remove-favorite {
        opacity: 1;
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
    }

    .btn-remove-favorite svg {
        width: 16px;
        height: 16px;
    }

    /* ---- 分享弹窗 ---- */
    .share-box {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .share-title {
        font-size: 1.5rem;
    }

    .share-subtitle {
        font-size: 0.9375rem;
    }

    .share-option {
        padding: 0.875rem;
    }

    .share-option-icon {
        width: 44px;
        height: 44px;
    }

    .share-option-title {
        font-size: 0.9375rem;
    }

    .share-option-desc {
        font-size: 0.8125rem;
    }

    /* ---- 评分区域 (详细) ---- */
    .rating-section {
        margin-top: 2rem;
    }

    .rating-section-title {
        font-size: 1.25rem;
    }

    .rating-section-title::before {
        height: 28px;
    }

    .rating-score-display {
        justify-content: center;
    }

    .score-big {
        font-size: 3rem;
    }

    .rating-prompt {
        font-size: 0.875rem;
    }

    .star svg {
        width: 24px;
        height: 24px;
    }

    /* ---- 内容卡片 ---- */
    .features-section {
        margin-top: 1.5rem;
    }

    .features-section h3 {
        font-size: 1.125rem;
        padding-left: 1rem;
    }

    .features-section h3:before {
        height: 24px;
    }

    .main-features-list,
    .target-audience-section > ul {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .features-list {
        gap: 0.75rem;
    }

    .main-features-list li,
    .target-audience-section li {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        border-radius: 10px;
        gap: 0.75rem;
    }

    .features-list li {
        padding: 1rem 1.125rem;
        font-size: 0.9375rem;
        border-radius: 12px;
        gap: 0.75rem;
    }

    .main-features-list li::before,
    .features-list li::before,
    .target-audience-section li::before {
        content: none !important;
        display: none !important;
    }

    .content-card {
        padding: 1.5rem;
    }

    .content-card-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }

    .content-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .content-card-title {
        font-size: 1.125rem;
    }

    .content-card-body {
        font-size: 0.9375rem;
    }

    .use-cases-title {
        font-size: 1.25rem;
    }

    .use-cases-title:before {
        height: 28px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .use-case-card {
        padding: 1.25rem;
    }

    .use-case-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .use-case-title {
        font-size: 1rem;
    }

    .use-case-desc {
        font-size: 0.875rem;
    }

    .faq-heading {
        font-size: 1.0625rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .faq-answer {
        font-size: 0.875rem;
        padding: 0 1rem 0.875rem;
    }

    .detail-body h3:before {
        height: 24px;
    }

    .detail-body ul li,
    .detail-body ol li {
        padding: 0.75rem 0.875rem;
        padding-left: 2.5rem;
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
        border-radius: 6px;
    }

    .detail-body > ul:not(.main-features-list):not(.features-list):not(.pros-list):not(.cons-list):not(.plan-features):not(.timeline-changes) > li:before,
    .detail-body ol li:before {
        width: 18px;
        height: 18px;
        left: 0.75rem;
        font-size: 0.6875rem;
    }

    .target-audience-section ul {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    /* ---- 产品图片轮播 ---- */
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .gallery-prev {
        left: 0.75rem;
    }

    .gallery-next {
        right: 0.75rem;
    }

    .gallery-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .gallery-indicator {
        width: 8px;
        height: 8px;
    }

    .gallery-indicator.active {
        width: 24px;
    }

    /* ---- 核心卖点 ---- */
    .key-highlights {
        gap: 0.75rem;
    }

    .highlight-item {
        padding: 0.5rem 0.75rem;
    }

    .highlight-icon {
        font-size: 1rem;
    }

    .highlight-text {
        font-size: 0.8125rem;
    }

    /* ---- 社会证明 ---- */
    .social-proof {
        gap: 1rem;
    }

    .avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .avatar-more {
        width: 28px;
        height: 28px;
    }

    .user-count,
    .rating-badge,
    .urgency-badge {
        font-size: 0.8125rem;
    }

    /* ---- 促销框 ---- */
    .promo-box-enhanced {
        padding: 0.875rem 1rem;
    }

    .promo-icon {
        width: 36px;
        height: 36px;
    }

    .promo-text {
        font-size: 0.875rem;
    }

    .promo-countdown {
        font-size: 0.75rem;
    }

    /* ---- 标签 ---- */
    .page-tags-enhanced {
        gap: 0.5rem;
    }

    .page-tag {
        padding: 0.4375rem 0.75rem;
        font-size: 0.75rem;
    }

    .tag-license-free {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.875rem !important;
    }

    /* ---- 按钮增强 ---- */
    .page-actions-enhanced {
        gap: 0.875rem;
    }

    .btn-visit-primary {
        padding: 1rem 1.75rem !important;
        font-size: 1rem !important;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    /* ---- 底部导航 ---- */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    /* ---- 手机端顶部导航重新设计 ---- */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        border-bottom: 1px solid #f3f4f6;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        height: auto;
        min-height: 56px;
    }

    .site-branding {
        flex: 1 1 auto;
        overflow: hidden;
        min-width: 0;
    }

    .site-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-color);
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .site-name {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: var(--text-color);
        font-size: 1.125rem;
        font-weight: 700;
    }

    .main-navigation {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        width: auto;
    }

    .action-label {
        display: none;
    }

    .action-icon {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: transparent;
        border: none;
        color: #6b7280;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .action-icon:active {
        background: #f3f4f6;
        transform: scale(0.95);
    }

    .action-icon svg {
        width: 22px;
        height: 22px;
    }

    .favorites-count {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        background: #ef4444;
        color: white;
        font-size: 0.625rem;
        font-weight: 600;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .btn-submit {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-radius: 8px;
    }

    .btn-submit span {
        display: none;
    }

    .btn-submit svg {
        width: 20px;
        height: 20px;
    }

    .btn-login {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        gap: 5px;
        flex-shrink: 0;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #374151;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .search-overlay {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .search-container {
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .search-form-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        background: #f9fafb;
        border-radius: 12px;
    }

    .search-icon {
        flex-shrink: 0;
        color: #9ca3af;
    }

    .search-field-header {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: #1f2937;
    }

    .search-field-header:focus {
        outline: none;
    }

    .search-close {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #6b7280;
        cursor: pointer;
        border-radius: 6px;
    }

    .search-close:active {
        background: #f3f4f6;
    }

    /* ---- 移动端菜单展开 ---- */
    .main-navigation.active {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 998;
        overflow-y: auto;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-navigation.active .nav-menu {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-navigation.active .nav-menu li {
        border-bottom: 1px solid #f3f4f6;
    }

    .main-navigation.active .nav-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation.active .nav-menu a {
        display: block;
        padding: 1rem;
        color: #1f2937;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .main-navigation.active .nav-menu a:hover,
    .main-navigation.active .nav-menu a:active {
        background: #f9fafb;
        color: #10b981;
    }

    .main-navigation.active::after {
        content: '';
        display: block;
        padding: 1rem;
        border-top: 1px solid #f3f4f6;
    }
}

/* ===================================
   手机设备 (480px 及以下)
   =================================== */
@media (max-width: 480px) {

    /* ---- 主页/通用 ---- */
    .single .site-content,
    .page .site-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .home .site-content,
    .blog .site-content,
    .archive .site-content {
        display: block !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .content-wrapper {
        display: block !important;
        padding: 0.75rem !important;
        gap: 1.5rem;
    }

    .main-content {
        padding: 0 !important;
    }

    .sidebar-featured {
        padding: 1rem !important;
        background: white;
        margin-top: 1rem;
    }

    /* ---- 头部 ---- */
    .header-container {
        padding: 0.75rem 0.75rem;
    }

    .site-logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .action-icon {
        width: 36px;
        height: 36px;
    }

    .action-icon svg {
        width: 20px;
        height: 20px;
    }

    .btn-submit {
        width: 36px;
        height: 36px;
    }

    .btn-submit svg {
        width: 18px;
        height: 18px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-toggle span {
        width: 18px;
    }

    .btn-login {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .favorites-toggle {
        display: none;
    }

    /* ---- 页面头部 Hero (原 mobile-fixes §3) ---- */
    .page-header-container {
        padding: 0 0.75rem !important;
    }

    .page-title {
        font-size: 1.25rem !important;
    }

    .page-description {
        font-size: 0.9375rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* ---- 快速总结 (原 mobile-fixes §4) ---- */
    .quick-summary {
        padding: 0 0.75rem !important;
    }

    /* ---- TOC (原 mobile-fixes §5) ---- */
    .toc-horizontal {
        padding: 0 0.75rem !important;
    }

    .toc-tab {
        font-size: 0.75rem;
        padding: 0.4375rem 0.625rem;
    }

    /* ---- detail-container (原 mobile-fixes §6) ---- */
    .single-post .detail-container,
    .detail-container {
        padding: 0.75rem !important;
        padding-bottom: 4rem !important;
    }

    /* ---- detail-main (原 mobile-fixes §7) ---- */
    .detail-main,
    .single-post .detail-main {
        padding: 1rem 0.75rem !important;
        border-radius: 6px !important;
    }

    /* ---- 对比表格 (原 mobile-fixes §9) ---- */
    .comparison-table {
        min-width: 360px;
        font-size: 0.75rem;
    }

    /* ---- 页脚 (原 mobile-fixes §16) ---- */
    .footer-container {
        padding: 0 0.75rem !important;
    }

    /* ---- 详情页 ---- */
    .single .site-content,
    .single-post.site-content {
        padding: 0;
    }

    .page-header {
        padding: 0.75rem 0 1.5rem;
    }

    .page-header-container {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .search-page .breadcrumb {
        padding: 0.75rem 0;
    }

    .search-page .breadcrumb-item {
        font-size: 0.8125rem;
    }

    .search-page .breadcrumb-separator svg {
        width: 14px;
        height: 14px;
    }

    .page-header-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .verified-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .page-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .stat-item {
        font-size: 0.8125rem;
    }

    .page-description {
        font-size: 0.9375rem;
    }

    .promo-box {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .promo-icon {
        width: 32px;
        height: 32px;
    }

    .promo-icon svg {
        width: 18px;
        height: 18px;
    }

    .promo-label {
        font-size: 0.6875rem;
    }

    .promo-text {
        font-size: 0.875rem;
    }

    .promo-copy {
        width: 32px;
        height: 32px;
    }

    .promo-copy svg {
        width: 14px;
        height: 14px;
    }

    .page-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .page-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .page-header-right {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .preview-image,
    .preview-placeholder,
    .product-gallery-slider {
        width: 100%;
        max-width: 550px;
        height: auto;
        aspect-ratio: 550/350;
    }

    .gallery-slides {
        height: auto;
        aspect-ratio: 550/350;
    }

    .preview-image,
    .preview-placeholder {
        border-radius: 8px;
    }

    .single-post .detail-container {
        padding: 1rem 1rem;
        gap: 1rem;
    }

    .single-post .detail-main {
        padding: 1.25rem 1rem;
        border-radius: 6px;
        overflow-x: auto;
    }

    .single-post .detail-body {
        font-size: 0.9375rem;
        overflow-x: auto;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .product-card,
    .related-sidebar {
        padding: 1.25rem;
        border-radius: 6px;
    }

    .related-products {
        padding: 2.5rem 0 3rem;
    }

    .related-products-inline {
        margin-top: 1.5rem;
    }

    .related-products-inline .related-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .related-products-inline .related-card-inner {
        padding: 0.75rem 0.875rem;
        gap: 0.75rem;
    }

    .related-products-inline .related-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .related-products-inline .related-tool-name {
        font-size: 0.8125rem;
    }

    .related-products-inline .related-score-num {
        font-size: 1.125rem;
    }

    .related-products-inline .related-score-wrap {
        padding-left: 0.5rem;
    }

    .related-products-container {
        padding: 0 1rem;
    }

    .related-heading {
        font-size: 1rem;
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-left: 0;
    }

    .view-all {
        font-size: 0.8125rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .related-card-inner {
        padding: 0.75rem 0.875rem;
        gap: 0.75rem;
    }

    .related-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .related-tool-name {
        font-size: 0.8125rem;
    }

    .related-score-num {
        font-size: 1.125rem;
    }

    .related-score-wrap {
        padding-left: 0.5rem;
    }

    .related-review-count {
        font-size: 0.6875rem;
    }

    .related-cat {
        font-size: 0.6875rem;
    }

    /* ---- 列表区域 ---- */
    .post-link {
        padding: 0.875rem 0.75rem;
        gap: 0.75rem;
    }

    .post-icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .post-title {
        font-size: 0.875rem;
    }

    .post-description {
        font-size: 0.8125rem;
    }

    .meta-tag {
        font-size: 0.6875rem;
        padding: 0.2rem 0.4rem;
    }

    .stat-item {
        font-size: 0.6875rem;
    }

    /* ---- 区域标题 ---- */
    .section-header {
        padding: 0.875rem 0.75rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-title svg {
        width: 16px;
        height: 16px;
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    /* ---- 收藏页面 ---- */
    .favorites-header {
        padding-bottom: 0.75rem;
    }

    .header-content .page-title {
        font-size: 1.25rem;
    }

    .header-content .page-title svg {
        width: 20px;
        height: 20px;
    }

    .favorite-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.75rem;
    }

    .favorite-icon {
        width: 48px;
        height: 48px;
    }

    .favorite-title {
        font-size: 0.9375rem;
    }

    .favorite-excerpt {
        font-size: 0.8125rem;
    }

    .favorites-empty {
        padding: 3rem 1rem;
    }

    .empty-icon svg {
        width: 60px;
        height: 60px;
    }

    .empty-title {
        font-size: 1.25rem;
    }

    .empty-text {
        font-size: 0.9375rem;
    }

    /* ---- 确认对话框 ---- */
    .confirm-box {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .confirm-icon svg {
        width: 40px;
        height: 40px;
    }

    .confirm-title {
        font-size: 1.25rem;
    }

    .confirm-message {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .confirm-actions {
        flex-direction: column-reverse;
    }

    .confirm-actions button {
        width: 100%;
        padding: 0.75rem 1.25rem;
    }

    /* ---- 分享弹窗 ---- */
    .share-box {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        max-width: 95%;
    }

    .share-close {
        width: 36px;
        height: 36px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .share-close svg {
        width: 20px;
        height: 20px;
    }

    .share-header {
        margin-bottom: 1.5rem;
    }

    .share-icon svg {
        width: 28px;
        height: 28px;
    }

    .share-title {
        font-size: 1.25rem;
    }

    .share-subtitle {
        font-size: 0.875rem;
    }

    .share-options {
        gap: 0.625rem;
    }

    .share-option {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .share-option-icon {
        width: 40px;
        height: 40px;
    }

    .share-option-icon svg {
        width: 20px;
        height: 20px;
    }

    .share-option-title {
        font-size: 0.875rem;
    }

    .share-option-desc {
        font-size: 0.75rem;
    }

    .qr-code {
        padding: 1rem;
    }

    .qr-code img {
        width: 180px !important;
        height: 180px !important;
    }

    .qr-text {
        font-size: 0.8125rem;
    }

    /* ---- 评分区域 ---- */
    .rating-section {
        margin-top: 1.5rem;
    }

    .rating-section-title {
        font-size: 1.125rem;
    }

    .rating-section-title::before {
        height: 24px;
    }

    .rating-container {
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .rating-left {
        padding-bottom: 1.5rem;
    }

    .score-big {
        font-size: 2.5rem;
    }

    .score-stars svg {
        width: 14px;
        height: 14px;
    }

    .score-count {
        font-size: 0.8125rem;
    }

    .rating-prompt {
        font-size: 0.8125rem;
    }

    .star-rating {
        gap: 0.375rem;
    }

    .star svg {
        width: 22px;
        height: 22px;
    }

    .rating-status {
        font-size: 0.8125rem;
    }

    /* ---- 内容卡片 ---- */
    .features-section {
        margin-top: 1.25rem;
    }

    .features-section h3 {
        font-size: 1rem;
        padding-left: 0.875rem;
    }

    .features-section h3:before {
        height: 20px;
    }

    .main-features-list,
    .target-audience-section > ul {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .features-list {
        gap: 0.625rem;
    }

    .main-features-list li,
    .target-audience-section li {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        border-radius: 8px;
        gap: 0.625rem;
        line-height: 1.5;
    }

    .features-list li {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        border-radius: 10px;
        gap: 0.625rem;
        line-height: 1.6;
    }

    .main-features-list li::before,
    .features-list li::before,
    .target-audience-section li::before {
        content: none !important;
        display: none !important;
    }

    .content-cards {
        margin-top: 1.5rem;
        gap: 1rem;
    }

    .content-card {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .content-card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .content-card-icon {
        width: 32px;
        height: 32px;
        font-size: 1.125rem;
    }

    .content-card-title {
        font-size: 1.0625rem;
    }

    .content-card-body {
        font-size: 0.90625rem;
        line-height: 1.6;
    }

    .use-cases {
        margin-top: 1.5rem;
    }

    .use-cases-title {
        font-size: 1.0625rem;
        margin-bottom: 1rem;
    }

    .use-cases-title:before {
        height: 22px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .use-case-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .use-case-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .use-case-title {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
        line-height: 1.4;
    }

    .use-case-desc {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .faq-section {
        margin-top: 1.5rem;
    }

    .faq-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .faq-list {
        gap: 0.5rem;
    }

    .faq-item {
        border-radius: 8px;
    }

    .faq-question {
        padding: 0.75rem 0.875rem;
        font-size: 0.84375rem;
        line-height: 1.5;
    }

    .faq-answer {
        font-size: 0.8125rem;
        line-height: 1.6;
        padding: 0 0.875rem 0.875rem;
    }

    .detail-body h2 {
        font-size: 1.1875rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .detail-body h3 {
        font-size: 1.03125rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .detail-body h3:before {
        height: 18px;
    }

    .detail-body > ul:not(.main-features-list):not(.features-list):not(.target-audience-section > ul):not(.pros-list):not(.cons-list):not(.plan-features):not(.timeline-changes) > li {
        padding: 0.625rem 0.75rem;
        padding-left: 2rem;
        font-size: 0.84375rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
        line-height: 1.5;
    }

    .detail-body ol li {
        padding: 0.625rem 0.75rem;
        padding-left: 2rem;
        font-size: 0.84375rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
        line-height: 1.5;
    }

    .detail-body > ul:not(.main-features-list):not(.features-list):not(.pros-list):not(.cons-list):not(.plan-features):not(.timeline-changes) > li:before,
    .detail-body ol li:before {
        width: 14px;
        height: 14px;
        left: 0.5rem;
        font-size: 0.5625rem;
    }

    .target-audience-section ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* ---- 产品图片轮播 ---- */
    .gallery-prev,
    .gallery-next {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .gallery-prev {
        left: 0.5rem;
    }

    .gallery-next {
        right: 0.5rem;
    }

    .gallery-indicators {
        bottom: 0.75rem;
    }

    /* ---- 核心卖点 ---- */
    .key-highlights {
        flex-direction: column;
        gap: 0.5rem;
    }

    .highlight-item {
        width: 100%;
    }

    /* ---- 社会证明 ---- */
    .social-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .user-avatars {
        width: 100%;
    }

    .rating-badge,
    .urgency-badge {
        width: 100%;
        justify-content: center;
    }

    /* ---- 促销框 ---- */
    .promo-box-enhanced {
        flex-wrap: wrap;
    }

    .promo-content {
        flex: 1 1 100%;
    }

    .promo-copy-enhanced {
        width: 36px;
        height: 36px;
    }

    /* ---- 标签 ---- */
    .price-original {
        font-size: 0.6875rem;
    }

    /* ---- 按钮增强 ---- */
    .btn-visit-primary {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }

    .trust-badges {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .secondary-actions {
        flex-direction: column;
    }

    .btn-favorite-secondary,
    .btn-share-secondary {
        width: 100%;
    }

    /* ---- 通知提示 ---- */
    .notification-toast {
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }

    /* ---- 主页重设计 ---- */
    .content-wrapper {
        padding: 1rem 0.75rem 0;
        gap: 1.5rem;
    }

    .sidebar-featured {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .widget {
        padding: 1.25rem;
    }

    .widget-title {
        font-size: 1rem;
    }

    .post-link {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .post-icon {
        width: 48px;
        height: 48px;
    }

    .post-title {
        font-size: 0.9375rem;
    }

    .post-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    .post-meta {
        gap: 0.375rem;
    }

    .meta-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .post-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .stat-item {
        font-size: 0.75rem;
    }

    /* ---- 侧边栏优化 ---- */
    .sidebar-featured {
        padding: 0 0.75rem;
        margin-top: 1.5rem;
    }

    .widget {
        padding: 1rem;
    }

    .widget-title {
        font-size: 0.9375rem;
    }

    /* ---- 产品网格 ---- */
    .products-grid {
        gap: 1rem;
    }

    .product-thumb {
        height: 160px;
    }

    /* ---- Widget ---- */
    .widget {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .widget-title {
        font-size: 1.125rem;
    }

    .search-field {
        font-size: 0.9rem;
    }

    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .site-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0.5rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* ---- 返回顶部/通知/灯箱 ---- */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox .close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}

/* ===================================
   超小设备 (360px 及以下)
   =================================== */
@media (max-width: 360px) {
    .single .site-content,
    .page .site-content {
        padding: 0 0.75rem;
    }

    .header-container {
        padding: 0 0.75rem;
    }

    /* ---- detail-container (原 mobile-fixes §6) ---- */
    .single-post .detail-container,
    .detail-container {
        padding: 0.5rem !important;
        padding-bottom: 4rem !important;
    }

    /* ---- detail-main (原 mobile-fixes §7) ---- */
    .detail-main,
    .single-post .detail-main {
        padding: 0.75rem 0.5rem !important;
    }

    /* ---- 区域标题 ---- */
    .section-header {
        margin-bottom: 1rem;
        padding-bottom: 0.625rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .section-title svg {
        width: 18px;
        height: 18px;
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    /* ---- 热门区域 ---- */
    .featured-section {
        margin-bottom: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-image {
        aspect-ratio: 16/9;
    }

    .featured-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .featured-content {
        padding: 1rem;
    }

    .featured-icon {
        width: 36px;
        height: 36px;
    }

    .featured-title {
        font-size: 0.9375rem;
    }

    .featured-rating {
        font-size: 0.8125rem;
    }

    .featured-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    .featured-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    /* ---- 列表区域 ---- */
    .latest-section {
        margin-bottom: 1rem;
    }

    .post-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.75rem;
    }

    .post-icon {
        width: 48px;
        height: 48px;
    }

    .post-header {
        width: 100%;
        gap: 0.5rem;
    }

    .post-title {
        font-size: 0.9375rem;
        flex: 1;
    }

    .post-rating {
        padding: 0.2rem 0.5rem;
    }

    .rating-value {
        font-size: 0.75rem;
    }

    .external-icon {
        display: none;
    }

    .post-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    .meta-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .post-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .stat-item {
        font-size: 0.75rem;
    }

    .stat-item svg {
        width: 12px;
        height: 12px;
    }

    .stat-item:nth-child(3) {
        display: none;
    }

    .widget {
        padding: 0.75rem;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   特殊媒体查询
   =================================== */

/* ---- 打印样式 ---- */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .back-to-top,
    .notification,
    .share-section,
    .related-posts,
    .comments-area,
    .detail-main {
        margin-left: 0 !important;
        box-shadow: none !important;
    }

    .site-content {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .single-post-content {
        box-shadow: none;
        padding: 0;
    }

    .detail-main {
        border: 1px solid #ddd !important;
    }

    .page-actions,
    .product-gallery-slider,
    .toc-horizontal,
    .mobile-fixed-cta {
        display: none !important;
    }

    a {
        color: var(--text-color);
        text-decoration: underline;
    }
}

/* ---- 高对比度模式 ---- */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-color: #000000;
        --bg-color: #ffffff;
        --border-color: #000000;
    }

    .post-card,
    .widget,
    .single-post-content {
        border: 2px solid var(--border-color);
    }
}

/* ---- 减少动画模式 ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- 暗色模式支持 ---- */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #818cf8;
        --secondary-color: #a78bfa;
        --text-color: #f9fafb;
        --text-light: #d1d5db;
        --bg-color: #1f2937;
        --bg-light: #111827;
        --border-color: #374151;
        --hover-color: #374151;
    }

    .post-card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .category-badge,
    .tag-badge {
        background: var(--bg-light);
        border-color: var(--border-color);
    }
}

/* ---- iOS Safari 特定修复 (原 mobile-fixes §18) ---- */
@supports (-webkit-touch-callout: none) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    .comparison-scroll,
    .toc-horizontal-inner,
    .detail-body table,
    .detail-body pre {
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- 触摸设备优化 (原 mobile-fixes §19) ---- */
@media (hover: none) and (pointer: coarse) {
    .action-btn,
    .btn-favorite,
    .btn-share,
    .btn-visit,
    .toc-tab,
    .gallery-prev,
    .gallery-next,
    .gallery-indicator,
    .faq-question {
        min-height: 44px;
        min-width: 44px;
    }

    .action-btn:active,
    .btn-favorite:active,
    .btn-share:active {
        opacity: 0.7;
        transform: scale(0.98);
    }

    button,
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* ---- 安全区支持 iPhone X+ (原 mobile-fixes §20) ---- */
@supports (padding: max(0px)) {
    .single-post .detail-container,
    .page-header-container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .detail-main,
    .single-post .detail-main {
        padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
        padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
    }
}

/* ---- 横屏模式 (原 mobile-fixes §21) ---- */
@media (orientation: landscape) and (max-width: 900px) {
    .page-header-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .page-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .action-btn {
        width: auto;
        flex: 1;
        min-width: 120px;
    }

    .main-features-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ---- Android Chrome 地址栏修复 (原 mobile-fixes §23) ---- */
@media (max-height: 600px) {
    .page-header {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* ---- 高DPI优化 (原 mobile-fixes §24) ---- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .detail-main,
    .product-gallery-slider,
    .action-btn {
        border-width: 0.5px;
    }
}
