/* 默认样式，适用于小于1080p的屏幕 */
.main {
    margin: 0 auto;
}

.main-nav {
    max-width: 90vw;
    height: 60px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 左侧占位区域 */
.nav-left {
    width: 120px;
    height: 36px;
    background: transparent;
}

/* 中间导航项 */
.nav-center {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    line-height: 16px;
    text-decoration: none;
}

.nav-item.active {
    font-weight: bold;
    color: #183F99;
}

/* 右侧按钮组 */
.nav-right {
    display: flex;
    gap: 20px;
}

.nav-btn {
    width: 100px;
    height: 36px;
    border: 1px solid #183F99;
    border-radius: 18px;
    background: transparent;
    font-weight: 400;
    font-size: 14px;
    color: #183F99;
    cursor: pointer;
}

.headBanner {
    height: 457px;
    background: url('../../img/lvshizixun/lvshi-banner.png') no-repeat center/cover;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

.banner-container {
    margin: 0 auto;
    padding: 40px 0;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.left-panel {
    padding: 20px;
    width: 480px;
    height: 360px;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 6px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    width: 18px;
    height: 18px;
}

.title-text {
    font: 400 16px/19px 'Source Han Sans CN';
    color: #333;
}

.example-text {
    font: 400 16px/19px 'Source Han Sans CN';
    color: #183F99;
}
.line {
    width: 1px;
    height: 60px;
    background: #D9D9D9;
    border-radius: 0px 0px 0px 0px;
    margin-top: 20px;
}
.selection-area {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin: 20px 0;
}

#consult-form {
    width: 100%;
}

.select-container {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.type-select {
    max-width: 90px;
    padding: 8px;
    border: none;
    outline: none;
    cursor: pointer;
}

.consult-input {
    flex: 1;
    height: 80px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    transition: all .3s;
    outline: none;
    border: 1px solid #ddd !important;
}

.consult-input::placeholder {
    color: #999;
}

.vertical-line {
    width: 1px;
    height: 30px;
    background: #D9D9D9;
}

.desc-group p {
    font: 400 18px/21px 'Source Han Sans CN';
    color: #999;
    margin: 0;
    line-height: 26px;

}


.divider-line {
    width: 100%;
    border-bottom: 1px solid #D9D9D9;
    margin: 20px 0;
}


.stats-container {
    display: flex;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-icon {
    width: 30px;
    height: 30px;
}

.stat-title,
.stat-number {
    font: 400 14px 'Source Han Sans CN';
    color: #666;
    margin: 5px 0;
}

.right-grid {
    width: 730px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}

.grid-item {
    width: 175px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.grid-item:nth-child(4n){
    margin-right: 0;
}
.grid-item:nth-child(n+5){
    margin-bottom: 0;
}

.lawyer-item {
    display: block;
    /* 使a标签正确显示块级特性 */
    text-decoration: none;
    /* 去除默认下划线 */
    transition: all 0.3s ease;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: all .3s;
}

.lawyer-item:hover {
    background-image: linear-gradient(#f8f9fa, #f8f9fa);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02) translateY(-4px);
    /* 悬停阴影加深 */
}

.lawyer-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    text-align: center;
    padding: 4px 0;
    background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.6) 100%);
}
.lawyer-name {
    font: 500 14px/16px 'Source Han Sans CN';
    color: #FFFFFF;
}

.lawyer-title {
    font: 400 12px/14px 'Source Han Sans CN';
    color: #D9D9D9;
    text-align: center;
    margin-top: 4px;
}

/* 特殊模块样式 */
.special-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.contract-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.contract-text div {

    text-align: center;
}

.c-text1 {
    font-weight: 500;
    font-size: 14px;
    color: #333333;
    line-height: 16px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.c-text2 {
    font-weight: 400;
    font-size: 12px;
    color: #333333;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-top: 5px;
}

.avatart-img {
    background-size: cover;
    background-position: center top;
    width: 100%;
    padding-bottom: 100%;
    bottom: 0;
}

.section-1 {
    display: flex;
    gap: 20px;
    margin: 25px auto 0;
}

.left-section {
    flex: 1;
    border-radius: 6px;
    overflow: auto;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15);
    border-radius: 6px 6px 6px 6px;
}
.left-section-2 {
    flex: 1;
    background: #FFFFFF;
    border-radius: 6px;
    overflow: auto;
}

.right-section {
    flex-shrink: 0;
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.right-section-2 {
    flex-shrink: 0;
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid #D9D9D9;
    padding-left: 40px;
    box-sizing: border-box;
}

.right-section .top-part {
    height: 280px;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.consult-tabs {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    position: relative;
}

.more_btn{
    position: absolute;
    right: 0;
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
}
.more_btn:hover{
    color: #333;
}
.consult-tabs2 {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.more-btn {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.more-btn:hover{
    color: #333;
}
.arrow-icon{
    width: 16px;
    height: 16px;
}
.tab {
    margin-right: 15px;
    font: 400 16px/19px 'Source Han Sans CN';
    color: #666;
    cursor: pointer;
    padding-bottom: 5px;
}
.tab-line{
    width: 1px;
    height: 16px;
    background-color: #D9D9D9;
    margin-right: 15px;
    transform: rotate(10deg);
}
.tab.active {
    font-weight: bold;
    color: #183F99;
    border-bottom: 2px solid #183F99;
}

.fz-blue {
    font-weight: bold;
    color: #183F99;
    
}

/* 咨询列表样式 */
.consult-list {
    padding: 0 20px;
    list-style: none;
}

.consult-item {
    min-height: 80px;
    box-sizing: border-box;
    padding: 8px;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: background-color 0.3s ease;
}
.consult-item:nth-last-of-type(1){
    border-bottom: none;
}
.consult-item:hover {
    background-color: #f8f9fa;
}

.consult-item .answer-text {
    width: 90%;
    font: 400 14px/20px 'Source Han Sans CN';
    color: #666;
    margin: 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.consult-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.detail-link {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #1890ff;
    cursor: pointer;
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    line-height: 24px;
}

.title {
    font-size: 16px;
    color: #333;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 根据实际布局调整 */
}

.detail-link {
    font: 400 14px/16px 'Source Han Sans CN';
    color: #183F99;
}

.item-meta {
    font: 400 14px/16px 'Source Han Sans CN';
    color: #666;
    margin-top: 12px;
}

.divider {
    margin: 0 10px;
    color: #D9D9D9;
}

/* 新增样式 */
.resolved-consult .answer-text {
    font: 400 14px/18px 'Source Han Sans CN';
    color: #666;
    margin: 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lawyer-replies {
    display: flex;
    gap: 5px;
    margin: 0 0 10px 0;
    align-items: center;
}

.category-header {
    text-align: center;
    padding: 20px 0;
    font-size: 22px;
    font-weight: bold;
}

.category-header h3 {
    font: bold 18px/21px 'Source Han Sans CN';
    color: #333;

}

/* 输入区域样式 */
.input-group {
    display: flex;
    gap: 10px;
}

#onsult-form {
    display: flex;
}

.consult-btn[type="submit"] {
    display: block;
    margin: 0px auto;
    /* 修改为自动居中 */
    width: 114px;
    height: 32px;
    background: #E93F3F;
    border-radius: 18px;
    color: #fff;
    font: bold 14px/16px 'Source Han Sans CN';
    border: none;
    cursor: pointer;
    transition: all .2s;
}

.consult-btn[type="submit"]:hover {
    display: block;
    margin: 0px auto;
    /* 修改为自动居中 */
    width: 114px;
    height: 32px;
    background: #C24040;
    border-radius: 18px;
    cursor: pointer;
    color: #fff;
    font: bold 14px/16px 'Source Han Sans CN';
    border: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 确保四列 */
    width: 100%;
    /* 确保占满容器 */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-3px);
}
.category-name{
    border-bottom: 1px solid #666;
    padding-bottom: 2px;
}
.category-item:hover .category-name{
    border-bottom: 1px solid #245BDB;
    color: #245BDB;
}
.category-icon {
    width: 36px;
    height: 36px;
}

.category-item span {
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.lv-text2 {
    margin-left: 6px;
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 12px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.lawyer-replies img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* 标题样式 */
.section-title {
    display: flex;
    align-items: center;
    margin: 0;
}

.title-line {
    width: 4px;
    height: 20px;
    background: #183F99;
    margin-right: 8px;
}

/* 热门话题列表 */
.topic-list {
    padding-left: 12px;
}

.topic-item {
    display: block;
    color: #333;
    line-height: 1.5;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 19px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    border-bottom: 1px solid #eee;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-item:hover {
    color: #183F99;
}

.section-2 {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

.dynamic-section {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dynamic-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #333333;
    font-size: 16px;
}

.placeholder-text {
    color: #999;
    text-align: center;
    padding: 20px;
}

.hot-title {
    font-weight: 400;
    font-size: 18px;
    color: #333333;
    line-height: 21px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.hot-text {
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 14px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

/* 动态内容样式 */
.dynamic-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px 0;
    background: #fff;
    border-radius: 8px;
}

.time-column {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.update-time {
    color: #666;
    font-size: 12px;
}

.time-line {
    width: 0;
    height: 105px;
    border-left: 1px solid #D9D9D9;
    margin: 8px auto;
}

.content-column {
    flex: 1;
    padding-left: 15px;
    width: 420px;
}

.content-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.lawyer-avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 50%;
}

.lawyer-firm {
    font-weight: 600;
    color: #333;
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    line-height: 16px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.help-count {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 12px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-top: 6px;
}

.question {
    margin-top: 14px;
    font-size: 16px;
    color: #666666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 这里设置行数为3 */
    overflow: hidden;
}
.question:hover{
    color: #245bdb !important;
}
.question div{
   word-break: break-all;
}

.answer {
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    line-height: 12px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    line-height: 18px;
}

/* 区域3样式 */
.section-3 {
    display: flex;
    gap: 30px;
    margin: 40px auto;
}

.common-questions {
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
}

.question-link {
    width: 48%;
    display: block;
    padding: 12px;
    border-bottom: 1px solid #ddd;
    color: #333333;
    line-height: 16px;
}
.question-link a{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
    color: #333;
    padding-left: 0;
    position: relative;
}
.question-link a::before{
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    background-color: #D9D9D9;
    top: calc(50% - 3px);
    left: -10px;
}
.title3 {
    font-weight: 400;
    font-size: 24px;
    color: #333333;
    line-height: 28px;
    letter-spacing: 2px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.question-link:hover a{
    color: #183F99;
}

.tag-container {
    width: 535px;
    height: 289px;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 20px;
}

.tag-title {
    font-size: 18px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tag-item {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    border-radius: 2px 2px 2px 2px;
    border: 1px solid #D9D9D9;
    text-decoration: none;
}

.tag-item:hover {
    background: #87a6ee;
    color: #fff;
}

.footer {
    width: 100%;
    /* 改用百分比布局 */
    height: 383px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #151515;
    box-sizing: border-box;
    /* 修正盒模型 */
}
.questions{
    background: transparent;
    box-shadow: none;
}
/* 在文件顶部添加全局重置 */
body {
    margin: 0;
    padding: 0;
    background-color: #F8F8F8;
}

.footer-content {
    width: 40vw;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.service-hotline {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.phone-number {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 28px;
    letter-spacing: 2px;
    font-style: normal;
    text-transform: none;
    margin: 10px 0;
}

.online-service-btn,
.feedback-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #183F99;
    color: white;
    border-radius: 4px;
    margin: 10px 0;
    text-decoration: none;
}

.complaint-text {
    font-size: 12px;
    color: #999;
    margin: 15px 0 5px;
}

.email-link {
    color: #183F99;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 19px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.footer-right {
    display: flex;
    gap: 50px;
    padding-left: 40px;
}

.link-column h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 16px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.footer-link {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #f3f3f5;
    text-decoration: underline;
}

.section-white{
    background-color: #fff;
    padding: 20px 0; 
    margin-top: 20px;
}
.hot-num{
    position: absolute;
    right: 10px;
    bottom: 20px;
    color: #EC3B3B;
}

/* 更小 */
@media screen and (max-width: 1359px) {
    .banner-container {
        width: 900px;
    }

    .main {
        width: 1000px;
    }
}

/* 720p */
@media screen and (min-width: 1360px) and (max-width: 1919px) {
    .banner-container {
        width: 1200px;
    }

    .main {
        width: 85vw;
    }
}

/* 1080p屏幕 */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .banner-container {
        width: 85vw;
    }

    .main {
        width: 85vw;
    }
}

/* 2K屏幕 */
@media screen and (min-width: 2560px) {
    .banner-container {
        width: 1800px;
    }

    .main {
        width: 2000px;
    }
}