:root {
    --primary: #1E3A8A;
    --primary-dark: #142966;
    --blue: #3B82F6;
    --orange: #F97316;
    --ink: #1F2937;
    --muted: #6B7280;
    --line: #E5E7EB;
    --soft: #F4F7FB;
    --white: #FFFFFF;
    --shadow: 0 18px 44px rgba(30, 58, 138, 0.12);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Inter", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(14px);
    transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.12);
    border-color: transparent;
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: var(--white);
    font-weight: 800;
    font-size: 14px;
}

.brand-text {
    display: grid;
    gap: 0;
    min-width: 220px;
}

.brand-text strong,
.footer-brand strong {
    font-size: 16px;
    line-height: 1.25;
}

.brand-text small,
.footer-brand small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-left: auto;
}

.primary-nav a {
    padding: 10px 14px;
    border-radius: 6px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    transition: color 220ms var(--ease), background 220ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--primary);
    background: #EEF4FF;
}

.nav-phone {
    padding: 9px 14px;
    border: 1px solid rgba(30, 58, 138, 0.18);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--primary);
}

.menu-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-image: url("../img/hero-office-tech.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 24, 61, 0.88) 0%, rgba(30, 58, 138, 0.66) 48%, rgba(30, 58, 138, 0.18) 100%),
        linear-gradient(0deg, rgba(9, 14, 30, 0.22), rgba(9, 14, 30, 0.22));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 92px 0;
    max-width: 1180px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(38px, 7vw, 56px);
    line-height: 1.15;
    letter-spacing: 0;
}

.hero-subtitle {
    margin: 16px 0 0;
    font-size: 21px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.hero-copy {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 200ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    color: var(--white);
    background: var(--orange);
}

.btn-primary:hover {
    background: #EA580C;
}

.btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary.dark {
    color: var(--primary);
    border-color: rgba(30, 58, 138, 0.28);
    background: var(--white);
}

.btn-outline {
    color: var(--primary);
    border-color: rgba(30, 58, 138, 0.28);
    background: var(--white);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: #EEF4FF;
}

.section {
    padding: 86px 0;
}

.section.muted,
.muted {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h2 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.22;
}

h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
}

p {
    margin: 0 0 14px;
}

.lead {
    color: #4B5563;
    font-size: 18px;
}

.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.mini-card,
.case-card,
.service-card,
.contact-form-panel,
.fact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.06);
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.info-card:hover,
.mini-card:hover,
.case-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(59, 130, 246, 0.36);
}

.info-card,
.mini-card,
.case-card {
    padding: 26px;
}

.icon-line {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: var(--primary);
    background: #EAF2FF;
    font-weight: 900;
}

.split,
.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
}

.service-list {
    display: grid;
    gap: 14px;
}

.service-list a {
    display: grid;
    gap: 5px;
    padding: 20px 22px;
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.service-list a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-list strong {
    color: var(--primary);
    font-size: 20px;
}

.service-list span {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-weight: 800;
}

.text-link::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.proof-section {
    padding: 42px 0;
    background: var(--primary);
    color: var(--white);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.proof-item {
    display: grid;
    gap: 6px;
    padding: 26px;
    background: var(--primary);
    text-align: center;
}

.proof-item strong {
    font-size: 30px;
    line-height: 1;
}

.proof-item span {
    color: rgba(255, 255, 255, 0.82);
}

.cta-band {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #0F235A);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.cta-content h2 {
    color: var(--white);
}

.cta-content p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero {
    padding: 86px 0 70px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.96), rgba(59, 130, 246, 0.82)),
        linear-gradient(90deg, #1E3A8A, #3B82F6);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 52px);
    line-height: 1.12;
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.fact-panel {
    padding: 26px;
}

.fact-panel dl,
.case-meta {
    margin: 0;
    display: grid;
    gap: 16px;
}

.fact-panel dl div,
.case-meta div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.fact-panel dl div:last-child,
.case-meta div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

dt {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--orange);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 11px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 22px;
    list-style: none;
    border-left: 2px solid #D5E4FF;
}

.timeline li {
    position: relative;
    margin: 0 0 24px;
    padding-left: 22px;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 6px #FFE7D5;
}

.timeline time {
    display: block;
    color: var(--primary);
    font-weight: 900;
}

.timeline span {
    display: block;
    color: #4B5563;
}

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

.service-card {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    padding: 30px;
}

.service-card p {
    color: #4B5563;
}

.service-card ul {
    margin: 10px 0 24px;
    padding-left: 20px;
    color: #374151;
}

.service-card .btn {
    margin-top: auto;
}

.process-line {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.process-line div {
    position: relative;
    min-height: 116px;
    padding: 22px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
}

.process-line strong {
    display: block;
    color: var(--orange);
    font-size: 24px;
}

.process-line span {
    color: var(--primary);
    font-weight: 900;
}

.tech-groups {
    display: grid;
    gap: 16px;
}

.tech-groups div {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
}

.tech-groups h3 {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 19px;
}

.advantage-band {
    background: #FBFCFE;
}

.mini-card h3 {
    color: var(--primary);
    font-size: 20px;
}

.featured-case {
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.case-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 46px;
    align-items: center;
}

.case-visual {
    min-height: 330px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(59, 130, 246, 0.75)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px);
    box-shadow: var(--shadow);
}

.case-visual span {
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    color: var(--white);
    font-size: 28px;
    font-weight: 900;
}

.case-thumb {
    height: 150px;
    margin: -26px -26px 22px;
    border-radius: 8px 8px 0 0;
    background-size: cover;
    background-position: center;
}

.software-thumb {
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.86), rgba(249, 115, 22, 0.28)),
        linear-gradient(45deg, #F8FAFC 25%, transparent 25%),
        linear-gradient(-45deg, #F8FAFC 25%, transparent 25%),
        #DCE9FF;
}

.app-thumb {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.84), rgba(30, 58, 138, 0.72)),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.8), transparent 24%);
}

