/* 南京先极软件开发有限公司 — 全新版式 */
:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #94a3b8;
    --primary: #0c4a6e;
    --primary-light: #0369a1;
    --accent: #0ea5e9;
    --accent-soft: #e0f2fe;
    --warm: #f59e0b;
    --line: #e2e8f0;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius: 20px;
    --radius-sm: 12px;
    --nav-h: 72px;
    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

/* —— Navbar —— */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(1120px, calc(100% - 32px));
    transition: top 0.3s, box-shadow 0.3s;
}

.navbar.is-scrolled {
    top: 10px;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--nav-h);
    padding: 10px 12px 10px 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
}

.brand__mark {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary);
}

.brand__text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.nav__link:hover { color: var(--ink); background: rgba(15, 23, 42, 0.05); }

.nav__link.active {
    color: var(--primary);
    background: var(--accent-soft);
}

.nav__link--primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: #fff !important;
    margin-left: 4px;
}

.nav__link--primary:hover {
    opacity: 0.92;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--accent-soft);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 2px;
}

/* —— Hero —— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-h) + 48px) 24px 72px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.18), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.12), transparent 35%),
        linear-gradient(160deg, #e8f4fc 0%, #f8fafc 45%, #eef2ff 100%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.hero__orb--1 {
    top: 12%;
    right: 8%;
    width: 320px;
    height: 320px;
    background: rgba(14, 165, 233, 0.22);
}

.hero__orb--2 {
    bottom: 10%;
    left: 5%;
    width: 240px;
    height: 240px;
    background: rgba(12, 74, 110, 0.12);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(12, 74, 110, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 74, 110, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black, transparent 90%);
}

.hero__layout {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - var(--nav-h) - 120px);
    min-height: calc(100dvh - var(--nav-h) - 120px);
}

.hero__badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 999px;
}

.hero__title {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.hero__title span {
    display: block;
    margin-top: 8px;
    font-size: 0.62em;
    font-weight: 700;
    color: var(--primary-light);
}

.hero__lead {
    max-width: 540px;
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    box-shadow: 0 12px 28px rgba(3, 105, 161, 0.28);
}

.btn--primary:hover { box-shadow: 0 16px 32px rgba(3, 105, 161, 0.34); }

.btn--ghost {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(12, 74, 110, 0.18);
}

.btn--ghost-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-top: 28px;
}

.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); }

.hero__panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero__panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.hero__panel-head span {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}

.hero__panel-head em {
    font-size: 12px;
    font-style: normal;
    color: var(--ink-faint);
}

.hero__stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero__stats li {
    padding: 18px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.hero__stats strong {
    display: block;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
}

.hero__stats strong small {
    font-size: 0.55em;
    font-weight: 700;
}

.hero__stats span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-faint);
    letter-spacing: 0.06em;
}

.hero__stats-code {
    grid-column: span 2;
}

.hero__stats-code strong {
    font-size: clamp(16px, 2.5vw, 20px);
    letter-spacing: 0.04em;
    word-break: break-all;
}

/* —— Ribbon —— */
.ribbon {
    overflow: hidden;
    padding: 16px 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.ribbon__track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: ribbonMove 30s linear infinite;
}

.ribbon__track span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.ribbon__track span::after {
    content: "◆";
    margin-left: 40px;
    opacity: 0.35;
    font-size: 10px;
}

@keyframes ribbonMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* —— Sections —— */
.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 96px 24px;
}

.section__header {
    max-width: 640px;
    margin-bottom: 48px;
}

.section__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.section__eyebrow--light { color: rgba(255, 255, 255, 0.65); }

.section__header h2,
.about__intro h2,
.contact__main h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section__desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

/* —— Services —— */
.section--services {
    background: var(--surface);
    max-width: none;
    border-radius: 32px 32px 0 0;
    margin-top: -24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.04);
}

.section--services .section__header,
.section--services .service-grid {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    padding: 28px 24px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--shadow-sm);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--primary-light);
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.service-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-soft);
}

.service-card--note {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(245, 158, 11, 0.08));
    border-style: dashed;
}

.service-card--note p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

/* —— About —— */
.section--about {
    max-width: none;
    padding: 96px 24px;
    background: linear-gradient(145deg, #0b3550 0%, #0c4a6e 55%, #075985 100%);
    color: #fff;
}

.about__layout {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.about__text {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.78);
}

.about__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.about__highlights li {
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
}

.about__highlights b {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.about__highlights span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
}

.about__timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.18);
    padding-left: 28px;
}

.timeline-item {
    position: relative;
    padding: 0 0 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--warm);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.timeline-item time {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--warm);
}

.timeline-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.timeline-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
}

/* —— Info —— */
.section--info { background: var(--bg); }

.info__registry {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info__row {
    margin: 0;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.info__row--full { grid-column: span 2; }

.info__row dt {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.info__row dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--ink);
}

.info__row--full dd {
    font-weight: 500;
    color: var(--ink-soft);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.tag-cloud span {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--accent-soft);
    border-radius: 999px;
}

/* —— Contact —— */
.section--contact {
    max-width: none;
    padding: 0 24px 96px;
    background: var(--bg);
}

.contact__card {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact__main {
    padding: 48px 40px;
    background: linear-gradient(145deg, #0b3550, #0369a1);
    color: #fff;
}

.contact__lead {
    margin: 0 0 28px;
    max-width: 420px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.contact__address {
    font-style: normal;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.contact__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.contact__main .contact__label { color: rgba(255, 255, 255, 0.55); }

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
}

.contact__item {
    flex: 1;
    padding: 24px 28px;
    background: var(--surface);
}

.contact__item p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--ink);
}

/* —— Footer —— */
.footer {
    padding: 40px 24px;
    background: #0b2233;
    color: rgba(255, 255, 255, 0.55);
}

.footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 24px;
    align-items: center;
}

.footer__brand strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
}

.footer__brand p,
.footer__meta p,
.footer__copy {
    margin: 0;
    font-size: 13px;
}

.footer__meta p + p { margin-top: 4px; }

.footer__copy {
    text-align: right;
    color: rgba(255, 255, 255, 0.4);
}

/* —— Responsive —— */
@media (max-width: 991px) {
    .hero__layout,
    .about__layout,
    .contact__card,
    .footer__inner {
        grid-template-columns: 1fr;
    }

    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card--note { grid-column: span 2; }

    .about__highlights { grid-template-columns: 1fr; }

    .footer__copy { text-align: left; }
}

@media (max-width: 767px) {
    .navbar { top: 10px; width: calc(100% - 20px); }
    .navbar__inner { border-radius: 20px; padding: 10px 14px; }

    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        top: calc(10px + var(--nav-h) + 8px);
        left: 10px;
        right: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s, opacity 0.25s;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav__link { border-radius: 10px; }
    .nav__link--primary { margin-left: 0; margin-top: 4px; }

    .hero { padding-bottom: 48px; }
    .hero__layout { min-height: auto; }

    .section { padding: 72px 20px; }
    .section--contact { padding: 0 20px 72px; }

    .service-grid,
    .info__registry { grid-template-columns: 1fr; }

    .service-card--note,
    .info__row--full { grid-column: span 1; }

    .hero__stats { grid-template-columns: 1fr 1fr; }
    .hero__stats-code { grid-column: span 2; }

    .contact__main { padding: 32px 24px; }
}
