/* Otaku Cloud 2026 refresh — additive styles, keeps the original theme intact. */
:root {
    --oc-ink: #0b1220;
    --oc-muted: #5c6678;
    --oc-line: rgba(15, 23, 42, .10);
    --oc-card: rgba(255, 255, 255, .88);
    --oc-blue: #2f6bff;
    --oc-yellow: #ffcc4d;
    --oc-radius: 20px;
    --oc-shadow: 0 22px 60px rgba(15, 23, 42, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 100000;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--oc-ink);
    box-shadow: 0 8px 30px rgba(15, 23, 42, .2);
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
}

.nav-cta .btn {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.lang-switch > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-switch .utouch-icon {
    width: 16px;
    height: 16px;
}

.lang-switch .sub-menu a[aria-current="page"] {
    font-weight: 700;
    color: var(--oc-blue);
}

.hero-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--oc-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.main-slider .slider-content-title {
    text-wrap: balance;
    overflow-wrap: break-word;
}

/* 韩语按词断行，避免「시/야」这类词内断裂 */
html[lang="ko"] .slider-content-title,
html[lang="ko"] .slider-content-text,
html[lang="ko"] .plan-card h3,
html[lang="ko"] .download-card h3 {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 俄语长单词兜底 */
html[lang="ru"] .slider-content-title,
html[lang="ru"] .plan-card h3,
html[lang="ru"] .download-card h3 {
    hyphens: auto;
    overflow-wrap: break-word;
}

.main-slider .slider-content-text {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.8;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--oc-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
    text-align: left;
}

.download-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--oc-radius);
    background: var(--oc-card);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
    backdrop-filter: blur(10px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 107, 255, .28);
    box-shadow: var(--oc-shadow);
}

.download-card__head {
    display: flex;
    gap: 14px;
    align-items: center;
}

.download-card__icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #f3f7ff;
}

.download-card__icon img,
.download-card__icon svg {
    width: 26px;
    height: 26px;
}

.download-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.35;
}

.download-card p {
    margin: 0;
    color: var(--oc-muted);
    font-size: 13px;
    line-height: 1.6;
}

.download-card__desc {
    margin: 0 !important;
    padding-top: 2px;
    color: var(--oc-muted) !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
    opacity: .92;
}

.download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.download-card__actions .btn {
    padding: 10px 16px;
    font-size: 13px;
    line-height: 1.2;
}

.download-note,
.download-version,
.stats-note {
    margin-top: 18px;
    color: var(--oc-muted);
    font-size: 12px;
    line-height: 1.7;
}

.download-version {
    margin-top: 6px;
    opacity: .8;
}

.plan-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    cursor: pointer;
    user-select: none;
}

.plan-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-switch__track {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #cfd8e6;
    transition: background .2s ease;
}

.plan-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
    transition: transform .2s ease;
}

.plan-switch input:checked + .plan-switch__track {
    background: var(--oc-blue);
}

.plan-switch input:checked + .plan-switch__track::after {
    transform: translateX(22px);
}

.plan-switch input:focus-visible + .plan-switch__track {
    outline: 3px solid rgba(47, 107, 255, .35);
    outline-offset: 3px;
}

.plan-switch__label {
    color: var(--oc-muted);
    font-size: 13px;
    font-weight: 600;
}

.plan-switch input:not(:checked) ~ .plan-switch__label--standard,
.plan-switch input:checked ~ .plan-switch__label--pro {
    color: var(--oc-ink);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 38px;
    text-align: left;
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--oc-line);
    border-radius: var(--oc-radius);
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.plan-card--featured {
    border-color: rgba(47, 107, 255, .38);
    box-shadow: 0 24px 60px rgba(47, 107, 255, .14);
}

