/* 全局样式重置 */
* {
    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: #f5f7fa;
}

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

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

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

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

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

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #4a6cf7;
}

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

/* 居中的slogan */
.slogan {
    text-align: center;
    margin-bottom: 20px;
}

.slogan h2 {
    font-size: 36px;
    font-weight: 700;
    color: #003366;
    line-height: 1.3;
}

/* 搜索框 */
.search {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-form button {
    padding: 18px 35px;
    background-color: #003366;
    color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #004080;
}

/* 搜索框下方的搜索按钮 */
.search-buttons {
    max-width: 800px;
    margin: 15px auto 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 手机端搜索按钮样式 */
@media (max-width: 768px) {
    .search-buttons {
        max-width: none;
        margin: 15px 10px 0;
        gap: 8px;
    }
}

.search-btn {
    padding: 8px 16px;
    background-color: #f8f9ff;
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    color: #003366;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.search-btn:hover {
    background-color: #003366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* 搜索框上方的小文字链 */
.search-links {
    max-width: 800px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.search-links a:hover {
    color: #4a6cf7;
}

/* 四个关键词网址 */
.keywords {
    margin-bottom: 40px;
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.keyword-item {
    display: block;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.keyword-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #4a6cf7;
}

/* 六个大导航按钮 */
.nav-buttons {
    margin-bottom: 50px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background-color: #f8f9ff;
}

.button-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.button-text {
    font-size: 18px;
    font-weight: 600;
}

/* 网址导航区 */
.website-nav {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.website-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.website-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f9ff;
}

.website-logo {
    font-size: 32px;
    margin-right: 20px;
}

.website-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3748;
}

.website-info p {
    font-size: 14px;
    color: #718096;
}

/* 分类网址区 */
.category-nav {
    margin-bottom: 50px;
    background-color: #fff;
    padding: 15px 0 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.category-group-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 25px 20px;
    padding-bottom: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 350px);
    justify-content: flex-start;
    gap: 30px;
    margin: 0 20px;
}

.category-item {
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9ff;
    scroll-margin-top: 90px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-links a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    width: 98px;
    margin: 0 auto;
    word-break: break-word;
}

.category-links a:hover {
    color: #4a6cf7;
    transform: scale(1.05);
    padding-left: 0;
}

/* 左侧极窄导航 */
.left-nav {
    position: fixed;
    left: 0;
    top: 90px;
    width: 60px;
    background-color: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.left-nav ul {
    list-style: none;
    padding: 2px 0;
}

.left-nav li {
    margin-bottom: 1px;
}

.left-nav a {
    display: block;
    padding: 2px 0;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-nav a:hover {
    color: #4a6cf7;
    background-color: #f8f9ff;
}

/* 页脚 */
.footer {
    background-color: #2d3748;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #a0aec0;
}

#contact-info {
    scroll-margin-top: 90px;
}

/* 二维码样式 */
.qrcode {
    text-align: center;
    margin-top: 20px;
}

.qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.qrcode p {
    font-size: 14px;
    color: #a0aec0;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .category-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 导航按钮 */
    .button-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 热门推荐 */
    .website-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 左侧导航隐藏 */
    .left-nav {
        display: none;
    }
    
    /* 基础样式调整 */
    .main {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* 头部导航 */
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav ul li {
        margin: 5px 10px;
    }

    .nav ul li a {
        font-size: 14px;
    }

    /* Slogan */
    .slogan h2 {
        font-size: 24px;
        padding: 0 10px;
    }

    /* 搜索框 */
    .search {
        margin-bottom: 30px;
    }
    
    .search-links {
        max-width: none;
        margin: 0 10px 15px;
        gap: 15px;
    }
    
    .search-links a {
        font-size: 13px;
    }
    
    .search-form {
        flex-direction: row;
        border-radius: 12px;
        margin: 0 10px;
        max-width: none;
    }
    
    .search-form input {
        flex: 1;
        padding: 12px 18px;
        border-radius: 12px 0 0 12px;
        font-size: 14px;
    }
    
    .search-form button {
        padding: 12px 22px;
        border-radius: 0 12px 12px 0;
        font-size: 14px;
        min-width: 80px;
        background-color: #003366;
        color: #fff;
    }
    
    .search-form button:hover {
        background-color: #004080;
    }

    /* 关键词 */
    .keywords {
        margin-bottom: 30px;
    }
    
    .keyword-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .keyword-item {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* 导航按钮 */
    .nav-buttons {
        margin-bottom: 30px;
    }
    
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .nav-button {
        padding: 20px 15px;
    }
    
    .button-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .button-text {
        font-size: 16px;
    }

    /* 网址导航区 */
    .website-nav {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 20px;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .website-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .website-item {
        padding: 15px;
    }
    
    .website-logo {
        font-size: 28px;
        margin-right: 15px;
    }
    
    .website-info h4 {
        font-size: 16px;
    }
    
    .website-info p {
        font-size: 13px;
    }
    
    /* 分类导航区 */
    .category-nav {
        margin-bottom: 30px;
        padding: 20px 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .category-item {
        padding: 15px;
    }
    
    .category-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .category-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .category-links a {
        padding: 6px 0;
        font-size: 13px;
        width: 85px;
        margin: 0 auto;
        word-break: break-word;
    }
    
    /* 页脚 */
    .footer {
        padding: 20px 0;
    }
    
    .footer p {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .slogan h2 {
        font-size: 20px;
    }

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

    .button-grid {
        grid-template-columns: 1fr;
    }
    
    /* 热门推荐 */
    .website-grid {
        grid-template-columns: 1fr;
    }

    .nav ul li {
        margin: 5px 8px;
    }

    .nav ul li a {
        font-size: 13px;
    }
    
    .category-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 搜索框 */
    .search-form input {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .search-form button {
        padding: 10px 18px;
        font-size: 13px;
        min-width: 70px;
        background-color: #003366;
        color: #fff;
    }
    
    .search-form button:hover {
        background-color: #004080;
    }
    
    /* 搜索链接 */
    .search-links {
        gap: 12px;
    }
    
    .search-links a {
        font-size: 12px;
    }
}