:root {
    --spike-site-background: #ebf1fa;
    --spike-site-page-bg: #e5eef9;
    --spike-site-page-bg-start: #e5eef9;
    --spike-site-page-bg-end: #e5eef9;
    --spike-site-foreground: #131922;
    --spike-site-card: #fff;
    --spike-site-primary: var(--spike-primary);
    --spike-site-primary-foreground: #fcfcfc;
    --spike-site-secondary: #dfe9f7;
    --spike-site-secondary-foreground: #262e3d;
    --spike-site-muted: #e7edf6;
    --spike-site-muted-foreground: #626975;
    --spike-site-accent: #e4efff;
    --spike-site-accent-foreground: var(--spike-primary);
    --spike-site-destructive: #e7000b;
    --spike-site-price: #e9411f;
    --spike-site-border: #e1e5eb;
    --spike-site-footer: #0c121a;
}

@font-face {
    font-family: "DINCond";
    font-weight: 400;
    src: url("/web/cany_spike/font/Mohave-Regular-2.otf") format("woff");
    font-display: swap;
}

.spike-siyuan { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif; }
.spike-DINCond { font-family: "DINCond", sans-serif; }
.spike-headerbar { display: contents; border: 0; }
.spike-header,
.spike-header *,
.spike-header *::before,
.spike-header *::after { box-sizing: border-box; }

.spike-header {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 73px;
    border-top: 0;
    border-bottom: 1px solid rgba(228, 234, 242, .92);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 30px rgba(20, 33, 61, .045);
    backdrop-filter: blur(18px);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.spike-header.is-scrolled {
    border-bottom-color: rgba(206, 215, 229, .96);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 34px rgba(20, 33, 61, .1);
}

.spike-header .spike-width {
    display: flex;
    width: 100%;
    max-width: 1440px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
    gap: 0;
}

.spike-logo {
    flex: 0 1 220px;
    width: auto;
    min-width: 115px;
    max-width: 220px;
    height: 40px;
}

.spike-logo > a,
.spike-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spike-logo > a {
    max-width: 100%;
}

.spike-brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--spike-radius);
    color: var(--spike-site-primary-foreground);
    background: var(--spike-site-primary);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.spike-brand-mark svg {
    width: 20px;
    height: 20px;
}

.spike-brand-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--spike-site-foreground);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spike-brand-name span,
.spike-footer-brand > span:last-child span {
    color: var(--spike-site-primary);
    font-weight: inherit;
}

.spike-custom-logo {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.spike-custom-logo[hidden],
.spike-brand-mark[hidden] {
    display: none;
}

.spike-nav-wrap {
    margin-left: 32px;
}

.spike-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spike-header-nav .spike-item {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--spike-radius);
    color: var(--spike-site-muted-foreground);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.spike-header-nav .spike-item:hover {
    color: var(--spike-site-foreground);
    background: var(--spike-site-muted);
}

.spike-header-nav .spike-item.is-active {
    color: var(--spike-primary);
    background: rgba(var(--spike-primary-rgb), .09);
}

.spike-button,
.spike-user-nav {
    position: static;
    display: flex;
    width: auto;
    max-width: none;
    height: auto;
    margin-left: auto;
    padding: 0;
    align-items: center;
    border-radius: 0;
    gap: 12px;
    color: inherit;
    background: transparent;
    font-size: 16px;
    line-height: normal;
    cursor: default;
}

.spike-button::before,
.spike-button::after { display: none; content: none; }

.spike-button[hidden],
.spike-user-nav[hidden] {
    display: none;
}

[data-guest-only][hidden],
[data-cart-guest-only][hidden] {
    display: none !important;
}

.spike-user-nav {
    margin-left: 12px;
}

.spike-language-wrap {
    position: relative;
    flex: 0 0 auto;
}

.spike-language {
    font-family: inherit;
    display: inline-flex;
    width: 96px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--spike-site-border);
    border-radius: var(--spike-radius);
    color: var(--spike-site-muted-foreground);
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.spike-language svg {
    width: 17px;
    height: 17px;
}

.spike-language i {
    width: 7px;
    height: 7px;
    margin: -4px 0 0 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.spike-language[aria-expanded="true"] i {
    margin-top: 3px;
    transform: rotate(225deg);
}

.spike-language-menu {
    position: absolute;
    z-index: 1010;
    top: calc(100% + 8px);
    right: 0;
    width: 144px;
    padding: 6px;
    border: 1px solid var(--spike-site-border);
    border-radius: 10px;
    background: var(--spike-site-card);
    box-shadow: 0 12px 30px rgba(30, 44, 74, 0.14);
}

.spike-language-menu[hidden] {
    display: none;
}

.spike-language-menu button {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: var(--spike-site-muted-foreground);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.spike-language-menu button:hover,
.spike-language-menu button.is-active {
    color: var(--spike-site-primary);
    background: var(--spike-site-accent);
}

.spike-cart-link {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--spike-site-border);
    border-radius: 50%;
    color: var(--spike-site-foreground);
    background: rgba(255, 255, 255, 0.82);
}

.spike-cart-link:hover {
    color: var(--spike-site-primary);
    border-color: rgba(var(--spike-primary-rgb), 0.4);
    background: var(--spike-site-card);
}

.spike-cart-link svg {
    width: 18px;
    height: 18px;
}

.spike-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f1f5fb;
    border-radius: 999px;
    color: #fff;
    background: var(--spike-site-price);
    font-size: 10px;
    line-height: 13px;
    font-weight: 700;
}

.spike-cart-count[hidden] {
    display: none;
}

.spike-login-link {
    display: inline-flex;
    height: 36px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--spike-site-muted-foreground);
    font-size: 14px;
    font-weight: 500;
}

