/**
 * 工具介绍模块完整样式
 * 包含工具介绍和详细信息的完整样式设计
 */

/* ========== 工具介绍容器 ========== */
.tool-introduction {
    margin-top: 48px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-introduction:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tool-introduction:hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2), 0 4px 20px rgba(102, 126, 234, 0.1);
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ========== 标题样式 ========== */
.tool-introduction h2 {
    color: #667eea;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 4px solid #e2e8f0;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(102, 126, 234, 0.1);
    letter-spacing: -0.5px;
}

.tool-introduction h2:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* ========== 工具介绍内容 ========== */
.tool-content-description {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    line-height: 1.9;
    color: #475569;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.tool-content-description:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.tool-content-description p {
    margin: 0 0 20px;
    text-align: justify;
    line-height: 1.9;
}

.tool-content-description p:last-child {
    margin-bottom: 0;
}

.tool-content-description strong {
    color: #334155;
    font-weight: 600;
}

/* ========== 详细信息模块 ========== */
.tool-detailed-info {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px dashed #e2e8f0;
}

.tool-detailed-info h3 {
    color: #667eea;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-detailed-info h3 i {
    font-size: 20px;
    color: #667eea;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* ========== 信息卡片网格 ========== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.info-card .info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-size: 20px;
}

.info-card .info-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card .info-value {
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.info-card .info-value a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-card .info-value a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.info-card.info-full {
    grid-column: 1 / -1;
}

/* ========== 高亮提示 ========== */
.highlight-box {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-left: 4px solid #3b82f6;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-left-color: #f59e0b;
}

.highlight-box.success {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-left-color: #10b981;
}

.highlight-box.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border-left-color: #ef4444;
}

.highlight-box p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
}

.highlight-box.warning p {
    color: #92400e;
}

.highlight-box.success p {
    color: #065f46;
}

.highlight-box.danger p {
    color: #991b1b;
}

/* ========== 工具提示 ========== */
.tool-tip {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: help;
}

.tool-tip .tip-icon {
    color: #667eea;
    font-size: 18px;
}

.tool-tip .tip-content {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tool-tip .tip-content:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1e293b;
}

.tool-tip:hover .tip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .tool-introduction {
        padding: 32px 24px;
        margin-top: 32px;
    }
    
    .tool-introduction h2 {
        font-size: 24px;
    }
    
    .tool-introduction h3 {
        font-size: 20px;
    }
    
    .tool-content-description {
        padding: 20px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-card.info-full {
        grid-column: 1;
    }
    
    .tool-detailed-info {
        margin-top: 32px;
        padding-top: 24px;
    }
}

/* ========== 暗色模式 ========== */
@media (prefers-color-scheme: dark) {
    .tool-introduction {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .tool-introduction h2 {
        color: #667eea;
        border-bottom-color: #475569;
    }
    
    .tool-introduction h3 {
        color: #f1f5f9;
    }
    
    .tool-content-description {
        background: #334155;
        border-color: #475569;
        color: #94a3b8;
    }
    
    .info-card {
        background: #334155;
        border-color: #475569;
    }
    
    .info-card .info-label {
        color: #94a3b8;
    }
    
    .info-card .info-value {
        color: #f1f5f9;
    }
    
    .highlight-box {
        background: linear-gradient(135deg, #1e3a8a 0%, #374151 100%);
        border-left-color: #60a5fa;
    }
    
    .highlight-box p {
        color: #bfdbfe;
    }
}

/* ========== 打印优化 ========== */
@media print {
    .tool-introduction {
        box-shadow: none;
        border: 1px solid #000;
        padding: 0;
    }
    
    .info-card {
        box-shadow: none;
        transform: none;
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-introduction {
    animation: fadeInUp 0.6s ease-out;
}

.info-card {
    animation: fadeInUp 0.4s ease-out;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }
.info-card:nth-child(5) { animation-delay: 0.5s; }
.info-card:nth-child(6) { animation-delay: 0.6s; }
.info-card:nth-child(7) { animation-delay: 0.7s; }
