/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    color: #1e88e5;
}

.time {
    font-size: 14px;
    color: #666;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    background-color: #ff9800;
    border: none;
    color: white;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #e68a00;
}

/* 工具区域样式 */
.tools-section, .ai-section, .utilities-section, .images-section {
    padding: 10px 0;
}

h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: #1e88e5;
}

.tools-grid, .ai-grid, .utilities-grid, .images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.tool-card, .ai-card, .utility-card, .image-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.tool-card:hover, .ai-card:hover, .utility-card:hover, .image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tool-card i, .ai-card i, .utility-card i, .image-card i {
    font-size: 36px;
    color: #1e88e5;
    margin-bottom: 15px;
}

.tool-card h4, .ai-card h4, .utility-card h4, .image-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

/* 搜索引擎区域样式 */
.search-engines {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.search-engine {
    background-color: #fff;
    border-radius: 6px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-engine:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-engine i {
    font-size: 18px;
    margin-right: 10px;
    color: #555;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo h1 {
        margin-bottom: 15px;
    }

    .menu li {
        margin: 0 15px;
    }

    .time {
        margin-top: 15px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .tools-grid, .ai-grid, .utilities-grid, .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box input {
        padding: 12px 15px;
    }

    .tools-grid, .ai-grid, .utilities-grid, .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
