/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部区域样式 */
.left_head{
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
.left_head a {width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;}
.left_head img{
    width: 90%;
    max-width: 90%;
    max-height: 40px;
    transform: translate(0, 0);
}        

.header-wrapper {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area h1 {
    font-size: 24px;
    font-weight: 600;
}

.search-area {
    flex: 0 0 400px;
    position: relative;
}

.search-input-field {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.search-input-field:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* 全局平滑滚动和滚动偏移 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px; /* 头部和导航栏总高度 */
}

/* 导航栏样式 */
.navigation-wrapper {
    background-color: white;
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation-content {
    display: flex;
    padding: 0 20px;
}

.mobile-logo {
    display: none;
}

.nav-link {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #5f6368;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

/* 主内容区域 */
.main-content {
    display: flex;
    gap: 20px;
    padding-top: 120px; /* 为顶部导航栏留出空间 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧滑动菜单栏样式 */
.left_panel {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100vh; /* 使用视口高度 */
    position: fixed;
    width: 200px;
    overflow: hidden; /* 隐藏溢出内容 */
    top: 0; /* 从顶部开始 */
}
.left_head{
    box-shadow:none;
}
.right_panel{
    margin-left: 200px;
}
.right_boby{
    padding: 0 4px;
}

.scroll-menu-container {
    height: calc(100vh - 60px); /* 减去头部高度 */
    overflow: hidden;
}

.scroll-menu-wrapper {
    height: 100%;
    overflow-y: auto; /* 允许垂直滚动 */
    overflow-x: hidden; /* 隐藏水平滚动 */
    padding: 15px 0;
}

/* 隐藏滚动条 */
.scroll-menu-wrapper::-webkit-scrollbar {
    width: 0px; /* 隐藏滚动条 */
    background: transparent;
}

.scroll-menu-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-menu-wrapper::-webkit-scrollbar-thumb {
    background: transparent;
}

.scroll-menu-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: #5f6368;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1a73e8;
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #1a73e8;
    color: #1a73e8;
    font-weight: 600;
    box-shadow: 2px 2px 8px rgba(26, 115, 232, 0.2);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(26, 115, 232, 0.1);
    transition: width 0.3s ease;
    z-index: 0;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item span {
    position: relative;
    z-index: 1;
}

/* 分类区块样式 */
.category-block {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 25px 0 25px 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-block:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
}

.category-tags {
    display: flex;
    gap: 12px;
    margin-left: 50px;
}

.tag-element {
    background: #f1f3f4;
    color: #5f6368;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tag-element:hover {
    background: #e8eaed;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-element.active {
    background: #1a73e8;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}

.tag-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
}

.tag-element:hover::before {
    width: 100%;
}

.more-action-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    right: 25px;
    position: absolute;
}

.more-action-link:hover {
    text-decoration: underline;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    padding: 22px;
}

.content-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.card-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
}

.card-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a73e8;
    font-size: 16px;
}

.card-description {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
}


/* 底部区域 */
.footer-wrapper {
    background: #ffffff;
    color: #000000;
    padding: 35px 0;
    margin-top: 45px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 25px;
}

.footer-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    text-decoration: underline;
}

.copyright-info {
    text-align: center;
    font-size: 13px;
    padding-top: 22px;
    border-top: 1px solid #3c4043;
}
.copyright-info a{
    color: #3c4043;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 18px;
    }

    .search-area {
        flex: 0 0 auto;
        width: 100%;
    }

    .navigation-content {
        overflow-x: auto;
        padding: 0 20px 0px 10px;
        display: flex;
        align-items: center;
    }
    
    .mobile-logo {
        height: 40px;
        width: auto;
        margin-right: 10px;
        display: block;
    }
    .category-tags{
        margin-left: 7px;
    }
    .nav-link {
        white-space: nowrap;
        padding: 14px 10px;
    }
    .category-header{
        padding: 5px;
    }
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 5px;
    }
    .content-card{
        padding: 5px;
    }
    .card-image{
        margin: auto 0;
    }
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-tags {
        flex-wrap: wrap;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    /* 菜单按钮样式 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 12px 0 12px auto;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: #1a73e8;
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    /* 左侧菜单在移动端的样式 */
    .left_panel {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        position: fixed;
        height: 100vh; /* 移动端也使用视口高度 */
        top: 0; /* 从顶部开始 */
    }

    .left_panel.active {
        transform: translateX(0);
    }

    /* 遮罩层样式 */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .overlay.active {
        display: block;
    }

    /* 右侧面板在移动端的样式 */
    .right_panel {
        margin-left: 0;
    }
    .right_boby{
        padding: 0;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
