/* 基本重置和全局样式 */
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* 顶部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #1a73e8;
}

.logo i {
    margin-right: 8px;
}

.nav-menu a {
    margin-left: 25px;
    font-size: 16px;
    color: #5f6368;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #1a73e8;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a73e8;
}

/* 搜索区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.hero-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 分类容器 */
.category-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.category-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.category-title i {
    font-size: 22px;
    color: #1a73e8;
    margin-right: 12px;
    width: 30px;
    height: 30px;
    background-color: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title h2 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.category-title .category-desc {
    margin-left: 15px;
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.tool-item:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tool-item i {
    font-size: 16px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #888;
}

.tool-item:hover i {
    color: #1a73e8;
}

.tool-item span {
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 右侧快捷导航 */
.quick-nav {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
    padding: 10px 5px;
}

.quick-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.quick-nav .nav-item:hover {
    color: #1a73e8;
}

.quick-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 5px;
}

.quick-nav .nav-item span {
    font-size: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
} 