/* 1. 重置样式和基础设置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", sans-serif; line-height: 1.6; color: #333; background: #cc1818; }
a { text-decoration: none; color: #333; }
a:hover { color: #CC1818; }
ul { list-style: none; }
/* 容器 */
.container{ width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.w{ width: 100%; max-width: 1200px; min-height:500px; margin: 20px auto; padding: 0 15px;background:#FFF; border-radius:6px;}
.fl { float: left; }
.fr { float: right; }
.h60 {height:60px;}
.clear { clear: both; display: block; height: 0; overflow: hidden; }
img { max-width: 100%; height: auto; }
        

        

/* ==========================================
   响应式导航栏样式
   ========================================== */
/* 2. 顶部 Header 样式 */
.main-header { background: #fff; border-bottom: 1px solid #eee; position: relative; }
.main-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; }
.logo{ float:left;}
.logo img { height: 40px; }
.main-nav { display: flex; flex-wrap: wrap; margin: 0 20px; }
.main-nav a { padding: 5px 15px; font-size: 14px; }

/* 3. 菜单按钮样式 (汉堡图标) */
.menu-toggle {
    display: none; /* 默认隐藏，在小屏幕下显示 */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 200; /* 确保按钮在最上层 */
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 4. 移动端下拉菜单样式 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px; /* 给顶部留出空间 */
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    color: #333;
    font-size: 16px;
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: #f5f5f5;
}

/* 5. 关闭按钮 (可选，用于在菜单内关闭) */
.mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* 默认隐藏，JS控制显示 */
}

/* 1. 基础样式：父容器设为相对定位 */
/* 基础样式：确保父容器是 Flex 布局 */
.header-inner {
    display: relative;
    align-items: center; /* 垂直居中对齐 */
    width: 100%;
}

/* 手机端菜单按钮样式 */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
		margin-top:7px;
        margin-left: auto; /* 👈 关键代码：把按钮自动推到最右边 */
        
        /* 保持你原本的按钮样式 */
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 200;
    }
    
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #333;
        margin: 4px 0;
        border-radius: 2px;
    }
}

/* ==========================================
   PC端样式 (屏幕宽度 >= 768px)
   ========================================== */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-wrapper {
        position: relative;
        float:right;
    }

    .mobile-menu {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        
        display: flex;
        flex-direction: row !important;
        align-items: center;
    }

    /* --- 核心修改：PC端绝对不要写 border-bottom --- */
    .mobile-menu a {
        padding: 10px 12px;
        font-size: 14px;
        color: #333;
        white-space: nowrap;
        border-bottom:0;
    }
    
    .mobile-menu a:hover {
        color: #CC1818;
    }
}

/* ==========================================
   优化容器宽度 (可选)
   ========================================== */
@media (min-width: 1024px) {
    #headerContainer {
        max-width: 1200px;
    }
}

