﻿/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    border-radius: 0 !important;
}
body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

    a:hover {
        color: #4e8cbb;
    }

ul, li {
    list-style: none;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 auto;
}

/* 全局变量 */
:root {
    --primary-color: #4e8cbb;
    --primary-dark: #3a7cb2;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f5f5f5;
    --border-color: #e6d8b6;
    --hover-color: #b89b5b;
    --section-bg: #f9f6ec;
    --card-shadow: 0 2px 12px rgba(180,160,100,0.10);
}

/* 头部样式 */
.g-hd {
    position: relative;
    z-index: 100;
    background: linear-gradient(to bottom, #f9f6ec, #f5f2e9);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* 搜索区域样式 */
.search {
    width: 100%;
    max-width: 2400px;
    margin: 0 auto;
}

.search-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    margin-right: 20px;
}

    .site-logo img {
        height: 100px;
        width: 300px;
        vertical-align: middle;
        object-fit: contain;
        transition: transform 0.3s;
    }

        .site-logo img:hover {
            transform: scale(1.05);
        }

/* 搜索类型选择下拉框 */
.search-type {
    flex-shrink: 0;
    margin-right: 15px;
}

    .search-type select {
        height: 40px;
        padding: 0 15px;
        border: 2px solid var(--border-color);
        border-radius: 20px;
        background: #fff;
        font-size: 14px;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.3s;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 10px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 40px;
        min-width: 100px;
    }

        .search-type select:focus {
            border-color: var(--hover-color);
            box-shadow: 0 0 8px rgba(184, 155, 91, 0.2);
            outline: none;
        }

        .search-type select:hover {
            border-color: var(--hover-color);
        }

.search-form {
    flex: 0 1 auto;
    max-width: 630px;
    margin: 0;
    width: 100%;
}

.search_box {
    display: flex;
    gap: 10px;
    max-width: 630px;
    margin: 0;
    width: 100%;
}

    .search_box .txt {
        flex: 1;
        height: 40px;
        padding: 0 35px;
        border: 2px solid var(--border-color);
        border-radius: 20px;
        background: #fff;
        font-size: 14px;
        color: var(--text-color);
        transition: all 0.3s;
        min-width: 200px;
    }

        .search_box .txt:focus {
            border-color: var(--hover-color);
            box-shadow: 0 0 8px rgba(184, 155, 91, 0.2);
            outline: none;
        }

    .search_box .btn {
        height: 40px;
        padding: 0 25px;
        border: none;
        border-radius: 20px;
        background: linear-gradient(to right, #8b6b4a, #b89b5b);
        color: #fff;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s;
    }

        .search_box .btn:hover {
            background: linear-gradient(to right, #7c5c1e, #a88b4b);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(184, 155, 91, 0.3);
        }

/* 搜索类型选择 */
.search p {
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 2400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

    .search p input[type="radio"] {
        display: none;
    }

    .search p label {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding-left: 28px;
        font-size: 14px;
        color: var(--text-light);
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .search p label:before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            border: 2px solid var(--border-color);
            border-radius: 50%;
            background: #fff;
            transition: all 0.3s ease;
        }

        .search p label:after {
            content: '';
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%) scale(0);
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--hover-color);
            transition: all 0.3s ease;
        }

    .search p input[type="radio"]:checked + label {
        color: var(--hover-color);
    }

        .search p input[type="radio"]:checked + label:before {
            border-color: var(--hover-color);
        }

        .search p input[type="radio"]:checked + label:after {
            transform: translateY(-50%) scale(1);
        }

    .search p label:hover {
        color: var(--hover-color);
    }

        .search p label:hover:before {
            border-color: var(--hover-color);
        }

@media screen and (max-width: 768px) {
    .search-inner {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .site-logo {
        margin-right: 0;
    }

    .search-type {
        width: 100%;
        margin-right: 0;
    }

        .search-type select {
            width: 100%;
        }

    .search-form {
        width: 100%;
    }

    .search_box {
        width: 100%;
    }

        .search_box .txt {
            width: 100%;
        }

    .site-logo img {
        height: 60px;
        width: 200px;
    }

    .search p {
        margin-top: 10px;
    }
}

/* 桌面端导航样式 */
.m-nav {
    background: linear-gradient(to right, #f9f6ec, #f5f2e9);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 90;
}

.nav1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

    .nav1 ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
        text-align: center;
    }

    .nav1 li {
        position: relative;
        display: inline-block;
        margin: 0;
        padding: 0;
    }

        .nav1 li a {
            display: block;
            padding: 15px 20px;
            font-size: 16px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
            overflow: hidden;
            white-space: nowrap;
        }

            .nav1 li a::before {
                content: '';
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 0;
                height: 2px;
                background: var(--hover-color);
                transform: translateX(-50%);
                transition: width 0.3s ease;
                z-index: -1;
            }

            .nav1 li a:hover {
                color: var(--hover-color);
                transform: translateY(-2px);
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }

            .nav1 li a:hover::before {
                width: 80%;
            }

        .nav1 li:after {
            content: '';
            position: absolute;
            top: 50%;
            right: 0;
            height: 16px;
            width: 1px;
            background: var(--border-color);
            transform: translateY(-50%);
        }

        .nav1 li:last-child:after {
            display: none;
        }

        .nav1 li.active a,
        .nav1 li.active a:hover {
            color: var(--hover-color);
            font-weight: bold;
        }

/* 导航背景效果 */
.m-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: navShimmer 8s infinite linear;
    pointer-events: none;
}

@keyframes navShimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@media screen and (max-width: 1024px) {
    .nav1 li a {
        padding: 15px 15px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .m-nav {
        padding: 0;
    }

    .nav1 ul {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .nav1 li {
        flex-shrink: 0;
    }

    .nav1 li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .nav1 li a::after {
        display: none;
    }

    .nav1 li a:hover {
        transform: none;
    }
}

/* 页脚样式 */
.g-ft {
    background: linear-gradient(to bottom, #4e4e4e, #333);
    color: #fff;
    padding: 30px 0 20px;
}

.m-ftt {
    padding-bottom: 20px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

    .footer .panel {
        margin-bottom: 20px;
        flex: 1;
    }

    .footer .hd {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 15px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 8px;
    }

    .footer .body ul li {
        margin-bottom: 8px;
    }

    .footer .body a {
        color: #ccc;
    }

        .footer .body a:hover {
            color: #fff;
        }

    .footer .social address {
        color: #ccc;
    }

    .footer .flink a {
        color: #ccc;
        margin-right: 10px;
    }

        .footer .flink a:hover {
            color: #fff;
        }

.m-ftb {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

    .m-ftb p {
        color: #999;
    }

    .m-ftb a {
        color: #ccc;
    }

        .m-ftb a:hover {
            color: #fff;
        }

/* 网站公告样式 */
.website-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 234, 167, 0.3);
    position: relative;
    overflow: hidden;
}

.website-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: noticeShimmer 3s infinite;
}

@keyframes noticeShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.website-notice .notice-text {
    color: #856404;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* 移动端网站公告样式调整 */
@media (max-width: 768px) {
    .website-notice {
        padding: 10px 15px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .website-notice .notice-text {
        font-size: 13px;
    }
}

/* 新的移动端侧边栏菜单样式 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 60%;
    max-width: 220px;
    height: 100%;
    background-color: #f9f6ec;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 15px;
    background-color: #f5f2e9;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar-menu li a:hover {
    background-color: #f9f9f9;
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #8b6b4a;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 9997;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .m-nav {
        display: none;
    }
}

/* 自定义图标样式 */
.custom-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 工具栏图标 */
.custom-icon.up-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");
}

.custom-icon.down-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
}

.custom-icon.share {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E");
}

.custom-icon.copy {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E");
}

/* 分享图标 */
.custom-icon.wechat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.328.328 0 0 0 .168-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.856-2.563.193-5.038 2.311-6.494 2.041-1.42 4.666-1.42 6.707 0 2.118 1.456 3.167 3.93 2.311 6.494 2.118 1.456 3.167 3.93 2.311 6.494-1.291 3.872-5.258 6.494-9.382 6.494-.968 0-1.903-.14-2.837-.403a.864.864 0 0 0-.717.098l-1.903 1.114a.328.328 0 0 1-.168.054c-.16 0-.29-.132-.29-.295 0-.072-.029-.143-.048-.213l-.39-1.48a.59.59 0 0 0-.213-.665C1.17 13.733 0 11.742 0 9.53c0-4.054 3.891-7.342 8.691-7.342z'/%3E%3C/svg%3E");
}

.custom-icon.qq {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12.003 2c-5.523 0-10 4.477-10 10 0 4.991 3.657 9.128 8.438 9.879V14.89h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.989C18.343 21.129 22 16.99 22 12c0-5.523-4.477-10-10-10z'/%3E%3C/svg%3E");
}

.custom-icon.weibo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M10.098 20c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6-2.692 6-6 6zm0-10.5c-2.485 0-4.5 2.015-4.5 4.5s2.015 4.5 4.5 4.5 4.5-2.015 4.5-4.5-2.015-4.5-4.5-4.5zm7.5-1.5c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z'/%3E%3C/svg%3E");
}

/* 浮动工具栏样式 */
.float-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    width: 45px;
    overflow: hidden;
}

/* 面包屑导航 - 统一样式 */
.breadcrumb {
    padding: 8px 15px;
    background: var(--section-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
    margin-bottom: 5px;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: var(--text-lighter);
    font-size: 16px;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-light);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 6px 10px;
        margin-bottom: 5px;
        margin-top: 5px;
        font-size: 16px;
    }
    
    .breadcrumb li:not(:last-child)::after {
        margin: 0 5px;
        font-size: 14px;
    }
}