.spike-login-link:hover {
    color: var(--spike-site-foreground);
    background: var(--spike-site-muted);
}

.spike-login-link svg {
    width: 16px;
    height: 16px;
}

.spike-register-link,
.spike-console-btn {
    display: inline-flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--spike-primary-text);
    background: var(--spike-primary);
    font-size: 14px;
    font-weight: 500;
}

.spike-register-link:hover,
.spike-console-btn:hover {
    color: var(--spike-site-primary-foreground);
    background: rgba(var(--spike-primary-rgb), 0.8);
}

.spike-avatar-link {
    display: inline-flex;
    width: 68px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 8px 0 4px;
    border: 1px solid var(--spike-site-border);
    border-radius: 999px;
    color: var(--spike-site-muted-foreground);
    background: rgba(255, 255, 255, 0.82);
}

.spike-avatar-link:hover {
    color: var(--spike-site-primary);
    border-color: rgba(var(--spike-primary-rgb), 0.4);
    background: var(--spike-site-card);
}

.spike-user-menu-wrap {
    position: relative;
}

.spike-avatar-button {
    display: inline-flex;
    width: 68px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 8px 0 4px;
    border: 1px solid var(--spike-site-border);
    border-radius: 999px;
    color: var(--spike-site-muted-foreground);
    background: rgba(255, 255, 255, 0.82);
    font: inherit;
    cursor: pointer;
}

.spike-avatar-button:hover,
.spike-avatar-button.is-open {
    color: var(--spike-site-primary);
    border-color: rgba(var(--spike-primary-rgb), 0.4);
    background: var(--spike-site-card);
}

.spike-avatar-button.is-open .spike-avatar-arrow {
    margin-top: 3px;
    transform: rotate(225deg);
}

.spike-user-menu {
    position: absolute;
    z-index: 1010;
    top: calc(100% + 10px);
    right: 0;
    width: 232px;
    overflow: hidden;
    border: 1px solid var(--spike-site-border);
    border-radius: var(--spike-radius);
    background: var(--spike-site-card);
    box-shadow: 0 16px 38px rgba(30, 44, 74, 0.16);
}

.spike-user-menu[hidden],
.spike-mobile-account[hidden],
.spike-header-notice[hidden] {
    display: none !important;
}

.spike-user-menu-head {
    display: flex;
    min-height: 92px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid var(--spike-site-border);
}

.spike-user-menu-head > span:first-child,
.spike-mobile-account-summary small {
    color: var(--spike-site-muted-foreground);
    font-size: 12px;
}

.spike-user-menu-head strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--spike-site-foreground);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spike-certification-state {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
}

.spike-certification-state.is-certified {
    color: #087a4d;
    background: #e7f8ef;
}

.spike-certification-state.is-uncertified {
    color: #9b5b00;
    background: #fff4d8;
}

.spike-user-menu nav {
    padding: 7px;
}

.spike-user-menu nav a,
.spike-user-menu nav button,
.spike-mobile-account > a,
.spike-mobile-account > button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border: 0;
    border-radius: calc(var(--spike-radius) - 2px);
    color: var(--spike-site-foreground);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.spike-user-menu nav a:hover,
.spike-user-menu nav button:hover,
.spike-mobile-account > a:hover,
.spike-mobile-account > button:hover {
    color: var(--spike-site-primary);
    background: var(--spike-site-accent);
}

.spike-user-menu .is-danger,
.spike-mobile-account .is-danger {
    color: var(--spike-site-destructive);
}

