/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --primary-gradient: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    --accent: #00BCD4;
    --accent-light: #E0F7FA;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #f5f8fc;
    --bg-white: #ffffff;
    --border: #e8edf3;
    --shadow: 0 4px 20px rgba(21, 101, 192, 0.08);
    --shadow-hover: 0 8px 32px rgba(21, 101, 192, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg-white); line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Top Bar ──────────────────────────────────────────────────────────── */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }

/* ─── Header / Nav ─────────────────────────────────────────────────────── */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.logo img { height: 40px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}
.nav > li > a:hover,
.nav > li > a.active { color: var(--primary); background: rgba(21,101,192,0.06); }

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 8px 0;
    z-index: 100;
}
.nav > li:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
}
.dropdown-menu li a:hover { background: rgba(21,101,192,0.06); color: var(--primary); }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ─── Hero / Banner ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background: var(--primary-gradient);
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-slide .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-slide .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}
.hero-content {
    color: #fff;
    max-width: 600px;
    text-align: left;
}
.hero-content h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 28px; line-height: 1.7; }
.hero-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #fff;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}
.hero-content .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}
.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}
.hero-dots span.active { background: #fff; width: 30px; border-radius: 5px; }

/* ─── Section Common ───────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.section-title p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ─── Products Section ─────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-card .card-img {
    height: 240px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .card-img .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .card-img .bg-img { transform: scale(1.08); }
.product-card .card-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: opacity 0.4s;
}
.product-card .card-img .img-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21,101,192,0.85);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.product-card:hover .card-img .img-hover-overlay { opacity: 1; }
.product-card .card-img .img-hover-overlay .hover-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}
.product-card .card-img .img-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    z-index: 3;
    color: #fff;
    transition: all 0.4s;
}
.product-card .card-img .img-text h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.product-card .card-img .img-text .subtitle { font-size: 14px; opacity: 0.9; }
.product-card:hover .card-img .img-text { opacity: 0; }
.product-card .card-body { padding: 24px 28px 28px; }
.product-card .card-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.product-card .card-body .features { margin-top: 14px; }
.product-card .card-body .features li {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    list-style: none;
}
.product-card .card-body .features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ─── Service Roles ────────────────────────────────────────────────────── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.role-card {
    position: relative;
    height: 340px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    transition: all 0.4s;
    display: flex;
    align-items: flex-end;
}
.role-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
    transition: all 0.4s;
    z-index: 1;
}
.role-card .overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}
.role-card:hover .overlay { opacity: 0.85; }
.role-card .content {
    position: relative;
    z-index: 3;
    padding: 24px;
    color: #fff;
    width: 100%;
    transition: all 0.4s;
}
.role-card .content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.role-card .content .subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 0;
    transition: all 0.4s;
}
.role-card .content .detail {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    margin-top: 0;
}
.role-card:hover .content .subtitle { margin-bottom: 12px; }
.role-card:hover .content .detail {
    opacity: 1;
    max-height: 200px;
}
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* ─── Scenarios ────────────────────────────────────────────────────────── */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.scenario-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    transition: all 0.4s;
    display: flex;
    align-items: flex-end;
}
.scenario-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
    transition: all 0.4s;
    z-index: 1;
}
.scenario-card .overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
    background: rgba(21,101,192,0.85);
}
.scenario-card:hover .overlay { opacity: 0.85; }
.scenario-card .sc-content {
    position: relative;
    z-index: 3;
    padding: 24px;
    color: #fff;
    width: 100%;
    transition: all 0.4s;
    text-align: left;
}
.scenario-card .sc-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.scenario-card .sc-content .subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 0;
    transition: all 0.4s;
}
.scenario-card .sc-content .detail {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s;
    margin-top: 0;
}
.scenario-card:hover .sc-content .subtitle { margin-bottom: 12px; }
.scenario-card:hover .sc-content .detail {
    opacity: 1;
    max-height: 200px;
}
.scenario-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* ─── Carousel ─────────────────────────────────────────────────────────── */
.carousel-wrap {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    padding: 4px 0;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    opacity: 0;
}
.carousel-wrap:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }
.carousel-btn:disabled { opacity: 0.3 !important; cursor: default; }

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.carousel-track .case-card {
    width: calc((100% - 48px) / 3);
    flex: none;
}
.case-card .card-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.case-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card .card-body { padding: 24px; }
.case-card .card-body .tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(21,101,192,0.1);
    color: var(--primary);
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.case-card .card-body h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.case-card .card-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ─── News Page Grid ──────────────────────────────────────────────────── */
.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-page-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.news-page-card:hover { box-shadow: var(--shadow-hover); }
.news-page-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.news-page-img img { width: 100%; height: 100%; object-fit: cover; }
.news-page-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-lighter);
    font-size: 24px;
    font-weight: 700;
}
.news-page-body { padding: 20px; }
.news-page-body .news-page-date { font-size: 12px; color: var(--text-lighter); margin-bottom: 6px; }
.news-page-body h3 { font-size: 16px; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-page-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Cases List Grid ───────────────────────────────────────────────── */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cases-grid { grid-template-columns: 1fr; }
}

