/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    background: #ffffff;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #363636;
}

/* 工具类 */
.fl { float: left; }
.fr { float: right; }
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix { zoom: 1; }

.mt-30 { margin-top: 30px !important; }
.mt-60 { margin-top: 30px !important; }
.mb-60 { margin-bottom: 30px !important; }
.pt-60 { padding-top: 30px !important; }
.pb-60 { padding-bottom: 30px !important; }
.bg-grey { background-color: #f8f8f8; }

/* 容器 - 移动端优先 */
.container { width: 100%; }
.main {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部占位 */
.top {
    width: 100%;
    height: 50px;
}



/* 固定导航 - 移动端优化 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #323232;
    height: 50px;
    line-height: 50px;
    color: #ffffff;
    font-size: 14px;
    padding: 0 15px;
    transition: opacity 0.3s;
}

.header a {
    color: #ffffff;
}

.header-logo {
    float: left;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo .logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-nav {
    display: none; /* 移动端隐藏导航 */
}

/* 快捷导航栏 */
.quick-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #323232;
    display: none;
    z-index: 1001;
    padding: 0;
}

.quick-nav.show {
    display: flex;
}

.quick-nav-item {
    flex: 1;
    text-align: center;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.quick-nav-item:last-child {
    border-right: none;
}

.quick-nav-item:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.quick-nav-item span {
    display: block;
}

/* Swiper轮播 - 移动端优化 */
.swiper {
    width: 100%;
    height: auto;
    margin-top: 0;
}

.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 标题 - 移动端优化 */
.index-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

/* 关于我们 - 律所介绍 - 移动端优化 */
.about-section {
    width: 100%;
    padding: 20px 0;
    background: #fff;
}

.about-title-wrap {
    margin-bottom: 20px;
}

.about-header {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.about-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.about-line {
    width: 100%;
    height: 3px;
    background-color: #e60012;
}

.about-content {
    margin: 20px 0 10px 0;
    font-size: 14px;
    line-height: 26px;
    color: #333;
}

.about-left-image {
    float: left;
    width: 140px;
    margin-right: 15px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.highlight {
    color: #e60012;
    font-weight: bold;
}

/* 最新动态 - 移动端优化 */
.news-section {
    width: 100%;
    padding: 20px 0;
    background: #fff;
}

.news-title-wrap {
    margin-bottom: 20px;
}

.news-header {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.news-line {
    width: 100%;
    height: 3px;
    background-color: #e60012;
}

.news-list {
    margin-top: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-desc {
    font-size: 13px;
    color: #666;
    line-height: 22px;
    text-align: justify;
}

/* 律师团队 - 移动端优化 */
.team-title-wrap {
    margin: 20px 0 15px 0;
}

.team-header {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.team-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.team-line {
    width: 100%;
    height: 3px;
    background-color: #e60012;
}

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

.lawyer-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lawyer-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 赠送锦旗 - 移动端优化 */
.honor-section {
    width: 100%;
    padding: 10px 0 20px 0;
    background: #fff;
}

.honor-title-wrap {
    margin: 10px 0 15px 0;
}

.honor-header {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.honor-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.honor-line {
    width: 100%;
    height: 3px;
    background-color: #e60012;
}

.honor-grid-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.honor-grid-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.honor-item {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.honor-item img {
    width: 100%;
    height: auto;
    display: block;
}

.honor-item-small {
    flex: 1;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.honor-item-small img {
    width: 100%;
    height: auto;
    display: block;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item img:active {
    transform: scale(0.98);
}

/* 业务范围 - 移动端优化 */
.service-title-wrap {
    margin: 20px 0 15px 0;
}

.service-header {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.service-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.service-line {
    width: 100%;
    height: 3px;
    background-color: #e60012;
}

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

.service-card {
    background: #fff;
    border: 2px solid #e60012;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: transform 0.2s;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card .service-icon {
    font-size: 40px;
    margin-bottom: 8px;
    color: #e60012;
}

.service-card .service-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.service-card .service-desc {
    font-size: 12px;
    color: #666;
    line-height: 18px;
}

/* 办公环境 */
.office-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.office-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.office-gallery img:hover {
    transform: scale(1.05);
}



/* 联系我们 - 移动端优化 */
.contact-section {
    width: 100%;
    padding: 20px 0;
    background: #fff;
}

.contact-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.contact-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.contact-phones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.phone-item {
    font-size: 16px;
    color: #333;
}

.phone-item .city {
    color: #666;
}

.phone-item .phone {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

/* 页脚 - 移动端优化 */
.footer {
    width: 100%;
    background-color: #323232;
    color: #ffffff;
    padding: 30px 15px 20px 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.footer-slogan {
    font-size: 15px;
    color: #cccccc;
    line-height: 22px;
    text-align: left;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px 20px;
    margin-bottom: 15px;
}

.footer-nav-item {
    text-align: center;
    font-size: 13px;
    color: #cccccc;
    padding: 5px 3px;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-nav-item:active {
    color: #ffffff;
}

/* 底部联系方式 */
.footer-contact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 2px 0 0 0;
}

.contact-left {
    flex: 1;
}

.contact-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: normal;
}

.contact-phone {
    margin-bottom: 8px;
}

.contact-phone a {
    font-size: 15px;
    color: #ffffff;
    font-weight: normal;
    text-decoration: none;
}

.contact-address {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 18px;
}

.contact-right {
    width: 80px;
    flex-shrink: 0;
    margin-left: 20px;
}

.qrcode {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    background: #fff;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 10px;
    color: #999999;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 - 针对大屏设备优化 */
@media screen and (min-width: 768px) {
    .main {
        max-width: 750px;
    }
    
    .about-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}
