/* ============================================
   宁夏蓝桢律师事务所 - 专业律所主题
   主色：#1a3a5c 深蓝 | 辅色：#c8a45a 金色
   ============================================ */

/* === 全局 === */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f8f9fa;
}
a { color: #1a3a5c; transition: color 0.3s; }
a:hover { color: #c8a45a; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { color: #1a3a5c; font-weight: 700; }

/* === 导航栏 === */
.navbar {
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 50%, #1e4570 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    padding: 0 0;
}
.navbar-brand {
    padding: 8px 0;
}
.navbar-brand img {
    height: 42px;
    filter: brightness(1.1);
}
.navbar-expand-lg .navbar-nav .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 15px;
    font-weight: 500;
    padding: 18px 20px !important;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s;
}
.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(200,164,90,0.15);
}
.navbar-expand-lg .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #c8a45a;
    border-radius: 2px;
}
.navbar-text a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px;
}

/* === 轮播图 === */
.swiper-container {
    width: 100% !important;
    height: 520px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    position: relative;
}
.swiper-wrapper {
    height: 520px !important;
}
.swiper-slide {
    height: 520px !important;
    overflow: hidden !important;
    flex-shrink: 0;
}
.slideshow {
    width: 100% !important;
    height: 520px !important;
    object-fit: cover;
    display: block;
}
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}
.swiper-pagination-bullet-active {
    background: #c8a45a;
    opacity: 1;
}
.swiper-button-prev, .swiper-button-next {
    color: #fff;
    background: rgba(26,58,92,0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background 0.3s;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
    background: rgba(26,58,92,0.8);
}
.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 20px;
}

/* === 区块标题 === */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    color: #1a3a5c;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c8a45a;
    margin: 12px auto 0;
}
.section-title p {
    color: #888;
    font-size: 15px;
    letter-spacing: 2px;
}

/* === 卡片 === */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26,58,92,0.15);
}
.card-img-top {
    border-radius: 8px 8px 0 0;
    height: 200px;
    object-fit: cover;
}
.card-title a {
    color: #1a3a5c;
    font-weight: 600;
    font-size: 16px;
}
.card-title a:hover {
    color: #c8a45a;
}
.card-body {
    padding: 20px;
}
.card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* === 按钮 === */
.btn-primary {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    border: none;
    border-radius: 6px;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26,58,92,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #c8a45a, #d4b76a);
    box-shadow: 0 4px 15px rgba(200,164,90,0.4);
    transform: translateY(-2px);
}

/* === 业务板块 === */
.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-top: 3px solid transparent;
    margin-bottom: 20px;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(26,58,92,0.12);
    border-top-color: #c8a45a;
}
.service-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}
.service-card h4 {
    color: #1a3a5c;
    font-size: 18px;
    margin-bottom: 12px;
}
.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* === 律师卡片 === */
.lawyer-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    text-align: center;
}
.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26,58,92,0.15);
}
.lawyer-card .avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 15px;
    font-size: 36px;
    color: #fff;
    font-weight: bold;
}
.lawyer-card h5 {
    color: #1a3a5c;
    font-size: 20px;
    margin-bottom: 5px;
}
.lawyer-card .position {
    color: #c8a45a;
    font-size: 14px;
    margin-bottom: 15px;
}
.lawyer-card p {
    color: #666;
    font-size: 14px;
    padding: 0 20px 25px;
    line-height: 1.7;
}

/* === 案例卡片 === */
.case-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid #1a3a5c;
    margin-bottom: 20px;
}
.case-card:hover {
    border-left-color: #c8a45a;
    box-shadow: 0 5px 25px rgba(26,58,92,0.12);
}
.case-card h5 {
    color: #1a3a5c;
    font-size: 17px;
    margin-bottom: 10px;
}
.case-card .tag {
    display: inline-block;
    background: #f0f4f8;
    color: #1a3a5c;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}
.case-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* === 页脚 === */
.footer {
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 100%);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
}
.footer h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #c8a45a;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.8;
}
.footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}
.footer a:hover {
    color: #c8a45a;
}
.footer .copyright {
    background: rgba(0,0,0,0.2);
    padding: 15px 0;
    margin-top: 40px;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* === 悬浮按钮 === */
.online dl {
    margin-bottom: 0;
}
.online dl dd {
    background: #1a3a5c;
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}
.online dl dd:hover {
    background: #c8a45a;
}
.online dl dd:first-of-type {
    border-radius: 8px 8px 0 0;
}
.online dl dd:last-of-type {
    border-radius: 0 0 8px 8px;
}
.online dl dt {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.online dl dt h3 {
    color: #1a3a5c;
    font-size: 16px;
    margin-bottom: 10px;
}

/* === 内页通用 === */
.page-header {
    background: linear-gradient(135deg, #0f2744, #1a3a5c);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
}
.page-header h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px;
}
.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
}
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}
.page-header .breadcrumb-item.active {
    color: #c8a45a;
}

/* === 响应式 === */
@media (max-width: 768px) {
    .swiper-container, .swiper-wrapper, .swiper-slide, .slideshow { height: 280px !important; }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 14px;
    }
    .section-title h2 { font-size: 24px; }
    .online { display: none !important; }
}

/* 手机端在线留言悬浮按钮 */
.mobile-consult-btn {
    display: none;
    position: fixed;
    right: 12px;
    bottom: 130px;
    z-index: 99999 !important;
    background: linear-gradient(135deg, #c8a45a, #d4b76a);
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(200, 164, 90, 0.4);
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.mobile-consult-btn span {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 1px;
}
.mobile-consult-btn:active {
    transform: scale(0.95);
}
@media (max-width: 768px) {
    .mobile-consult-btn {
        display: flex !important;
    }
}
