/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: #1a365d;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-brand span {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #3182ce;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #3182ce 0%, #1a365d 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.search-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 15px 30px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #c53030;
}

/* 分类展示区 */
.categories-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1a365d;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.category-card p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.category-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.category-link:hover {
    color: #1a365d;
}

/* 热门推荐区 */
.featured-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #e53e3e;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.featured-card p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.featured-tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    background: #e2e8f0;
    color: #4a5568;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.featured-link {
    display: inline-block;
    background: #3182ce;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.featured-link:hover {
    background: #1a365d;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f7fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #3182ce;
    text-decoration: none;
}

.breadcrumb span {
    color: #718096;
}

/* 页面标题 */
.page-header {
    background: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.page-header h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #718096;
}

/* 筛选标签 */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-tab.active,
.filter-tab:hover {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* 平台和工具卡片 */
.platforms-section,
.tools-section {
    padding: 3rem 0;
}

.platforms-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.platform-card,
.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.platform-card:hover,
.tool-card:hover {
    transform: translateY(-5px);
}

.platform-logo,
.tool-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.platform-card h3,
.tool-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a365d;
    text-align: center;
}

.platform-desc,
.tool-desc {
    color: #718096;
    margin-bottom: 1.5rem;
    text-align: center;
}

.platform-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-type,
.platform-region {
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.platform-features,
.tool-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: #bee3f8;
    color: #1a365d;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.platform-link,
.tool-link {
    display: block;
    text-align: center;
    background: #3182ce;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.platform-link:hover,
.tool-link:hover {
    background: #1a365d;
}

/* 工具导航 */
.tools-nav-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.tools-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-nav-link {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s;
}

.tool-nav-link.active,
.tool-nav-link:hover {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* 分页控件 */
.pagination-section {
    padding: 2rem 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 0.5rem;
}

.page-btn,
.page-next {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn.active,
.page-btn:hover,
.page-next:hover {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* 关于页面样式 */
.about-section {
    padding: 3rem 0;
    background: white;
}

.about-text h3 {
    color: #1a365d;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.about-text ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-item h4 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* 联系页面样式 */
.contact-section {
    padding: 3rem 0;
    background: #f7fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h4,
.contact-form h4 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #3182ce;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #1a365d;
}

/* 友情链接 */
.links-section {
    padding: 3rem 0;
    background: white;
}

.links-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.friend-link {
    padding: 10px 20px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s;
}

.friend-link:hover {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* 返回主站区域 */
.main-site-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #3182ce 0%, #1a365d 100%);
    color: white;
    text-align: center;
}

.main-site-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.main-site-btn {
    display: inline-block;
    background: white;
    color: #3182ce;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.main-site-btn:hover {
    transform: translateY(-2px);
}

/* 底部信息栏 */
.footer {
    background: #1a365d;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.main-site-link {
    display: inline-block;
    background: #3182ce;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a365d;
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .search-content h2 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .categories-grid,
    .featured-grid,
    .platforms-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .filter-tabs,
    .tools-nav {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 15px;
    }

    .search-section,
    .categories-section,
    .featured-section {
        padding: 2rem 0;
    }

    .page-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .search-content h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-card,
    .featured-card,
    .platform-card,
    .tool-card {
        padding: 1.5rem;
    }
}