/* ===============================================
   河南浩正工程管理咨询有限公司 - style.css
   主色调：科技蓝 #0E3A6F / #1E5BA8 / #2196F3
   =============================================== */

:root {
    --primary: #015198;
    --primary-light: #076ce0;
    --primary-dark: #024785;
    --accent: #2196F3;
    --accent-light: #42A5F5;
    --accent-bg: #E3F2FD;
    --text-1: #363636;
    --text-2: #666666;
    --text-3: #8395A7;
    --border: #E4ECF4;
    --bg: #F5F8FC;
    --bg-light: #F5F5F5;
    --header-dark: #666666;
    --white: #FFFFFF;
    --button-left:#3b82f6;
    --button-right:#2563eb;
    --orange: #f39c12;
    --radius: 10px;
    --shadow-sm: 0 2px 8px rgba(14,58,111,.06);
    --shadow-md: 0 8px 24px rgba(14,58,111,.10);
    --shadow-lg: 0 16px 48px rgba(14,58,111,.14);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
    font-size:14px; line-height:1.6; color:var(--text-2);
    background:var(--white); -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; transition:color var(--transition); }
a:hover { color:var(--accent); }
img { max-width:100%; display:block; }
button { border:none; background:none; cursor:pointer; font-family:inherit; }
.container { max-width:1280px; margin:0 auto; padding:0 24px; }
.section { padding:80px 0; }

/* ===== Header ===== */
.header {
    background: var(--white);
    padding: 22px 0;
}

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

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 70px;
}

.header-contact {
    display: flex;
    align-items: center;
    color: var(--primary);
}

.header-contact .icon {
    font-size: 36px;
    margin-right: 10px;
}

.header-contact .text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.4;
}

.header-contact .phone {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/* ===== Navigation ===== */
.nav {
    background: var(--primary);
}

.nav .container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav > .container > a,
.nav > .container > .nav-item > a {
    display: block;
    padding: 17px 22px;
    color: var(--white);
    font-size: 18px;
    transition: background var(--transition);
}

.nav > .container > a:hover,
.nav > .container > a.active,
.nav > .container > .nav-item > a:hover,
.nav > .container > .nav-item > a.active {
    background: #013a6e;
    /* box-shadow: inset 0 -3px 0 #fff; */
}

.nav-item {
    position: relative;
}

.nav-item .fa-caret-down {
    font-size: 12px;
    margin-left: 4px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 133px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* nav() outputs <li>, reset default list marker & padding */
.dropdown li,
.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-1);
    font-size: 14px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--accent-bg);
    color: var(--primary);
    padding-left: 26px;
}

/* ===== Banner ===== */
.banner {
    position: relative;
    width: 100%;
    height: 680px;
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.05) 100%);
    z-index: 2;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    color: var(--white);
    z-index: 5;
    max-width: 600px;
}

.banner-text h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.banner-text p {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}

.banner-arrows {
    position: absolute;
    right: 30px;
    bottom: 40px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(59,130,246, 0.85);
    color: var(--white);
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(37, 99, 235, 1);
    transform: scale(1.08);
}

.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

.banner-dot {
    width: 30px;
    height: 6px;
    border-radius: 20px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    position: relative;
    transition: background var(--transition);
}

.banner-dot span {
    display: none;
}

.banner-dot.active {
    width: 44px;
    height: 8px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    padding: 50px 0 30px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title .subtitle {
    color: var(--text-3);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ===== Business Section ===== */
.business {
    padding: 80px 0 60px;
    background: var(--bg);
}

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

.business-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%); 

    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 34px 28px 30px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.4s ease;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--primary);
    transition: width 0.35s ease;
    border-top-left-radius: 12px;
}

.business-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,226,0.12) 0%, rgba(74,144,226,0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
    pointer-events: none;
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 60%);
}

.business-card:hover::before {
    width: 100%;
}

.business-card:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.biz-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.business-card:hover .biz-icon {
    background: var(--primary);
    color: var(--white);
}

.business-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 12px;
    transition: color var(--transition);
}

.business-card:hover h3 {
    color: var(--primary);
}

.business-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.biz-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    /* opacity: 0; */
    padding-left: 10px;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, gap 0.3s ease;
}

