/* ==========================================
   详情页专用样式（detail.html）
   顶部/底部复用 style.css，此处仅详情页布局
   ========================================== */

/* ---------- 面包屑微调：增加详情页链接样式 ---------- */
.crumb-link {
    color: #6B7390;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.crumb-link:hover { color: #4F8BFF; }

/* ---------- 主体左右布局 ---------- */
.detail-main {
    padding: 6px 0 12px;
}

.detail-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧：详情内容 */
.detail-left {
    flex: 1;
    min-width: 0;
}

/* ===== 合并大区块：详情头部 + 详细介绍 + 相关推荐 ===== */
.detail-panel {
    background: #fff;
    border: 1px solid #EEF1F7;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(79, 139, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

/* ===== 详情头部（区块内，无独立卡片） ===== */
.detail-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-header-left {
    flex-shrink: 0;
}

.detail-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.detail-logo img{
    width: 100px;
    height: 100px;
    border-radius: 16px;
}

.detail-logo svg {
    width: 48px;
    height: 48px;
}

.detail-header-right {
    flex: 1;
    min-width: 0;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #1A1F36;
    margin-bottom: 12px;
    line-height: 1.3;
}

.detail-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #4A5066;
    margin-bottom: 14px;
}

.intro-label {
    font-weight: 700;
    color: #1A1F36;
}

.intro-text {
    color: #6B7390;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.meta-tag,
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6B7390;
}

.meta-tag {
    color: #4F8BFF;
    font-weight: 600;
}

.meta-tag svg { color: #4F8BFF; }

.meta-item svg { color: #A0A6BC; }

/* 收藏：可点击按钮 */
.meta-fav {
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meta-fav:hover { color: #FFB800; transform: translateY(-1px); }

.meta-fav:hover svg { color: #FFB800; }

/* 已收藏：黄色高亮（实心星） */
.meta-fav.active,
.meta-fav.active svg {
    color: #FFB800;
}

.meta-fav.active svg {
    fill: #FFB800;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 32px;
    background: linear-gradient(135deg, #4F8BFF 0%, #7B5CFF 50%, #C63CFF 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(123, 92, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 92, 255, 0.5);
}

/* 分隔线（区块内部） */
.detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E4E8F0, transparent);
    margin: 20px 0;
}

/* ===== 详细介绍区块（区块内，无独立卡片） ===== */
.detail-body {
    margin-bottom: 20px;
	
	font-size: 14px;
    line-height: 2;
    color: #4A5066;
    text-align: justify;
}
.detail-body img{ max-width:100%; margin-top:12px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child { margin-bottom: 0; }

.detail-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A1F36;
    margin-bottom: 10px;
    line-height: 1.4;
}

.detail-section-text {
    font-size: 14px;
    line-height: 1.8;
    color: #4A5066;
    text-align: justify;
}

.detail-section-list .detail-section-text {
    margin-bottom: 10px;
}

.detail-section-list .detail-section-text:last-child { margin-bottom: 0; }

/* ===== 相关热门工具推荐（区块内，无独立卡片） ===== */
.detail-recommend {
    padding-top: 20px;
    border-top: 1px dashed #E4E8F0;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 复用 style.css 的 .tool-card 但去边框用淡背景 */
.recommend-grid .tool-card {
    border: none;
    background: #F5F7FF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recommend-grid .tool-card:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(79, 139, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ===== 留言/评价 ===== */
.detail-comments {
    padding: 24px;
    background: #fff;
    border: 1px solid #EEF1F7;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(79, 139, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 评论列表 */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.comment-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid #F0F2F8;
}

.comment-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F5F7FF;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-name {
    font-size: 14px;
    font-weight: 700;
    color: #1A1F36;
}

.comment-time {
    font-size: 12px;
    color: #A0A6BC;
}

.comment-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4A5066;
    word-break: break-word;
}

/* 评论表单 */
.comment-form {
    padding-top: 20px;
    border-top: 1px dashed #E4E8F0;
}

.comment-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1F36;
    margin-bottom: 14px;
}

.comment-input-wrap {
    margin-bottom: 12px;
}

.comment-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E4E8F0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #1A1F36;
    background: #FAFBFF;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-input:focus {
    outline: none;
    border-color: rgba(123, 92, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.08);
    background: #fff;
}

.comment-input::placeholder { color: #A0A6BC; }

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-tip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #A0A6BC;
}

.comment-tip svg { color: #FF9F43; }

.btn-comment {
    padding: 9px 24px;
    background: linear-gradient(135deg, #4F8BFF 0%, #7B5CFF 50%, #C63CFF 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(123, 92, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 92, 255, 0.5);
}

/* ---------- 右侧栏 260px：独立分区 ---------- */
.list-aside {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aside-promo,
.aside-ads {
    background: #fff;
    border: 1px solid #EEF1F7;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(79, 139, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 分区标题：左侧渐变竖条强调分区感 */
.aside-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1F36;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 12px;
}

.aside-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(135deg, #4F8BFF, #C63CFF);
}

/* 付费推广：一行一个，无边框，用分割线区分 */
.promo-list {
    display: flex;
    flex-direction: column;
}

.promo-card {
    width: 100%;
    padding: 12px 8px;
    border: none;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #EEF1F7;
}

.promo-list .promo-card:last-child {
    border-bottom: none;
}

.promo-card .tool-logo {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

/* ---------- 图片广告区：高约80px（无背景框、无标题） ---------- */
.aside-ads {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.aside-ads-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-ad-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-ad-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(79, 139, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .detail-panel,
    .detail-comments { padding: 14px; }
    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-header-right { width: 100%; }
    .detail-meta { justify-content: center; }
    .recommend-grid { grid-template-columns: 1fr; }
    .comment-form-footer { flex-direction: column; align-items: flex-start; }
}
