/* 一秒互联公司 www.yimiaonet.com：语言与平台入口保持原站蓝白视觉，限定在新增组件内。 */
.ym-site-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; color: #243750; }
.ym-site-tools details { position: relative; }
.ym-site-tools summary { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 0 9px; font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; list-style: none; white-space: nowrap; border-radius: 4px; }
.ym-site-tools summary::-webkit-details-marker { display: none; }
.ym-site-tools summary:hover, .ym-site-tools details[open] > summary { background: #eef5ff; color: #005bdd; }
.ym-site-tools summary > i { display: inline-block; width: 16px; height: 16px; }
.ym-site-tools summary > i:last-child { width: 13px; height: 13px; transition: transform .18s ease; }
.ym-site-tools details[open] > summary > i:last-child { transform: rotate(180deg); }
.ym-site-tools summary:focus-visible, .ym-site-tools button:focus-visible, .ym-platform-link:focus-visible, .ym-translation-status button:focus-visible { outline: 2px solid #0064ff; outline-offset: 3px; }
.ym-platform-popover, .ym-language-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1100; padding: 16px; background: #fff; color: #243750; border: 1px solid #e0e7f0; border-radius: 8px; box-shadow: 0 12px 36px #162e511a; }
.ym-platform-popover { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 530px; max-width: calc(100vw - 32px); }
.ym-language-popover { width: 220px; }
.ym-language-popover button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 9px 12px; color: #243750; border: 0; border-radius: 4px; background: transparent; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.ym-language-popover button[aria-pressed="true"] { color: #005bdd; background: #eef5ff; font-weight: 600; }
.ym-language-popover button:hover { background: #f4f7fa; }
.ym-language-popover button span { font-size: 11px; color: #687a91; }
.ym-language-popover p, .ym-language-popover noscript { display: block; margin: 12px 4px 2px; color: #64748b; font-size: 12px; line-height: 1.6; white-space: normal; }
.ym-platform-link { display: flex !important; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 10px 12px; color: #243750 !important; background: transparent; border-radius: 4px; text-decoration: none !important; transition: background-color .18s ease, color .18s ease; }
.ym-platform-link:hover { background: #f0f6ff; color: #005bdd !important; }
.ym-platform-link > i:first-child { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 6px; border-radius: 6px; color: #0064ff; background: #edf4ff; }
.ym-platform-link:nth-child(3n + 2) > i:first-child { color: #098577; background: #eaf8f3; }
.ym-platform-link:nth-child(3n) > i:first-child { color: #8061c7; background: #f4f0ff; }
.ym-platform-link > span { min-width: 0; flex: 1; }
.ym-platform-link strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.ym-platform-link small { display: block; margin-top: 3px; color: #65758a; font-size: 11px; line-height: 1.45; }
.ym-platform-link > .ym-platform-arrow { flex: 0 0 14px; width: 14px; height: 14px; color: #6a88ad; }
.ym-platform-footer { padding: 25px 0; border-top: 1px solid #e9eaee; }
.ym-platform-footer > h4 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #2b2c2f; }
.ym-platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 18px; }
.ym-platform-grid .ym-platform-link { padding-left: 0; }
.ym-translation-status { position: fixed; z-index: 2000; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 16px; max-width: min(440px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid #c8daf2; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px #1a355820; color: #243750; font-size: 13px; line-height: 1.6; }
.ym-translation-status[hidden] { display: none; }
.ym-translation-status button { flex: 0 0 auto; min-height: 36px; padding: 5px 8px; border: 0; background: #eef5ff; color: #005bdd; cursor: pointer; border-radius: 4px; }
html[data-ym-language="en"] body :is(h1, h2, h3, .menu-text, .home-process-tab, .ym-services-v2-card h3) { overflow-wrap: anywhere; }
html[data-ym-language="en"] body .nav-item > a { padding-right: 8px; padding-left: 8px; font-size: 13px; }
/* 一秒互联公司 www.yimiaonet.com：英文固定入口使用紧凑排版，避免轮播、悬浮工具和手机按钮被长句挤出。 */
html[data-ym-language="en"] body.ym-refresh.home-page-v2 .hero h1,
html[data-ym-language="en"] body.ym-refresh.home-page-v2 .hero .ym-film-title { font-size: 48px !important; line-height: 1.2 !important; }
html[data-ym-language="en"] .rsidebar span { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
html[data-ym-language="en"] .rsidebar > :is(a, button) { max-width: 100%; }
@media (max-width: 1350px) {
  body.ym-refresh .nav-links { display: none !important; }
  body.ym-refresh .nav .nav-mb { display: inline-flex !important; }
  .ym-site-tools { margin-left: auto; }
  body.ym-refresh .nav .nav-cta { margin-left: 0; }
}
@media (max-width: 900px) {
  .ym-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .ym-site-tools .ym-platform-menu { display: none; }
  .ym-site-tools summary { padding-right: 6px; padding-left: 6px; }
  .ym-language-popover { right: 0; }
}
@media (max-width: 540px) {
  html[data-ym-language="en"] body.ym-refresh.home-page-v2 .hero h1,
  html[data-ym-language="en"] body.ym-refresh.home-page-v2 .hero .ym-film-title { font-size: 32px !important; line-height: 1.2 !important; }
  html[data-ym-language="en"] body.ym-refresh.home-page-v2 .hero-desc { font-size: 15px !important; line-height: 1.7; }
  html[data-ym-language="en"] body.ym-refresh.home-page-v2 .hero-notes { gap: 6px 12px; font-size: 11px; }
  .ym-site-tools summary { min-width: 58px; padding: 0 3px; font-size: 12px; }
  .ym-site-tools summary > i:first-child { display: none; }
  .ym-platform-link { gap: 8px; }
  .ym-platform-link > i:first-child { flex-basis: 26px; width: 26px; height: 26px; padding: 5px; }
  .ym-platform-link .ym-platform-arrow { display: none; }
  .ym-platform-link strong { font-size: 12px; }
  .ym-translation-status { right: 16px; bottom: 80px; }
  body.ym-refresh .nav .nav-cta { min-width: 66px; padding: 7px 8px; }
  body.ym-refresh .nav-logo img { width: 112px; }
}
@media (max-width: 360px) {
  body.ym-refresh .nav { gap: 5px; padding-right: 12px !important; padding-left: 12px !important; }
  body.ym-refresh .nav-logo img { width: 100px; }
  .ym-platform-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ym-site-tools *, .ym-platform-link { transition: none !important; }
}
