*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
body{font-family:"PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;font-size:16px;line-height:1.8;color:#333;background:#e8e8e8;-webkit-text-size-adjust:100%;}

/* ===== 电脑端限制最大640px，居中显示 ===== */
.mobile-wrapper{
	max-width:640px;
	margin:0 auto;
	background:#fff;
	min-height:100vh;
	box-shadow:0 0 10px rgba(0,0,0,0.1);
}

.m-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a3a5c;
    padding: 10px 15px;
    height: 44px;
    line-height: 24px;
}
.m-header a,
.m-header span,
.m-header em{
    color:#fff;
    font-size:14px;
    text-decoration:none;
}
.m-header span{
    margin:0 4px;
    color:rgba(255,255,255,0.6);
}
.m-header em{
    font-style:normal;
    color:rgba(255,255,255,0.8);
}
.m-back{
    color:#fff;
    font-size:14px;
    text-decoration:none;
    padding:4px 10px;
    border:1px solid rgba(255,255,255,0.4);
    border-radius:3px;
    white-space:nowrap;
    margin-left:10px;
    flex-shrink:0;
}

/* ===== 面包屑 ===== */
.m-breadcrumb {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* 防止flex子项撑开 */
    overflow: hidden;
}

.m-breadcrumb a,
.m-breadcrumb em {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.m-breadcrumb span {
    color: rgba(255,255,255,0.5);
    margin: 0 6px;
    font-size: 12px;
}

.m-breadcrumb em {
    color: rgba(255,255,255,0.7);
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-back {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
}

.m-back:hover {
    background: rgba(255,255,255,0.25);
}
/* ===== 主体容器 ===== */
.m-law-container{background:#fff;margin:0;}

/* ===== 标题区域 ===== */
.m-law-header{padding:20px 15px 15px;border-bottom:2px solid #1a3a5c;}
.m-law-title{font-size:20px;font-weight:700;color:#1a3a5c;line-height:1.5;font-family:"SimHei","Microsoft YaHei",sans-serif;margin-bottom:12px;word-break:break-all;}
.m-law-source{font-size:12px;color:#888;text-align:right;padding-top:8px;border-top:1px dashed #e0e0e0;}
.m-law-source span{color:#1a3a5c;font-weight:600;}

/* ===== 法规参数 - 卡片式网格 ===== */
.m-law-meta{padding:15px;background:#f8f9fa;border-bottom:1px solid #e8e8e8;}
.m-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.m-meta-item{background:#fff;padding:10px 12px;border-radius:4px;border:1px solid #e0e0e0;display:flex;flex-direction:column;}
.m-meta-label{font-size:12px;color:#1a3a5c;font-weight:600;margin-bottom:4px;}
.m-meta-value{font-size:13px;color:#333;word-break:break-all;line-height:1.5;}

/* 单数项最后一项占满两列 */
.m-meta-grid .m-meta-item:nth-last-child(1):nth-child(odd){grid-column:1 / -1;}

/* ===== 法规正文 ===== */
.m-law-body{padding:20px 15px;line-height:2;font-size:16px;color:#333;text-align:justify;word-break:break-all;}
.m-law-body p{margin-bottom:1.2em;text-indent:2em;}
.m-law-body p:first-child{text-indent:0;}
.m-law-body h2,.m-law-body h3,.m-law-body h4{font-weight:700;color:#1a3a5c;margin:1.5em 0 0.8em;border-left:3px solid #8b0000;padding-left:10px;background:#f8f9fa;padding:6px 6px 6px 10px;font-size:17px;}
.m-law-body h3{font-size:16px;}
.m-law-body h4{font-size:15px;}
.m-law-body table{width:100%;border-collapse:collapse;margin:1em 0;font-size:14px;border:1px solid #ccc;display:block;overflow-x:auto;white-space:nowrap;}
.m-law-body table th,.m-law-body table td{border:1px solid #ccc;padding:8px 10px;}
.m-law-body table th{background:#f0f4f8;font-weight:600;color:#1a3a5c;}

/* ===== 相关法规推荐 ===== */
.m-section-box{padding:20px 15px;border-top:8px solid #f0f0f0;}
.m-section-title{font-size:17px;font-weight:700;color:#333;margin-bottom:15px;padding-bottom:8px;border-bottom:2px solid #1a3a5c;}
.m-ref-list{list-style:none;}
.m-ref-list li{padding:12px 0;border-bottom:1px solid #f0f0f0;}
.m-ref-list li:last-child{border-bottom:none;}
.m-ref-title{color:#333;text-decoration:none;font-size:15px;line-height:1.6;display:block;margin-bottom:4px;word-break:break-all;}
.m-ref-title:active{color:#8b0000;}
.m-ref-info{color:#999;font-size:12px;}

/* ===== 相关报告范文 ===== */
.m-report-section{padding:20px 15px;border-top:8px solid #f0f0f0;}
.m-report-list{display:flex;flex-direction:column;gap:15px;}
.m-report-group{background:#fff;border:1px solid #e8e8e8;border-radius:4px;overflow:hidden;}
.m-report-tag{font-size:14px;font-weight:700;color:#fff;background:#1a3a5c;padding:8px 12px;}
.m-report-group ul{list-style:none;padding:10px 12px;}
.m-report-group li{padding:8px 0;border-bottom:1px dashed #f0f0f0;}
.m-report-group li:last-child{border-bottom:none;}
.m-report-group a{color:#444;font-size:14px;text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.m-report-group a::before{content:"›";color:#8b0000;margin-right:5px;font-weight:bold;}

/* ===== 栏目导航块 ===== */
.m-channel-section {
    margin: 0 15px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.m-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.m-channel-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.m-channel-item:hover,
.m-channel-item:active {
    background: #f5f8fc;
    border-color: #1a3a5c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.1);
}

.m-channel-home {
    background: #1a3a5c;
    border-color: #1a3a5c;
    color: #fff;
}

.m-channel-home .m-channel-name {
    color: #fff;
    font-weight: 600;
}

.m-channel-active {
    background: #8b0000;
    border-color: #8b0000;
    position: relative;
}

.m-channel-active .m-channel-name {
    color: #fff;
    font-weight: 600;
}

.m-channel-active::after {
    content: "当前";
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    padding: 1px 5px;
    border-radius: 3px;
}

.m-channel-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* ===== 图标伪元素（模板不写入，CSS注入）===== */
.m-channel-item::before {
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    display: inline-block;
}

.m-channel-home::before {
    content: "\1F3E0";  /* 🏠 */
}

.m-icon-gongzuo::before {
    content: "\1F4CB";  /* 📋 */
}

.m-icon-shuzhi::before {
    content: "\1F4DD";  /* 📝 */
}

.m-icon-shixi::before {
    content: "\1F393";  /* 🎓 */
}

.m-icon-jiaoxue::before {
    content: "\1F4DA";  /* 📚 */
}

.m-icon-zhengwu::before {
    content: "\1F3DB";  /* 🏛️ */
}

.m-icon-shehui::before {
    content: "\1F310";  /* 🌐 */
}

.m-icon-zonghe::before {
    content: "\1F4CA";  /* 📊 */
}

.m-icon-sixiang::before {
    content: "\1F4A1";  /* 💡 */
}

.m-icon-fagui::before {
    content: "\2696";   /* ⚖️ */
}

/* ===== 免责声明 ===== */
.m-disclaimer-box{padding:20px 15px;border-top:8px solid #f0f0f0;}
.m-disclaimer-title{font-size:16px;font-weight:700;color:#333;margin-bottom:12px;padding-bottom:6px;border-bottom:1px solid #e0e0e0;}
.m-disclaimer-content{background:#fafbfc;border:1px solid #e9ecef;border-left:3px solid #8b0000;padding:14px 16px;border-radius:0 4px 4px 0;font-size:13px;color:#666;line-height:1.8;}

/* ===== 底部 ===== */
.m-footer{background:#1a3a5c;color:#a8c5e0;padding:20px 15px;text-align:center;font-size:12px;line-height:2;}
.m-footer a{color:#d0dce8;text-decoration:none;}

/* ===== 通用辅助 ===== */
a{color:inherit;text-decoration:none;}
img{max-width:100%;height:auto;}