/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}
.banner{
    width: 100%;
    height: 80px;
}

/* 固定头部样式 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 5px;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.user-actions a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb {
    background: #f8f9fa;
    padding: 10px 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb span {
    color: #666;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
}

.nav-links {
    display: flex;
    margin-right: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    padding: 5px 10px;
    border-radius: 3px;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 20px;
    background-color: #f5f5f5;
    font-size: 14px;
}

/* 头部区域 */
.category-info {
    padding: 30px 20px 30px; /* 增加顶部内边距避免被header遮罩 */
    display: flex;
    align-items: center;
    background-color: #ffffff; /* 改为白色背景 */
    border: 1px solid #eee; /* 添加底部边框 */
    max-width: 1200px;
    margin: 0 auto;
}

.tool-icon {
    margin-right: 20px;
}

.header-content h1 {
    margin: 0 0 15px 0;
    color: #333; /* 改为黑色 */
    font-weight: bold; /* 加粗 */
    font-size: 24px; /* 增大字号 */
}

.header-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
}

/* 工具分类区域 */
.tools-section {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    margin: 0;
    color: #2ecc71;
}

.section-header a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

/* 工具卡片网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tool-card {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tool-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.tool-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.tool-card a {
    display: inline-block;
    padding: 6px 12px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.tool-card a:hover {
    background: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 160px; /* 增加头部高度 */
    }

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .main-nav, .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .search-box input {
        width: 150px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* 工具详情页样式 */
.tool-detail {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-header {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tool-header img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
}

.tool-info h1 {
    margin: 0 0 10px 0;
    color: #2ecc71;
}

.tool-meta {
    color: #666;
    margin-bottom: 10px;
}

.download-btn {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #27ae60;
}

.tool-content h2 {
    color: #2ecc71;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.tool-content ul, .tool-content ol {
    padding-left: 20px;
}

.tool-content li {
    margin-bottom: 5px;
}