/* ═══════════════════════════════════════════════════════════
   Enterprise CMS — Clean Corporate
   Tone: Navy + White + Blue Accent
   ═══════════════════════════════════════════════════════════ */

:root {
    --navy: #0a1628;
    --navy-light: #13203b;
    --primary: #1a56db;
    --primary-hover: #1648c0;
    --accent: #3b82f6;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --text: #111827;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 14px;
    --transition: 0.25s ease;
}

/* ── Base ──────────────────────────────────────────────── */
body {
    font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
}

a { color: var(--mid-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--deep); }

h1,h2,h3,h4,h5,h6 { color: var(--deep); font-weight: 700; letter-spacing: -0.01em; }

/* ── Navigation ────────────────────────────────────────── */
.navbar-overlay {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(16px);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}
.navbar-overlay.scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    border-bottom-color: var(--border);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text) !important;
}
.navbar-brand i, .navbar-brand span { color: var(--primary); }

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-mid) !important;
    padding: 0.45rem 1rem !important;
    transition: color var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: none;
}

/* Dropdown */
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.4rem 0;
    margin-top: 0.5rem;
}
.dropdown-item {
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 1.3rem;
    color: var(--text-mid);
    transition: all 0.15s ease;
}
.dropdown-item:hover { background: #eff6ff; color: var(--primary); }

@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu { display: block; }
}

/* ── Banner ────────────────────────────────────────────── */
#heroBanner { position: relative; overflow: hidden; background: var(--black); }

.carousel-item {
    height: 100vh;
    min-height: 520px;
    max-height: 850px;
    background-size: cover;
    background-position: center;
    background-color: var(--black);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.35) 50%, rgba(10,22,40,0.7) 100%);
    z-index: 1;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(55%);
    z-index: 2;
    left: 6%;
    right: 6%;
    text-align: left;
}
.banner-content { max-width: 720px; }

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(6,214,240,0.3);
}

.banner-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 1.8rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 34px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border: none;
    border-radius: 30px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(79,140,247,0.4);
}
.btn-banner:hover {
    box-shadow: 0 6px 30px rgba(79,140,247,0.6);
    transform: translateY(-2px);
    color: #fff;
}

/* Button: outline style */
.btn-banner-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 34px;
    font-size: 1rem; font-weight: 700;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 30px;
    transition: all var(--transition);
    box-shadow: 0 0 16px var(--accent-glow);
}
.btn-banner-outline:hover {
    background: var(--accent);
    color: var(--black);
}

/* Button: dark style */
.btn-banner-dark {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 34px;
    font-size: 1rem; font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.btn-banner-dark:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* Animations */
.animate-fadeUp {
    opacity: 0; transform: translateY(40px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.carousel-item:not(.active) .animate-fadeUp { animation: none; opacity: 0; transform: translateY(40px); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }


/* ── Section Styles ────────────────────────────────────── */
body { background: var(--white); color: var(--text); }
.section-title {
    margin-bottom: 3rem;
    text-align: center;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.6rem;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0.8rem auto 0;
    border-radius: 2px;
}
.section-title p { color: var(--text-mid); max-width: 600px; margin: 0.8rem auto 0; font-size: 1rem; }

/* ── Business ──────────────────────────────────────────── */
#business-section {
    background: var(--white);
    padding: 5rem 0;
}

/* ── Cases ─────────────────────────────────────────────── */
#cases-section {
    background: var(--light-bg);
    padding: 5rem 0;
}
.case-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
    background: var(--white);
    position: relative;
}
.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.case-card .card-img-top { height: 240px; object-fit: cover; }
.case-card .card-body { padding: 1.3rem; }
.case-card .card-title { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.case-card .card-text { color: var(--text-mid); }
.case-card .tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.75rem; font-weight: 600;
    border-radius: 4px; margin-bottom: 0.5rem;
    background: #eff6ff; color: var(--primary);
}
.play-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 3rem; color: rgba(255,255,255,0.9);
    pointer-events: none;
}
.case-card .card-footer { background: transparent; border-color: var(--border); }
.case-card .btn { color: var(--primary); }

/* ── Culture ───────────────────────────────────────────── */
#culture-section {
    background: var(--white);
    padding: 5rem 0;
}
.culture-content {
    max-width: 800px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.9; color: var(--text-mid);
}

/* ── Articles ──────────────────────────────────────────── */
#articles-section {
    background: var(--light-bg);
    padding: 5rem 0;
}
.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.article-card .card-img-top { height: 200px; object-fit: cover; }
.article-card .card-body { padding: 1.4rem; flex: 1; }
.article-card .card-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.article-card .card-text { color: var(--text-mid); font-size: 0.9rem; flex: 1; }
.article-card .card-date { font-size: 0.8rem; color: var(--text-light); margin-top: 0.7rem; }
.article-card .card-footer { background: transparent; border-color: var(--border); }
.article-card .btn-link { color: var(--primary); }

/* ── Article Detail ────────────────────────────────────── */
.article-detail { padding: 3rem 0 4rem; }
.article-header { margin-bottom: 2.5rem; }
.article-header h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.3; }
.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--steel);
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-mid);
    max-width: 780px;
}
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.article-body h2,.article-body h3 { margin-top: 2rem; color: var(--deep); }

