:root {
    --zhy-bg: #f5f7fa;
    --zhy-white: #fff;
    --zhy-border: #ebeef5;
    --zhy-text: #303133;
    --zhy-muted: #909399;
    --zhy-primary: #409eff;
    --zhy-danger: #f56c6c;
}

html, body {
    min-height: 100%;
}

body.zhy-body {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--zhy-bg);
    color: var(--zhy-text);
    font-size: 14px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: transparent;
}

.zhy-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#pjax-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.zhy-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 10px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--zhy-border);
    backdrop-filter: blur(10px);
}

.zhy-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    font-size: 18px;
    font-weight: 700;
}

.zhy-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.zhy-top-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.zhy-top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding: 0 16px;
    color: var(--zhy-muted);
    border-bottom: 2px solid transparent;
    font-size: 14px;
    user-select: none;
}

.zhy-top-link i {
    font-size: 14px;
    line-height: 1;
    color: inherit;
}

.zhy-top-link-arrow {
    font-size: 12px !important;
}

.zhy-top-link.is-active,
.zhy-top-link:hover {
    color: var(--zhy-primary);
    border-bottom-color: var(--zhy-primary);
}

.zhy-home,
.zhy-product-page,
.zhy-closed-page {
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    padding: 10px;
    padding-bottom: 62px;
}

.zhy-home-aside {
    width: 300px;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.zhy-home-main {
    flex: 1;
    min-width: 0;
}

.zhy-home-main-full {
    width: 100%;
}

.zhy-card {
    margin-bottom: 10px;
    background: var(--zhy-white);
    border: 1px solid #dfe6ec;
    border-radius: 4px;
}

.zhy-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--zhy-border);
    font-size: 14px;
}

.zhy-card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zhy-card-body {
    padding: 16px 20px;
}

.zhy-toggle-notice {
    color: var(--zhy-primary);
    cursor: pointer;
}

.zhy-notice {
    line-height: 1.85;
    word-break: break-word;
}

.zhy-notice.is-collapsed {
    display: none;
}

.zhy-category-list {
    max-height: 760px;
    overflow-y: auto;
}

.zhy-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--zhy-border);
    color: var(--zhy-text);
}

.zhy-category-link:hover,
.zhy-category-link.is-active {
    background: var(--zhy-primary);
    color: #fff;
}

.zhy-category-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.zhy-category-icon-wrap,
.zhy-svg-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: inherit;
    fill: currentColor;
}

.zhy-category-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zhy-category-icon-wrap i {
    font-size: 16px;
}

.zhy-image-icon {
    display: block;
    object-fit: cover;
}

.zhy-image-icon-category {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.zhy-image-icon-goods {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.zhy-category-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zhy-category-count {
    min-width: 32px;
    text-align: right;
}

.zhy-search-box {
    display: flex;
    margin-bottom: 10px;
    background: var(--zhy-white);
    border: 1px solid #dfe6ec;
    border-radius: 4px;
    overflow: hidden;
}

.zhy-search-input,
.zhy-text-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 11px 16px;
    background: #fff;
}

.zhy-search-btn {
    width: 56px;
    color: var(--zhy-muted);
    border-left: 1px solid var(--zhy-border);
    cursor: pointer;
    font-size: 18px;
}

.zhy-goods-list,
.zhy-order-list {
    min-height: 120px;
}

.zhy-empty {
    padding: 24px 20px;
    color: var(--zhy-muted);
}

.zhy-goods-item {
    border-bottom: 1px dashed var(--zhy-border);
}

.zhy-goods-item:last-child {
    border-bottom: 0;
}

.zhy-goods-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 5px 20px;
}

.zhy-goods-link:hover {
    color: #fff;
    background: var(--zhy-primary);
}

.zhy-goods-link:hover .zhy-goods-price,
.zhy-goods-link:hover .zhy-goods-stock,
.zhy-goods-link:hover .zhy-goods-title {
    color: #fff;
}

.zhy-goods-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    color: #606266;
    fill: currentColor;
}

.zhy-goods-title {
    flex: 1;
    min-width: 0;
    line-height: 30px;
    word-break: break-all;
    font-size: 14px;
}

.zhy-goods-info {
    display: flex;
    align-items: center;
    min-width: 190px;
}

.zhy-goods-price {
    min-width: 90px;
    text-align: right;
    color: var(--zhy-danger);
    font-weight: 700;
    border-right: 1px solid var(--zhy-border);
    padding-right: 10px;
    font-size: 14px;
}

.zhy-goods-stock {
    min-width: 82px;
    padding-left: 10px;
    color: var(--zhy-muted);
    font-size: 12px;
}

.zhy-product-main {
    flex: 1;
    min-width: 0;
}

.zhy-product-side {
    width: 470px;
    flex: 0 0 470px;
}

.zhy-product-title {
    padding: 20px 20px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.zhy-product-summary {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.zhy-product-cover-wrap {
    width: 260px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex: 0 0 260px;
}

.zhy-product-cover {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zhy-product-meta {
    flex: 1;
    background: var(--zhy-bg);
    border-radius: 10px;
    overflow: hidden;
}

.zhy-product-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    line-height: 52px;
    border-bottom: 1px solid var(--zhy-border);
}

.zhy-product-meta-row:last-child {
    border-bottom: 0;
}

.zhy-detail-body {
    line-height: 1.9;
    word-break: break-word;
}

.zhy-detail-body img {
    max-width: 100%;
}

.zhy-form-group {
    margin-bottom: 18px;
}

.zhy-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--zhy-text);
}

