/**
 * 逸程旧样式兼容桥接层
 *
 * 本文件不再承载头部、页脚、首页、内页、下载页、关于页、产品轨等表现层规则。
 * 新增页面样式请写入：
 * - yc-base.css：token、reset、媒体基础
 * - yc-components.css：跨页面组件
 * - header-redesign.css：统一头部
 * - home-redesign.css：首页
 * - inner-redesign.css：内页
 */

body:not(:has(.yc-home)) .banner {
    overflow: hidden !important;
}

body:not(:has(.yc-home)) .section-advantages dl,
body:not(:has(.yc-home)) .section-advantages dl dd {
    cursor: pointer;
}

body:not(:has(.yc-home)) .slideTxtBox .bd li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body:not(:has(.yc-home)) .slideTxtBox .bd li:hover {
    box-shadow: 0 4px 12px rgba(16, 42, 58, 0.10);
    transform: translateY(-2px);
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 99999;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 12px 20px;
    background: var(--yc-color-brand-main);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.skip-to-content:focus {
    position: fixed;
    left: 50%;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 3px solid #FFFFFF;
    outline-offset: -3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
}

*:focus-visible {
    outline: 2px solid rgba(18, 107, 143, 0.45);
    outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    position: relative;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #DC3545;
}

input[required] + .required-indicator::after,
textarea[required] + .required-indicator::after {
    content: " *";
    color: #DC3545;
}

img[loading="lazy"] {
    background: var(--yc-color-surface-soft);
}

@media (prefers-contrast: high) {
    a,
    button {
        border: 2px solid currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .head,
    .footer,
    .menu-icon,
    .mobile-nav,
    .breadcrumb,
    .pagination {
        display: none !important;
    }

    body {
        color: #000000;
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
    }
}