.game-thumb {
    background:
        linear-gradient(135deg, rgba(15, 35, 90, 0.92), rgba(59, 130, 246, 0.72)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 18px);
}

.case-card span {
    display: block;
    margin-top: 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 36px;
    align-items: start;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.contact-grid article {
    min-height: 118px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.contact-grid span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.contact-grid a,
.contact-grid strong {
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
}

.contact-grid small {
    color: var(--muted);
    line-height: 1.4;
}

.address-block,
.map-placeholder {
    margin-top: 16px;
    padding: 22px;
    border-radius: 8px;
    background: var(--soft);
}

.address-block h3 {
    color: var(--primary);
}

.en-address {
    color: var(--muted);
    font-size: 14px;
}

.map-placeholder {
    min-height: 180px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(30, 58, 138, 0.34);
    background:
        linear-gradient(135deg, rgba(234, 242, 255, 0.95), rgba(255, 247, 237, 0.82));
}

.map-placeholder strong {
    color: var(--primary);
    font-size: 22px;
}

.contact-form-panel {
    padding: 28px;
}

.contact-form-panel > p {
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    line-height: 1.4;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.form-message {
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.form-message.success {
    color: #14532D;
    background: #DCFCE7;
}

.form-message.error {
    color: #7F1D1D;
    background: #FEE2E2;
}

.form-message p {
    margin: 0;
}

.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.1fr;
    gap: 42px;
    padding: 52px 0 36px;
}

.footer-brand {
    color: var(--white);
    margin-bottom: 18px;
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer h2 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 18px;
}

.site-footer a:hover {
    color: var(--orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

@media (max-width: 1023px) {
    .nav-wrap {
        gap: 14px;
    }

    .brand-text {
        min-width: 0;
    }

    .primary-nav {
        gap: 0;
    }

    .primary-nav a {
        padding: 9px 10px;
        font-size: 14px;
    }

    .nav-phone {
        display: none;
    }

    .card-grid.four,
    .service-cards,
    .process-line,
    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .two-column,
    .case-feature,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-wrap {
        min-height: 68px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .brand-text strong {
        max-width: 190px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-text small {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 68px;
        display: none;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 12px 14px;
    }

    .hero {
        min-height: 570px;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(10, 24, 61, 0.9), rgba(30, 58, 138, 0.58));
    }

    .hero-content {
        padding: 70px 0 82px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-copy,
    .lead {
        font-size: 16px;
    }

    .hero-actions,
    .cta-actions {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading {
        text-align: left;
    }

    .card-grid.three,
    .card-grid.four,
    .service-cards,
    .process-line,
    .proof-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .cta-content,
    .footer-bottom {
        display: grid;
        text-align: left;
    }

    .case-visual {
        min-height: 220px;
    }

    .contact-form-panel {
        padding: 22px;
    }

    .footer-grid {
        gap: 24px;
        padding-top: 42px;
    }
}
