/* 国樽普法页面样式 */

/* 重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.page-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.search-box {
    display: flex;
    gap: 0;
}

.search-input {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    height: 40px;
}

.search-input:focus {
    border-color: #c8965f;
}

.search-btn {
    padding: 10px 25px;
    background: #c8965f;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #b08550;
}

/* 导航栏 */
.main-nav {
    background: #f5f5f5;
    overflow: hidden;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 20px 0 12px 0;
    padding: 0;
    gap: 12px;
}

.nav-item {
    flex: 1;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.nav-item a {
    display: block;
    padding: 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-item a:hover {
    color: #c8965f;
    background: #fff;
}

.nav-item.active a {
    color: #fff;
    background: #c8965f;
    font-weight: bold;
}

/* Banner区域 */
.pufa-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pufa-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.banner-text .subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.banner-text .main-title {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 5px;
}

/* 章节标题通用样式 */
.section-title {
    text-align: left;
    font-size: 28px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 112px;
    height: 3px;
    background: #c8965f;
}

.section-title .en-title {
    display: inline-block;
    font-size: 14px;
    color: #c8965f;
    font-weight: normal;
    margin-left: 15px;
    letter-spacing: 2px;
}

/* 在线法律咨询 */

.consultation-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 30px;
    border-bottom: 2px solid #1a3a5c;
}

.consultation-left {
    flex: 1;
    margin-bottom: 30px;
}

.consultation-title {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.consultation-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 112px;
    height: 3px;
    background: #c8965f;
}

.consultation-title .en-title {
    display: inline-block;
    font-size: 14px;
    color: #c8965f;
    font-weight: normal;
    margin-left: 15px;
    letter-spacing: 2px;
}

.consultation-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
}

.consultation-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 8px;
    gap: 5px;
}

.consultation-tip {
    font-size: 13px;
    color: #666;
}

.consult-btn {
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 10px 34px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.consult-btn:hover {
    background: #2a4a6c;
}

/* 法律问答 */
.legal-qa {
    padding: 60px 0;
    background: #fff;
}

.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.qa-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.qa-tab {
    background: #fff;
    border: 1px solid #c8965f;
    padding: 8px 25px;
    font-size: 14px;
    color: #c8965f;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.qa-tab:hover {
    background: #c8965f;
    color: #fff;
}

.qa-tab.active {
    background: #c8965f;
    color: #fff;
    border-color: #c8965f;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.qa-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.qa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.qa-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.qa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.qa-card:hover .qa-image img {
    transform: scale(1.05);
}

.qa-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.qa-title {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.6;
    max-height: 51px;
}

.qa-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.qa-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qa-tags .tag {
    display: inline-block;
    padding: 4px 0px;
    background: transparent;
    color: #c8965f;
    font-size: 12px;
    border-radius: 0;
}

.more-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.more-link:hover {
    color: #c8965f;
}

/* 法律知识（国内/国际） */
.legal-knowledge {
    /* padding: 0 0 40px 0; */
}

.domestic {
    background: #f8f8f8;
}


.knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.knowledge-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.knowledge-tab {
    background: transparent;
    border: none;
    padding: 8px 5px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s;
    position: relative;
}

.knowledge-tab::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
}

.knowledge-tab:hover {
    color: #c8965f;
}

.knowledge-tab:hover::after {
    background: #c8965f;
}

.knowledge-tab.active {
    color: #c8965f;
    font-weight: bold;
}

.knowledge-tab.active::after {
    background: #c8965f;
}

.knowledge-grid {
    /* overflow: hidden; */
}

.knowledge-grid::after {
    content: '';
    display: table;
    clear: both;
}

.knowledge-card {
    float: left;
    width: calc(33.333% - 20px);
    margin-right: 30px;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 0;
    cursor: pointer;
    padding: 25px 25px 0 25px;
    position: relative;
    height: 150px;
    overflow: visible;
    transition: box-shadow 0.5s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
}

.knowledge-card:nth-child(3n) {
    margin-right: 0;
}

.knowledge-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    width: 0;
    background: #c8965f;
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    background: #1a3a5c;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.knowledge-card:hover::before {
    width: 3px;
    height: 1.3em;
}

.knowledge-card:hover .card-main-title {
    color: #fff;
}

.knowledge-card:hover .card-tag {
    color: #fff;
}

.knowledge-card:hover .card-tag-hidden {
    display: block;
}

.card-tag-hidden {
    display: none;
}

.card-main-title {
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: normal;
    transition: all 0.3s;
    line-height: 1.5;
    height: auto;
}

.card-tags {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    overflow: hidden;
    max-height: 54px;
    transition: max-height 0.5s ease;
}

.knowledge-card:hover .card-tags {
    position: absolute;
    left: 0;
    right: 0;
    overflow: visible;
    background: #1a3a5c;
    padding: 0 25px 15px;
    z-index: 1;
    max-height: 500px;
}

.card-tag {
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
    text-align: left;
    line-height: 1.6;
}

.card-tag:hover{
    color: #c8965f !important;
}
