/* 移动端全局样式 - 中文简体 */

:root {
    /* 背景色 */
    --color-bg: #f8f8f8;
    --color-sidebar-bg: #f9f9f9;
    
    /* 简体中文字体栈 */
    --font-zh-cn: "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
    
    /* 字体颜色 */
    --color-text: #000000;
}

/* 移动端样式 (宽度小于等于768px) */
@media (max-width: 768px) {
    body {
        font-family: var(--font-zh-cn);
        color: var(--color-text);
        background-color: var(--color-bg);
        margin: 0;
    }
    
    /* 移动端页眉 */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: var(--color-sidebar-bg);
        display: flex;
        align-items: center;
        padding: 0 20px;
        box-sizing: border-box;
        z-index: 1000;
        /* 关键改动：在底部添加一条浅灰色实线 */
        border-bottom: 1px solid #e0e0e0;
         }
    
    .hamburger-menu {
        width: 24px;
        height: 24px;
        cursor: pointer;
    }
    
    .logo-text {
        flex: 1;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
    }
    
    /* 主内容区域 */
    .main-content {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
    }
    
    /* 移动端侧边栏 */
    .sidebar {
        position: fixed;
        left: -300px;
        top: 60px;
        width: 300px;
        height: 100vh;
        background-color: var(--color-sidebar-bg);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px;
        box-sizing: border-box;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .sidebar.active {
        left: 0;
        border-right: 1px solid #e0e0e0; 
    }
    
    /* 侧边栏导航部分样式 */
    .sidebar .nav-menu {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar .nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        font-family: var(--font-zh-cn);
    }
    
    .sidebar .nav-links li {
        margin-bottom: 15px;
    }
    
    .sidebar .nav-links a {
        color: #000000;
        text-decoration: none;
        font-size: 20px;
        line-height: 1.5;
        display: block;
        padding: 10px 0;
    }
    
    .sidebar .nav-links a:hover {
        color: #666666;
    }
    
    /* 子菜单样式 */
    .sidebar .nav-links .submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-top: 10px;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    /* 展开状态的子菜单 */
    .sidebar .nav-links .has-submenu.active .submenu {
        max-height: 200px;
    }
    
    /* 箭头图标样式 */
    .sidebar .nav-links .arrow-icon {
        display: inline-block;
        margin-left: 10px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #000000;
        transition: transform 0.3s ease;
        vertical-align: middle;
    }
    
    /* 展开状态的箭头 */
    .sidebar .nav-links .has-submenu.active .arrow-icon {
        transform: rotate(180deg);
    }
    
    /* 菜单项容器样式 */
    .sidebar .nav-links .menu-item-with-arrow {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }
    
    .sidebar .nav-links .submenu li {
        margin-bottom: 10px;
    }
    
    .sidebar .nav-links .submenu a {
        font-size: 18px;
        color: #000000;
        padding: 5px 0;
    }
    
    .sidebar .nav-links .submenu a:hover {
        color: #000000;
    }
    
    /* 确保子菜单项没有任何列表标记 */
    .sidebar .nav-links .submenu li::before {
        content: none;
    }
    
    .sidebar .nav-links .submenu li {
        list-style-type: none;
    }

    /* 微信二维码弹窗样式 */
    #wechat-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }

    #wechat-modal .modal-content {
        background-color: #ffffff;
        padding: 30px;
        border-radius: 8px;
        text-align: center;
        width: 240px;
    }

    #wechat-modal .close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        cursor: pointer;
    }

    #wechat-modal img {
        width: 240px;
        height: 320px;
    }
    
/* 页脚备案信息样式 */
    .footer {
    border-top: 1px solid #e0e0e0;  /* 顶部添加一条浅灰色实线 */
    padding-top: 20px;  /* 设置顶部间距，将备案信息与上方内容隔开 */ 
    padding-bottom: 20px; /* 设置底部间距，将备案信息与浏览器底部隔开 */
    text-align: center; /* 文本水平居中 */
    min-height: auto; /* 让高度自适应内容 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 0 0;
    }

    .footer p {
    
    font-size: 12px; /* 字体大小：设置为12像素，让文字显得小巧不突兀 */
    color: #666666; /* 字体颜色：设置为柔和的灰色 */
    line-height: 1.5; /* 行高：设置为1.5倍字体大小，保证行间距适中 */
    margin-left: 0; /* 移除段落的默认上下外边距，防止与父元素footer的间距叠加 */
    margin-right: 0;
    margin-top: 0; /* 确保顶部没有margin */
    margin-bottom: 0; /* 确保底部没有margin */
    text-align: center; /* 关键改动：让文字在其容器内居中对齐 */
    }

    /* 公安备案样式 - 继承现有页脚样式 */
    .police-filing {
        display: block;
        margin-left: 5px;
    }

    .police-icon {
        width: 12px;
        height: 12px;
        vertical-align: middle;
        margin-right: 3px;
    }

    .police-filing a {
        /* 继承页脚的字体样式，只设置链接特有属性 */
        color: inherit;           /* 继承父元素的#666666颜色 */
        text-decoration: none;
        font-size: inherit;       /* 继承父元素的12px字体大小 */
    }

    .police-filing a:hover {
        color: #333333;
        text-decoration: underline;
    }
    
    /* 社交媒体图标容器 */
    .social-icons {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin: 20px 0 30px;
        flex-wrap: wrap;
        max-width: auto;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 80px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        border: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        cursor: pointer;
        flex-basis: calc(33.333% - 10px);
    }
    
    .social-icons img,
    .social-icons svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* 微信弹窗样式 */
    .modal {
        position: fixed;
        z-index: 1001;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
    }
    
    .modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        max-width: 90%;
    }
    
    .modal-content img {
        width: 450px;
        height: 600px;
    }
    
    .close {
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
    }
}