/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 导航样式 */
nav {
    background-color: #34495e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin-right: 5px;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb li:after {
    content: "/";
    margin-left: 5px;
    color: #6c757d;
}

.breadcrumb li:last-child:after {
    content: "";
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #495057;
    font-weight: 500;
}

/* 页面内导航样式 */
.page-nav {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.page-nav h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #495057;
}

.page-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.page-nav li {
    margin-right: 15px;
    margin-bottom: 5px;
}

.page-nav a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 3px;
    background-color: #e9ecef;
    display: inline-block;
    transition: all 0.2s ease;
}

.page-nav a:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

/* 工具区域样式 */
.tool-section {
    margin-bottom: 30px;
    padding-top: 15px;
}

.tool-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* 主要内容区域 */
main {
    padding: 30px 0;
}

.tool-category {
    margin-bottom: 40px;
}

.tool-category h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 常用工具样式 */
.frequent-tools {
    margin-bottom: 40px;
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d1e6fa;
}

.frequent-tools h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.frequent-tools .tool-card {
    background-color: #ffffff;
    border-left: 4px solid #3498db;
}

.frequent-tools .tool-card p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tool-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.tool-card h3 a {
    color: #2980b9;
    text-decoration: none;
}

.tool-card h3 a:hover {
    color: #c0392b;
}

.tool-card p {
    color: #666;
    font-size: 0.95rem;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}