:root {
    --cy-accent: #2f6f64;
    --cy-accent-ink: #ffffff;
    --cy-ink: #202421;
    --cy-muted: #68716b;
    --cy-paper: #f7f4eb;
    --cy-panel: #fffdf8;
    --cy-line: #d9d3c4;
    --cy-strong-line: #252a26;
    --cy-danger: #b84630;
    --cy-blue: #355c9a;
    --cy-gold: #c5963f;
    --cy-shadow: 0 18px 50px rgba(42, 34, 23, .12);
    --cy-radius: 8px;
    --cy-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --cy-ease-move: cubic-bezier(0.25, 1, 0.5, 1);
    --cy-motion-fast: 180ms;
    --cy-motion-base: 260ms;
    --cy-motion-slow: 380ms;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.canye-theme {
    min-height: 100%;
    margin: 0;
    color: var(--cy-ink);
    background:
        linear-gradient(90deg, rgba(32, 36, 33, .035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(32, 36, 33, .03) 1px, transparent 1px),
        var(--cy-paper);
    background-size: 28px 28px, 28px 28px, auto;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    letter-spacing: 0;
}

body.canye-surface-warm {
    --cy-paper: #f4efe2;
    --cy-panel: #fffaf0;
}

body.canye-surface-paper {
    --cy-paper: #f6f2e8;
    --cy-panel: #fffef9;
    --cy-line: #d6cab5;
    --cy-shadow: 0 14px 36px rgba(83, 68, 42, .11);
    background:
        linear-gradient(90deg, rgba(95, 76, 42, .045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(95, 76, 42, .035) 1px, transparent 1px),
        var(--cy-paper);
    background-size: 32px 32px, 32px 32px, auto;
}

body.canye-surface-ink {
    --cy-ink: #f4f1e8;
    --cy-muted: #aeb8b1;
    --cy-paper: #171b1c;
    --cy-panel: #202628;
    --cy-line: #374044;
    --cy-strong-line: #e7dfcd;
    --cy-shadow: 0 20px 56px rgba(0, 0, 0, .35);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
        var(--cy-paper);
    background-size: 28px 28px, 28px 28px, auto;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
}

[v-cloak] {
    display: none;
}

.cy-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.cy-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--cy-line);
    background: color-mix(in srgb, var(--cy-paper) 94%, transparent);
    backdrop-filter: blur(16px);
}

.cy-topbar-inner {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cy-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.cy-brand-mark,
.cy-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--cy-strong-line);
    border-radius: 8px;
    background: var(--cy-accent);
    color: var(--cy-accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.cy-logo {
    object-fit: cover;
    background: var(--cy-panel);
}

.cy-brand-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.cy-brand-text b,
.cy-brand-text small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cy-brand-text b {
    font-size: 16px;
}

.cy-brand-text small {
    color: var(--cy-muted);
    font-size: 12px;
}

.cy-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cy-nav a,
.cy-nav button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: var(--cy-panel);
    color: var(--cy-ink);
    text-decoration: none;
    font-size: 13px;
    transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-nav a:hover,
.cy-nav button:hover {
    border-color: var(--cy-accent);
    color: var(--cy-accent);
}

.cy-nav button {
    appearance: none;
}

@media (hover: hover) and (pointer: fine) {
    .cy-nav a:hover,
    .cy-nav button:hover,
    .cy-category:hover,
    .cy-product:hover,
    .cy-submit:hover:not(:disabled),
    .cy-lookup-submit:hover:not(:disabled),
    .cy-record-actions button:hover,
    .cy-inline-control button:hover,
    .cy-modal-actions button:hover,
    .cy-payway:hover {
        transform: translateY(-1px);
    }
}

.cy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    padding: 24px 0 42px;
    align-items: start;
}

.cy-shop {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.cy-shop-head,
.cy-section,
.cy-product-detail,
.cy-order-panel {
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: var(--cy-panel);
    box-shadow: var(--cy-shadow);
}

.cy-shop-head,
.cy-section,
.cy-product-detail,
.cy-order-panel {
    animation: cy-rise-in var(--cy-motion-slow) var(--cy-ease-out) both;
}

.cy-section:nth-child(2) {
    animation-delay: 40ms;
}

.cy-product-detail {
    animation-delay: 80ms;
}

.cy-order-panel {
    animation-delay: 120ms;
}

.cy-shop-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px;
}

.cy-kicker {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cy-accent) 13%, var(--cy-panel));
    color: var(--cy-accent);
    font-size: 12px;
    font-weight: 800;
}