.plan-card .plan-name {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

.plan-card .rate {
    margin: 0;
    color: var(--oc-ink);
    font-size: 44px;
    line-height: 1;
    letter-spacing: -.04em;
}

.plan-card .rate small {
    margin-left: 6px;
    color: var(--oc-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.plan-card .plan-days {
    margin: 10px 0 0;
    color: var(--oc-muted);
    font-size: 13px;
}

.plan-card ul {
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.plan-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    color: var(--oc-muted);
    font-size: 13px;
}

.plan-card li:last-child {
    border-bottom: 0;
}

.plan-card li strong {
    color: var(--oc-ink);
    font-weight: 700;
}

.plan-card .btn {
    margin-top: auto;
}

.pricing-note {
    margin-top: 20px;
    color: var(--oc-muted);
    font-size: 12px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
    text-align: left;
}

.faq-item {
    padding: 18px 20px;
    border: 1px solid var(--oc-line);
    border-radius: 16px;
    background: #fff;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    color: var(--oc-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--oc-blue);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--oc-muted);
    font-size: 14px;
    line-height: 1.8;
}

.stats-note {
    color: rgba(255, 255, 255, .62);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
    text-align: left;
}

.footer-grid h5 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .06em;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.9;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 4px;
}

.footer-brand .site-logo {
    margin-bottom: 12px;
}

.footer-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 16px;
}

.footer-lang a {
    font-size: 12px;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99998;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    max-width: 560px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
    backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    flex: 1 1 260px;
    margin: 0;
    color: var(--oc-muted);
    font-size: 12px;
    line-height: 1.7;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-banner .btn {
    padding: 8px 14px;
    font-size: 12px;
    line-height: 1.2;
}

/* 白底横幅上「拒绝」按钮默认为白字白边，需覆盖为主题深色 */
.cookie-banner .btn-border {
    color: var(--oc-ink);
    border: 2px solid rgba(15, 23, 42, .22);
    background: transparent;
}

.cookie-banner .btn-border:hover {
    color: var(--oc-blue);
    border-color: var(--oc-blue);
}

/* 锚点跳转时为吸顶导航留出偏移，避免标题被遮挡 */
[id] {
    scroll-margin-top: 96px;
}

@media (max-width: 768px) {
    [id] {
        scroll-margin-top: 78px;
    }
}

@media (max-width: 1199px) {
    .download-grid,
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .download-grid,
    .plan-grid,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .download-grid,
    .plan-grid,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .download-card,
    .plan-card {
        padding: 20px;
    }

    .plan-card .rate {
        font-size: 38px;
    }

    .cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }

    .nav-cta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

.btn--small {
    padding: 10px 16px;
    font-size: 13px;
    line-height: 1.2;
}

.footer-note {
    display: block;
    margin-top: 6px;
    opacity: .55;
}

.download-card__icon svg {
    fill: currentColor;
    color: var(--oc-blue);
}

/* Keep hidden controls from creating horizontal overflow.
   Use overflow-x: clip so html/body do NOT become scroll containers
   (hidden would force overflow-y:auto and break window scrolling). */
html,
body {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: visible;
    }
}

.plan-switch {
    position: relative;
}

.plan-switch input {
    top: 50%;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.primary-menu-menu > li.nav-cta > a,
.primary-menu-menu > li.nav-cta > a:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--oc-yellow);
    color: var(--oc-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.primary-menu-menu > li.nav-cta > a:hover {
    background: #ffd76b;
}

@media (max-width: 768px) {
    .main-slider .slider-content-title {
        font-size: 30px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    .main-slider .slider-content-text {
        max-width: 100%;
        padding: 0 12px;
        font-size: 14px;
        line-height: 1.75;
    }

    .main-slider .slider-content {
        padding: 10px 0 26px;
    }

    .main-slider .main-slider-btn-wrap .btn {
        margin: 4px;
    }

    .main-slider .btn-prev,
    .main-slider .btn-next {
        display: none;
    }

    .main-slider .slider-thumb img {
        width: 100%;
        height: auto;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-height: 60vh;
        padding: 14px 16px;
        overflow-y: auto;
    }

    .cookie-banner p {
        flex: 0 0 auto;
        font-size: 11.5px;
        line-height: 1.6;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        justify-content: stretch;
    }

    .cookie-banner__actions .btn {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    /* 移动端隐藏标题两侧装饰线，避免与文字重叠 */
    .with-decoration {
        padding: 0;
    }

    .with-decoration .first-decoration,
    .with-decoration .second-decoration {
        display: none;
    }
}

/* ---------- 深色统计区：数字与单位保持单行、基线对齐 ---------- */
.counters .crumina-counter-item .counter-numbers {
    margin-bottom: 14px;
    font-size: clamp(28px, 2.9vw, 42px);
    line-height: 1.1;
    white-space: nowrap;
}

.counters .crumina-counter-item .units {
    display: inline;
    margin-left: 3px;
    font-size: .52em;
    font-weight: 700;
    vertical-align: baseline;
}

.counters .counter-title {
    font-size: 15px;
    line-height: 1.35;
    white-space: nowrap;
}

/* ---------- 页脚：深底上的品牌与版权文字对比度 ---------- */
.footer .logo-title {
    color: #fff;
}

.footer .logo-sub-title {
    color: rgba(255, 255, 255, .58);
    letter-spacing: .08em;
}

.footer-lang a {
    color: rgba(255, 255, 255, .8);
}

.footer .sub-footer {
    margin-top: 0;
    padding: 30px 0 34px;
    background: transparent;
}

.footer .sub-footer span {
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

/* 返回顶部按钮移到右下角，避免压住页脚栏目与版权文字 */
.footer .back-to-top {
    top: -46px;
    right: 0;
    left: auto;
    transform: none;
}

@media (max-width: 640px) {
    .footer .sub-footer {
        padding: 66px 0 30px;
    }

    .footer .back-to-top {
        top: 2px;
        right: 12px;
    }
}

@media (max-width: 991px) {
    .counters .crumina-counter-item .counter-numbers {
        font-size: 34px;
    }

    .counters .counter-title {
        white-space: normal;
    }
}

/* ---------- 服务卡片：图标垂直居中、去掉残留的箭头占位 ---------- */
#services .info-box-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
}

#services .info-box-image .utouch-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
}

#services .info-box-title {
    display: inline-block;
    margin-bottom: 8px;
}

#services .info-box-text {
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ---------- 定价卡：∞ 与 ✓ 的字号，避免小字号下变形 ---------- */
.plan-card .val-inf {
    font-size: 22px;
    line-height: 1;
    vertical-align: -1px;
}

.plan-card .val-check {
    color: var(--oc-blue);
    font-size: 16px;
    line-height: 1;
}