/* ── Article List ──────────────────────────────────────── */
.article-list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--steel);
    transition: all var(--transition);
}
.article-list-item:hover { padding-left: 0.8rem; }
.article-list-thumb {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.article-list-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.article-list-info p { color: var(--text-light); font-size: 0.93rem; }

@media (max-width: 768px) {
    .article-list-item { flex-direction: column; }
    .article-list-thumb { width: 100%; height: 200px; }
}

/* ── Contact Page ──────────────────────────────────────── */
.contact-page { padding: 4rem 0 5rem; }
.contact-info-card {
    background: var(--deep);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    height: 100%;
}
.contact-info-card h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.4rem; }
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.3rem;
    align-items: flex-start;
}
.contact-info-item i { font-size: 1.3rem; color: var(--copper-light); margin-top: 2px; }
.contact-info-item strong { display: block; margin-bottom: 2px; font-size: 0.9rem; }
.contact-info-item span { font-size: 0.92rem; opacity: 0.85; }
.contact-form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.contact-form-card .form-control {
    border: 1px solid var(--steel);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.contact-form-card .form-control:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(200,150,62,0.12);
}
.contact-form-card .btn-submit {
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    background: var(--deep);
    color: #fff;
    border: none;
    border-radius: 50px;
    transition: all var(--transition);
}
.contact-form-card .btn-submit:hover { background: var(--copper); transform: translateY(-2px); }

/* ── Page Header ──────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--navy), #1a3355);
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(6,182,212,0.08) 0%, transparent 50%);
    z-index: 1;
}
.page-header svg { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 1; }
.page-header h1 { color: #fff; font-size: 2.4rem; font-weight: 800; position: relative; z-index: 2; }
.page-header .breadcrumb { position: relative; z-index: 2; justify-content: center; margin-top: 0.8rem; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.55); }
.page-header .breadcrumb .active { color: var(--accent); }
.page-content {
    background: var(--white);
    padding: 4rem 0; max-width: 820px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.9; color: var(--text-mid);
}

/* ── Contact ───────────────────────────────────────────── */
.contact-page { background: var(--white); padding: 3rem 0 5rem; }
.contact-info-card {
    background: var(--black);
    color: #fff;
    padding: 2.2rem; border-radius: var(--radius-lg); height: 100%;
}
.contact-info-card h3 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.3rem; }
.contact-info-item { display: flex; gap: 0.8rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-info-item i { font-size: 1.1rem; color: var(--accent); margin-top: 2px; }
.contact-info-item strong { display: block; margin-bottom: 1px; font-size: 0.85rem; }
.contact-info-item span { font-size: 0.9rem; opacity: 0.85; }
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2.2rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.contact-form-card .form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-size: 0.93rem;
}
.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.btn-submit {
    padding: 0.8rem 2.5rem; font-weight: 700;
    background: var(--primary); color: #fff;
    border: none; border-radius: 8px;
    transition: all var(--transition);
}
.btn-submit:hover { background: var(--primary-hover); }

/* ── Article pages ─────────────────────────────────────── */
.article-list-item {
    display: flex; gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.article-list-item:hover { padding-left: 0.5rem; border-bottom-color: var(--primary); }
.article-list-thumb { width: 200px; height: 140px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.article-list-info h4 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.article-list-info p { color: var(--text-mid); font-size: 0.9rem; }
.py-5 { background: var(--white); }

.article-detail { background: var(--white); padding: 3rem 0 4rem; }
.article-header h1 { font-size: 2rem; font-weight: 700; color: var(--text); }
.article-meta {
    display: flex; gap: 1.5rem;
    color: var(--text-light); font-size: 0.88rem; margin-top: 0.6rem;
    padding-bottom: 1.2rem; border-bottom: 1px solid var(--border);
}
.article-body { font-size: 1.05rem; line-height: 1.9; color: var(--text-mid); max-width: 780px; }
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }

.case-detail { background: var(--white); padding: 3rem 0 4rem; }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.case-gallery img { width: 100%; border-radius: var(--radius); cursor: pointer; transition: transform 0.3s; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--black);
    color: #94a3b8;
    padding: 4rem 0 0;
}
.site-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.6rem; position: relative; }
.site-footer h5::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 25px; height: 2px;
    background: var(--accent);
}
.site-footer a { color: #64748b; font-size: 0.9rem; transition: all 0.2s; }
.site-footer a:hover { color: var(--accent); padding-left: 3px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.45rem; }
.footer-bottom {
    margin-top: 3rem; padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .carousel-item { height: 450px; max-height: 70vh; }
    .carousel-caption { left: 5%; right: 5%; text-align: center; }
    .banner-title { font-size: 1.55rem; }
    .banner-subtitle { font-size: 0.88rem; }
    .btn-banner,.btn-banner-outline,.btn-banner-dark { padding: 0.6rem 1.5rem; font-size: 0.85rem; }

    .section-title h2 { font-size: 1.6rem; }
    .section-title h2::after { margin-top: 0.6rem; }
    #business-section, #cases-section, #culture-section, #articles-section { padding: 3rem 0; }

    .page-header { min-height: 25vh; padding: 5rem 0 3rem; }
    .page-header h1 { font-size: 1.6rem; }
    .page-content { padding: 2rem 0; font-size: 0.95rem; }

    .site-footer { padding: 2rem 0 0; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .article-header h1 { font-size: 1.4rem; }
    .article-list-item { flex-direction: column; }
    .article-list-thumb { width: 100%; height: 180px; }
}