.cy-shop-head h1 {
    margin: 12px 0 0;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.cy-statline {
    display: grid;
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 8px;
}

.cy-statline span {
    min-height: 66px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-blue) 8%, var(--cy-panel));
    color: var(--cy-muted);
    font-size: 12px;
}

.cy-statline b {
    color: var(--cy-ink);
    font-size: 20px;
}

.cy-announcement {
    border: 1px solid color-mix(in srgb, var(--cy-danger) 45%, var(--cy-line));
    border-left: 5px solid var(--cy-danger);
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-danger) 7%, var(--cy-panel));
    padding: 14px 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    animation: cy-rise-in var(--cy-motion-base) var(--cy-ease-out) both;
}

.cy-announcement.style-ribbon {
    border-color: color-mix(in srgb, var(--cy-gold) 58%, var(--cy-line));
    border-left-width: 0;
    background: color-mix(in srgb, var(--cy-gold) 12%, var(--cy-panel));
    box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 64%, transparent);
}

.cy-announcement.style-quiet {
    border-color: var(--cy-line);
    border-left-color: var(--cy-blue);
    background: color-mix(in srgb, var(--cy-paper) 52%, var(--cy-panel));
    color: var(--cy-muted);
    box-shadow: none;
}

.cy-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--cy-blue) 36%, var(--cy-line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-blue) 7%, var(--cy-panel));
    line-height: 1.65;
    overflow-wrap: anywhere;
    animation: cy-rise-in var(--cy-motion-base) var(--cy-ease-out) both;
}

.cy-notice > span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--cy-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cy-notice-body {
    min-width: 0;
}

.cy-notice.tone-success {
    border-color: color-mix(in srgb, var(--cy-accent) 42%, var(--cy-line));
    background: color-mix(in srgb, var(--cy-accent) 8%, var(--cy-panel));
}

.cy-notice.tone-success > span {
    background: var(--cy-accent);
}

.cy-notice.tone-warn {
    border-color: color-mix(in srgb, var(--cy-gold) 62%, var(--cy-line));
    background: color-mix(in srgb, var(--cy-gold) 12%, var(--cy-panel));
}

.cy-notice.tone-warn > span {
    background: var(--cy-gold);
    color: var(--cy-ink);
}

.cy-catalog {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
}

.cy-section,
.cy-product-detail,
.cy-order-panel {
    padding: 16px;
}

.cy-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cy-section-title h2,
.cy-section-title h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.cy-section-title.compact {
    margin-top: 2px;
    margin-bottom: 8px;
}

.cy-section-title small {
    color: var(--cy-muted);
    font-size: 12px;
    text-align: right;
}

.cy-category-list,
.cy-product-list {
    display: grid;
    gap: 9px;
}

.cy-category {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: transparent;
    color: var(--cy-ink);
    text-align: left;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-category span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cy-category em {
    font-style: normal;
    color: var(--cy-gold);
    font-size: 12px;
}

.cy-category:hover,
.cy-category.active {
    border-color: var(--cy-accent);
    background: color-mix(in srgb, var(--cy-accent) 12%, var(--cy-panel));
}

.cy-product-list.view-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cy-product-list.view-list {
    grid-template-columns: 1fr;
}

.cy-product {
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: transparent;
    color: var(--cy-ink);
    text-align: left;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-product:hover,
.cy-product.active {
    border-color: var(--cy-accent);
    background: color-mix(in srgb, var(--cy-accent) 10%, var(--cy-panel));
}

.cy-product.disabled {
    opacity: .62;
}

.cy-product span,
.cy-product b,
.cy-product small {
    min-width: 0;
    display: block;
    overflow-wrap: anywhere;
}

.cy-product b {
    margin-bottom: 6px;
    font-size: 15px;
}

.cy-product small {
    color: var(--cy-muted);
    font-size: 12px;
}

.cy-product strong {
    padding: 7px 9px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-ink) 92%, var(--cy-blue));
    color: var(--cy-panel);
    white-space: nowrap;
    font-size: 14px;
}

.cy-empty {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px dashed var(--cy-line);
    border-radius: 8px;
    color: var(--cy-muted);
    background: color-mix(in srgb, var(--cy-panel) 70%, transparent);
}

.cy-empty.small {
    min-height: 42px;
    font-size: 13px;
}