.zhy-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zhy-option-btn,
.zhy-pay-item,
.zhy-optional-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    color: var(--zhy-text);
    cursor: pointer;
    transition: all .2s ease;
}

.zhy-option-btn.is-active,
.zhy-pay-item.is-active,
.zhy-option-btn:hover,
.zhy-pay-item:hover,
.zhy-optional-btn:hover {
    border-color: var(--zhy-primary);
    box-shadow: 0 2px 6px rgba(64, 158, 255, .15);
}

.zhy-inline-price {
    color: var(--zhy-danger);
}

.zhy-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: hidden;
}

.zhy-qty-box button {
    width: 42px;
    height: 40px;
    color: var(--zhy-muted);
    background: #f5f7fa;
    cursor: pointer;
}

.zhy-qty-box input {
    width: 96px;
    height: 40px;
    border: 0;
    outline: none;
    text-align: center;
}

.zhy-captcha-row {
    display: flex;
    gap: 10px;
}

.zhy-captcha-img {
    width: 120px;
    height: 42px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}

.zhy-pay-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zhy-pay-item img {
    width: 18px;
    height: 18px;
    object-fit: cover;
}

.zhy-pay-item input {
    display: none;
}

.zhy-tip-block {
    border-top: 1px solid var(--zhy-border);
    padding-top: 16px;
    color: #999;
}

.zhy-tip-block ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.zhy-tip-block li {
    margin-bottom: 6px;
}

.zhy-fixed-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid var(--zhy-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
}

.zhy-fixed-price {
    min-width: 160px;
    font-size: 28px;
    font-weight: 700;
    color: var(--zhy-danger);
}

.zhy-submit-btn {
    min-width: 150px;
    height: 50px;
    padding: 0 24px;
    border-radius: 25px;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(90deg, #62b0ff, #409eff);
    cursor: pointer;
}

.zhy-submit-btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.zhy-query-item {
    border-bottom: 1px dashed var(--zhy-border);
    padding: 18px 20px;
}

.zhy-query-item:last-child {
    border-bottom: 0;
}

.zhy-query-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.zhy-query-no {
    font-weight: 700;
}

.zhy-query-status {
    color: var(--zhy-danger);
    font-weight: 700;
}

.zhy-query-meta,
.zhy-query-secret {
    color: var(--zhy-muted);
    line-height: 1.8;
}

.zhy-query-secret {
    margin-top: 12px;
    padding: 12px;
    background: #f7f9fc;
    border-radius: 4px;
    color: var(--zhy-text);
    white-space: pre-wrap;
    word-break: break-all;
}

.zhy-password-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.zhy-password-btn {
    padding: 0 14px;
    color: #fff;
    background: var(--zhy-primary);
    border-radius: 4px;
    cursor: pointer;
}

.zhy-footer {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    margin-top: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
    color: #666;
    font-size: 12px;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 2px 0 10px 0 rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.zhy-footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.zhy-footer-topline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zhy-closed-card {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
}

.zhy-guide-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zhy-guide-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #fff;
    color: #2f2f2f;
    text-decoration: none;
    transition: all .2s ease;
}

.zhy-guide-link:hover,
.zhy-guide-link.is-active {
    border-color: #f5d56b;
    background: #fff8de;
    color: #181818;
}

.zhy-guide-link-title {
    font-size: 14px;
    font-weight: 600;
}

.zhy-guide-link-summary {
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.6;
}

.zhy-guide-card .zhy-card-header {
    font-size: 18px;
}

.zhy-guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    color: #8b8b8b;
    font-size: 12px;
}

.zhy-guide-content {
    color: #2c2c2c;
    line-height: 1.85;
    font-size: 14px;
    word-break: break-word;
}

.zhy-guide-content img,
.zhy-guide-content video,
.zhy-guide-content iframe {
    max-width: 100%;
    border-radius: 10px;
}

.zhy-guide-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .zhy-header {
        margin: 0;
    }

    .zhy-home,
    .zhy-product-page,
    .zhy-closed-page {
        flex-direction: column;
    }

    .zhy-home-aside,
    .zhy-product-side {
        position: static;
        width: 100%;
        flex: auto;
    }
}

@media (max-width: 768px) {
    .zhy-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 14px;
    }

    .zhy-brand {
        min-height: auto;
    }

    .zhy-top-nav {
        width: 100%;
        justify-content: space-between;
    }

    .zhy-top-link {
        min-height: auto;
        padding: 10px 8px;
        font-size: 13px;
    }

    .zhy-top-link i {
        font-size: 13px;
    }

    .zhy-product-summary,
    .zhy-query-top,
    .zhy-goods-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .zhy-product-cover-wrap {
        width: 100%;
        flex: auto;
    }

    .zhy-goods-info {
        min-width: 0;
        width: 100%;
    }

    .zhy-fixed-bar {
        justify-content: space-between;
        gap: 12px;
    }

    .zhy-footer {
        height: auto;
        min-height: 50px;
        padding: 6px 12px;
    }

    .zhy-fixed-price {
        min-width: 0;
        font-size: 24px;
    }

    .zhy-submit-btn {
        min-width: 120px;
        height: 44px;
        font-size: 16px;
    }
}
