/* Responsive additions: retain the original 1920px desktop appearance. */
.mobile-menu-toggle,
.mobile-submenu-toggle {
    display: none;
}

.mobile-nav-row {
    display: contents;
}

.mobile-control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar .nav-item-wrap:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
    transition-delay: 0s;
}

@media (max-width: 1919px) {
    html,
    body {
        min-width: 0;
        width: 100%;
        overflow-x: visible;
    }

    img {
        max-width: 100%;
    }

    .navbar-inner {
        padding-right: 28px;
        padding-left: 28px;
        gap: 20px;
        min-width: 0;
    }

    .navbar .brand,
    .navbar .brand-text,
    .navbar .brand-title-group,
    .navbar .nav-menu {
        min-width: 0;
    }

    .navbar .brand {
        gap: 12px;
    }

    .navbar .brand-logo {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .navbar .brand-text {
        gap: 10px;
    }

    .navbar .brand-name {
        font-size: clamp(15px, 1.2vw, 20px);
        line-height: 1.3;
    }

    .navbar .brand-en-name {
        font-size: 9px;
        letter-spacing: 0;
    }

    .navbar .brand-slogan {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .navbar .nav-menu {
        gap: clamp(12px, 1.5vw, 26px);
    }

    .navbar .nav-item {
        font-size: 14px;
        white-space: nowrap;
    }

    .banner {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .banner-track {
        width: 100%;
    }

    .banner-slide {
        width: 100%;
        min-width: 0;
        flex: 0 0 100%;
    }

    .solution-inner,
    .partner-inner,
    .hardware-inner,
    .about-inner,
    .stats-inner,
    .footer-inner {
        width: 100%;
        max-width: 1400px;
        min-width: 0;
        margin: 0 auto;
        padding-right: 28px;
        padding-left: 28px;
    }

    .detail-inner {
        width: 100%;
        max-width: 1180px;
        min-width: 0;
        margin: 0 auto;
        padding-right: 28px;
        padding-left: 28px;
    }

    .solution-card,
    .detail-content,
    .partner-card,
    .hardware-card,
    .about-text,
    .about-award,
    .footer-left,
    .footer-right,
    .footer-right-text {
        min-width: 0;
    }

    .solution-cards {
        gap: 20px;
    }

    .card-btns {
        flex-wrap: wrap;
        gap: 10px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .card-btns .btn {
        flex: 1 1 80px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .about-content {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        gap: 36px;
    }

    .about-award > img {
        display: block;
        width: 100%;
        max-width: 420px;
        height: auto;
        object-fit: contain;
        align-self: flex-start;
    }

    .footer-inner {
        gap: 32px;
    }

    .footer-row,
    .footer-copy,
    .footer-icp {
        overflow-wrap: anywhere;
        line-height: 1.7;
    }

    .footer-logo {
        flex: 0 0 auto;
    }

    #visitCounter > div {
        width: 100%;
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding-right: 28px !important;
        padding-left: 28px !important;
        transform: none !important;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1200px) {
    .navbar {
        position: sticky;
        top: 0;
        height: auto;
        width: 100%;
    }

    .navbar-inner {
        position: relative;
        min-height: 68px;
        height: auto;
        padding: 10px 24px;
        gap: 16px;
    }

    .navbar .brand {
        flex: 1 1 auto;
        max-width: calc(100% - 60px);
    }

    .navbar .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .navbar .brand-name {
        font-size: 17px;
    }

    .navbar .brand-en-name {
        font-size: 9px;
        line-height: 1.3;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 1px solid currentColor;
        border-radius: 6px;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .mobile-menu-line {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .mobile-nav-open .mobile-menu-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-nav-open .mobile-menu-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-open .mobile-menu-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: calc(100vh - var(--mobile-header-height, 80px));
        max-height: calc(100dvh - var(--mobile-header-height, 80px));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px 24px 20px;
        gap: 0;
        background: #050b1a;
        color: #ffffff;
        border-top: 1px solid rgba(127, 160, 193, 0.22);
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
        scrollbar-gutter: stable;
    }

    .navbar.theme-light .nav-menu {
        background: #ffffff;
        color: #111111;
    }

    .navbar.mobile-nav-ready .nav-menu {
        display: none;
    }

    .navbar.mobile-nav-ready.mobile-nav-open .nav-menu {
        display: flex;
    }

    .navbar .nav-item-wrap {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .mobile-nav-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    .navbar .nav-item,
    .navbar .dd-item {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 8px;
        font-size: 15px;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mobile-nav-row > .nav-item {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar .nav-item::after {
        display: none;
    }

    .mobile-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(127, 160, 193, 0.3);
        border-radius: 5px;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .mobile-submenu-chevron {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }

    .mobile-submenu-toggle[aria-expanded="true"] .mobile-submenu-chevron {
        transform: translateY(2px) rotate(225deg);
    }

    .navbar .nav-dropdown,
    .navbar .nav-item-wrap:hover .nav-dropdown,
    .navbar .nav-item-wrap:focus-within .nav-dropdown {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 6px 10px 12px;
        gap: 0;
        transform: none;
        border-radius: 6px;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        flex-direction: column;
        background: rgba(123, 158, 193, 0.09);
    }

    .navbar .nav-item-wrap.mobile-submenu-open > .nav-dropdown {
        display: flex;
    }

    .navbar .dd-col {
        width: 100%;
        min-width: 0;
        gap: 0;
    }

    .navbar .dd-item {
        padding: 10px 12px 10px 25px;
        font-size: 14px;
    }

    .navbar .dd-item::before {
        top: 12px;
        left: 8px;
    }

    .navbar button:focus-visible,
    .navbar a:focus-visible,
    .banner .dot:focus-visible,
    .detail-tabs .tab-item:focus-visible {
        outline: 2px solid #4fc3ff;
        outline-offset: 3px;
    }

    section[id],
    footer[id] {
        scroll-margin-top: calc(var(--mobile-header-height, 80px) + 16px);
    }

    .banner {
        padding-top: 0;
    }

    .banner-overlay {
        left: 6%;
    }

    .banner-overlay h1 {
        font-size: clamp(26px, 5vw, 52px);
        letter-spacing: 2px;
    }

    .banner-overlay p {
        font-size: clamp(12px, 1.8vw, 18px);
    }

    .banner-dots {
        bottom: 10px;
        gap: 0;
    }

    .banner-dots .dot,
    .banner-dots .dot.active,
    .banner-dots .dot:hover {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .banner-dots .dot::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.55);
    }

    .banner-dots .dot.active::before {
        background: #00aaff;
        box-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
    }

    .solution-section,
    .partner-section,
    .hardware-section,
    .about-section {
        padding: 46px 0 52px;
    }

    .solution-title,
    .detail-title,
    .partner-title,
    .hardware-title,
    .about-title {
        font-size: clamp(26px, 3.6vw, 36px);
        line-height: 1.45;
        letter-spacing: 1px;
        margin-bottom: 28px;
        overflow-wrap: anywhere;
    }

    .partner-subtitle,
    .hardware-subtitle {
        margin-bottom: 32px;
        font-size: 15px;
        line-height: 1.8;
        letter-spacing: 0;
    }

    .solution-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .card-img-wrap {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .card-img-wrap img {
        display: block;
        object-fit: contain;
        background: #ffffff;
    }

    .card-title {
        padding: 20px 20px 10px;
        line-height: 1.5;
    }

    .card-desc {
        padding: 0 20px 18px;
        line-height: 1.8;
    }

    .btn {
        max-width: 100%;
        min-height: 44px;
        padding: 12px 20px;
        line-height: 1.4;
        letter-spacing: 1px;
        white-space: normal;
        overflow-wrap: anywhere;
        touch-action: manipulation;
    }

    .detail-section {
        padding: 44px 0 52px;
    }

    .detail-body {
        flex-direction: column;
        gap: 28px;
    }

    .detail-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }

    .tab-item {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 48px;
        padding: 14px 18px;
        font-size: 15px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .detail-content {
        width: 100%;
        min-height: 0;
    }

    .tab-header {
        max-width: 100%;
        padding: 14px 24px;
        font-size: 26px;
        line-height: 1.5;
        margin-bottom: 22px;
        letter-spacing: 1px;
        overflow-wrap: anywhere;
    }

    .tab-desc {
        max-width: 100%;
        margin-bottom: 24px;
        line-height: 1.9;
    }

    .tab-tags {
        gap: 10px;
        margin-bottom: 28px;
    }

    .tag {
        max-width: 100%;
        padding: 9px 16px;
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .tab-btns {
        gap: 12px;
    }

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

    .partner-card {
        padding: 26px 18px;
    }

    .partner-logo {
        height: 100px;
        margin-bottom: 22px;
    }

    .partner-logo img {
        max-height: 100px;
    }

    .partner-tags li {
        font-size: 15px;
        line-height: 1.7;
    }

    .hardware-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .hw-img-wrap {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .hw-img-wrap img {
        display: block;
        object-fit: contain;
    }

    .hw-desc {
        padding: 20px;
        font-size: 14px;
    }

    .about-content {
        gap: 28px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.95;
        text-align: left;
    }

    .award-frame {
        width: min(320px, 100%);
    }

    .stats-section {
        padding: 38px 0;
    }

    .stats-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .stat-item {
        min-width: 0;
        padding: 0 10px;
    }

    .stat-num {
        font-size: 40px;
    }

    .stat-label {
        font-size: 13px;
        letter-spacing: 0;
    }

    .site-footer {
        padding: 30px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .footer-logo-wrap {
        min-width: 0;
    }

    .footer-logo img {
        width: 48px;
        height: 48px;
    }

    .footer-label {
        flex: 0 0 auto;
    }

    .footer-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 900px) {
    .hardware-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .navbar-inner {
        min-height: 68px;
        padding: 8px 14px;
        gap: 10px;
    }

    .navbar .brand {
        max-width: calc(100% - 54px);
        gap: 9px;
    }

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

    .navbar .brand-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .navbar .brand-title-group {
        width: 100%;
        gap: 3px;
    }

    .navbar .brand-name {
        font-size: 13px;
        letter-spacing: 0;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .navbar .brand-en-name {
        font-size: 8px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .navbar .brand-sep {
        display: none;
    }

    .navbar .brand-slogan {
        font-size: 11px;
        line-height: 1.2;
        letter-spacing: 1px;
    }

    .navbar .nav-menu {
        padding-right: 14px;
        padding-left: 14px;
    }

    .solution-inner,
    .detail-inner,
    .partner-inner,
    .hardware-inner,
    .about-inner,
    .stats-inner,
    .footer-inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .solution-section,
    .detail-section,
    .partner-section,
    .hardware-section,
    .about-section {
        padding: 34px 0 40px;
    }

    .solution-title,
    .detail-title,
    .partner-title,
    .hardware-title,
    .about-title {
        font-size: 25px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .solution-cards,
    .hardware-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .card-img-wrap {
        aspect-ratio: 16 / 9;
    }

    .card-title {
        font-size: 19px;
    }

    .card-btns {
        padding: 0 20px 20px;
    }

    .detail-body {
        gap: 22px;
    }

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

    .tab-item {
        padding: 12px;
        font-size: 13px;
        min-height: 48px;
    }

    .tab-header {
        font-size: 22px;
        padding: 12px 16px;
        letter-spacing: 0;
    }

    .tab-desc {
        font-size: 15px;
    }

    .tab-btns .btn {
        flex: 1 1 130px;
        min-width: 0;
        padding: 12px 16px;
        font-size: 14px;
    }

    .partner-grid {
        gap: 16px;
    }

    .partner-card {
        padding: 20px 8px;
    }

    .partner-logo {
        height: 70px;
        margin-bottom: 18px;
    }

    .partner-logo img {
        max-height: 70px;
    }

    .partner-tags {
        gap: 10px;
    }

    .partner-tags li {
        padding-left: 21px;
        font-size: 12px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .partner-tags li::before {
        top: 5px;
        width: 13px;
        height: 13px;
    }

    .hw-img-wrap {
        aspect-ratio: 16 / 10;
    }

    .hw-desc {
        padding: 20px;
        font-size: 14px;
    }

    .about-text p {
        font-size: 14px;
        text-indent: 0;
        margin-bottom: 18px;
    }

    .stats-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 16px;
    }

    .stat-item:nth-child(2n) {
        border-right: none;
    }

    .stat-num {
        font-size: 36px;
    }

    #visitCounter > div {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    #visitCounter span {
        font-size: 12px !important;
    }

    #visitCounter #visitNum {
        min-width: 0 !important;
        font-size: 20px !important;
    }

    .footer-row {
        font-size: 12px;
        display: flex;
        align-items: flex-start;
        gap: 2px;
    }

    .footer-copy,
    .footer-icp {
        font-size: 11px;
        letter-spacing: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-line {
        transition: none;
    }
}