.cy-product-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.cy-product-heading h2 {
    margin: 10px 0 0;
    font-size: 24px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cy-pricebox {
    min-width: 118px;
    display: grid;
    gap: 2px;
    justify-items: end;
}

.cy-pricebox small {
    color: var(--cy-muted);
}

.cy-pricebox b {
    color: var(--cy-accent);
    font-size: 26px;
}

.cy-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.cy-meta-row span,
.cy-meta-row button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--cy-line);
    border-radius: 999px;
    background: transparent;
    color: var(--cy-muted);
    font-size: 13px;
}

.cy-meta-row button {
    color: var(--cy-accent);
}

.cy-description {
    max-height: 260px;
    overflow: auto;
    padding: 13px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-paper) 45%, var(--cy-panel));
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.cy-description,
.cy-modal-html,
.cy-announcement,
.cy-notice-body {
    scrollbar-color: color-mix(in srgb, var(--cy-accent) 45%, var(--cy-line)) transparent;
}

.cy-order {
    position: sticky;
    top: 82px;
    min-width: 0;
}

.cy-order-panel {
    display: grid;
    gap: 14px;
}

.cy-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cy-form label,
.cy-addon-input,
.cy-modal-input {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.cy-form label span,
.cy-addon-input span,
.cy-modal-input span {
    color: var(--cy-muted);
    font-size: 12px;
}

.cy-form input,
.cy-addon-input input,
.cy-modal-input input,
.cy-code-captcha input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    padding: 0 11px;
    background: color-mix(in srgb, var(--cy-panel) 92%, #ffffff);
    color: var(--cy-ink);
    outline: none;
}

.cy-form input:focus,
.cy-addon-input input:focus,
.cy-modal-input input:focus,
.cy-code-captcha input:focus {
    border-color: var(--cy-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cy-accent) 18%, transparent);
}

.cy-inline-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
}

.cy-inline-control button {
    border: 1px solid var(--cy-accent);
    border-radius: 8px;
    background: var(--cy-accent);
    color: var(--cy-accent-ink);
    font-weight: 700;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-field-tip {
    color: var(--cy-blue);
    line-height: 1.45;
}

.cy-addons,
.cy-payways,
.cy-summary {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.cy-check,
.cy-payway {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: transparent;
    transition: border-color 200ms ease, background-color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-check input,
.cy-payway input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.cy-check span,
.cy-payway span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cy-check b {
    color: var(--cy-accent);
    font-size: 13px;
}

.cy-payway {
    grid-template-columns: auto 24px minmax(0, 1fr);
}

.cy-payway.active {
    border-color: var(--cy-accent);
    background: color-mix(in srgb, var(--cy-accent) 10%, var(--cy-panel));
}

.cy-payway img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cy-summary {
    border-top: 1px solid var(--cy-line);
    padding-top: 12px;
}

.cy-summary div,
.cy-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cy-summary span {
    color: var(--cy-muted);
}

.cy-summary b {
    font-size: 14px;
}

.cy-summary b.minus {
    color: var(--cy-danger);
}

.cy-total {
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--cy-ink);
    color: var(--cy-panel);
}

.cy-total b {
    color: color-mix(in srgb, var(--cy-accent) 80%, #ffffff);
    font-size: 28px;
}

.cy-submit {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--cy-accent);
    border-radius: 8px;
    background: var(--cy-accent);
    color: var(--cy-accent-ink);
    font-weight: 800;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-submit:hover:not(:disabled) {
    background: color-mix(in srgb, var(--cy-accent) 90%, var(--cy-ink));
}

.cy-submit:disabled {
    opacity: .6;
}

.cy-error {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--cy-danger) 55%, var(--cy-line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-danger) 8%, var(--cy-panel));
    color: var(--cy-danger);
    line-height: 1.55;
}

.cy-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(12, 14, 14, .56);
    animation: cy-fade-in 180ms ease both;
}

.cy-modal-box {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--cy-strong-line);
    border-radius: 8px;
    background: var(--cy-panel);
    color: var(--cy-ink);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    animation: cy-dialog-in var(--cy-motion-base) var(--cy-ease-out) both;
}

.cy-modal-box.wide {
    width: min(720px, 100%);
}

.cy-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: transparent;
    color: var(--cy-muted);
    transition: border-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-modal-close:hover {
    border-color: var(--cy-danger);
    color: var(--cy-danger);
}

.cy-modal-box h3 {
    margin: 0;
    padding-right: 34px;
    font-size: 18px;
}

.cy-modal-box p {
    margin: 0;
    color: var(--cy-muted);
    line-height: 1.65;
}

