/*
Theme Name: Vayonzen 华云智擎
Description: 华云智擎高性能服务器官网。
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: vayonzen
*/

:root {
    --ink: #101d2d;
    --navy: #071321;
    --navy-raised: #0b1b2d;
    --blue: #195ee5;
    --blue-hover: #104bbf;
    --ice: #eef4fa;
    --muted: #48576a;
    --line: #cdd8e4;
    --paper: #fff;
    --page: 1410px;
    --gutter: clamp(22px, 4.2vw, 64px);
    --radius: 7px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[id] { scroll-margin-top: 112px; }
:focus-visible { outline: 3px solid #3579ef; outline-offset: 4px; }

.shell {
    width: min(var(--page), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.visually-hidden, .inquiry-form__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 99;
    inset: 12px auto auto 12px;
    padding: 10px 16px;
    color: white;
    background: var(--blue);
    transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: var(--paper);
    border-bottom: 1px solid #e2e8ef;
}

.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 91px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    justify-self: start;
    flex-direction: column;
    width: max-content;
    color: #0b1528;
    line-height: 1.02;
    text-decoration: none;
}

.brand__latin {
    font-family: "Inter", Arial, "Segoe UI", sans-serif;
    font-size: clamp(1.85rem, 2.55vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -.066em;
}

.brand__chinese {
    margin-top: .26em;
    font-weight: 730;
    font-size: .98rem;
    letter-spacing: .14em;
}

.main-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1.35rem, 3.05vw, 3.45rem);
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-nav a, .warranty-link {
    font-size: clamp(1rem, 1.28vw, 1.21rem);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a:hover, .site-footer a:hover { color: #2f74ee; }

.warranty-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 5px 24px;
    border: 1px solid #18273b;
    border-radius: 5px;
}

.warranty-link:hover { color: var(--blue); border-color: var(--blue); background: #f6f9ff; }
.menu-toggle { display: none; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: white;
    background: var(--navy);
}

.hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -2;
    width: 86%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #071321 0%, #071321b0 28%, #07132100 61%);
    content: "";
}

.hero__inner {
    min-height: clamp(475px, 37.65vw, 620px);
    display: grid;
    align-items: center;
    padding: 66px 0 104px clamp(0px, 1.55vw, 24px);
}

.hero__copy { max-width: min(58%, 38rem); }

.hero h1 {
    font-size: clamp(3rem, 5.42vw, 5.2rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.hero p {
    margin-top: 20px;
    max-width: 37rem;
    color: #e0e9f4;
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.7;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 20px 24px; margin-top: 44px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: .55rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 680;
    text-decoration: none;
    line-height: 1.35;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.button--primary { color: white; background: var(--blue); }
.button--primary:hover { background: var(--blue-hover); }
.button--ghost { color: white; background: #07132124; border-color: #dce7f5; }
.button--ghost:hover { background: #f6f9ff24; }
.hero .button { font-size: clamp(1rem, 1.48vw, 1.39rem); min-height: 58px; min-width: clamp(143px, 12.8vw, 197px); }
.hero :focus-visible, .workloads :focus-visible, .site-footer :focus-visible { outline-color: #93bcff; }

.section-space { padding-block: clamp(52px, 5vw, 78px); }
.products { padding-top: clamp(48px, 4.1vw, 64px); background: var(--ice); }

.section-heading { margin-bottom: clamp(30px, 3.4vw, 52px); }

.section-heading h2, .workloads h2, .company h2 {
    font-size: clamp(2rem, 3.65vw, 3.6rem);
    line-height: 1.16;
    font-weight: 790;
    letter-spacing: -.045em;
}

.section-heading p, .workloads__intro p, .company article > p {
    margin-top: 14px;
    font-size: clamp(1rem, 1.21vw, 1.19rem);
    line-height: 1.72;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(17px, 1.6vw, 26px);
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.product-card__image {
    display: block;
    aspect-ratio: 1.58;
    overflow: hidden;
    background: #c8d2de;
}

.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { flex: 1; padding: clamp(19px, 1.8vw, 28px); }

.product-card h3 {
    font-size: clamp(1.3rem, 1.95vw, 1.88rem);
    line-height: 1.3;
    letter-spacing: -.034em;
    font-weight: 760;
}

.product-card p { margin-top: 8px; color: var(--muted); font-size: clamp(1rem, 1.1vw, 1.13rem); }
.product-card .text-link { margin-top: 17px; }

.text-link {
    display: inline-block;
    color: var(--blue-hover);
    font-weight: 680;
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }
.empty-products a { color: var(--blue-hover); }

.platforms { background: var(--paper); }
.platforms__entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(23px, 3.25vw, 48px);
}
.platforms__entry { border-top: 2px solid var(--blue); padding: 22px 0 6px; }
.platforms__entry h3 { font-size: clamp(1.35rem, 2.1vw, 1.95rem); line-height: 1.35; }
.platforms__entry p { max-width: 35rem; margin-top: 10px; color: var(--muted); }
.platforms__entry .text-link { margin-top: 15px; }

.workloads {
    overflow: hidden;
    color: white;
    background: var(--navy-raised);
}

.workloads__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6.8vw, 104px);
    min-height: 404px;
}

.workloads__intro { position: relative; min-width: 0; padding: 57px 0 196px; isolation: isolate; }
.workloads__intro p { color: #c9d8ea; }

.workloads__media {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: calc(var(--gutter) * -1);
    width: calc(100% + var(--gutter) + 30px);
    max-width: none;
    height: 210px;
    object-fit: cover;
    object-position: 45% 68%;
    mask-image: linear-gradient(90deg, #000 0%, #000 66%, transparent 100%), linear-gradient(0deg, #000 0%, #000 72%, transparent 100%);
    mask-composite: intersect;
}

.workloads__list { align-self: center; margin: 0; padding: 42px 0; list-style: none; }
.workloads__list li { padding: 18px 0; border-bottom: 1px solid #64788e; }
.workloads__list li:first-child { padding-top: 0; }
.workloads__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.workloads__list h3 { font-size: clamp(1.27rem, 1.7vw, 1.65rem); font-weight: 740; line-height: 1.3; }
.workloads__list p { max-width: 34rem; margin-top: 7px; color: #d6e0ec; font-size: 1rem; line-height: 1.55; }

.selection { background: #f7fafd; border-bottom: 1px solid #e2e9f1; }
.selection__inner {
    display: grid;
    grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
    gap: clamp(25px, 5vw, 72px);
    align-items: start;
}
.selection__reference {
    padding: clamp(22px, 3vw, 46px);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: #e8eff8;
}
.selection__reference h3 { font-size: clamp(1.28rem, 2vw, 1.75rem); line-height: 1.35; }
.selection p, .company__support p { color: var(--muted); }
.selection__reference p, .company__support p { margin-top: 9px; }
.selection__reference .text-link, .company__support .text-link { margin-top: 13px; }
.selection__steps { margin: 0; padding-left: 1.8rem; }
.selection__steps li { padding: 0 0 13px 6px; }
.selection__steps li + li { padding-top: 12px; border-top: 1px solid var(--line); }
.selection__steps li:last-child { padding-bottom: 0; }
.selection__steps li::marker { color: var(--blue-hover); font-weight: 740; }
.selection__steps h3, .company__support h3 { font-size: 1.18rem; line-height: 1.4; }
.selection__steps p { margin-top: 4px; }

.company__inner {
    display: grid;
    grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
    gap: clamp(35px, 4.2vw, 64px);
}

.company h2 { font-size: clamp(1.9rem, 3.1vw, 3rem); }
.company__consult { padding-left: clamp(31px, 4vw, 61px); border-left: 1px solid var(--line); }
.company__about > p { max-width: 35rem; }
.company__manufacturer { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.company__manufacturer dt { color: var(--muted); font-size: .99rem; font-weight: 670; }
.company__manufacturer dd { margin-top: 5px; font-weight: 740; font-size: clamp(1.18rem, 1.75vw, 1.53rem); }
.company__support { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }

.inquiry-form { display: grid; gap: 13px; margin-top: 22px; }
.inquiry-form__row {
    display: grid;
    grid-template-columns: minmax(112px, 0.27fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.inquiry-form label { padding-top: 9px; font-weight: 660; }

.inquiry-form :is(input:not([type=hidden]), select, textarea) {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 8px 12px;
    color: var(--ink);
    background: #f5f8fb;
    border: 1px solid #97a8bc;
    border-radius: 6px;
}

.inquiry-form select {
    appearance: none;
    padding-right: 32px;
    background-image: linear-gradient(45deg, transparent 50%, #33465f 50%), linear-gradient(135deg, #33465f 50%, transparent 50%);
    background-position: calc(100% - 16px) 54%, calc(100% - 11px) 54%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.inquiry-form textarea { min-height: 88px; resize: vertical; }
.inquiry-form__purpose { margin-left: clamp(124px, 24%, 151px); color: var(--muted); font-size: .87rem; line-height: 1.5; }
.inquiry-form__submit { justify-self: start; min-width: 156px; }
.form-message { padding: 10px 13px; margin-top: 14px; border: 1px solid; border-radius: 6px; font-weight: 620; }
.form-message--success { color: #165934; background: #eef9f1; border-color: #89c9a0; }
.form-message--error { color: #842a24; background: #fff2f1; border-color: #d9a3a0; }

.site-footer { color: #e2edf9; background: #0c1929; }
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    min-height: 94px;
    padding-block: 20px;
}

.site-footer a { text-decoration: none; }
.site-footer__company, .site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 22px; }
.site-footer__brand { color: white; font-size: 1.45rem; font-weight: 760; letter-spacing: -.036em; }
.site-footer__brand span { font-size: .95em; }
.site-footer__manufacturer { padding-left: 20px; border-left: 1px solid #75869a; font-size: .94rem; }
.site-footer__links { font-size: .96rem; }
.site-footer__filing {
    border-top: 1px solid #405169;
    padding-block: 12px 16px;
    color: #cbd8e9;
    font-size: .875rem;
}

.product-detail__hero { padding: 43px 0 65px; background: var(--ice); }
.product-detail__back { margin-bottom: 24px; }

.product-detail__intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 5vw, 75px);
    align-items: center;
}
.product-detail__intro--text { display: block; max-width: min(740px, 100%); }

.product-detail h1, .basic-page h1 {
    font-size: clamp(2.1rem, 4.3vw, 4.25rem);
    line-height: 1.16;
    font-weight: 790;
    letter-spacing: -.044em;
}

.product-detail__intro p { margin: 18px 0 27px; color: var(--muted); font-size: 1.18rem; }
.product-detail__intro figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.product-detail__intro figcaption { margin-top: 7px; color: var(--muted); font-size: .88rem; }
.product-detail__content { max-width: 835px; }
.editorial h2 { margin: 1.3em 0 .4em; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.26; }
.editorial h2:first-child { margin-top: 0; }
.editorial p { margin-block: .7em; }
.editorial li + li { margin-top: .35em; }
.editorial .wp-block-table { margin: 14px 0 25px; overflow-x: auto; }
.editorial table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.editorial th, .editorial td { padding: .66rem .78rem; vertical-align: top; text-align: left; border: 1px solid var(--line); }
.editorial th { color: var(--ink); background: var(--ice); font-weight: 680; }
.editorial tr > :first-child { width: 26%; }
.editorial .text-link { margin-top: 12px; }
.basic-page { min-height: 54vh; }

@media (max-width: 1050px) {
    .hero__copy { max-width: 57%; }
    .hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.4rem); }
    .hero p { max-width: 27rem; }
    .hero__inner { min-height: 480px; }
    .hero__actions { margin-top: 34px; }
    .company__consult { padding-left: 28px; }
    .inquiry-form__row { grid-template-columns: 1fr; gap: 5px; }
    .inquiry-form label { padding: 0; }
    .inquiry-form__purpose { margin-left: 0; }
}

@media (max-width: 850px) {
    .site-header__inner { min-height: 76px; gap: 16px; }
    .main-nav__links { gap: 18px; }
    .warranty-link { padding-inline: 15px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
    [id] { scroll-margin-top: 84px; }
    .site-header__inner { position: relative; min-height: 69px; grid-template-columns: 1fr auto auto; gap: 12px; }
    .brand__latin { font-size: 1.87rem; }
    .brand__chinese { font-size: .76rem; }
    .warranty-link { grid-column: 2; grid-row: 1; min-height: 39px; padding-inline: 12px; font-size: .89rem; }
    .menu-toggle:not([hidden]) {
        display: grid;
        grid-column: 3;
        grid-row: 1;
        place-items: center;
        width: 42px;
        height: 40px;
        padding: 0;
        color: var(--ink);
        background: white;
        border: 1px solid var(--line);
        border-radius: 5px;
    }
    .menu-toggle__glyph, .menu-toggle__glyph::before, .menu-toggle__glyph::after {
        display: block;
        width: 16px;
        height: 2px;
        background: currentColor;
    }
    .menu-toggle__glyph { position: relative; }
    .menu-toggle__glyph::before, .menu-toggle__glyph::after { position: absolute; content: ""; }
    .menu-toggle__glyph::before { top: -5px; }
    .menu-toggle__glyph::after { top: 5px; }
    .main-nav { grid-column: 1 / -1; padding-bottom: 12px; }
    .main-nav--interactive { display: none; }
    .main-nav--interactive.is-open {
        position: absolute;
        top: calc(100% - 1px);
        inset-inline: calc(-1 * var(--gutter));
        display: block;
        padding: 0 var(--gutter) 13px;
        background: white;
        border-bottom: 1px solid var(--line);
    }
    .main-nav--interactive .main-nav__links { display: grid; gap: 0; }
    .main-nav--interactive a { display: block; padding: 11px 0; }

    .hero__inner {
        min-height: auto;
        padding: 48px 0 clamp(226px, 60vw, 356px);
    }
    .hero__copy { max-width: 100%; }
    .hero h1 { font-size: clamp(2.55rem, 8.4vw, 4.1rem); text-wrap: initial; }
    .hero p { margin-top: 13px; max-width: 29rem; }
    .hero__actions { margin-top: 24px; gap: 12px; }
    .hero .button { min-height: 46px; min-width: 120px; padding-inline: 16px; }
    .hero__media { inset: auto 0 0; width: 100%; height: clamp(250px, 65vw, 400px); object-position: 77% 48%; }
    .hero::after { background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 41%, #07132100 66%); }

    .workloads__inner { grid-template-columns: 1fr; gap: 0; }
    .workloads__intro { padding: 45px 0 167px; }
    .workloads__media { width: calc(100% + var(--gutter) * 2); height: 160px; object-position: center 64%; }
    .workloads__list { padding: 27px 0 47px; }
    .selection__inner { grid-template-columns: 1fr; }
    .platforms__entries { grid-template-columns: 1fr; }
    .company__inner { grid-template-columns: 1fr; gap: 34px; }
    .company__consult { padding: 30px 0 0; border: 0; border-top: 1px solid var(--line); }
    .product-detail__intro { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
    .product-grid { grid-template-columns: 1fr; }
    .site-footer__manufacturer { width: 100%; padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
