/* ==================== 1. 工具区（最上方） ==================== */
.tool-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.tool-header svg {
    width: 20px;
    height: 20px;
    color: #165DFF;
}

.tool-header h1 {
    font-size: 20px;
}
/* 覆盖原有布局，实现左右分布，无冲突 */
.tool-header {
    display: flex !important;
    justify-content: space-between !important;
    gap: 0 !important;
}
/* 左侧：标题+收藏按钮 保持原有间距 */
.tool-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 反馈按钮：精致小巧、全站同色系好看样式 */
.feedback-btn {
    font-size: 12px;
    padding: 4px 12px;
    background-color: rgba(22, 93, 255, 0.1);
    color: #165DFF;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(22, 93, 255, 0.2);
}
.feedback-btn:hover {
    background-color: #165DFF;
    color: #fff;
}
.related-tag-box {
    margin: 12px 0 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.tag-tit {
    font-size: 14px;
    color: #666;
}
.related-tag {
    padding: 5px 14px;
    background-color: rgba(100, 160, 255, 0.12);
    color: #2b6cb0;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.related-tag:hover {
    background-color: rgba(100, 160, 255, 0.25);
    color: #1d4ed8;
}

.related-tag-active {
    background-color: rgba(100, 160, 255, 0.25);
    color: #1d4ed8;
}


/* ==================== 2. 说明区（中间） ==================== */
.info-section {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.info-section h2 {
    font-size: 23px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 5px solid #3b82f6;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.info-section h2:first-child {
    margin-top: 0;
}

/* 段落样式（优雅阅读感） */
.info-section p {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 12px;
    line-height: 1.85;
    text-align: justify;
    letter-spacing: 0.2px;
}
/* ==================== 3. 推荐区（最下方） ==================== */
.recommend-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recommend-header {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.recommend-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.recommend-card:hover {
    background: #f0f5ff;
    transform: translateY(-2px);
}

.recommend-grid-a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.icon-blue {
    background: #165DFF;
}

.icon-green {
    background: #10b981;
}

.icon-red {
    background: #ef4444;
}

.icon-orange {
    background: #f59e0b;
}

.card-name {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* 收藏按钮样式 - 大气优雅风，适配蓝色基调 */
.star-btn {
    background: transparent;
    border: none;
    font-size: 20px; /* 粗五角星大小，醒目不突兀 */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    /* 未收藏默认灰色，无额外样式 */
    color: #999;
}

/* 已收藏状态：黄色实心 + 缩放动画 + 光晕 */
.star-btn.active {
    color: #ffc107; /* 明亮黄色，突出收藏状态 */
    transform: scale(1.2); /* 轻微放大，强化视觉反馈 */
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.5); /* 黄色光晕，更有质感 */
}

/* 鼠标悬浮效果：淡蓝背景，和整体风格统一 */
.star-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 123, 255, 0.1);
}