.cy-modal-html {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.cy-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cy-modal-actions button {
    min-width: 82px;
    min-height: 38px;
    border: 1px solid var(--cy-accent);
    border-radius: 8px;
    background: var(--cy-accent);
    color: var(--cy-accent-ink);
    font-weight: 700;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-modal-actions button.ghost {
    border-color: var(--cy-line);
    background: transparent;
    color: var(--cy-ink);
}

.cy-code-captcha {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.cy-code-captcha img {
    width: 200px;
    height: 64px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
    cursor: pointer;
}

.cy-order-lookup {
    display: grid;
    gap: 12px;
}

.cy-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-paper) 46%, var(--cy-panel));
}

.cy-segmented button {
    min-width: 0;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--cy-muted);
    font-size: 13px;
    font-weight: 700;
    transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out);
}

.cy-segmented button.active {
    background: var(--cy-accent);
    color: var(--cy-accent-ink);
}

.cy-lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.cy-lookup-form label {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.cy-lookup-form label span {
    color: var(--cy-muted);
    font-size: 12px;
}

.cy-lookup-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    padding: 0 11px;
    background: color-mix(in srgb, var(--cy-panel) 92%, #ffffff);
    color: var(--cy-ink);
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.cy-lookup-form input:focus {
    border-color: var(--cy-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cy-accent) 18%, transparent);
}

.cy-lookup-hint {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px dashed var(--cy-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-panel) 72%, transparent);
}

.cy-lookup-submit {
    min-width: 104px;
    min-height: 42px;
    border: 1px solid var(--cy-accent);
    border-radius: 8px;
    background: var(--cy-accent);
    color: var(--cy-accent-ink);
    font-weight: 800;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-lookup-submit:disabled {
    opacity: .62;
}

.cy-lookup-message {
    padding: 9px 11px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-accent) 8%, var(--cy-panel));
    color: var(--cy-muted);
}

.cy-record-skeleton {
    display: grid;
    gap: 8px;
}

.cy-record-skeleton span {
    height: 68px;
    border-radius: 8px;
    border: 1px solid var(--cy-line);
    background: color-mix(in srgb, var(--cy-accent) 8%, var(--cy-panel));
    opacity: .46;
    animation: cy-pulse 920ms ease-in-out infinite alternate;
}

.cy-record-skeleton span:nth-child(2) {
    animation-delay: 80ms;
}

.cy-record-skeleton span:nth-child(3) {
    animation-delay: 160ms;
}

.cy-record-list {
    display: grid;
    gap: 9px;
}

.cy-record-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-panel) 90%, var(--cy-paper));
    animation: cy-rise-in var(--cy-motion-base) var(--cy-ease-out) both;
}

.cy-record-card:nth-child(2) {
    animation-delay: 40ms;
}

.cy-record-card:nth-child(3) {
    animation-delay: 80ms;
}

.cy-record-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.cy-record-main b,
.cy-record-main small,
.cy-record-no {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cy-record-no {
    color: var(--cy-blue);
    font-size: 12px;
    font-family: Consolas, Monaco, monospace;
}

.cy-record-main small {
    color: var(--cy-muted);
}

.cy-record-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.cy-record-meta span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--cy-line);
    border-radius: 999px;
    color: var(--cy-muted);
    font-size: 12px;
    white-space: nowrap;
}

.cy-record-meta .status-0 {
    border-color: color-mix(in srgb, var(--cy-gold) 70%, var(--cy-line));
    color: var(--cy-gold);
}

.cy-record-meta .status-1 {
    border-color: color-mix(in srgb, var(--cy-blue) 70%, var(--cy-line));
    color: var(--cy-blue);
}

.cy-record-meta .status-2 {
    border-color: color-mix(in srgb, var(--cy-accent) 70%, var(--cy-line));
    color: var(--cy-accent);
}

.cy-record-meta .status-3,
.cy-record-meta .status-4 {
    border-color: color-mix(in srgb, var(--cy-danger) 70%, var(--cy-line));
    color: var(--cy-danger);
}

.cy-record-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.cy-record-actions button {
    min-height: 34px;
    border: 1px solid var(--cy-accent);
    border-radius: 8px;
    background: var(--cy-accent);
    color: var(--cy-accent-ink);
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--cy-motion-base) var(--cy-ease-out), opacity 200ms ease;
}

.cy-record-actions button.ghost {
    border-color: var(--cy-line);
    background: transparent;
    color: var(--cy-ink);
}

