/**
 * 工具详情页样式
 * 
 * @author AI Assistant
 * @date 2025-10-04
 */

/* ==================== 面包屑导航 ==================== */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c63ff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #5a52d5;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
}

/* ==================== 工具详情区域 ==================== */
.tool-detail-section {
    padding: 30px 0 60px;
}

/* 工具头部 */
.tool-header {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon-large i {
    font-size: 40px;
    color: #fff;
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.tool-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 12px;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: #718096;
}

.meta-item i {
    margin-right: 5px;
    color: #a0aec0;
}

.badge-vip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-free {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tool-actions {
    flex-shrink: 0;
}

.btn-collect {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-collect:hover {
    border-color: #f56565;
    color: #f56565;
    background: #fff5f5;
}

.btn-collect.collected {
    border-color: #f56565;
    color: #f56565;
    background: #fff5f5;
}

.btn-collect i {
    margin-right: 5px;
}

/* 工具描述 */
.tool-description {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tool-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.tool-description h3 i {
    color: #6c63ff;
    margin-right: 8px;
}

.tool-description p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0;
}

/* 工具主体区域 */
.tool-main-area {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    min-height: 400px;
}

/* VIP权限提示 */
.vip-required-notice {
    text-align: center;
    padding: 60px 20px;
}

.vip-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.vip-icon i {
    font-size: 50px;
    color: #fff;
}

.vip-required-notice h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.vip-required-notice p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

.btn-vip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-vip i {
    margin-right: 8px;
}

/* 工具内容区域 */
.tool-content {
    min-height: 300px;
}

/* ==================== 右侧边栏 ==================== */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.sidebar-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-card .card-title i {
    color: #6c63ff;
    margin-right: 8px;
}

/* 分类信息 */
.category-info {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.category-link {
    font-size: 16px;
    font-weight: 600;
    color: #6c63ff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.category-link:hover {
    color: #5a52d5;
    text-decoration: underline;
}

.category-link i {
    margin-right: 8px;
}

.category-desc {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
}

/* 相关工具列表 */
.related-tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tool-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
    text-decoration: none;
}

.tool-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon-small i {
    font-size: 18px;
    color: #fff;
}

.tool-info-small {
    flex: 1;
}

.tool-name-small {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.tool-meta-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a0aec0;
}

.badge-vip-sm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.use-count i {
    margin-right: 3px;
}

/* 使用提示 */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    font-size: 14px;
    color: #4a5568;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li i {
    color: #48bb78;
    margin-right: 8px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 991px) {
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-icon-large {
        margin: 0 auto;
    }
    
    .tool-meta {
        justify-content: center;
    }
    
    .tool-actions {
        width: 100%;
    }
    
    .btn-collect {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .tool-name {
        font-size: 22px;
    }
    
    .tool-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .tool-icon-large i {
        font-size: 30px;
    }
    
    .tool-main-area {
        padding: 20px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}

/* ==================== 分类页面样式 ==================== */
/* 热门工具列表 */
.hot-tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-tool-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.hot-tool-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
    text-decoration: none;
}

/* 分类列表 */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f7fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #edf2f7;
    color: #667eea;
    text-decoration: none;
}

.category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.category-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.category-item .count {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.7;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination li {
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination li.active span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 表单元素样式 ==================== */
.input, select.input, input.input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.input:focus, select.input:focus, input.input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input:disabled, select.input:disabled, input.input:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: #fff;
}

.btn-primary:hover {
    background: #5a67d8;
    color: #fff;
}

.btn-success {
    background: #48bb78;
    color: #fff;
}

.btn-success:hover {
    background: #38a169;
    color: #fff;
}

.btn-warning {
    background: #ed8936;
    color: #fff;
}

.btn-warning:hover {
    background: #dd6b20;
    color: #fff;
}

.btn-danger {
    background: #f56565;
    color: #fff;
}

.btn-danger:hover {
    background: #e53e3e;
    color: #fff;
}

.btn-info {
    background: #4299e1;
    color: #fff;
}

.btn-info:hover {
    background: #3182ce;
    color: #fff;
}
