/* ==================== 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;
}

/* ==================== 2. 说明区（中间） ==================== */
.info-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-header {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.info-content {
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
}

.info-content p {
    margin-bottom: 12px;
}

.info-content a {
    color: #165DFF;
    text-decoration: none;
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

.info-list {
    padding-left: 20px;
    margin: 12px 0;
}

.info-list li {
    margin-bottom: 6px;
}

/* ==================== 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);
}