/* 全局样式重置 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5fcfc;
    color: #333;
    line-height: 1.6;
}

/* 头部组件样式 */
.header-component {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    color: white;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #428900;
}

/* 为main内容添加顶部间距，避免被固定头部遮挡 */
.main-content {
    margin-top: 230px; /* 根据头部高度230px + 10px间距 */
    padding-top: 20px;
}


.header-background {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: url(../imags/heade.png) center/cover no-repeat;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
}

/* 标题样式 */
.header-title {
    text-align: center;
    margin-bottom: 20px;
}

.title-main {
    font-size: 32px;
    font-weight: bold;
    color: #d32f2f; /* 红色标题 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.title-sub {
    font-size: 14px;
    color: white;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.desktop-version {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.subtitle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.subtitle span {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header-icons {
    position: absolute;
    top: 10px;
    right: 10px;
}

.icon-container {
    width: 122px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 20px;
    border-radius: 30px;
    background: linear-gradient(-90.78deg, #8fb95b 0%, #8fb95b00 100%);
}
.header-pc {
    width: 58px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #428900;
    color: #ffffff;
    font-family: PingFang SC;
    font-weight: medium;
    font-size: 14px;
    line-height: normal;
    letter-spacing: -0.3px;
    text-align: center;
    position: absolute;
    left: 10px;
    top: 10px;
}
.header-icons img {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* 添加边框用于调试 */
}

.search-toggle-icon {
    transition: all 0.3s ease;
}
.header-icons img:nth-child(1) {
    margin-right: 10px;
}

.header-icons i:hover {
    transform: scale(1.1);
}

.header-icons img:hover {
    transform: scale(1.1);
}

/* 为搜索图标添加特殊样式 */
.header-icons img[alt="搜索"] {
}

.header-icons img[alt="其他"] {
    background-color: rgba(0, 255, 0, 0.1); /* 添加淡绿色背景 */
}
.menus {
    background: #428900;
    padding: 15px 20px;
    border: 1px solid #428900;
}
/* 搜索栏样式 */
.search-bar-container {
    padding: 15px 20px;
    display: none; /* 默认隐藏 */
    overflow: hidden;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-bar.focused {
    transform: scale(1.02);
}

.search-input {
    flex: 1;
    padding: 12px 50px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #428900;
    box-shadow: 0 0 0 2px rgba(66, 137, 0, 0.2);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #428900;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: #2d5f00;
}

.search-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* 使图标变白 */
}

.nav-bar {
    padding: 10px 0;
}

.nav-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 5px;
}
.nav-row a {
    display: inline-block;
    height: 42px;
    text-align: center;
}
.nav-row:last-child {
    margin-bottom: 0;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    color: #ffffff;
    font-family: PingFang SC;
    font-weight: regular;
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.3px;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    /* color: #fff;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}



/* 右侧滑出菜单样式 */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-menu-overlay.show {
    opacity: 1;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #428900;
    color: white;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.side-menu-overlay.show .side-menu {
    right: 0;
}

.side-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.close-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 0.8;
}

.close-arrow {
    font-size: 20px;
    font-weight: bold;
}

.close-text {
    font-size: 14px;
}

.side-menu-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.menu-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item.expandable {
    cursor: pointer;
}

.menu-text {
    font-size: 16px;
    font-weight: 400;
    color: white;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.menu-item .qr-code-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
    text-align: center;
}

.menu-item.expanded .qr-code-container {
    max-height: 120px;
    margin-top: 15px;
}

.qr-code {
    text-align: center;
    display: inline-block;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}
.qr-placeholder img{
    width: 100%;
    height: 100%;
}