.business-card:hover .biz-arrow {
    opacity: 1;
    transform: translateX(0);
    gap: 10px;
}

.biz-arrow i {
    font-size: 12px;
}
/* up and down */
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:50px}
.pagination .page_list{display: flex;    gap: 10px;}
.pagination .page_list a{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #E5E7EB;border-radius:8px;color:var(--text-normal);text-decoration:none;font-size:15px;transition:var(--transition)}
.pagination .page_list a:hover{border-color:var(--primary);color:var(--primary)}
.pagination .page_list a.on{background:var(--primary);border-color:var(--primary);color:#fff}
.pagination .page_list a.disabled{opacity:0.4;pointer-events:none;color:var(--text-light)}

/* ===== Slogan Banner ===== */
.slogan {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.slogan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.03) 30px,
        rgba(255,255,255,0.03) 60px
    );
}

.slogan h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.slogan p {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ===== About & News ===== */
/* ===== About Us ===== */
.about-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
    position: relative;
}

.about-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 左侧内容 */
.about-content {
    flex: 0 0 53%;
}

.about-label {
    font-size: 20px;
    font-weight: 600;
    color: #2f8cff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.about-title {
    font-size: 44px;
    font-weight: 800;
    color: #0c2b4e;
    line-height: 1.25;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.about-content > p {
    font-size: 16px;
    color: #5b6b7d;
    line-height: 1.95;
    margin-bottom: 18px;
}

/* 数据卡片 2×2 */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 38px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 20px rgba(14,58,111,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14,58,111,0.13);
}

.stat-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #e8f2ff;
    color: #2f8cff;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-num {
    font-size: 34px;
    font-weight: 800;
    color: #2f8cff;
    color: var(--primary-light);
    line-height: 1.15;
}

.stat-label {
    font-size: 14px;
    color: #7c8898;
    margin-top: 2px;
}

/* 右侧大图轮播 */
.about-visual {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 580px;
    box-shadow: 0 20px 50px rgba(14,58,111,0.18);
}

