/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    padding-top: 20px;
    padding-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 移除硬编码的导航样式，使用nav.php中的样式 */

/* 工具详情卡片样式 */
.tool-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.tool-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.tool-logo .favicon-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: white;
    background-color: #4ECDC4;
    border-radius: 8px;
}

.tool-logo .favicon-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.tool-title-section {
    flex: 1;
}

.tool-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.tool-url {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-block;
    word-break: break-all;
}

.tool-url:hover {
    text-decoration: underline;
}

.tool-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

/* 按钮组样式 */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-like {
    background-color: #f0f0f0;
    color: #666;
}

.btn-like:hover {
    background-color: #e0e0e0;
}

.btn-favorite {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn-favorite:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

.btn-report {
    background-color: #fff;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.btn-report:hover {
    background-color: #fff5f5;
}

.btn-visit {
    background-color: #666;
    color: white;
}

.btn-visit:hover {
    background-color: #777;
    color: white;
}

/* 工具详情内容样式 */
.tool-content {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.tool-description {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.tool-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 14px;
    color: #444;
}

/* 用户信息展示样式 */
.users-section {
    margin-bottom: 25px;
}

.users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    margin-right: 5px;
}

.user-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.user-link {
    text-decoration: none;
    color: inherit;
}

.user-link:hover {
    text-decoration: underline;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tool-logo {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .tool-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tool-details {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        justify-content: center;
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .tool-title {
        font-size: 20px;
    }
    
    .tool-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .tool-title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .tool-description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .users-list {
        justify-content: center;
        gap: 8px;
    }
}