/* 桌面端全局样式 - 中文简体 */

/* 桌面端响应式样式 */
@media (min-width: 769px) {

: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 (min-width: 769px) {
    body {
        font-family: var(--font-zh-cn);
        color: var(--color-text);
        background-color: var(--color-bg);
        margin: 0;
        display: grid;
        grid-template-columns: 300px 1fr;
        grid-template-areas: "sidebar main";
        min-height: 100vh;
    }
    
    /* 侧边栏样式 */
    .sidebar {
        grid-area: sidebar;
        position: sticky;
        top: 0;
        height: 100vh;
        background-color: var(--color-sidebar-bg);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 150px 20px 20px 20px;
        box-sizing: border-box;
        border-right: 1px solid #e0e0e0;
        overflow-y: auto;
    }
    
    /* 侧边栏导航部分样式 */
    .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: 24px;
        line-height: 1.5;
        display: block;
        padding: 10px 0;
        text-indent: 1em;
    }
    
    .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;
    }
    
    /* 社交媒体图标容器 */
    .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;
    }
    
    .social-icons a {
        width: 50px;
        height: 50px;
        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;
    }

    /* 主内容区域 */
    .main-content {
        grid-area: main;
        margin-left: 0;
        padding: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    /* 页脚备案信息 */
    .footer {
        margin-top: auto;
        margin-bottom: -40px;  /* 负margin向上压缩 */
        padding: 20px 20px 20px 20px;
        text-align: center;
        border-top: 1px solid #e0e0e0; 
    }
    .footer p {
    /* 字体大小：设置为12像素，让文字显得小巧不突兀 */
    font-size: 12px;

    /* 字体颜色：设置为柔和的灰色 */
    color: #666666;

    /* 行高：设置为1.5倍字体大小，保证行间距适中 */
    line-height: 0.5;

    /* 移除段落的默认上下外边距，防止与父元素footer的间距叠加 */
    margin: 0;
    /* 确保底部没有margin */
    margin-bottom: 0;
    /* 关键改动：让文字在其容器内居中对齐 */
    text-align: center;
    }

    /* 公安备案样式 - 桌面端同行显示 */
    .police-filing {
        display: inline;         /* 行内元素，与ICP备案同行显示 */
        margin-left: 10px;       /* 与ICP备案的间距 */
    }

    .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字体大小 */
        line-height: inherit;    /* 继承父元素的行高 */
    }

    .police-filing a:hover {
        color: #333333;
        text-decoration: underline;
    }
    
    /* 微信弹窗样式 */
    .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;
    }
    
    .modal-content img {
        max-width: 400px;    /* 调整到你想要的大小 */
        height: auto;
        object-fit: contain; /* 保持比例 */
    }
    
    .close {
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

}
 } /* 结束桌面端媒体查询 */