.about-slides,
.about-slide,
.about-slides li {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-slide,
.about-slides li {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-slide.active,
.about-slides li.active {
    opacity: 1;
}

.about-slide img,
.about-slides li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ad() wraps img in <a>, make link fill the slide */
.about-slides li a {
    display: block;
    width: 100%;
    height: 100%;
}

.about-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.about-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-dots span.active {
    width: 28px;
    border-radius: 6px;
    background: #2f8cff;
}

/* ===== News Center ===== */
.news-section {
    padding: 80px 0;
    background: var(--bg);
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
    background: url('../images/news_bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

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

.news-card {
    display: block;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card-img {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.06);
}

/* 左上角日期块 */
.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    line-height: 1.2;
}

.news-date .d {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.news-date .ym {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.news-card-body {
    padding: 22px 24px 24px;
}

.news-cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-bg);
    color: var(--primary);
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.news-card-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.5;
    margin-bottom: 12px;
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-body h4 {
    color: var(--primary);
}

.news-card-body p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.news-read i {
    margin-left: 6px;
    font-size: 13px;
    transition: transform var(--transition);
}

.news-card:hover .news-read i {
    transform: translateX(5px);
}

.news-more-wrap {
    text-align: center;
    margin-top: 45px;
}

.news-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 38px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
}

.news-more:hover {
    background: var(--primary);
    color: var(--white);
}

.news-more i {
    margin-left: 8px;
    font-size: 14px;
    transition: transform var(--transition);
}

.news-more:hover i {
    transform: translateX(5px);
}

/* ===== Cases ===== */
.cases {
    padding: 80px 0;
}

.cases-carousel {
    position: relative;
}

/* Viewport that masks overflowing cards */
.cases-scroll {
    overflow: hidden;
    width: 100%;
}

.cases-grid {
    display: flex;
    gap: 24px;
    width: max-content;
}

.case-item {
    flex: 0 0 320px;
    width: 320px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Custom scrollbar track (like yazhenmei doctor-scroll-bar) */
.cases-scroll-bar {
    position: relative;
    width: 60%;
    max-width: 520px;
    height: 8px;
    margin: 28px auto 0;
    background: #e8edf7;
    border-radius: 3px;
    cursor: pointer;
}

/* Draggable thumb */
.cases-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--primary);
    border-radius: 5px;
    cursor: grab;
    transition: background 0.2s ease;
}

.cases-scroll-thumb:hover,
.cases-scroll-thumb.dragging {
    background: #01407a;
    cursor: grabbing;
}

.case-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(14,58,111,0.15);
}

.case-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-item:hover .case-img img {
    transform: scale(1.06);
}

.case-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.case-cat {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(1,81,152,0.08);
    border: 1px solid rgba(1,81,152,0.15);
    border-radius: 4px;
}

.case-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.case-item:hover .case-title {
    color: var(--primary);
}

.case-desc {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-read {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    transition: gap 0.25s ease;
}

.case-item:hover .case-read {
    gap: 10px;
}

/* ===== Partners ===== */
.partners {
    padding: 70px 0;
    background: #f7f9fc;
    overflow: hidden;
}

.partners-desc {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-top: -10px;
    margin-bottom: 30px;
}

.partners-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.partners-row {
    overflow: hidden;
}

/* 两侧渐隐遮罩 */
.partners-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.partners-fade-left {
    left: 0;
    background: linear-gradient(to right, #f7f9fc, transparent);
}

.partners-fade-right {
    right: 0;
    background: linear-gradient(to left, #f7f9fc, transparent);
}

.partners-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.track-a {
    animation: partners-scroll-ltr 40s linear infinite;
}

.track-b {
    animation: partners-scroll-rtl 45s linear infinite;
}

.partners-wrap:hover .partners-track {
    animation-play-state: paused;
}

@keyframes partners-scroll-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes partners-scroll-rtl {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.partner-item {
    flex: 0 0 auto;
    width: 160px;
    background: #fff;
    border: 1px solid #e8eaef;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /*filter: grayscale(100%);*/
}

.partner-item:hover {
    filter: grayscale(0);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(1,81,152,0.15);
    /* transform: translateY(-2px); */
    border: 1px solid rgba(59, 130, 246, 0.5); 
}

.partner-logo {
    font-size: 14px;
    font-weight: 600;
    color: #777;
    text-align: center;
    letter-spacing: 1px;
    padding: 0 8px;
    line-height: 1.4;
}

.partner-item:hover .partner-logo {
    color: var(--primary);
}

/* ===== Partner Page Grid ===== */
.partner-cat-title {
    font-size: 20px;
    font-weight: 700;
    color: #0c2b4e;
    margin: 36px 0 18px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner-cat-title i {
    color: var(--primary);
    font-size: 18px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 10px;
}

.partner-card {
    background: #fff;
    border: 1px solid #e8eaef;
    border-radius: 8px;
    height: 130px;
    padding: 16px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    /*filter: grayscale(100%);*/
    cursor: pointer;
    overflow: hidden;
}

.partner-card img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
}

.partner-card span {
    font-size: 13px;
    color: #7c8898;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.partner-card:hover {
    filter: grayscale(0);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(1,81,152,0.15);
    transform: translateY(-3px);
}

.partner-card:hover span {
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: #1b1e24;
    color: #c4c9d1;
}

/* 顶部品牌栏 */
.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 22px;
}

.footer-brand img {
    height: 46px;
    background: #fff;
    border-radius: 8px;
    padding: 5px 14px;
}

.footer-top-btns {
    display: flex;
    gap: 18px;
}

.footer-select {
    position: relative;
}

.footer-select > button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 30px;
    color: #d6dae1;
    font-size: 14px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.footer-select:hover > button,
.footer-select:focus-within > button,
.footer-select.open > button {
    border-color: #4a90e2;
    color: #fff;
}

.footer-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #272b32;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px;
    display: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 50;
}

.footer-select-menu a {
    display: block;
    padding: 10px 14px;
    color: #b9bfc8;
    font-size: 14px;
    border-radius: 6px;
}

.footer-select-menu a:hover {
    background: rgba(74,144,226,0.18);
    color: #fff;
}

.footer-select:hover .footer-select-menu,
.footer-select:focus-within .footer-select-menu,
.footer-select.open .footer-select-menu {
    display: block;
}

/* 主体多列 */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.3fr;
    gap: 36px;
    padding: 58px 0 52px;
}

.footer-col-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
}
.footer-contact-col p i {
    color: #4a90e2;
    font-size: 16px;
    margin-right: 10px;
}
/* nav() outputs <ul><li><a>, so scope all <a> inside the col, not just direct children */
.footer-col ul,
.footer-col li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col a {
    display: block;
    color: #9aa1ab;
    font-size: 14px;
    margin-bottom: 14px;
    transition: color 0.25s ease, padding-left 0.25s ease;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 6px;
}

/* 热线列 */
.footer-phone {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 20px;
    white-space: nowrap;
}

.footer-addr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #9aa1ab;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 26px;
}

