/* ===== 详情页样式 ===== */

/* 为详情页添加特殊类 */
body.detail-page {
    background-color: #ffffff;
}

/* 基本容器样式 */
.main-content {
    min-height: 70vh; /* 确保主内容区域有足够的高度 */
    padding: 40px 0;
}

#detail-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 响应式设计基础 */
@media (max-width: 992px) {
    #detail-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    #detail-container {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    #detail-container {
        padding: 0 8px;
    }
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin: 20px 0;
    width: 70%;
}

.breadcrumb-item {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: rgba(17, 24, 39, 1);
    text-decoration: none;
}

.breadcrumb-item.current {
    color: rgba(17, 24, 39, 0.6);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: rgba(17, 24, 39, 0.4);
}

/* 工具详情页面布局 */
.tool-detail-layout {
    display: flex;
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 主内容区域 */
.tool-detail-main {
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

/* 右侧边栏 */
.tool-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 工具头部信息 */
.tool-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* 工具信息 */
.tool-info {
    flex: 1;
    min-width: 200px;
}

/* 工具标题 */
.tool-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

/* 工具标签 */
.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* 单个标签 */
.tool-tag {
    font-size: 20px;
    line-height: 20px;
    color: #303747 !important;
    background-color: #EEF2F7 !important;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

/* 工具操作按钮 */
.tool-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    right: 40px; /* 与左侧间距保持一致 */
    z-index: 10;
}

/* 详情页访问按钮 - 渐变样式 */
.tool-visit-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 180px !important;
    height: 52px !important;
    padding: 18px 38px !important;
    background-image: linear-gradient(90deg, rgba(92, 250, 219, 1), rgba(4, 221, 255, 1)) !important;
    background-color: transparent !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    margin-top: 20px !important;
}

.tool-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-visit-btn span {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: rgba(17, 24, 39, 1);
    margin-right: 8px;
}

/* 工具描述与收录时间间距 */
html body.detail-page .tool-description-text,
html body .tool-description-text,
.tool-description-text {
    margin-bottom: 16px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: rgba(17, 24, 39, 0.8) !important;
    position: relative !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
    width: 650px !important;
    max-width: 100% !important;
}

/* 收录时间和月流量样式优化 */
html body.detail-page .tool-meta-info,
html body .tool-meta-info,
.tool-meta-info {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    color: rgba(17, 24, 39, 0.8) !important;
    font-size: 14px !important;
    top: auto !important;
    left: auto !important;
    width: 650px !important;
    max-width: 100% !important;
}

/* 工具大图容器 */
.tool-image-container {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.tool-detail-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tool-image-container:hover .tool-detail-image {
    transform: scale(1.15);
}

/* 工具大图 */
.tool-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 排行榜卡片 */

/* 响应式设计 */
@media (max-width: 992px) {
    .tool-detail-layout {
        flex-direction: column;
    }
    
    .tool-detail-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tool-actions {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }
    
    html body.detail-page .tool-description-text,
    html body .tool-description-text,
    .tool-description-text {
        margin-bottom: 8px !important;
    }
    
    html body.detail-page .tool-meta-info,
    html body .tool-meta-info,
    .tool-meta-info {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        gap: 4px !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (max-width: 576px) {
    .tool-detail-layout {
        padding: 15px;
    }
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #999;
    text-decoration: none;
    font-weight: 400;
}

.breadcrumb-item:hover {
    color: #3370ff;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* 工具详情区域 */
.tool-detail-section {
    margin: 40px 0;
}

.tool-detail-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 工具信息头部 */
.tool-header-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* 工具标签 */
.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.tool-tag {
    font-size: 20px;
    line-height: 20px;
    color: #303747 !important;
    background-color: #EEF2F7 !important;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

/* 工具操作按钮 */
.tool-actions {
    display: flex;
    gap: 20px;
}



.like-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 60px;
    padding: 18px 50px;
    background-color: rgba(196, 196, 196, 1);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.like-button:hover {
    background-color: rgba(180, 180, 180, 1);
    transform: translateY(-2px);
}

.like-button span {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: rgba(17, 24, 39, 1);
}

.like-button.active {
    background-color: #f87171;
}

.like-button.active span {
    color: white;
}

/* 工具描述 */
.tool-description {
    margin-bottom: 30px;
}

.tool-description p {
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 28px !important;
    color: rgba(17, 24, 39, 0.8) !important;
    margin-bottom: 24px !important; /* 增加段落之间的间距，保持与桌面版一致 */
}

/* 两列布局 */
.content-two-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.left-column {
    flex: 0 0 70%;
    max-width: 70%;
}

.right-column {
    flex: 0 0 30%;
    max-width: 30%;
}

/* 侧边栏组件 */
.sidebar-component {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-component h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(17, 24, 39, 1);
}

.sidebar-content {
    min-height: 200px;
}

/* 推荐工具列表 */
.recommend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-item {
    display: flex;
    padding: 12px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.recommend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recommend-tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.recommend-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommend-item:hover .recommend-tool-icon img {
    transform: scale(1.15);
}

.recommend-tool-info {
    flex-grow: 1;
}

.recommend-tool-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px 0;
    color: rgba(17, 24, 39, 1);
}

.recommend-tool-desc {
    font-size: 14px;
    color: rgba(17, 24, 39, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* 工具详细信息 */
.tool-details {
    max-width: 800px;
    margin-bottom: 60px;
}

.tool-info-section {
    margin-bottom: 32px;
}

.tool-info-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(17, 24, 39, 1);
}

.tool-info-section ul {
    padding-left: 20px;
}

.tool-info-section li {
    font-size: 16px;
    line-height: 28px;
    color: rgba(17, 24, 39, 0.8);
    margin-bottom: 8px;
}

.tool-info-section p {
    font-size: 16px;
    line-height: 28px;
    color: rgba(17, 24, 39, 0.8);
}

.tab-container {
    display: flex;
    gap: 20px;
}

.tab {
    font-size: 16px;
    color: rgba(17, 24, 39, 0.6);
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
}

.tab.active {
    color: #FF6B6B;
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FF6B6B;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.view-more-container {
    text-align: center;
}

.view-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFE4E4;
    color: #FF6B6B;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background-color: #FFD1D1;
}

/* 错误消息样式 */
.error-container {
    background-color: #fff3f3;
    border: 1px solid #ffcaca;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-two-columns {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .tool-detail-image {
        height: auto;
        max-height: 480px;
    }
}

@media (max-width: 768px) {
    .tool-header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tool-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .tool-tags {
        justify-content: center;
    }
    
    .tool-tag {
        font-size: 16px;
    }
    
    .tool-actions {
        justify-content: center;
    }
    
    .tool-description p {
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    /* 手机端图片样式调整 */
    .tool-image-container-new {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: calc(100% + 24px) !important; /* 补偿左右12px的间距 */
        max-width: calc(100% + 24px) !important; /* 补偿左右12px的间距 */
        height: 206px !important;
        margin: 15px -12px 20px -12px !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        z-index: auto !important;
        background-color: transparent !important;
        display: block !important;
        order: 3 !important; /* 图片放在描述后面 */
    }
    
    .tool-image-new {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        background-color: transparent !important;
        border-radius: 12px !important;
    }
    
    /* 确保手机端内容区域布局正确 - 移除额外padding */
    .tool-detail-main {
        width: 100% !important;
        padding: 0 !important; /* 移除重复padding，使用容器级别的间距 */
    }
    
    /* 手机端工具信息区域调整 */
    .tool-info {
        margin-top: 20px !important;
        order: 2 !important; /* 确保在图片之后显示 */
    }
    
    /* 手机端描述文字调整 */
    .tool-description-text {
        text-align: left !important; /* 手机端描述左对齐 */
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin: 15px 0 !important;
    }
    
    /* 手机端标签区域调整 */
    .tool-tags {
        justify-content: flex-start !important; /* 手机端标签左对齐 */
        margin: 12px 0 !important;
    }
}

@media (max-width: 576px) {
    .tool-title {
        font-size: 24px;
        line-height: 28px;
    }
    
    .tool-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .tool-visit-btn, .like-button {
        width: 100%;
        max-width: 280px;
    }
    
    .tool-description p {
        font-size: 14px;
        line-height: 24px;
    }
    
    .tab-container {
        gap: 15px;
    }
}

/* 排行榜工具卡片 */
.ranked-tool-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ranked-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rank-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.rank-number.top-1 {
    background-color: #FFD700;
    color: white;
}

.rank-number.top-2 {
    background-color: #C0C0C0;
    color: white;
}

.rank-number.top-3 {
    background-color: #CD7F32;
    color: white;
}

.ranked-tool-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.ranked-tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.ranked-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ranked-tool-card:hover .ranked-tool-icon img {
    transform: scale(1.15);
}

.ranked-tool-info {
    flex-grow: 1;
}

.ranked-tool-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: rgba(17, 24, 39, 1);
}

.ranked-tool-desc {
    font-size: 14px;
    color: rgba(17, 24, 39, 0.6);
    margin: 0;
}

.no-tools {
    text-align: center;
    color: rgba(17, 24, 39, 0.6);
    padding: 20px;
} 

/* 工具内容区域样式 */
.tool-content-section {
    width: 100%;
    padding: 20px 0;
}

/* 工具区块样式 */
.tool-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
    border-left: none;
    padding-left: 0; /* 移除左侧内边距 */
    position: relative;
    display: flex;
    align-items: center;
}

/* 移除蓝色条 */
.section-title::before {
    display: none; /* 隐藏蓝色条 */
}

.section-content {
    font-size: 16px;
    line-height: 1.625; /* 相当于26px，从1.5改为1.625 */
    color: #444;
    white-space: pre-line; /* 保留文本中的换行 */
}

/* 加载中的样式 */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片容器修复 - 通用样式 */
.tool-image-container-new {
    width: 100% !important;
    max-width: 620px !important; /* 从660px减小到620px */
    right: 0 !important;
    overflow: hidden !important;
    height: 340px !important; /* 从360px减小到340px */
}

/* 图片样式修复 - 通用样式 */
.tool-image-new {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 修复ChatGPT页面专用样式 */
.chatgpt-page .tool-image-container-new {
    position: absolute !important;
    width: 100% !important;
    max-width: 620px !important; /* 减小宽度 */
    height: 340px !important; /* 减小高度 */
    left: auto !important;
    right: 0 !important;
    top: 0px !important;
    overflow: hidden !important;
}

body.chatgpt-page .tool-image-new {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 推荐工具和精选工具容器样式 */
.recommended-tools-container, .featured-tools-container {
    width: 100%;
    margin-top: 20px;
    margin-left: 0; /* 修改为左对齐 */
    margin-right: 0; /* 修改为不超出右侧边距 */
    padding: 0;
    width: 100%; /* 调整宽度，使其不超出父容器 */
    overflow: visible; /* 确保内容完全可见 */
}

/* 工具网格 - 一排横向显示 */
.tools-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin-top: 24px;
    width: 100%;
    overflow-x: visible; /* 修改为visible，允许内容完全显示 */
    padding-bottom: 16px; /* 添加底部内边距，避免滚动条遮挡内容 */
    padding-left: 0; /* 修改左对齐，移除左侧内边距 */
    padding-right: 0; /* 移除右侧内边距 */
    /* 美化滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 工具卡片容器 */
.tool-cards-container {
    width: 100%; /* 修改宽度，使其不超出父容器 */
    overflow: visible; /* 确保内容完全可见 */
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

/* 工具卡片 - 固定宽度 */
.tool-card {
    background-color: #fff;
    border-radius: 8px 8px 0 0; /* 顶部圆角，底部直角 */
    overflow: hidden;
    box-shadow: none; /* 移除投影效果 */
    border: none; /* 移除边框 */
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: calc(25% - 18px); /* 调整为1/4宽度减去间距 */
    max-width: calc(25% - 18px); /* 调整为1/4宽度减去间距 */
    flex: 0 0 calc(25% - 18px); /* 使用flex-shrink:0阻止卡片收缩 */
}

/* 工具卡片图片样式，确保图片正常显示 */
.tool-card__image {
    position: relative !important;
    overflow: hidden !important;
    min-height: 180px !important;
    height: 180px !important;
    border-radius: 8px !important;
}

.tool-card__image img {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 修复ChatGPT页面专用样式 */
.chatgpt-page .tool-image-container-new {
    position: absolute !important;
    width: 100% !important;
    max-width: 620px !important; /* 减小宽度 */
    height: 340px !important; /* 减小高度 */
    left: auto !important;
    right: 0 !important;
    top: 0px !important;
    overflow: hidden !important;
}

body.chatgpt-page .tool-image-new {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 添加额外的样式规则以覆盖可能的冲突 */
#recommended-tools-container .tool-card .tool-card__image,
#recommended-tools-container .tool-card__image,
#featured-tools-container .tool-card .tool-card__image,
.recommended-section .tool-card .tool-card__image {
    border-radius: 8px !important;
}

html body.detail-page .tool-meta-text,
html body .tool-meta-text,
.tool-meta-text {
    font-size: 16px !important;
    line-height: 21px !important;
    color: rgba(17, 24, 39, 0.8) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 手机端强制布局修复和间距优化 - 最高优先级 */
@media (max-width: 768px) {
    /* 强制覆盖内联样式 - 详情页布局 */
    .tool-detail-layout[style*="flex-direction: row"] {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* === 移除tool-detail-layout层，只保留main-content间距 === */
    
    /* 第一层：main-content - 提供主要的左右间距 */
    .main-content {
        margin-top: 80px !important; /* 保持导航栏间距 */
        padding: 0 12px !important; /* 统一的外边距 */
    }
    
    /* 第二层：container - 移除所有padding */
    .container {
        padding: 0 !important; /* 移除额外padding */
        max-width: none !important; /* 手机端不限制宽度 */
    }
    
    /* detail-container也要移除额外padding */
    #detail-container {
        padding: 0 !important; /* 移除额外padding */
    }
    
    /* === 核心修改：tool-detail-layout透明化 === */
    /* 使tool-detail-layout变成透明的布局容器，不产生任何间距 */
    .tool-detail-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important; /* 移除gap间距 */
        padding: 0 !important; /* 移除所有padding，包括基础样式的20px */
        margin: 0 !important; /* 移除所有margin */
        width: 100% !important;
        max-width: none !important;
    }
    
    /* 强制覆盖任何可能的内联样式或其他CSS规则 */
    body .tool-detail-layout,
    html body .tool-detail-layout,
    .main-content .tool-detail-layout,
    .container .tool-detail-layout,
    #detail-container .tool-detail-layout {
        padding: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* === 主内容区域直接继承main-content的间距 === */
    .tool-detail-main {
        width: 100% !important;
        padding: 0 !important; /* 移除额外padding，使用main-content的间距 */
        margin: 0 !important;
        order: 1 !important;
    }
    
    /* === 侧边栏也直接继承main-content的间距 === */
    .tool-detail-sidebar {
        width: 100% !important;
        padding: 0 !important; /* 移除额外padding，使用main-content的间距 */
        margin: 30px 0 0 0 !important; /* 只保留上边距分隔 */
        order: 2 !important;
    }
    
    /* 图片容器全宽显示，补偿左右间距 */
    .tool-image-container-new {
        width: calc(100% + 24px) !important; /* 补偿左右12px的间距 */
        margin-left: -12px !important;
        margin-right: -12px !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 0 !important;
        order: 3 !important; /* 图片放在描述后面 */
    }
    
    /* 工具标题间距优化 */
    .tool-title {
        margin: 15px 0 10px 0 !important;
        padding: 0 !important;
    }
    
    /* 工具详情描述区域间距优化 */
    .tool-detail-sections {
        margin-top: 15px !important;fv
        padding: 0 !important;
    }
    
    /* 推荐工具标题间距 */
    .recommended-section h3,
    .featured-section h3 {
        margin: 20px 0 15px 0 !important;
    }
    
    /* 工具头部区域 */
    .tool-header-new {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 移除任何可能的绿色/红色调试背景 */
    * {
        background-color: transparent !important;
    }
    
    /* 确保正常的背景色 */
    body {
        background-color: #ffffff !important;
    }
    
    .tool-detail-main, .tool-detail-layout {
        background-color: #ffffff !important;
    }
}

@media screen and (min-width: 769px){
    .tool-detail-sections{margin-top: 126px;}

    #featured-tools-container .tool-card .tool-card__content{margin-bottom: 30px;}
}