/* 鸿俊财税首页 - 本地样式（不依赖外网字体） */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
    background-color: #faf8f5;
}
.font-display {
    font-family: Georgia, "Times New Roman", "Songti SC", simsun, serif;
}
.hero-overlay {
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.6) 50%, rgba(196,30,58,0.3) 100%);
}
.stat-card {
    background: linear-gradient(180deg, #c41e3a 0%, #a01830 100%);
}
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26,26,46,0.12);
}
.service-card .icon-box {
    transition: all 0.4s ease;
}
.service-card .icon-box img {
    transition: filter 0.4s ease;
}
.service-card:hover .icon-box {
    background-color: #c41e3a;
    color: white;
}
.service-card:hover .icon-box img {
    filter: brightness(0) invert(1);
}
.service-card:hover .icon-box i {
    color: white;
}
.case-card {
    transition: all 0.4s ease;
}
.case-card:hover {
    transform: scale(1.02);
}
.case-card:hover .case-overlay {
    opacity: 1;
}
.news-card {
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c41e3a;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.counter {
    font-variant-numeric: tabular-nums;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background: #c41e3a;
    margin-right: 16px;
    vertical-align: middle;
    border-radius: 2px;
}
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 720px;
}
.banner-pagination {
    bottom: 36px !important;
    z-index: 20;
}
.banner-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,.45);
    opacity: 1;
}
.banner-pagination .swiper-pagination-bullet-active {
    background: #c41e3a;
    width: 28px;
    border-radius: 6px;
}
.banner-prev,
.banner-next {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: rgba(26,26,46,.35);
    border-radius: 50%;
    color: #fff;
    z-index: 20;
}
.banner-prev:after,
.banner-next:after {
    font-size: 16px;
    font-weight: 700;
}
.banner-prev:hover,
.banner-next:hover {
    background: #c41e3a;
}
@media (max-width: 768px) {
    .banner-prev,
    .banner-next {
        display: none;
    }
}

/* 内页：文章正文 */
.article-content {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.9;
}
.article-content p {
    margin-bottom: 1em;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.25rem 0;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1a1a2e;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
    line-height: 1.4;
}
.article-content h2 { font-size: 1.35rem; }
.article-content h3 { font-size: 1.15rem; }
.article-content ul,
.article-content ol {
    margin: 0.75em 0 1em 1.25em;
}
.article-content li { margin-bottom: 0.4em; }
.article-content a {
    color: #c41e3a;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}
.article-content table th {
    background: rgba(196, 30, 58, 0.06);
    color: #1a1a2e;
    font-weight: 600;
}
.article-content table th,
.article-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.85rem;
}
.article-content blockquote {
    border-left: 4px solid #c41e3a;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    background: #faf8f5;
    color: #6b7280;
}

/* 内页：分页 */
.page-pagination,
.fenye,
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 2rem 0 0;
}
.page-pagination a,
.page-pagination span,
.fenye a,
.fenye span,
.pagination li,
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
    list-style: none;
}
.page-pagination a:hover,
.fenye a:hover,
.pagination a:hover {
    color: #c41e3a;
    border-color: #c41e3a;
}
.page-pagination .active,
.page-pagination .current,
.fenye .active,
.fenye .current,
.pagination .active span,
.pagination .active a {
    background: #c41e3a;
    border-color: #c41e3a;
    color: #fff !important;
}
.pagination {
    padding-left: 0;
    margin: 0;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 荣誉资质大图预览 */
.honor-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.88);
    padding: 24px;
}
.honor-lightbox.is-open {
    display: flex;
}
.honor-lightbox__inner {
    position: relative;
    max-width: min(960px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.honor-lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.honor-lightbox__caption {
    margin-top: 14px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 640px;
    line-height: 1.5;
}
.honor-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}
.honor-lightbox__close:hover {
    background: #c41e3a;
}
.honor-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
}
.honor-lightbox__nav:hover {
    background: #c41e3a;
}
.honor-lightbox__prev { left: -56px; }
.honor-lightbox__next { right: -56px; }
@media (max-width: 768px) {
    .honor-lightbox__prev,
    .honor-lightbox__next {
        left: auto;
        right: auto;
        top: auto;
        bottom: -56px;
        transform: none;
    }
    .honor-lightbox__prev { left: calc(50% - 56px); }
    .honor-lightbox__next { left: calc(50% + 12px); }
    .honor-lightbox__close {
        top: -48px;
        right: 0;
    }
}
