/* =====================================================
   海华（南宁）律师事务所 官网样式
   风格：稳重商务 · 蓝灰色调
   ===================================================== */
:root {
    --hh-primary: #1f3a5f;      /* 主色 深蓝 */
    --hh-primary-dark: #16293f;
    --hh-primary-light: #2c4a73;
    --hh-accent: #b8915a;       /* 点缀 暗金 */
    --hh-gray: #6b7a8d;
    --hh-bg-light: #f4f6f9;
    --hh-border: #e3e8ef;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--hh-primary-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 7px 0;
}
.topbar strong { color: #fff; }

/* ---------- 主导航 ---------- */
.main-nav {
    background: var(--hh-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.logo-badge {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hh-accent);
    color: #fff; font-size: 22px;
    border-radius: 4px;
    flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-size: 18px; color: #fff; letter-spacing: 1px; }
.brand-text small { display: block; font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: 2px; }
.main-nav .nav-link {
    color: rgba(255,255,255,.85);
    padding: .7rem 1rem !important;
    font-size: 15px;
    position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #fff; }
.main-nav .nav-link.active::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .3rem;
    height: 2px; background: var(--hh-accent);
}
.navbar-toggler { border-color: rgba(255,255,255,.4); }

/* ---------- 首页 Banner ---------- */
.hero-carousel .carousel-item { height: 560px; }
.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex; align-items: center;
}
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(22,41,63,.82) 0%, rgba(22,41,63,.35) 60%, rgba(22,41,63,.1) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 620px; }
.hero-content .hero-tag {
    display: inline-block; font-size: 14px; letter-spacing: 4px;
    color: var(--hh-accent); border: 1px solid var(--hh-accent);
    padding: 4px 16px; margin-bottom: 18px;
}
.hero-content h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.hero-content p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.8; }
.carousel-indicators [data-bs-target] { width: 30px; height: 4px; }

