/* =========================================================
 * 柯椎科技商城组件样式 shop.css
 * 与 yzlcms.css 配合使用，保持整站风格
 * ========================================================= */

/* ---------- 购物车入口（header） ---------- */
.cart-entry {
    position: relative;
    display: inline-block;
    margin-right: 14px;
    vertical-align: middle;
}
.cart-entry a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ffc600;
    color: #ffc600;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.4;
    background: transparent;
    transition: all .35s;
    text-decoration: none;
}
.cart-entry a:hover {
    background: #ffc600;
    color: #fff;
}
.cart-entry .cart-badge-num {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e23b3b;
    color: #fff;
    font-size: 11px;
    text-align: center;
    font-style: normal;
}

/* ---------- 产品详情：价格区 ---------- */
.kz-product-bar {
    margin: 16px 0 20px;
    padding: 18px 20px;
    background: #faf7ef;
    border: 1px solid #f0e6c8;
    border-radius: 4px;
}
.kz-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.kz-price-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}
.kz-price-now {
    font-size: 28px;
    font-weight: 700;
    color: #e23b3b;
    font-style: normal;
}
.kz-price-now small {
    font-size: 14px;
    font-weight: 400;
}
.kz-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 12px;
}
.kz-service-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #ffc600;
    color: #333;
    font-size: 12px;
    border-radius: 2px;
    margin-left: 12px;
}
.kz-price-desc {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* ---------- 加购 / 立即购买按钮 ---------- */
.kz-buy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}
.kz-btn {
    display: inline-block;
    padding: 10px 30px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    transition: all .3s;
}
.kz-btn-add {
    background: #ffc600;
    color: #333;
    border: 1px solid #ffc600;
}
.kz-btn-add:hover {
    background: #f0b400;
    color: #333;
}
.kz-btn-buy {
    background: #333;
    color: #fff;
    border: 1px solid #333;
}
.kz-btn-buy:hover {
    background: #ffc600;
    border-color: #ffc600;
    color: #333;
}
.kz-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 2px;
    height: 42px;
}
.kz-qty-box button {
    width: 36px;
    height: 40px;
    border: none;
    background: #f7f7f7;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}
.kz-qty-box button:hover {
    background: #ffc600;
}
.kz-qty-box input {
    width: 52px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 15px;
    outline: none;
}

/* ---------- toast 提示 ---------- */
.kz-toast {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.82);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.kz-toast.show {
    opacity: 1;
}

/* ---------- 购物车 / 结算 / 订单页 ---------- */
.kz-page-title {
    margin-bottom: 24px;
}
.kz-table {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
}
.kz-table th,
.kz-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}
.kz-table th {
    background: #faf7ef;
    color: #333;
    font-weight: 600;
}
.kz-table .kz-goods {
    display: flex;
    align-items: center;
}
.kz-table .kz-goods img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin-right: 14px;
    border: 1px solid #f0f0f0;
}
.kz-table .kz-goods-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.kz-table .kz-goods-type {
    font-size: 12px;
    color: #999;
}
.kz-price {
    color: #e23b3b;
    font-weight: 600;
}
.kz-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
}
.kz-qty button {
    width: 28px;
    height: 30px;
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 14px;
}
.kz-qty input {
    width: 44px;
    height: 30px;
    border: none;
    text-align: center;
    font-size: 14px;
    outline: none;
}
.kz-del {
    color: #999;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
}
.kz-del:hover {
    color: #e23b3b;
}
.kz-cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    padding: 18px 24px;
    background: #faf7ef;
    border: 1px solid #f0e6c8;
}
.kz-sum-label {
    font-size: 15px;
    color: #555;
    margin-right: 16px;
}
.kz-sum-total {
    font-size: 26px;
    font-weight: 700;
    color: #e23b3b;
    margin-right: 28px;
}
.kz-empty {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.kz-empty .kz-empty-icon {
    font-size: 52px;
    color: #ccc;
    display: block;
    margin-bottom: 16px;
}
.kz-empty p {
    color: #888;
    font-size: 15px;
    margin-bottom: 20px;
}

/* ---------- 表单 ---------- */
.kz-form-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 32px;
    margin-bottom: 24px;
}
.kz-form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.kz-form-row {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
}
.kz-form-row label {
    width: 110px;
    font-size: 14px;
    color: #555;
    line-height: 40px;
    flex-shrink: 0;
}
.kz-form-row .kz-field {
    flex: 1;
}
.kz-input, .kz-textarea, .kz-select {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 2px;
    background: #fff;
    outline: none;
}
.kz-textarea {
    height: 90px;
    padding: 10px 12px;
    resize: vertical;
}
.kz-input:focus, .kz-textarea:focus, .kz-select:focus {
    border-color: #ffc600;
}
.kz-radio-group label {
    display: inline-block;
    width: auto;
    margin-right: 22px;
    line-height: 40px;
    cursor: pointer;
}
.kz-radio-group input {
    margin-right: 6px;
}

/* ---------- 登录/注册 ---------- */
.kz-auth-wrap {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 40px 40px 30px;
}
.kz-auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}
.kz-auth-sub {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 26px;
}
.kz-auth-tip {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #888;
}
.kz-auth-tip a {
    color: #ffc600;
    text-decoration: none;
}
.kz-btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 15px;
}

/* ---------- 订单成功 ---------- */
.kz-success {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.kz-success .kz-success-icon {
    font-size: 64px;
    color: #52c41a;
    display: block;
    margin-bottom: 18px;
}
.kz-success h2 {
    font-size: 24px;
    margin-bottom: 12px;
}
.kz-success p {
    color: #888;
    margin-bottom: 8px;
}
.kz-success .kz-order-no {
    color: #333;
    font-weight: 600;
}

/* ---------- 会员中心 ---------- */
.kz-member-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
.kz-member-side {
    width: 240px;
    padding: 0 12px;
}
.kz-member-main {
    flex: 1;
    min-width: 280px;
    padding: 0 12px;
}
.kz-member-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 24px;
    margin-bottom: 20px;
}
.kz-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffc600;
    color: #333;
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.kz-member-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}
.kz-member-phone {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 12px;
}
.kz-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kz-menu-list li {
    border-bottom: 1px solid #f7f7f7;
}
.kz-menu-list a {
    display: block;
    padding: 12px 4px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all .2s;
}
.kz-menu-list a:hover,
.kz-menu-list a.active {
    color: #ffc600;
    padding-left: 10px;
}
.kz-stat-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.kz-stat {
    flex: 1;
    min-width: 120px;
    margin: 0 10px 20px;
    background: #faf7ef;
    border: 1px solid #f0e6c8;
    padding: 20px 10px;
    text-align: center;
}
.kz-stat b {
    display: block;
    font-size: 24px;
    color: #333;
    margin-bottom: 4px;
}
.kz-stat span {
    font-size: 13px;
    color: #888;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 767px) {
    .cart-entry a {
        padding: 6px 12px;
        font-size: 13px;
    }
    .kz-table th:nth-child(2),
    .kz-table td:nth-child(2) {
        display: none;
    }
    .kz-table .kz-goods img {
        width: 48px;
        height: 48px;
    }
    .kz-form-row {
        flex-direction: column;
    }
    .kz-form-row label {
        width: auto;
        line-height: 30px;
    }
    .kz-member-side {
        width: 100%;
    }
    .kz-cart-summary {
        flex-direction: column;
        align-items: flex-end;
    }
}