body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #ffffff;
}
section { scroll-margin-top: 8rem; }
.bg-mesh {
    background-color: #ffffff;
    background-image: linear-gradient(to right, #f1f5f9 1px, transparent 1px), linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
}
.glass-nav {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.text-gradient {
    background: linear-gradient(135deg, #111827 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
}
.brand-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); border-color: rgba(37, 99, 235, 0.28); }
.nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hero-line { margin-bottom: 1rem; }
.title-line { display: inline; }
body.lang-en .hero-line { margin-bottom: 0.4rem; }
body.lang-en .title-line { display: block; margin-bottom: 0.4rem; }
body.lang-en .title-line + .title-line { margin-bottom: 0; }

.subtitle-block { display: flex; flex-direction: column; gap: 0.2rem; }

.system-map-card {
    position: relative;
    background:
        radial-gradient(circle at 86% 31%, rgba(37, 99, 235, 0.32), transparent 22%),
        radial-gradient(circle at 24% 0%, rgba(37, 99, 235, 0.24), transparent 28%),
        linear-gradient(135deg, #031129 0%, #061730 46%, #07101f 100%);
    border: 1px solid rgba(96, 165, 250, 0.45);
    box-shadow: 0 30px 85px rgba(15, 23, 42, 0.36);
}
.system-map-source,
.system-map-output,
.system-map-value {
    background: rgba(15, 38, 71, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.34);
    color: #f8fafc;
}
.system-map-core {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 48%, rgba(37, 99, 235, 0.42), transparent 30%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(15, 38, 71, 0.86));
    border: 1px solid rgba(125, 211, 252, 0.9);
    box-shadow: 0 0 32px rgba(37, 99, 235, 0.32), inset 0 0 18px rgba(125, 211, 252, 0.18);
}
.system-map-core::after {
    content: "";
    position: absolute;
    right: 2rem;
    top: 2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    opacity: 0.35;
    background:
        radial-gradient(circle, rgba(96, 165, 250, 0.75) 1px, transparent 2px);
    background-size: 18px 18px;
}
.system-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #93c5fd;
    background: radial-gradient(circle at 38% 28%, rgba(96, 165, 250, 0.42), rgba(15, 38, 71, 0.82));
    border: 1px solid rgba(96, 165, 250, 0.38);
}
.system-icon svg { width: 1.55rem; height: 1.55rem; }
.system-flow-line {
    position: relative;
    min-height: 24rem;
}
.system-flow-line::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 2.7rem;
    bottom: 2.7rem;
    width: 1px;
    background: rgba(96, 165, 250, 0.72);
    transform: translateX(-50%);
}
.system-flow-line::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.72), rgba(96, 165, 250, 0.9));
    transform: translateY(-50%);
}
.system-flow-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 999px;
    background: #60a5fa;
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.9);
    transform: translate(-50%, -50%);
}
.system-map-card--landscape {
    max-width: 68rem;
    margin-left: auto;
    margin-right: auto;
}
.system-map-card--landscape .system-icon {
    width: 2.35rem;
    height: 2.35rem;
}
.system-map-card--landscape .system-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}
.system-map-card--landscape .system-flow-line {
    min-height: 16.5rem;
}
.system-map-card--landscape .system-flow-line::before {
    top: 1.4rem;
    bottom: 1.4rem;
}
.system-map-card--landscape .system-flow-line::after {
    width: 4rem;
}
.system-map-card--landscape .system-map-core::after {
    width: 6rem;
    height: 6rem;
    right: 1.25rem;
    top: 1.25rem;
    background-size: 14px 14px;
}
.system-map-card--landscape [data-i18n="mapTitle"] {
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    line-height: 1.08;
}
.system-map-card--landscape [data-i18n="mapSubtitle"] {
    font-size: 0.95rem;
    line-height: 1.55;
}
.system-map-card--landscape [data-i18n="nodeCapability"] {
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    line-height: 1.12;
}
.system-map-card--landscape [data-i18n^="source"],
.system-map-card--landscape [data-i18n^="node"],
.system-map-card--landscape [data-i18n^="value"] {
    overflow-wrap: anywhere;
}
body.lang-en .system-map-card--landscape [data-i18n="nodeCapability"] {
    font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}
body.lang-en .system-map-card--landscape [data-i18n^="source"],
body.lang-en .system-map-card--landscape [data-i18n^="node"],
body.lang-en .system-map-card--landscape [data-i18n^="value"] {
    font-size: 0.9rem;
    line-height: 1.25;
}

/* 英文状态增加 Hero 与 About 间距 */
body.lang-en #home .max-w-\[1180px\] {
    padding-bottom: 0.75rem;
}
body.lang-en #about {
    padding-top: 0.75rem;
}
@media (min-width: 768px) {
    body.lang-en #home .max-w-\[1180px\] {
        padding-bottom: 1rem;
    }
    body.lang-en #about {
        padding-top: 1rem;
    }
}
@media (max-width: 1024px) {
    .system-flow-line { display: none; }
}

/* Contact cards */
.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.28);
}
.contact-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    margin-bottom: 1.25rem;
}
.contact-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}
.contact-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.contact-value {
    font-size: 0.82rem;
    color: #475569;
    white-space: nowrap;
}
.contact-img {
    width: 11rem;
    height: 11rem;
    object-fit: contain;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
}