@keyframes cy-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cy-dialog-in {
    from {
        opacity: 0;
        transform: scale(.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cy-rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cy-lift-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cy-soft-breathe {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

@keyframes cy-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cy-pulse {
    from {
        opacity: .36;
    }
    to {
        opacity: .74;
    }
}

.ql-editor p {
    margin: 0 0 9px;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
    margin: 14px 0 8px;
    line-height: 1.3;
    color: var(--cy-ink);
    letter-spacing: 0;
}

.ql-editor h1 {
    font-size: 22px;
}

.ql-editor h2 {
    font-size: 19px;
}

.ql-editor h3 {
    font-size: 16px;
}

.ql-editor p:last-child {
    margin-bottom: 0;
}

.ql-editor ul,
.ql-editor ol {
    margin: 8px 0 10px;
    padding-left: 22px;
}

.ql-editor li {
    margin: 4px 0;
}

.ql-editor blockquote {
    margin: 10px 0;
    padding: 9px 12px;
    border-left: 4px solid var(--cy-blue);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--cy-blue) 8%, var(--cy-panel));
    color: var(--cy-muted);
}

.ql-editor code {
    padding: 2px 5px;
    border: 1px solid color-mix(in srgb, var(--cy-blue) 28%, var(--cy-line));
    border-radius: 6px;
    background: color-mix(in srgb, var(--cy-blue) 7%, var(--cy-panel));
    color: var(--cy-blue);
    font-family: Consolas, Monaco, monospace;
    font-size: .92em;
}

.ql-editor pre {
    margin: 10px 0;
    padding: 11px 12px;
    overflow: auto;
    border: 1px solid var(--cy-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--cy-ink) 88%, #000000);
    color: var(--cy-panel);
}

.ql-editor pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.ql-editor img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 8px;
}

.ql-editor iframe {
    display: block;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    margin: 8px 0;
    border: 0;
    border-radius: 8px;
    background: #000;
}

.ql-editor a {
    color: var(--cy-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cy-brand-mark,
.cy-logo,
.cy-nav a,
.cy-nav button,
.cy-shop-head,
.cy-section,
.cy-product-detail,
.cy-order-panel,
.cy-statline span,
.cy-announcement,
.cy-notice,
.cy-category,
.cy-product,
.cy-product strong,
.cy-empty,
.cy-description,
.cy-form input,
.cy-addon-input input,
.cy-modal-input input,
.cy-code-captcha input,
.cy-inline-control button,
.cy-check,
.cy-payway,
.cy-total,
.cy-submit,
.cy-error,
.cy-modal-box,
.cy-modal-close,
.cy-modal-actions button,
.cy-code-captcha img,
.cy-segmented,
.cy-lookup-form input,
.cy-lookup-hint,
.cy-lookup-submit,
.cy-lookup-message,
.cy-record-skeleton span,
.cy-record-card,
.cy-record-actions button,
.ql-editor pre {
    border-radius: var(--cy-radius);
}

.cy-segmented button,
.ql-editor code {
    border-radius: max(2px, calc(var(--cy-radius) - 2px));
}

.cy-category.active,
.cy-product.active,
.cy-payway.active {
    box-shadow: inset 3px 0 0 var(--cy-accent);
}

.cy-check:has(input:checked) {
    border-color: var(--cy-accent);
    background: color-mix(in srgb, var(--cy-accent) 8%, var(--cy-panel));
}

.cy-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cy-submit-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid color-mix(in srgb, var(--cy-accent-ink) 36%, transparent);
    border-top-color: var(--cy-accent-ink);
    border-radius: 999px;
    animation: cy-spin 720ms linear infinite;
}

.cy-brand:focus-visible,
.cy-nav a:focus-visible,
.cy-nav button:focus-visible,
.cy-category:focus-visible,
.cy-product:focus-visible,
.cy-meta-row button:focus-visible,
.cy-form input:focus-visible,
.cy-addon-input input:focus-visible,
.cy-modal-input input:focus-visible,
.cy-code-captcha input:focus-visible,
.cy-inline-control button:focus-visible,
.cy-check:focus-within,
.cy-payway:focus-within,
.cy-submit:focus-visible,
.cy-modal-close:focus-visible,
.cy-modal-actions button:focus-visible,
.cy-segmented button:focus-visible,
.cy-lookup-form input:focus-visible,
.cy-lookup-submit:focus-visible,
.cy-record-actions button:focus-visible,
.ql-editor a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cy-accent) 28%, transparent);
    outline-offset: 2px;
}

.canye-density-compact .cy-topbar-inner {
    min-height: 56px;
}

