/*
Theme Name: SDK运营商数据 - 子主题
Theme URI: https://sdkshuju.com
Description: SDK运营商数据网站的 GeneratePress 子主题
Author: SDK数据团队
Author URI: https://sdkshuju.com
Template: generatepress
Version: 3.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdkshuju-child
*/

:root {
    --sdk-text: #1f2937;
    --sdk-subtle: #526071;
    --sdk-line: #e5e7eb;
    --sdk-primary: #1d4ed8;
    --sdk-primary-dark: #173ea5;
    --sdk-bg: #f8fafc;
    --sdk-card: #ffffff;
    --sdk-h1-size: clamp(28px, 2.8vw, 36px);
    --sdk-h2-size: clamp(22px, 2.2vw, 28px);
    --sdk-h3-size: 18px;
    --sdk-section-space: clamp(44px, 5vw, 56px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    color: var(--sdk-text);
    background: var(--sdk-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.sdk-topbar {
    margin-bottom: 0 !important;
}

.sdk-topbar + .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-main :where(h1) {
    font-size: var(--sdk-h1-size);
}

.site-main :where(h2) {
    font-size: var(--sdk-h2-size);
}

.site-main :where(h3) {
    font-size: var(--sdk-h3-size);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #111827;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus,
.sdk-skip-link:focus {
    position: fixed !important;
    z-index: 10000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    clip: auto;
    overflow: visible;
    white-space: normal;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}

::selection {
    color: #111827;
    background: #fde68a;
}

.site-info,
.copyright-bar,
.inside-site-info {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --sdk-text: #111827;
        --sdk-subtle: #374151;
        --sdk-line: #6b7280;
        --sdk-primary: #173ea5;
        --sdk-primary-dark: #102f7d;
    }
}

@media (forced-colors: active) {
    :where(a, button, summary, input, select, textarea):focus-visible {
        outline: 3px solid CanvasText;
    }
}