/* 面包屑导航 */
.crumbs { padding: 15px 0; font-size: 13px; color: #666; }

/* 文章内容 */
.article { background: #fff; padding: 10px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.article h1 { font-size: 24px; color: #333; margin-bottom: 20px; text-align: center; }
.article-meta { text-align: center; color: #999; font-size: 12px; margin-bottom: 20px; }
.content { 
	line-height: 2; color: #444; 
	#text-indent: 2em; 
}
.content p { margin-bottom: 15px; }

/* 5. 页脚 Footer */
.main-footer { background: #1f1f1f; padding: 40px 0 20px; text-align: center; font-size: 12px; color: #999; line-height: 2; }
.footer-slogan img { height: 50px; margin-top: 15px; }
.footer-links a { margin: 0 8px; color: #999; }
.footer-info p { margin: 5px 0; }
.footer-info a { color: #999; }



/* 文章列表容器基础样式 */
.articlelist {
    width: 100%;
    margin: 0 auto;
    padding: 15px 0;
    background: #fff;
}

.articlelist ul {
    list-style: none;
}

.articlelist li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.articlelist li:hover {
    background: #f9f9f9;
}

.articlelist a {
    color: #333;
    text-decoration: none;
}

.articlelist a:hover {
    color: #CC1818;
    text-decoration: underline;
}

/* 图片样式 */
.articlelist img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 标题与描述布局 */
.articlelist dl {
    display: flex;
    flex: 1;
    margin: 0;
}

.articlelist dt {
    margin: 0;
    flex: 1;
}

.articlelist dt h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.articlelist dd {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* 时间样式 */
.articlelist dd span {
    font-size: 12px;
    color: #999;
}
/* 移动端专属样式 (屏幕宽度小于 768px 时生效) */
@media (max-width: 767px) {
    .articlelist img {
        display: none;
    }

}
/* 清除浮动辅助类 */
.clear {
    clear: both;
    display: block;
    height: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

/* =============== 响应式布局 =============== */

/* PC端 (屏幕宽度 >= 768px) */
@media (min-width: 768px) {
    .articlelist {
        padding: 20px 0;
    }

    .articlelist li {
        flex-direction: row;
        align-items: center;
        padding: 20px 0;
    }

    .articlelist dl {
        flex-direction: row;
        align-items: center;
    }

    .articlelist dt {
        max-width: calc(100% - 120px); /* 为图片和时间留出空间 */
    }

    .articlelist dt h3 {
        font-size: 18px;
        white-space: normal; /* PC端可以换行，不需要省略号 */
        overflow: visible;
        text-overflow: clip;
    }

    .articlelist dd {
        margin-left: 20px;
        white-space: nowrap;
    }
}

/* 移动端优化 (屏幕宽度 < 480px) */
@media (max-width: 479px) {
    .articlelist dt h3 {
        font-size: 15px;
    }
    
    .articlelist img {
        width: 50px;
        height: 50px;
    }
}

.page{
	margin:30px 0;
    text-align:center;  
    background-color: #FFFFFF;
	border-radius:6px;
    height:80px;	
	clear:both;
	position:relative;
}

.page ul{
  width:860px;
  height:100%;
  display:block;
  list-style-type: none;
  margin:0px auto;
}
.page li{
  border:0px;
  float:left;
  font-size:16px;
  margin-right:10px;	 
}

.page .curr {
    border: 1px solid #E1292B;
    color: #E1292B;
    font-weight: 700;
	height: 40px;
	padding:0 10px;
	margin-top:20px;
	line-height:40px;
}


.page a{
	display:block;
	height: 40px;
	padding:0 10px;
	margin-top:20px;
	line-height:40px;
	text-align:center;
    border: 1px solid #ccc;
    color: #777;
    text-decoration:none;
}
.page a:hover {
    background: none repeat scroll 0 0 #FA98A1;
    border: 1px solid #E1292B;
    color: #fff;
}


.lawyer-list-section {
  background-color: #fff;
  padding: 0 20rpx 20rpx;
}
.lawyer-list-section .list-header {
    padding: 30rpx 0;
}
.lawyer-list-section .list-header .title {
      font-size: 36rpx;
      font-weight: bold;
      color: #333;
      display: block;
}
.lawyer-list-section .list-header .sub {
      font-size: 24rpx;
      color: #999;
      margin-top: 10rpx;
      display: block;
}


.lawyer-list-section  .filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20rpx 0;
    border-bottom: 1rpx solid #eee;
    margin-bottom: 20rpx;
}
.lawyer-list-section  .filter-item {
      font-size: 28rpx;
      color: #666;
      padding: 10rpx 20rpx;
      border-radius: 30rpx;
}      
.lawyer-list-section  &.active {
        color: #954907;
        font-weight: bold;
        background-color: rgba(212, 136, 6, 0.1);
}
/* 律师卡片主体 */
.lawyer-card { 
    background-color: #fff; 
    border-radius: 10px; /* 20rpx -> 10px */
    padding: 30px; 
    margin-bottom: 24px; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); 
    position: relative; 
    overflow: hidden; 
    border: 1px solid #eee; /* 增加边框以更清晰 */
}
.lawyer-card .avatar-wrapper { 
    position: relative; 
    margin-bottom: 10px; 
}
.lawyer-card .avatar { 
    width: 60px; /* 120rpx -> 60px */
    height: 60px; /* 120rpx -> 60px */
    border-radius: 8px; /* 16rpx -> 8px */
    border: 1px solid #eee; 
    background-color: #f0f0f0; 
}
.lawyer-card .work-year-tag { 
    position: absolute; 
    background: #fff; 
    color: #CC1818; 
    font-size: 10px; /* 20rpx -> 10px */
    padding: 2px 8px; /* 4rpx 16rpx -> 2px 8px */
    border-radius: 10px; /* 20rpx -> 10px */
    border: 1px solid #CC1818; 
    font-weight: 500; 
}

/* 信息列 */
.info-col { 
    font-size: 13px; /* 26rpx -> 13px */
    color: #666; 
    line-height: 1.6; 
}
.lawyer-card .top-row { 
    margin-bottom: 16px; 
}
.lawyer-card .name { 
    font-size: 17px; /* 34rpx -> 17px */
    font-weight: bold; 
    color: #333; 
}
.lawyer-card .cert-badge { 
    font-size: 11px; /* 22rpx -> 11px */
    color: #999; 
    border: 1px solid #ddd; 
    padding: 1px 8px; /* 2rpx 12rpx -> 1px 8px */
    border-radius: 8px; /* 8rpx -> 4px */
    background-color: #f9f9f9; 
}

/* 统计行 */
.stats-row { 
    font-size: 12px; /* 24rpx -> 12px */
    color: #999; 
    margin-bottom: 12px; 
}
.score-text { color: #999; }
.stars { color: #FFD700; font-size: 14px; } /* 28rpx -> 14px */

/* 技能标签行 */
.skills-row { 
    margin-bottom: 10px; 
    display: flex; 
    flex-wrap: wrap; 
}
.label { 
    color: #999; 
    font-size: 12px; /* 24rpx -> 12px */
    margin-right: 10px; 
}
.skill-tag { 
    font-size: 11px; /* 22rpx -> 11px */
    color: #666; 
    padding: 2px 8px; /* 4rpx 16rpx -> 2px 8px */
    margin-right: 10px; 
    background-color: #f0f0f0; 
    border-radius: 8px; /* 8rpx -> 4px */
    border: 1px solid #eee; 
}

/* 地址行 */
.location-row { 
    font-size: 12px; /* 24rpx -> 12px */
    color: #999; 
}
.icon { 
    margin-right: 6px; 
    font-size: 13px; /* 26rpx -> 13px */
}

/* 卡片底部 */
.card-footer { 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid #eee; 
    display: block; 
    position: relative; 
    width: 100%; 
}
.price { 
    font-size: 15px; /* 30rpx -> 15px */
    font-weight: bold; 
    color: #CC1818; 
    float: left; 
    display: flex; 
    height: 30px; /* 60rpx -> 30px */
    line-height: 30px; /* 60rpx -> 30px */
}
.call-btn { 
    float: right; 
    display: flex; 
    background-color: #fff; 
    color: #CC1818; 
    font-size: 13px; /* 26rpx -> 13px */
    padding: 0 18px; /* 0 36rpx -> 0 18px */
    height: 30px; /* 60rpx -> 30px */
    line-height: 30px; /* 60rpx -> 30px */
    border-radius: 5px; /* 10rpx -> 5px */
    border: 1px solid #CC1818; /* 2rpx -> 1px */
    font-weight: 500; 
    box-shadow: none; 
    align-items: center; 
}
.call-btn:active { 
    background-color: #CC1818; 
    color: #fff; 
}



/*详情页*/
.lawyer-basic {
  padding: 12px 0;
  background-color: #ffffff;
  border-radius: 8px;
  margin: 12px 0;
  box-shadow: 0 2x 10px rgba(0, 0, 0, 0.05);
}

/* 顶部名片样式 */
.card-header {
  display: flex;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}
.card-header  .header-info {
    margin-left: 12px;
    flex: 1;
}
.card-header  .header-info  .name-row {
      display: flex;
      align-items: center;
      margin-bottom: 6px;
}
.card-header  .header-info   .lawyer-name {
        font-size: 18px;
        font-weight: bold;
        color: #303133;
        margin-right: 8px;
}


.card-header  .firm-name {
      display: flex;
      align-items: center;
	  margin:10px auto;
}
.card-header  .firm-name  .firm-text {
        font-size: 13px;
        color: #909399;
        margin-left: 4px;
}


/* 信息列表样式 */
.info-list {}
.info-list  .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.info-list  .info-item  .label {
      font-size: 14px;
      color: #909399;
      width: 80px; 
}

.info-list  .info-item  .value {
      font-size: 14px;
      color: #303133;
      flex: 1;
      text-align: right;
}

.service-bar{
	border-radius: 10px; 
    padding: 20px; 
    margin: 20px 0; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); 
    position: relative; 
    overflow: hidden; 
    border: 1px solid #eee;
}
.service-bar div{
	font-size:16px;
	font-weight:bold;
	height:40px;
	line-height:40px;
}
.service-bar dd{
	display:block;
	width:33%;
	float:left;
	text-align:center;
	background-color:#f8f8f8;
	height:40px;
	line-height:40px;
}
.service-bar .call{
  background-color: #fff;
  color: #CC1818;
  font-size: 13px;
  padding: 0 18px;
  height: 30px;
  line-height: 30px;
  border-radius: 5px;
  border: 1px solid #CC1818;
  display: block;
  width: 120px;
  margin: 5px auto;
}
.footer_btn{
	width:100%;
	margin:50px auto;	
	position:relative;
	height: 40px;
}
.footer_btn a{
	display:block;	
	margin:0 auto;
	text-align:center;
	border-radius:6px;	
	padding:0 20px;
}
.footer_btn a:hover{
	color:#FFF;
}
.footer_btn div{
	width:50%;
	float:left;
}
.btn_blue{
	background-color:blue;
	color:#fff;
	height:40px;
	line-height:40px;
}
.btn_red{
	background-color:#CC1818;
	color:#fff;
	height:40px;
	line-height:40px;
}
.source-notice{
	font-size:12px;color:#666;margin:20px auto;
	text-align:center;
}
.lawyerinfo{
	margin:20px auto;
	padding:10px;
	font-size:14px;
	color:#666;
	text-align:left;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); 
    position: relative; 
    overflow: hidden; 
    border: 1px solid #eee;
}
.lawyerinfo h2{
	font-weight:bold;
	width:100%;	
	font-size:16px;
	height:32px;
	line-height:32px;
}
.lawyerinfo p{
	margin:10px;
	display:block;
	line-height:28px;
}