.footer-addr i {
    color: #4a90e2;
    font-size: 16px;
    margin-top: 4px;
}

.footer-qrs {
    display: flex;
    gap: 26px;
}

.qr-box {
    width: 108px;
    height: 108px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #4a90e2;
}
.qr-box img{    
    border-radius: 8px;
}

.qr-label {
    text-align: center;
    color: #9aa1ab;
    font-size: 13px;
    margin-top: 10px;
}

/* 联系列 */
.footer-contact-col p {
    color: #9aa1ab;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* 底部版权栏 */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #17191e;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #7d848e;
    font-size: 13px;
}

.footer-bottom a {
    color: #7d848e;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
}



/* ===============================================
   Sub-page Layout (Sidebar + Main)
   左侧菜单 + 右侧内容 两栏布局
   =============================================== */
.page-content {
    padding: 50px 0 70px;
    background: #f5f7fa;
}

.page-content .container.sub-layout {
    display: flex;
    gap: 28px;
    max-width: 1200px;
    padding: 0 24px;
}

/* ===== Left Sidebar ===== */
.sub-sidebar {
    flex: 0 0 240px;
    width: 240px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Sidebar Header */
.sidebar-header {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 28px 24px;
    color: #fff;
    text-align: center;
    position: relative;
}

.sidebar-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.sidebar-en {
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0.75;
    text-transform: uppercase;
}

/* Sidebar Decorative Image */
.sidebar-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sidebar-img:hover img {
    transform: scale(1.06);
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.sidebar-menu .menu-item {
    position: relative;
}

.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 15px;
    color: var(--text-2);
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    gap: 10px;
}

.sidebar-menu .menu-item a .fa-chevron-right {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.sidebar-menu .menu-item a:hover {
    color: var(--primary);
    background: #f5f9ff;
    padding-left: 28px;
}

.sidebar-menu .menu-item a:hover .fa-chevron-right {
    transform: translateX(4px);
}

.sidebar-menu .menu-item.active a {
    background: linear-gradient(90deg, #f0f6ff 0%, #ffffff 100%);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.sidebar-menu .menu-item.active a .fa-chevron-right {
    transform: translateX(4px);
    color: var(--primary-light);
}

/* ===== Right Main Content ===== */
.sub-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 36px 48px 48px;
    min-height: 600px;
}

/* Breadcrumb inside sub-main */
.sub-main .breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    padding-bottom: 20px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.sub-main .breadcrumb-bar i{
  font-size:16px;
} 
.sub-main .breadcrumb-bar a {
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}

.sub-main .breadcrumb-bar a:hover {
    color: var(--primary);
}

.sub-main .breadcrumb-bar .sep {
    font-size: 11px;
    color: #c2ccd6;
}

.sub-main .breadcrumb-bar .current {
    color: var(--text-1);
    font-weight: 500;
}

/* Article */
.sub-article .article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 32px;
    padding-bottom: 16px;
    /* border-bottom: 2px solid var(--primary); */
    display: inline-block;
    position: relative;
}

.sub-article .article-body p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 2;
    margin-bottom: 18px;
    text-align: justify;
    text-indent: 2em;
}

/* ===== Article Detail (articleshow.html) ===== */
.article-detail {
    /* override if needed */
}

/* Meta bar below title */
.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    margin-bottom: 32px;
    background: #f7f9fc;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-3);
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    font-size: 12px;
    color: var(--primary-light);
}

/* Inline figure + caption */
.article-figure {
    margin: 28px auto;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(14,58,111,0.10);
    display: block;
    margin: 0 auto;
}

.article-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-3);
    letter-spacing: 0.5px;
}

