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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

/* Header 样式 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.search-section {
    flex: 1;
    max-width: 600px;
}

.search-engines {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.engine-btn {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.engine-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.engine-btn.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.search-box {
    position: relative;
}

.search-box form {
    display: flex;
    gap: 8px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.search-box input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-box button {
    padding: 12px 24px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-box button:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.contact-section {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: #f0f7ff;
    color: #1a73e8;
}

.contact-item i {
    font-size: 20px;
}

/* 主导航菜单 */
.main-nav {
    background: #1a73e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 4px 4px 0 0;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item i {
    font-size: 16px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
    padding: 8px 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f0f7ff;
    color: #1a73e8;
}

.dropdown-item i {
    font-size: 16px;
    color: #1a73e8;
}

/* Footer 样式 */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    font-size: 14px;
    display: block;
    padding: 6px 0;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.footer-links a:hover {
    color: #fff;
    border-left-color: #1a73e8;
    padding-left: 18px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(26, 115, 232, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 18px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

.contact-value {
    font-size: 14px;
    color: #ecf0f1;
    font-weight: 400;
}

.contact-value.empty {
    color: #7f8c8d;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    font-size: 18px;
    transition: all 0.3s;
}

.social-link:hover {
    background: #1a73e8;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: #95a5a6;
    font-size: 13px;
    margin-bottom: 4px;
}

.icp-info a {
    color: #95a5a6;
    font-size: 13px;
    transition: all 0.3s;
}

.icp-info a:hover {
    color: #fff;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

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

.back-to-top:hover {
    background: #1557b0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* 主内容区域 */
.main-content {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 通用卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 网站卡片 */
.site-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: block;
    border: 1px solid #f0f0f0;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #1a73e8;
}

.site-card .site-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin: 0 auto 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-card .site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.site-card .site-icon i {
    font-size: 28px;
    color: #1a73e8;
}

.site-card .site-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-card .site-company {
    font-size: 12px;
    color: #1a73e8;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-card .site-business {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-card .site-region {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.site-card .site-desc {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 网格布局 */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* 分类区块 */
.category-section {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.category-header i {
    font-size: 24px;
    color: #1a73e8;
}

.category-header h3 {
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

/* 热门分类快速入口 */
.hot-categories {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hot-categories h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: #333;
}

.hot-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.hot-cat-item {
    background: #f8f9fa;
    padding: 24px 16px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.hot-cat-item:hover {
    background: #fff;
    border-color: #1a73e8;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.15);
}

.hot-cat-item i {
    font-size: 32px;
    color: #1a73e8;
    margin-bottom: 12px;
    display: block;
}

.hot-cat-item span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 推荐区域 */
.featured-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.tab:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.tab.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

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

    .search-section {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .contact-section {
        order: 2;
    }
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 11px;
    }

    .header-container {
        padding: 15px;
    }

    .search-engines {
        flex-wrap: wrap;
        gap: 6px;
    }

    .engine-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .search-box input {
        padding: 10px 14px;
    }

    .search-box button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .contact-section {
        gap: 8px;
    }

    .contact-item {
        padding: 6px 8px;
        font-size: 11px;
    }

    .contact-item i {
        font-size: 16px;
    }

    .nav-menu {
        gap: 2px;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hot-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }

    .hot-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}
