/* 基础样式重置 */
:root {
    --primary: #0071e3;
    --secondary: #86868b;
    --light: #f5f5f7;
    --dark: #1d1d1f;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
}

/* 新增Header导航样式 */
.header-nav {
    display: flex;
    gap: 20px;
    margin-right: auto;
    margin-left: 30px;
}

.header-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--primary);
}

/* 优化后的小卡片样式 */
.small-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.small-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.small-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-card-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
}

.small-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.star-rating {
    color: var(--warning);
    margin-right: 4px;
}

/* 详情页样式 */
.tool-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.tool-logo-container {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tool-logo-container img {
    max-width: 60px;
    max-height: 60px;
}

.tool-meta {
    flex: 1;
    min-width: 200px;
}

.tool-rating {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.stars {
    display: flex;
    margin-right: 8px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: var(--warning);
}

/* Footer样式 */
footer {
    background: var(--light);
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content nav {
    display: flex;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-logo-container {
        margin: 0 auto;
    }
}