/* Navigation: prev / next */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.article-nav li{
    list-style:none;
}
.article-nav-item {
    flex: 1;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-nav-item:hover {
    background: #eef4fb;
    border-color: var(--primary);
}

.article-nav-item .nav-label {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.article-nav-item.prev .nav-label i {
    margin-right: 4px;
}

.article-nav-item.next .nav-label i {
    margin-left: 4px;
}

.article-nav-item .nav-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.article-nav-item:hover .nav-title {
    color: var(--primary);
}

/* Back to list button */
.article-back {
    text-align: center;
    margin-top: 28px;
}

.article-back .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-back .back-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== Service Sections (service.html, plain detailed text) ===== */
.service-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px dashed var(--border);
}

.service-section:first-of-type {
    border-top: none;
    margin-top: 28px;
    padding-top: 0;
}

.service-section h3 {
    position: relative;
    padding-left: 16px;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.4;
}

.service-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: var(--primary);
}

.service-section p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 2;
    margin-bottom: 14px;
    text-align: justify;
    text-indent: 2em;
}

.service-section p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .service-section {
        margin-top: 28px;
        padding-top: 22px;
    }
    .service-section h3 {
        font-size: 16px;
    }
}

/* ===== Case Cards Grid (case.html) ===== */
.sub-main .case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 12px;
}

/* Case card removes the news-date absolute badge, image fills the top */
.case-card .news-card-img {
    height: 200px;
}

.sub-main .case-card .news-card-body {
    padding: 18px 20px 20px;
}

.sub-main .case-card .news-card-body h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sub-main .case-card .news-card-body p {
    font-size: 13px;
    margin-bottom: 14px;
}

@media (max-width: 992px) {
    .sub-main .case-grid {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .sub-main .case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .case-card .case-card-img {
        height: 200px;
    }
}

/* ===== Contact Info Cards (contact.html) ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 20px;
    background: #fafbfe;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(1,81,152,0.10);
    transform: translateY(-2px);
}

.contact-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-card:hover .contact-icon {
    background: var(--primary-dark);
}

.contact-text {
    flex: 1;
    min-width: 0;
}

.contact-text h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    margin-bottom: 4px;
}

.contact-val {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
    text-indent: 0 !important;
    text-align: left !important;
}

.contact-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 0 !important;
    text-indent: 0 !important;
    text-align: left !important;
}

/* ===== Contact Form ===== */
.contact-form-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px dashed var(--border);
}

.contact-form-section h3 {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-1);
}

.contact-form-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: var(--primary);
}

.form-tip {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 24px !important;
    text-indent: 0 !important;
    text-align: left !important;
}

.contact-form {
    background: #fafbfe;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 8px;
}

.form-group .req {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-1);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1,81,152,0.08);
}

.form-input::placeholder {
    color: #b0b8c4;
}

.form-textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.7;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.submit-btn {
    background: var(--primary);
    color: #fff;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.reset-btn {
    background: #fff;
    color: var(--text-2);
    border-color: var(--border);
}

.reset-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ===== Contact Map ===== */
.contact-map-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px dashed var(--border);
}

.contact-map-section h3 {
    position: relative;
    padding-left: 16px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-1);
}

.contact-map-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: var(--primary);
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 320px;
    background: linear-gradient(135deg, #e8eef7 0%, #f5f8fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--text-3);
}

.map-icon {
    font-size: 64px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.map-placeholder p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 4px !important;
    text-indent: 0 !important;
    text-align: center !important;
}

.map-addr {
    font-size: 13px;
    color: var(--text-3);
}

/* ===== Contact Responsive ===== */
@media (max-width: 992px) {
    .contact-info {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form {
        padding: 20px 18px;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-btn {
        justify-content: center;
    }
}

/* ===== Case Detail Section (caseshow.html) ===== */
.case-cover {
    margin-top: 24px;
}

.case-detail-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}
.case-detail-section p{
    font-size: 15px;
    color: var(--text-2);
    line-height: 2;
    margin-bottom: 18px;
    text-align: justify;
    text-indent: 2em;
}
.case-detail-section img{
    margin: 0 auto;
}
.case-detail-section h3 {
    position: relative;
    padding-left: 16px;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-1);
}

.case-detail-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: var(--primary);
}

/* Bullet list for scope items */
.case-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef1f5;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
}

.case-ul li:last-child {
    border-bottom: none;
}