.spike-user-menu :focus-visible,
.spike-avatar-button:focus-visible,
.spike-mobile-account :focus-visible {
    outline: 3px solid rgba(var(--spike-primary-rgb), .22);
    outline-offset: 1px;
}

.spike-header-notice {
    position: fixed;
    z-index: 1020;
    top: 84px;
    left: 50%;
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 16px;
    border: 1px solid #f5c2c7;
    border-radius: var(--spike-radius);
    color: #842029;
    background: #f8d7da;
    box-shadow: 0 12px 30px rgba(30, 44, 74, 0.14);
    transform: translateX(-50%);
    font-size: 13px;
}

.spike-mobile-account {
    display: none;
}

.spike-avatar {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--spike-site-primary-foreground);
    background: var(--spike-site-primary);
    font-size: 13px;
    font-weight: 600;
}

.spike-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spike-avatar-arrow {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.spike-menu-toggle {
    display: none;
}

@media screen and (max-width: 1023px) {
    .spike-header .spike-width {
        padding: 0 16px;
    }

    .spike-nav-wrap {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0 16px;
        overflow: hidden;
        opacity: 0;
        border-bottom: 1px solid var(--spike-site-border);
        background: rgba(234, 241, 250, 0.98);
        box-shadow: 0 14px 28px rgba(30, 44, 74, 0.1);
        transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
    }

    .spike-header.is-open .spike-nav-wrap {
        max-height: 430px;
        padding: 12px 16px 16px;
        opacity: 1;
    }

    .spike-header-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
    }

    .spike-header-nav .spike-item {
        justify-content: flex-start;
        border-radius: 12px;
        padding: 10px 14px;
        color: var(--spike-site-foreground);
    }

    .spike-button {
        margin-left: auto;
        gap: 8px;
    }

    .spike-login-link {
        display: none;
    }

    .spike-language {
        width: 48px;
        padding: 0;
        justify-content: center;
    }

    .spike-language > span {
        display: none;
    }

    .spike-register-link {
        min-width: 67px;
        height: 32px;
        padding: 0 18px;
    }

    .spike-user-nav {
        margin-left: 0;
        gap: 8px;
    }

    .spike-console-btn {
        display: none;
    }

    .spike-avatar-link {
        width: 62px;
        height: 36px;
    }

    .spike-menu-toggle {
        display: flex;
        width: 36px;
        height: 36px;
        margin-left: 8px;
        padding: 8px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border: 1px solid var(--spike-site-border);
        border-radius: 50%;
        background: var(--spike-site-card);
        cursor: pointer;
    }

    .spike-menu-toggle span {
        display: block;
        width: 18px;
        height: 1.5px;
        border-radius: 2px;
        background: var(--spike-site-foreground);
        transition: transform 0.24s ease, opacity 0.18s ease;
    }

    .spike-header.is-open .spike-menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .spike-header.is-open .spike-menu-toggle span:nth-child(2) { opacity: 0; }
    .spike-header.is-open .spike-menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

@media screen and (max-width: 360px) {
    .spike-brand-name {
        font-size: 16px;
    }

    .spike-register-link {
        padding: 0 14px;
    }
}

@media screen and (max-width: 639px) {
    .spike-logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .spike-user-nav .spike-avatar-link,
    .spike-user-nav .spike-avatar-button {
        display: none;
    }

    .spike-brand-copy strong {
        text-overflow: clip;
    }

    .spike-header.is-open .spike-nav-wrap {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .spike-mobile-account:not([hidden]) {
        display: grid;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--spike-site-border);
    }

    .spike-mobile-account-summary {
        display: grid;
        min-width: 0;
        padding: 10px 12px 14px;
        align-items: center;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .spike-mobile-account-summary .spike-avatar {
        width: 36px;
        height: 36px;
    }

    .spike-mobile-account-summary > span:nth-child(2) {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .spike-mobile-account-summary strong {
        overflow: hidden;
        color: var(--spike-site-foreground);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spike-mobile-account > a,
    .spike-mobile-account > button {
        min-height: 44px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

.spike-header + main,
.spike-headerbar + main { padding-top: 72px; }

@media screen and (max-width: 1180px) and (min-width: 1024px) {
    .spike-header-nav .spike-item { padding-right: 11px; padding-left: 11px; }
    .spike-nav-wrap { margin-left: 16px; }
    .spike-logo { flex-basis: 190px; }
}

@media screen and (max-width: 1023px) {
    .spike-header { height: 65px; }
    .spike-header .spike-width { height: 64px; }
    .spike-header + main,
    .spike-headerbar + main { padding-top: 64px; }
    .spike-nav-wrap { background: rgba(255, 255, 255, .98); }
}
