/* v1.0.54: shared small-screen layout. Desktop theme remains in style3.css. */
.nav[hidden] { display: none !important; }
.toggleMenu { border: 0; background: transparent; cursor: pointer; font: inherit; }
.rc-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rc-table-scroll:focus-visible, .toggleMenu:focus-visible, .header-right a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rc-table-scroll:focus-visible { outline-color: #e22e2e; }
.rc-table-scroll table { margin-bottom: 0; }
.header-right a.rc-qr-open span.wx img { height: 222px; opacity: 1; }

/* Keep the full hexagon inside the heading at every viewport width. */
.rc-page .what-main h3,
.rc-page .blog-main h3,
.rc-page .price-main h3,
.rc-page .quality-main h3,
.rc-page .touch-main h3,
.rc-page .clients-mian h3 { background-position: center; background-size: contain; }

/* One accessible control; draw the arrow sharply at every screen density. */
.rc-page #toTop { display: flex; align-items: center; justify-content: center; position: fixed; right: 12px; bottom: 12px; z-index: 9999; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: #e22e2e; color: #fff; text-indent: 0; cursor: pointer; }
.rc-page #toTop[hidden] { display: none !important; }
.rc-page #toTop:hover { background: #bd2020; }
.rc-page #toTop:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rc-page #toTop .rc-back-to-top-icon { display: block; width: 14px; height: 14px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(3px) rotate(-45deg); pointer-events: none; }

/* Must match the compact-navigation breakpoint in responsive.js. */
@media (max-width: 1100px) {
    html { scroll-padding-top: 92px; scrollbar-gutter: stable; }
    body.rc-page { font-size: 16px; }
    .rc-page h1, .rc-page h3, .rc-page .captn h4, .rc-page .project-bottom h4 { text-wrap: balance; }
    body.rc-menu-open { overflow: hidden; }
    .rc-page [id] { scroll-margin-top: 0; }
    .rc-page #registration-info { scroll-margin-top: 0 !important; }
    .rc-page .header, .rc-page .header.on { position: relative; z-index: auto; overflow: visible; min-height: 260px; padding: 96px 20px 24px; }
    .rc-page .header > img, .rc-page .header.on > img { display: block; height: 100%; width: 100%; object-fit: cover; z-index: 0; }
    .rc-page .header-top { position: relative; z-index: 1; padding: 0; }
    .rc-page .header-top > a img { width: 100px; max-width: 100%; height: auto; }
    .rc-page:not(.rc-home) .header-top > h1, .rc-page:not(.rc-home) .header-top > h2 { display: none; }
    .rc-page .header-top-bottom { margin: 20px 0 0; }
    .rc-page .header-top-bottom img { width: 32px; height: auto; }
    .rc-page .header-home, .rc-page .header-home.fixed { position: fixed; inset: 0 0 auto; width: 100%; margin: 0; background: #272727; z-index: 10000; box-shadow: 0 1px 0 rgba(255,255,255,.14); }
    .rc-page .h_menu4 { display: flex; align-items: center; gap: 12px; position: relative; width: 100%; min-height: 76px; padding: 10px 24px; }
    .rc-page .header-left { display: contents; }
    .rc-page .header-left-logo { order: 1; float: none; flex: 0 0 auto; width: 112px; text-align: left; }
    .rc-page .header-left-logo a { display: block; }
    .rc-page .header-left-logo img { display: block; width: 100%; height: auto; }
    .rc-page .header-left-text { order: 3; float: none; width: auto; padding: 0; }
    .rc-page .header-right { order: 2; float: none; width: auto; margin-left: auto; position: relative; }
    .rc-page .header-right ul { display: flex; align-items: center; margin: 0; padding: 0; }
    .rc-page .header-right li { float: none; display: block; margin: 0; }
    .rc-page .header-right a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
    .rc-page .header-right span { margin: 0; }
    .rc-page .header-right .wx { position: static; }
    .rc-page .header-right ul li a span.wx img,
    .rc-page .header-right ul li a span.wx:hover img { left: auto; right: 0; margin: 0 !important; top: 52px; width: 160px !important; height: 0 !important; opacity: 0; pointer-events: none; }
    .rc-page .header-right ul li a.rc-qr-open span.wx img { height: 180px !important; opacity: 1; pointer-events: auto; }
    .rc-page .toggleMenu { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 8px; border: 1px solid #777; border-radius: 4px; line-height: 1; }
    .rc-page .toggleMenu img { width: 28px; height: 28px; object-fit: contain; }
    .rc-page .toggleMenu[aria-expanded="true"] { border-color: #e22e2e; background: #424242; }
    .rc-page .h_menu4 > .clearfix, .rc-page .header-left > .clearfix { display: none; }
    .rc-page .nav { position: absolute; inset: 100% 0 auto; width: 100%; margin: 0; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 16px; background: #272727; text-align: left; border-top: 1px solid #484848; box-shadow: 0 8px 16px rgba(0,0,0,.18); }
    .rc-page .nav:not([hidden]) { display: block; }
    .rc-page .nav > li { display: block; width: 100%; margin: 0; border-radius: 0; }
    .rc-page .nav > li + li { border-top: 1px solid #414141; }
    .rc-page .nav > li > a { display: block; min-height: 48px; padding: 12px 0; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.6; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; text-shadow: none; transform: none; background: transparent; }
    .rc-page .nav > li > a .cn { color: #d0d0d0; font-size: 14px; font-weight: 400; margin-left: 5px; }
    .rc-page .nav > li > a:hover, .rc-page .nav > li > a:focus-visible { color: #ff7777; transform: none; }
    .rc-page .nav > li > a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
    .rc-home .header { min-height: 0; padding: 108px 24px 36px; }
    .rc-home .header-top h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.35; letter-spacing: 1px; margin: 24px auto; max-width: 760px; }
    .rc-home .header-top h2 { font-size: 17px; line-height: 1.85; letter-spacing: .4px; margin: 24px auto; max-width: 680px; }
    .rc-home .header-top h2:has(> br:only-child) { display: none; }
    .rc-home .header-top > p { margin: 0; }
    .rc-home .simply-countdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; width: 100%; max-width: 480px; margin: 28px auto; }
    .rc-home .simply-countdown > .simply-section { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
    .rc-home .simply-countdown > .simply-section > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
    .rc-home .simply-countdown > .simply-section .simply-amount { font-size: clamp(26px, 5vw, 38px); line-height: 1.3; }
    .rc-home .simply-countdown > .simply-section .simply-word { font-size: 11px; color: #eee; }
}

@media (max-width: 1100px) {
    .rc-page .container { width: 100%; max-width: 800px; padding-left: 24px; padding-right: 24px; }
    .rc-page .match-about { padding: 36px 0; }
    .rc-page .about-info { margin: 0; }
    .rc-page .about-grids { float: none; width: 100%; padding: 0; margin: 0 0 32px; min-width: 0; }
    .rc-page .match-about h3, .rc-page .team h3 { font-size: clamp(24px, 4vw, 30px); line-height: 1.3; letter-spacing: 0; margin: 0 0 20px; overflow-wrap: anywhere; }
    .rc-page .match-about h5 { font-size: 19px; line-height: 1.5; margin: 0 0 16px; }
    .rc-page .match-about p, .rc-page .about-grids p, .rc-page .panel-body, .rc-page .venue-text p { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
    .rc-page .match-about p, .rc-page .about-grids p { color: #6b6b6b; font-weight: 400; margin: 0 0 20px; }
    .rc-page .panel-body { color: #333; padding: 16px; }
    .rc-page .panel-body i.cn, .rc-page .about-grids i.cn { font-size: inherit; line-height: inherit; }
    .rc-page .panel-heading { padding: 0; }
    .rc-page .panel-title { font-size: 16px; line-height: 1.5; }
    .rc-page .panel-title > a { display: block; padding: 13px 16px; }
    .rc-page .panel-body i.cn a { margin-top: 16px; }
    .rc-page .about-grids img, .rc-page .about-video video { max-width: 100%; height: auto; }
    .rc-page video { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 16 / 9; }
    .rc-page .competition-guide-section { max-width: 800px; margin-top: 12px; padding: 28px 24px 0; }
    .rc-page .competition-guide-section > .competition-video { margin-bottom: 0; }
    .rc-page .competition-guide-section .competition-video-heading h3 { font-size: 25px; line-height: 1.4; }
    .rc-page .competition-guide-section .competition-guide-title-cn { font-size: 16px; }
    .rc-page .competition-video .competition-video-heading { margin-bottom: 20px; gap: 16px; }
    .rc-page .competition-video-picker label, .rc-page .competition-video-caption, .rc-page .competition-video .competition-video-note { font-size: 14px; line-height: 1.7; }
    .rc-page .competition-video-languages button { min-height: 44px; }
    .rc-page .team { max-width: 800px; margin: 44px auto 0; padding: 0 24px; }
    .rc-page .team-info { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 24px 0 0; }
    .rc-page .team-info > .clearfix { display: none; }
    .rc-page .team-grids { float: none; width: auto; margin: 0; padding: 0; min-width: 0; }
    .rc-page .team-grids a { display: block; height: 100%; background: #272727; }
    .rc-page .team-grids img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
    .rc-page .team-grids .captn, .rc-page .team-grids:hover .captn { position: static; width: 100%; height: auto; padding: 16px; background: #272727; }
    .rc-page .team-grids .captn h4 { height: auto; white-space: normal; overflow: visible; font-size: 18px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
    .rc-page .team-grids .captn p { font-size: 14px; line-height: 1.6; margin: 6px 0 0; color: #ddd; }
    .rc-home .project { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 0; background: transparent; }
    .rc-home .project > .clearfix { display: none; }
    .rc-home .project .project-left { display: flex; flex-direction: column; align-self: stretch; position: relative; width: 100%; float: none; min-width: 0; background: #272727; }
    .rc-home .project .project-left:not(.project-image-only)::before { content: ''; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 1; }
    .rc-home .project .project-left > img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .rc-home .project .project-bottom { position: relative; inset: auto; z-index: 1; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 16px 16px 18px; background: rgba(39,39,39,.68); text-align: center; text-shadow: none; }
    .rc-home .project .project-bottom h4 { font-family: inherit; font-size: 1.25em; font-weight: 100; line-height: 1.4; letter-spacing: 2px; height: auto; max-width: 100%; margin: 0; white-space: normal; overflow: visible; }
    .rc-home .project .project-bottom label { display: block; flex: 0 0 1px; width: 64px; margin: 8px 0; }
    .rc-home .project .project-bottom p { font-size: 14px; font-weight: 700; line-height: 1.5; margin: 0; color: #f2f2f2; }
    .rc-home .project .p-btn { margin: 12px 0 0; }
    .rc-home .project .p-btn a { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 44px; padding: 12px 21px; margin: 0; font-size: 12px; font-weight: 100; line-height: 1.4; letter-spacing: 2px; }
    .rc-home .project .project-image-only { aspect-ratio: 1; background: transparent; }
    .rc-home .project .project-image-only > img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
    .rc-home .what-text { padding: 36px 24px; }
    .rc-home .what-text p { margin: 0 auto 16px; padding: 0; max-width: 720px; font-size: 18px; line-height: 1.8; }
    .rc-home .what-text .ct { margin: 0; padding: 0; }
    .rc-home .what-text .ct p::before, .rc-home .what-text .ct p::after { display: none; }
    .rc-home .short-section { padding: 32px 24px; }
    .rc-home .stats-bar .row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 12px; margin: 0; }
    .rc-home .stats-bar .row::before, .rc-home .stats-bar .row::after { display: none; }
    .rc-home .stats-bar .row > div { float: none; width: 100%; padding: 0; }
    .rc-home .counter-item h2 { margin: 0; font-size: 36px; }
    .rc-home .counter-item h6 { font-size: 12px; line-height: 1.5; margin-top: 8px; }
    .rc-page .about-main { margin: 32px 0; }
    .rc-page .about-main > h3 { font-size: 26px; line-height: 1.4; letter-spacing: 1px; overflow-wrap: anywhere; }
    .rc-page .about-box { margin-top: 24px; }
    .rc-page .ui-article { padding: 28px; overflow-wrap: anywhere; }
    .rc-page .ui-article > .ct { margin-top: 24px; }
    .rc-page .ui-article > .ct:first-child { margin-top: 0; }
    .rc-page .ui-article > .ct h3 { font-size: 20px; line-height: 1.5; letter-spacing: .5px; margin: 28px 0 12px; }
    .rc-page .ui-article > .ct h3:first-child { margin-top: 0; }
    .rc-page .ui-article > .ct h3 { color: #ff6262; }
    .rc-page .ui-article > .ct h3 span { color: #ccc; }
    .rc-page .ui-article > .hd p, .rc-page .ui-article > .ct p, .rc-page .ui-article .ct, .rc-page .ui-article .ct a { font-size: 16px; line-height: 1.8; }
    .rc-page .ui-article i.cn { font-size: inherit; }
    .rc-page .ui-article img, .rc-page .about-box .img img { max-width: 100%; height: auto; }
    .rc-page .venue-text { padding: 32px 0 !important; }
    .rc-page iframe { max-width: 100%; width: 100%; }
    .rc-page .about-main #pdfContainer { height: 75vh; min-height: 400px; max-height: 800px; }
    .rc-page .rc-table-scroll, .rc-page .table-responsive { border: 1px solid #ddd; margin: 16px 0; }
    .rc-page table { font-size: 14px; line-height: 1.6; }
    .rc-page th, .rc-page td { padding: 10px; vertical-align: top; }
    .rc-page #pricing { padding: 20px 16px; }
    .rc-page .touch { padding: 36px 0; }
    .rc-page .touch-main h3 { font-size: 28px; }
    .rc-page .touch-top { margin-top: 28px; }
    .rc-page .touch-right-bottom { display: flex; flex-direction: column; justify-content: center; gap: 20px; width: 320px; max-width: 100%; height: auto; min-height: 350px; padding: 42px 24px; background-size: 100% 100%; }
    .rc-page .touch-right-top { padding: 0 !important; }
    .rc-page .touch-right-top h4, .rc-page .touch-right-top p { color: #272727; font-size: 16px; line-height: 1.65; letter-spacing: 0; margin: 8px 0 0; }
    .rc-page .touch-right-top p a { display: inline-flex; align-items: center; min-height: 44px; color: #272727; font-size: 14px; letter-spacing: 0; text-decoration: underline; }
    .rc-page .touch-right-top i.cn { font-size: 14px; }
    .rc-page .rc-hall-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; font-size: 0; }
    .rc-page .rc-hall-index > br { display: none; }
    .rc-page .rc-hall-index h3 { grid-column: 1 / -1; margin: 28px 0 8px; font-size: 22px; }
    .rc-page .rc-hall-index h3:first-child { margin-top: 0; }
    .rc-page .rc-hall-index h3 i.cn { font-size: inherit; }
    .rc-page .rc-hall-index h5 { margin: 0; font-size: 16px; }
    .rc-page .rc-hall-index li { list-style: none; }
    .rc-page .rc-hall-index a { display: block; padding: 12px; min-height: 48px; background: #f7f7f7; border: 1px solid #e5e5e5; overflow-wrap: anywhere; }
    .rc-page .rc-hall-index a:focus-visible { outline: 2px solid #e22e2e; outline-offset: 1px; }
    .rc-page .rc-section-anchor { height: 32px; }
    .rc-page .rc-section-anchor > br { display: none; }
    .rc-page .footer { padding: 28px 0; }
    .rc-page .footer-text img { max-width: 100%; height: auto; }
}

@media (max-width: 600px) {
    .rc-page .h_menu4 { padding: 10px 16px; gap: 8px; }
    .rc-page .header-left-logo { width: clamp(88px, 24vw, 112px); }
    .rc-page .header-right a { width: 40px; }
    .rc-page .nav { padding: 8px 20px 16px; }
    .rc-page .header { min-height: 220px; padding: 96px 16px 24px; }
    .rc-home .header { padding: 100px 16px 28px; }
    .rc-home .header-top h1 { font-size: 25px; }
    .rc-home .header-top h2 { font-size: 15px; line-height: 1.9; letter-spacing: 0; }
    .rc-home .simply-countdown { gap: 8px; max-width: 360px; }
    .rc-page .container { padding-left: 16px; padding-right: 16px; }
    .rc-page .match-about { padding: 28px 0; }
    .rc-page .about-grids { margin-bottom: 28px; }
    .rc-page .competition-guide-section { padding-left: 16px; padding-right: 16px; }
    .rc-page .competition-guide-section .competition-guide-title-cn { display: block; margin: 6px 0 0; }
    .rc-page .competition-video-caption { gap: 8px; }
    .rc-page .competition-video-caption > :first-child { min-width: 0; }
    .rc-page .team-info { gap: 16px; }
    .rc-page .team { padding: 0 16px; }
    .rc-page .team-grids .captn { padding: 12px; }
    .rc-home .what-text { padding: 28px 20px; }
    .rc-home .what-text p { font-size: 16px; }
    .rc-home .stats-bar .row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rc-page .ui-article { padding: 20px 16px; }
    .rc-page .about-main { margin: 28px 0; }
    .rc-page .about-main > h3 { font-size: 24px; }
    .rc-page .rc-hall-index { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 479px) {
    .rc-page .team-info { grid-template-columns: minmax(0,1fr); }
    .rc-page .team-grids img { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) {
    .rc-home .project { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 640px) and (max-width: 1100px) {
    .rc-home .project .project-bottom { position: relative; }
    .rc-home .project .project-left:nth-child(even) .project-bottom::before {
        content: ''; position: absolute; top: 18px; bottom: 18px; left: 0;
        width: 1px; background: rgba(255,255,255,.18); pointer-events: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rc-page .nav a, .rc-page .captn { transition: none; }
}

/* v1.0.91: keep six-column statistics inside their cells near the desktop breakpoint. */
@media (min-width: 1101px) and (max-width: 1280px) {
    .rc-home .counter-item h2 { font-size: 46px; }
}