.case-ul li i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--primary);
    font-size: 15px;
}

/* Responsive tweaks for detail page */
@media (max-width: 768px) {
    .article-meta {
        gap: 14px;
        padding: 12px 14px;
        font-size: 12px;
    }
    .article-nav {
        flex-direction: column;
    }
    .article-nav-item {
        max-width: 100%;
    }
}

/* ===== News List (inside sub-page) ===== */
.news-list {
    margin-top: 8px;
}

.news-list-item {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px dashed var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    /*padding-left: 8px;*/
    transform: translateX(5px);
}

/* Date block on the left */
.news-list-date {
    flex: 0 0 80px;
    width: 80px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    padding: 14px 0;
    align-self: flex-start;
    transition: background 0.3s ease;
}

.news-list-item:hover .news-list-date {
    background: var(--primary-dark);
}

.news-list-date .d {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.news-list-date .ym {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    letter-spacing: 1px;
}

/* Info on the right */
.news-list-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.news-list-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-item:hover .news-list-info h4 {
    color: var(--primary);
}

.news-list-info p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 10px;
    text-indent: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.news-list-more {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    gap: 4px;
    transition: transform 0.25s ease;
}

.news-list-item:hover .news-list-more {
    transform: translateX(4px);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.news-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.news-pagination .page-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.news-pagination .page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.news-pagination .page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.news-pagination .page-btn.disabled:hover {
    color: #ccc;
    border-color: var(--border);
}

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Sub-page Banner ===== */
.page-banner {
    position: relative;
    height: 260px;
    background: #1c2a3a;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* filter: brightness(0.55); */
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(90deg, rgba(1,81,152,0.75) 0%, rgba(1,81,152,0.2) 70%, rgba(0,0,0,0.15) 100%); */
}

.page-banner-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.page-banner-inner .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-banner h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;
}

.page-banner .en {
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .container {
        width: 96%;
    }
}

@media (max-width: 992px) {
    .header .container {
        gap: 15px;
    }
    .header-logo img {
        height: 56px;
    }
    .header-contact .phone {
        font-size: 22px;
    }
    .nav > .container > a,
    .nav > .container > .nav-item > a {
        padding: 16px 12px;
        font-size: 14px;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 44px 0 40px;
    }
    .footer-hotline {
        grid-column: 1 / -1;
    }

    /* Sub-page Layout */
    .page-content .container.sub-layout {
        gap: 20px;
    }
    .sub-sidebar {
        flex: 0 0 200px;
        width: 200px;
    }
    .sub-sidebar .sidebar-title {
        font-size: 20px;
    }
    .sub-main {
        padding: 28px 32px 36px;
    }
    .sub-article .article-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {

    /* Sub page */
    .page-banner {
        height: 200px;
    }
    .page-banner h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    /* ===== Sub-page Sidebar + Main Responsive ===== */
    .page-content {
        padding: 30px 0 50px;
    }
    .page-content .container.sub-layout {
        flex-direction: column;
        gap: 16px;
    }
    .sub-sidebar {
        display: none;
    }
    .sub-main {
        padding: 24px 20px 32px;
        min-height: auto;
    }
    .sub-main .breadcrumb-bar {
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
    .sub-article .article-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    .sub-article .article-body p {
        font-size: 14px;
        line-height: 1.9;
    }

    /* Header */
    .header {
        padding: 25px 0;
        position: sticky;
        top: 0;
        z-index: 100;
        /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3); */
    }
    .header .container {
        justify-content: space-between;
        align-items: center;
    }
    .header-logo img {
        height: 48px;
    }
    .header-contact {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }

    /* Nav - dropdown panel */
    .nav {
        background: transparent;
        box-shadow: none;
        position: static;
    }
    .nav .container {
        flex-wrap: wrap;
        position: relative;
        background: #fff;
        border-top: 1px solid #eee;
    }
    .nav > .container > a,
    .nav > .container > .nav-item {
        display: none;
        width: 100%;
        border-top: 1px solid #eee;
    }
    .nav.menu-open > .container > a,
    .nav.menu-open > .container > .nav-item {
        display: block;
    }
    .nav > .container > a,
    .nav > .container > .nav-item > a {
        padding: 14px 20px;
        font-size: 15px;
        color: #333;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
    .nav > .container > a:hover,
    .nav > .container > a.active,
    .nav > .container > .nav-item > a:hover,
    .nav > .container > .nav-item > a.active {
        background: #f5f6f8;
        color: var(--primary);
        box-shadow: none;
    }
    .nav-item {
        flex: 0 0 100%;
    }
    /* Dropdown on mobile */
    .nav-item .dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        box-shadow: none;
        min-width: auto;
        background: #fafafa;
    }
    .nav-item.mobile-open .dropdown {
        display: block;
    }
    .nav-item .dropdown a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
        color: #666;
        border-bottom: 1px solid #eee;
    }
    .nav-item .dropdown a:hover {
        color: var(--primary);
        background: #f0f1f3;
    }

    /* Banner */
    .banner {
        height: 380px;
    }
    .banner-text {
        z-index: 5;
        padding: 0 24px;
        box-sizing: border-box;
        text-align: left;
        left: 0;
        transform: translateY(-50%);
        width: auto;
        max-width: none;
    }
    .banner-text h2 {
        font-size: 28px;
        margin-bottom: 10px;
        letter-spacing: 1px;
        font-weight: bold;
    }
    .banner-text p {
        font-size: 15px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.85);
    }
    .banner-arrows {
        display: none;
    }
    .banner-dots {
        bottom: 18px;
        gap: 16px;
    }
    .banner-dot {
        width: 24px;
    }
    .banner-dot.active {
        width: 32px;
    }

    /* Section */
    section {
        /* padding: 50px 0; */
    }
    .section-title {
        margin-bottom: 35px;
    }
    .section-title h2 {
        font-size: 26px;
    }

    /* Business & Cases */
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cases-grid {
        gap: 15px;
    }

    .cases-grid .case-item {
        flex: 0 0 300px;
        width: 300px;
    }

    /* Partners */
    .partners {
        padding: 50px 0;
    }
    .partners-track {
        gap: 12px;
        animation-duration: 30s;
    }
    .partner-item {
        width: 120px;
        height: 72px;
    }
    .partner-logo {
        font-size: 13px;
    }
    .partners-fade {
        width: 40px;
    }

    /* Partner Page Grid */
    .partner-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .partner-card {
        height: 115px;
    }
    .partner-cat-title {
        font-size: 18px;
        margin-top: 28px;
    }

    /* About */
    .about-section {
        padding: 60px 0;
    }
    .about-wrap {
        flex-direction: column-reverse;
        gap: 32px;
    }
    .about-content {
        flex: none;
        width: 100%;
    }
    .about-visual {
        width: 100%;
        min-height: 280px;
    }
    .about-title {
        font-size: 30px;
    }
    .about-stats {
        gap: 12px;
        margin-top: 28px;
    }
    .stat-card {
        padding: 16px;
        gap: 12px;
    }
    .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
    .stat-num {
        font-size: 26px;
    }

    /* News */
    .news-section {
        padding: 55px 0;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .news-card-img {
        height: 200px;
    }
    .news-more-wrap {
        margin-top: 32px;
    }

    /* Footer */
    .footer-top-inner {
        flex-direction: column;
        gap: 16px;
    }
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
        padding: 38px 0 34px;
    }
    .footer-hotline {
        grid-column: 1 / -1;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        height: 42px;
    }
    .banner {
        height: 300px;
    }
    .banner-text h2 {
        font-size: 22px;
        letter-spacing: 0.5px;
    }
    .banner-text p {
        font-size: 13px;
    }
    .business-grid {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .partner-card {
        height: 100px;
        padding: 12px 8px 10px;
    }
    .partner-card span {
        font-size: 12px;
    }
    .partner-cat-title {
        font-size: 16px;
    }

    .cases-grid .case-item {
        flex: 0 0 280px;
        width: 280px;
    }
    .section-title h2 {
        font-size: 22px;
    }
    .section-title .sub {
        font-size: 12px;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-hotline {
        grid-column: auto;
    }
    .footer-phone {
        font-size: 30px;
    }
    .footer-qrs {
        gap: 18px;
    }
    .qr-box {
        width: 94px;
        height: 94px;
        font-size: 44px;
    }
    .footer-top-btns {
        gap: 12px;
    }
    .footer-select > button {
        padding: 9px 16px;
    }
}