/* ─── News ─────────────────────────────────────────────────────────────── */
.news-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 0;
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card .card-img {
    width: 200px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .card-body { padding: 20px 20px 20px 0; flex: 1; }
.news-card .card-body .date { font-size: 12px; color: var(--text-lighter); margin-bottom: 6px; }
.news-card .card-body h3 { font-size: 16px; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Achievements / Numbers ───────────────────────────────────────────── */
.section-achievements {
    background: #fff;
    padding: 60px 0;
}
.achievements-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    text-align: center;
}
.achievement-item {
    flex: 1;
    max-width: 260px;
    padding: 0 30px;
    position: relative;
}
.achievement-item + .achievement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #e0e0e0;
}
.achievement-item .number { font-size: 48px; font-weight: 700; margin-bottom: 8px; color: #333; }
.achievement-item .number .suffix { font-size: 24px; }
.achievement-item .label { font-size: 15px; color: #666; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,0.3); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: transparent;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer {
    background: #10479b;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: 0.3s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col .company-info p { font-size: 13px; margin-bottom: 8px; line-height: 1.7; }
.footer-col .company-info .phone { font-size: 22px; font-weight: 700; color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ─── Page Header ──────────────────────────────────────────────────────── */
.page-header {
    background: #1a2332;
    padding: 60px 0;
    color: #fff;
    text-align: left;
    position: relative;
    background-size: cover;
    background-position: center;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.5); font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-header p { text-shadow: 0 1px 8px rgba(0,0,0,0.4); font-size: 16px; opacity: 0.85; }

/* ─── Contact Page ─────────────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1000px; margin: 0 auto; }
.contact-info h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 20px; }
.contact-info .info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-info .info-item .icon {
    width: 44px;
    height: 44px;
    background: rgba(21,101,192,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-info .info-item .text { font-size: 14px; color: var(--text-light); }
.contact-info .info-item .text strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    transition: 0.3s;
    margin-bottom: 16px;
    background: #fff;
    color: #666;
    box-sizing: border-box;
}
.contact-form select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.contact-form textarea { height: 140px; resize: vertical; }

/* ─── About Page ───────────────────────────────────────────────────────── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-intro .text h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 20px; }
.about-intro .text p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 14px; }
.about-intro .image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ─── Qualifications ──────────────────────────────────────────────────── */
.qual-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    padding: 4px 0;
}
.qual-card {
    flex: 0 0 calc(25% - 18px);
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s;
}
.qual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.qual-img {
    height: 200px;
    overflow: hidden;
}
.qual-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.qual-card:hover .qual-img img { transform: scale(1.05); }
.qual-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
    background: transparent;
    border: 1px dashed #ddd;
}
.qual-title {
    font-size: 14px;
    color: var(--text);
    padding: 16px;
    font-weight: 600;
}
@media (max-width: 768px) {
    .qual-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 480px) {
    .qual-card { flex: 0 0 100%; }
}

/* ─── Case Detail / News Detail ────────────────────────────────────────── */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.detail-main { min-width: 0; }
.detail-title { font-size: 28px; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.detail-meta { font-size: 13px; color: var(--text-lighter); margin-bottom: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.detail-summary { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; padding: 16px 20px; background: var(--bg-light); border-radius: var(--radius-sm); border-left: 3px solid var(--primary); }
.detail-main .content { font-size: 15px; line-height: 1.9; color: var(--text-light); }
.detail-main .content p { margin-bottom: 16px; }
.detail-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

.detail-sidebar h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.sidebar-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); transition: all 0.3s; }
.sidebar-item:hover { opacity: 0.8; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-img { width: 80px; height: 60px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.sidebar-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-info { flex: 1; min-width: 0; }
.sidebar-info h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.sidebar-info p { font-size: 12px; color: var(--text-lighter); }

@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .detail-sidebar { border-top: 1px solid var(--border); padding-top: 24px; }
}

/* ─── Flash Messages ───────────────────────────────────────────────────── */
.flash { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.flash.success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.flash.danger { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

/* ─── Breadcrumb ───────────────────────────────────────────────────────── */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-lighter); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ─── Category Tabs ────────────────────────────────────────────────────── */
.cat-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.cat-tabs a {
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.cat-tabs a:hover,
.cat-tabs a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; }
    .news-card { flex-direction: column; }
    .news-card .card-img { width: 100%; height: 200px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 16px 0; }
    .hamburger { display: flex; }
    .hero { height: 400px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 26px; }
    .products-grid { grid-template-columns: 1fr; }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .role-card { height: 280px; }
    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
    .scenario-card { height: 260px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .dropdown-menu { position: static; box-shadow: none; padding-left: 20px; display: none; }
    .nav > li:hover .dropdown-menu { display: none; }
    .nav > li.dropdown-open .dropdown-menu { display: block; }
}

@media (max-width: 600px) {
    .roles-grid { grid-template-columns: 1fr; }
    .role-card { height: 260px; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .scenario-card { height: 240px; }
    .achievements-grid { flex-wrap: wrap; }
    .achievement-item { max-width: 50%; flex: 0 0 50%; }
    .achievement-item + .achievement-item::before { display: none; }
}
@media (max-width: 480px) {
    .roles-grid { grid-template-columns: 1fr; }
    .hero { height: 320px; }
    .hero-content h1 { font-size: 24px; }
    .achievement-item { max-width: 100%; flex: 0 0 100%; }
    .achievement-item .number { font-size: 36px; }
    .product-card .card-img { height: 180px; }
    .qual-img { height: 140px; }
    .qual-placeholder { height: 140px; }
}

/* ─── Search Overlay ──────────────────────────────────────────────────── */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.search-overlay.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 120px; }
.search-overlay-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search-header h3 { font-size: 20px; color: var(--text); }
.search-close { font-size: 32px; cursor: pointer; color: #999; line-height: 1; }
.search-close:hover { color: var(--text); }
.search-form { display: flex; gap: 12px; }
.search-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}
.search-form button:hover { background: var(--primary-dark); }

/* ─── Animations ───────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 0.6s ease forwards; }