/* ---------- 通用按钮 ---------- */
.btn-hh {
    background: var(--hh-accent); color: #fff; border: none;
    padding: 10px 32px; font-size: 15px; letter-spacing: 1px;
    border-radius: 2px; transition: all .25s;
}
.btn-hh:hover { background: #a37e49; color: #fff; }
.btn-hh-outline {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,.6);
    padding: 10px 32px; border-radius: 2px; transition: all .25s;
}
.btn-hh-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- 板块标题 ---------- */
.section { padding: 72px 0; }
.section-gray { background: var(--hh-bg-light); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head .sec-en {
    font-size: 13px; letter-spacing: 5px; color: var(--hh-accent);
    text-transform: uppercase; display: block; margin-bottom: 8px;
}
.sec-head h2 { font-size: 30px; font-weight: 700; color: var(--hh-primary); margin-bottom: 14px; }
.sec-head .sec-line {
    width: 50px; height: 3px; background: var(--hh-accent); margin: 0 auto;
    position: relative;
}
.sec-head .sec-line::before, .sec-head .sec-line::after {
    content: ""; position: absolute; top: 0; width: 18px; height: 3px; background: #d7dde5;
}
.sec-head .sec-line::before { left: -26px; }
.sec-head .sec-line::after { right: -26px; }
.sec-head p { color: var(--hh-gray); margin-top: 14px; font-size: 15px; }

/* ---------- 首页 简介 ---------- */
.intro-img-wrap { position: relative; }
.intro-img-wrap img { width: 100%; border-radius: 4px; }
.intro-img-wrap::after {
    content: ""; position: absolute; right: -14px; bottom: -14px;
    width: 100%; height: 100%; border: 2px solid var(--hh-accent);
    border-radius: 4px; z-index: -1;
}
.intro-badge {
    position: absolute; left: -20px; top: 30px;
    background: var(--hh-primary); color: #fff;
    padding: 18px 22px; border-radius: 4px; text-align: center;
    box-shadow: 0 6px 18px rgba(31,58,95,.3);
}
.intro-badge .num { font-size: 32px; font-weight: 700; color: var(--hh-accent); }
.intro-badge .txt { font-size: 13px; }
.intro-text h3 { color: var(--hh-primary); font-weight: 700; font-size: 26px; margin-bottom: 18px; }
.intro-text p { color: #555; line-height: 2; text-indent: 2em; margin-bottom: 14px; }

/* 数据条 */
.stats-bar { background: var(--hh-primary); padding: 44px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-item .stat-num { font-size: 38px; font-weight: 700; color: var(--hh-accent); }
.stat-item .stat-num small { font-size: 20px; }
.stat-item .stat-label { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ---------- 业务卡片 ---------- */
.biz-card {
    background: #fff; border: 1px solid var(--hh-border);
    padding: 34px 26px; height: 100%;
    transition: all .3s; position: relative; border-radius: 4px;
}
.biz-card:hover { box-shadow: 0 10px 30px rgba(31,58,95,.12); transform: translateY(-4px); }
.biz-card .biz-icon {
    width: 58px; height: 58px; border-radius: 4px;
    background: var(--hh-bg-light); color: var(--hh-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 18px; transition: all .3s;
}
.biz-card:hover .biz-icon { background: var(--hh-primary); color: #fff; }
.biz-card h4 { font-size: 18px; color: var(--hh-primary); font-weight: 700; margin-bottom: 12px; }
.biz-card p { font-size: 14px; color: var(--hh-gray); line-height: 1.9; margin-bottom: 0; }

/* ---------- 律师卡片 ---------- */
.lawyer-card {
    background: #fff; border: 1px solid var(--hh-border);
    border-radius: 4px; overflow: hidden; height: 100%;
    transition: all .3s;
}
.lawyer-card:hover { box-shadow: 0 10px 30px rgba(31,58,95,.14); transform: translateY(-4px); }
.lawyer-card .lawyer-photo { height: 300px; overflow: hidden; background: var(--hh-bg-light); }
.lawyer-card .lawyer-photo img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-card .lawyer-info { padding: 20px; text-align: center; }
.lawyer-card .lawyer-info h4 { font-size: 19px; color: var(--hh-primary); font-weight: 700; margin-bottom: 4px; }
.lawyer-card .lawyer-pos { color: var(--hh-accent); font-size: 13px; margin-bottom: 10px; }
.lawyer-card .lawyer-fields { color: var(--hh-gray); font-size: 13px; }

/* ---------- 案例/新闻卡片 ---------- */
.case-card, .news-card {
    background: #fff; border: 1px solid var(--hh-border);
    border-radius: 4px; overflow: hidden; height: 100%; transition: all .3s;
}
.case-card:hover, .news-card:hover { box-shadow: 0 10px 30px rgba(31,58,95,.12); transform: translateY(-4px); }
.case-card .case-img, .news-card .news-img { height: 210px; overflow: hidden; }
.case-card .case-img img, .news-card .news-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.case-card:hover .case-img img, .news-card:hover .news-img img { transform: scale(1.05); }
.case-body, .news-body { padding: 20px 22px; }
.case-body h4, .news-body h4 {
    font-size: 17px; font-weight: 700; color: var(--hh-primary);
    margin-bottom: 10px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-body p, .news-body p {
    font-size: 13px; color: var(--hh-gray); line-height: 1.8; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 12px; color: #9aa7b5; }
.card-meta i { margin-right: 4px; }
.tag-badge {
    display: inline-block; background: var(--hh-bg-light); color: var(--hh-primary);
    font-size: 12px; padding: 2px 10px; border-radius: 2px; margin-right: 8px;
}

/* ---------- 内页横幅 ---------- */
.page-banner {
    height: 260px;
    background: linear-gradient(rgba(22,41,63,.78), rgba(22,41,63,.78)), url('../images/page-banner.svg') center/cover;
    display: flex; align-items: center; color: #fff;
}
.page-banner h1 { font-size: 34px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.page-banner .breadcrumb { margin-bottom: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255,255,255,.75); font-size: 14px; }
.page-banner .breadcrumb-item.active { color: var(--hh-accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- 关于我们 ---------- */
.about-block { margin-bottom: 56px; }
.about-block h3 {
    color: var(--hh-primary); font-weight: 700; font-size: 24px;
    padding-left: 16px; border-left: 4px solid var(--hh-accent); margin-bottom: 22px;
}
.about-content { color: #444; line-height: 2.1; font-size: 15px; }
.about-content p { margin-bottom: 14px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--hh-border); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
    content: ""; position: absolute; left: -28px; top: 5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--hh-accent);
}
.timeline-item .t-year { font-weight: 700; color: var(--hh-primary); font-size: 17px; }
.timeline-item .t-text { color: #555; margin-top: 4px; line-height: 1.9; }

/* ---------- 详情页 ---------- */
.detail-title { font-size: 28px; color: var(--hh-primary); font-weight: 700; margin-bottom: 14px; }
.detail-meta { color: #98a4b3; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--hh-border); margin-bottom: 26px; }
.detail-body { color: #3d4754; line-height: 2.1; font-size: 15px; }
.detail-body p { margin-bottom: 16px; }
.detail-body img { max-width: 100%; margin: 10px 0; }

/* ---------- 律师详情 ---------- */
.lawyer-profile { background: #fff; border: 1px solid var(--hh-border); border-radius: 4px; padding: 36px; }
.lawyer-profile .profile-photo { border-radius: 4px; overflow: hidden; }
.lawyer-profile h2 { color: var(--hh-primary); font-weight: 700; }
.profile-pos { color: var(--hh-accent); font-size: 15px; margin: 6px 0 18px; }
.profile-label { color: var(--hh-primary); font-weight: 700; margin-bottom: 6px; }

/* ---------- 联系我们 ---------- */
.contact-info-card {
    background: #fff; border: 1px solid var(--hh-border); border-radius: 4px;
    padding: 28px; height: 100%;
}
.contact-info-card .c-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--hh-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
}
.contact-info-card h5 { color: var(--hh-primary); font-weight: 700; }
.contact-info-card p { color: var(--hh-gray); font-size: 14px; margin-bottom: 0; line-height: 1.9; }
.contact-form-card {
    background: #fff; border: 1px solid var(--hh-border);
    border-radius: 4px; padding: 38px;
}
.form-label { font-weight: 600; color: var(--hh-primary); font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--hh-primary-light); box-shadow: 0 0 0 .2rem rgba(31,58,95,.12); }
.map-wrap { border: 1px solid var(--hh-border); border-radius: 4px; overflow: hidden; min-height: 320px; background: var(--hh-bg-light); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

/* ---------- 分页 ---------- */
.pagination .page-link { color: var(--hh-primary); }
.pagination .active .page-link { background: var(--hh-primary); border-color: var(--hh-primary); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--hh-primary-dark); color: rgba(255,255,255,.72); padding: 56px 0 0; font-size: 14px; }
.footer-title { color: #fff; font-size: 17px; margin-bottom: 18px; font-weight: 700; }
.footer-slogan { color: var(--hh-accent); letter-spacing: 3px; margin-bottom: 12px; }
.footer-text { line-height: 1.9; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--hh-accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 12px; line-height: 1.8; }
.footer-contact i { color: var(--hh-accent); margin-right: 8px; }
.footer-hr { border-color: rgba(255,255,255,.12); margin: 36px 0 0; }
.footer-bottom { padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--hh-accent); }

/* 移动端电话悬浮按钮 */
.float-call {
    position: fixed; right: 18px; bottom: 26px; z-index: 1030;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--hh-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .hero-carousel .carousel-item { height: 420px; }
    .hero-content h1 { font-size: 30px; }
    .section { padding: 52px 0; }
    .intro-badge { left: 10px; }
    .intro-img-wrap { margin-bottom: 34px; }
}
@media (max-width: 576px) {
    .hero-carousel .carousel-item { height: 340px; }
    .hero-content h1 { font-size: 25px; }
    .hero-content p { font-size: 14px; }
    .brand-text strong { font-size: 15px; }
    .sec-head h2 { font-size: 24px; }
    .lawyer-card .lawyer-photo { height: 260px; }
    .contact-form-card { padding: 24px; }
}
