* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.top-nav {
    height: 60px;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
}

.top-nav-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    color: #000000;
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
    z-index: 20;
}

.top-logo {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
}

.top-logo i {
    margin-right: 8px;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav-item {
    position: relative;
    cursor: pointer;
}

.top-nav-item .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ff0000;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主内容区容器 */
.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 侧边导航栏 - 移动端默认隐藏 */
.sidebar {
    width: 220px;
    background-color: #ffffff;
    color: #000000;
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    top: 60px;
    left: 0;
    z-index: 5;
    transform: translateX(-100%); /* 默认隐藏 */
}

.sidebar.show {
    transform: translateX(0); /* 显示时滑入 */
}

.sidebar-menu {
    padding-top: 20px;
}

.sidebar-item {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #000000;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: #ffffff;
    color: #ff0000;
}

.sidebar-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-text {
    margin-left: 15px;
}

.sidebar-section {
    padding: 10px 20px 5px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 遮罩层 - 移动端侧边栏显示时出现 */
.overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
    display: none;
}

.overlay.show {
    display: block;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 20px;
    background-color: #f5f5f5;
    overflow-y: auto;
    height: 100%;
    margin-left: 0; /* 移动端默认无偏移 */
    transition: margin-left 0.3s ease;
}

/* 桌面端样式 */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0); /* 桌面端默认显示 */
        position: relative;
        top: 0;
        height: 100%;
    }

    .main-content {
        margin-left: 0; /* 桌面端主内容区偏移 */
    }

    .overlay {
        display: none !important; /* 桌面端不显示遮罩 */
    }
}


/* 标题组件容器 */
.page-title-component {
    padding: 20px 15px;
    text-align: center; /* 居中对齐，适配大多数页面 */
    margin: 0 auto;
    max-width: 600px; /* 限制最大宽度，避免在宽屏上过散 */
}

/* 主标题样式 */
.main-title {
    margin: 0 0 8px 0; /* 仅底部留白 */
    font-size: 20px; /* 基础大小，可通过JS调整 */
    font-weight: 600;
    color: #333333; /* 主标题深色，突出显示 */
    line-height: 1.2; /* 紧凑行高，避免换行时过高 */
}

/* 副标题样式（可选） */
.sub-title {
    margin: 0;
    font-size: 14px; /* 比主标题小2-4px */
    color: #666666; /* 次要文字色，不抢主标题风头 */
    line-height: 1.5; /* 宽松行高，提升可读性 */
}

/* 不同层级标题的扩展样式（通过添加类名切换） */
.main-title.large {
    font-size: 24px; /* 大标题，如首页 */
}

.main-title.small {
    font-size: 18px; /* 小标题，如弹窗标题 */
}


.jump-card {
    max-width: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jump-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jump-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.jump-desc {
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.jump-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ff0000;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.jump-btn:hover {
    background-color: #e60000;
}

/* 多组件布局示例 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}


/* 底部容器 */
.site-footer {
    background-color: #f5f5f5;
    padding: 25px 15px;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
}

/* 链接区域 */
.footer-links {
    margin-bottom: 15px;
}

/* 链接样式 */
.footer-link {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #FF4D4F; /* 红色主题hover效果 */
    text-decoration: underline;
}

/* 链接分隔符 */
.link-divider {
    color: #ccc;
}

/* 备案信息区域 */
.record-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 公安备案链接 */
.police-record {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    justify-content: center;
}

/* 公安备案图标 */
.police-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 工信部备案链接 */
.miit-record {
    color: #666;
    text-decoration: none;
}

/* 备案链接hover效果 */
.police-record:hover,
.miit-record:hover {
    color: #FF4D4F;
    text-decoration: underline;
}

/* 版权信息 */
.copyright {
    color: #999;
    line-height: 1.5;
}

/* 响应式调整（小屏设备） */
@media (max-width: 375px) {
    .record-info {
        flex-direction: column;
        gap: 8px;
    }

    .footer-link {
        margin: 0 5px;
    }
}

/* 商标区域 */
.footer-brand {
    margin-bottom: 15px; /* 与下方链接保持间距 */
    text-align: center; /* 居中显示 */
}

/* 商标图片样式 */
.footer-logo {
    height: 36px; /* 固定高度，宽度自适应 */
    max-width: 180px; /* 限制最大宽度，避免过大 */
    object-fit: contain; /* 保持图片比例，避免拉伸 */
    opacity: 0.85; /* 略降低透明度，符合底部辅助元素视觉权重 */
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 1; /*  hover时恢复完全不透明 */
}

/* 响应式调整：小屏设备商标略缩小 */
@media (max-width: 375px) {
    .footer-logo {
        height: 30px;
    }
}