.canye-density-compact .cy-grid {
    gap: 14px;
    padding: 16px 0 30px;
}

.canye-density-compact .cy-shop,
.canye-density-compact .cy-order-panel {
    gap: 12px;
}

.canye-density-compact .cy-shop-head {
    padding: 16px;
}

.canye-density-compact .cy-section,
.canye-density-compact .cy-product-detail,
.canye-density-compact .cy-order-panel {
    padding: 12px;
}

.canye-density-compact .cy-catalog {
    gap: 12px;
    grid-template-columns: 230px minmax(0, 1fr);
}

.canye-density-compact .cy-category-list,
.canye-density-compact .cy-product-list,
.canye-density-compact .cy-record-list {
    gap: 7px;
}

.canye-density-compact .cy-category,
.canye-density-compact .cy-check,
.canye-density-compact .cy-payway {
    min-height: 38px;
    padding: 7px 9px;
}

.canye-density-compact .cy-product {
    min-height: 62px;
    padding: 10px;
}

.canye-density-compact .cy-form {
    gap: 8px;
}

.canye-density-compact .cy-form input,
.canye-density-compact .cy-addon-input input,
.canye-density-compact .cy-modal-input input,
.canye-density-compact .cy-code-captcha input,
.canye-density-compact .cy-lookup-form input {
    min-height: 38px;
}

.canye-density-compact .cy-total {
    min-height: 54px;
    padding: 10px 12px;
}

.canye-density-compact .cy-submit {
    min-height: 44px;
}

.canye-motion-rich .cy-shop-head,
.canye-motion-rich .cy-section,
.canye-motion-rich .cy-product-detail,
.canye-motion-rich .cy-order-panel {
    animation-name: cy-lift-in;
}

.canye-motion-rich .cy-product,
.canye-motion-rich .cy-category,
.canye-motion-rich .cy-payway {
    animation: cy-rise-in var(--cy-motion-base) var(--cy-ease-out) both;
}

.canye-motion-rich .cy-category:nth-child(2),
.canye-motion-rich .cy-product:nth-child(2),
.canye-motion-rich .cy-payway:nth-child(2) {
    animation-delay: 35ms;
}

.canye-motion-rich .cy-category:nth-child(3),
.canye-motion-rich .cy-product:nth-child(3),
.canye-motion-rich .cy-payway:nth-child(3) {
    animation-delay: 70ms;
}

.canye-motion-rich .cy-category:nth-child(4),
.canye-motion-rich .cy-product:nth-child(4),
.canye-motion-rich .cy-payway:nth-child(4) {
    animation-delay: 105ms;
}

.canye-motion-rich .cy-submit:not(:disabled) {
    animation: cy-soft-breathe 2600ms var(--cy-ease-move) infinite;
}

.canye-motion-reduced *,
.canye-motion-reduced *::before,
.canye-motion-reduced *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
}

.canye-motion-reduced .cy-submit {
    animation: none !important;
}

@media (max-width: 980px) {
    .cy-grid,
    .cy-catalog {
        grid-template-columns: 1fr;
    }

    .cy-order {
        position: static;
    }
}

@media (max-width: 720px) {
    .cy-wrap {
        width: min(100% - 20px, 1180px);
    }

    .cy-topbar-inner,
    .cy-shop-head,
    .cy-product-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cy-topbar-inner {
        display: grid;
        min-height: auto;
        padding: 12px 0;
    }

    .cy-nav {
        justify-content: flex-start;
    }

    .cy-shop-head h1 {
        font-size: 30px;
    }

    .cy-statline {
        width: 100%;
    }

    .cy-notice {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cy-notice > span {
        width: fit-content;
    }

    .cy-form {
        grid-template-columns: 1fr;
    }

    .cy-pricebox {
        justify-items: start;
    }

    .cy-lookup-form,
    .cy-record-card {
        grid-template-columns: 1fr;
    }

    .cy-record-meta,
    .cy-record-actions {
        justify-content: flex-start;
    }
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
    .cy-topbar {
        background: var(--cy-paper);
    }

    .cy-kicker,
    .cy-notice,
    .cy-category:hover,
    .cy-category.active,
    .cy-product:hover,
    .cy-product.active,
    .cy-payway.active,
    .cy-lookup-message {
        background: rgba(47, 111, 100, .1);
    }

    .cy-announcement.style-ribbon {
        background: rgba(197, 150, 63, .12);
    }

    .cy-total b {
        color: #a5dccf;
    }
}

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