/* ============================================================
   设计令牌 DESIGN TOKENS
   换肤 / 调色 / 调圆角只改这一块
   ============================================================ */
#order-standard_cart {
    /* 主色 */
    --cst-blue: #0066ff;
    --cst-blue-dark: #0052cc;

    /* 文字 */
    --cst-ink: #0d1526;
    --cst-text: #33415c;
    --cst-text-soft: #5c6b82;
    --cst-muted: #8b98ad;
    --cst-muted-2: #9aa7ba;
    --cst-muted-3: #a8b3c4;

    /* 描边 */
    --cst-line: #eef3fb;
    --cst-line-soft: #f2f6fb;
    --cst-line-2: #e8eefb;
    --cst-line-soft2: #edf3fc;
    --cst-line-input: #e2e8f2;

    /* 底色 */
    --cst-surface: #f7faff;
    --cst-surface-2: #fafcff;
    --cst-surface-blue: #f4f8ff;
    --cst-surface-gray: #f8f9fb;
    --cst-disabled-bg: #e8ebf0;

    /* 圆角 */
    --cst-r-xxl: 20px;
    --cst-r-xl: 26px;
    --cst-r-lg: 18px;
    --cst-r-md: 14px;
    --cst-r-sm: 12px;
    --cst-r-xs: 10px;
    --cst-r-xs2: 8px;

    /* 间距与阴影 */
    --cst-gutter: 20px;
    --cst-shadow-card: 0 2px 10px rgba(15, 47, 92, .04);
    --cst-shadow-hover: 0 6px 18px rgba(0, 102, 255, .10), 0 20px 48px rgba(15, 47, 92, .09);
}

/* ============================================================
   CstoneCloud · 产品列表页（圆角蓝白卡 E1 方案）
   文件：templates/orderforms/cst_cart/css/custom.css
   由 common.tpl 的 {assetExists file="custom.css"} 自动引入
   ------------------------------------------------------------
   结构：
     .tc-intro        产品组介绍词（标题 + 徽章 + 4 卖点）
     .tc-card         卡片（白底大圆角）
       .tc-card__tag    型号 + 库存
       .tc-card__price  价格
       .tc-card__grid   规格格子（2 列×N 行）
       .tc-card__btn    实心蓝按钮
   ------------------------------------------------------------
   版本：v11-E1      2026-11-11
   ============================================================ */

/* ================= 产品组介绍词 ================= */
#order-standard_cart.tc-products .tc-intro {
    margin: 0 0 22px;
    padding: 24px 28px;
    background: #fff;
    border-radius: var(--cst-r-xxl);
    box-shadow: 0 2px 10px rgba(15, 47, 92, .04);
}

#order-standard_cart.tc-products .tc-intro__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

#order-standard_cart.tc-products .tc-intro__title {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    color: var(--cst-ink);
    line-height: 1.35;
}

#order-standard_cart.tc-products .tc-intro__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--cst-r-xs2);
    background: var(--cst-surface-blue);
    border: 1px solid #d8e5fb;
    color: var(--cst-blue);
    font-size: 12px;
    white-space: nowrap;
}

#order-standard_cart.tc-products .tc-intro__badge b {
    font-weight: 600;
}

#order-standard_cart.tc-products .tc-intro__badge-k {
    color: #7b93b8;
}

#order-standard_cart.tc-products .tc-intro__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

#order-standard_cart.tc-products .tc-intro__cell {
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    border-radius: var(--cst-r-sm);
    background: var(--cst-surface-2);
    border: 1px solid #eef3fa;
}

#order-standard_cart.tc-products .tc-intro__ico {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

#order-standard_cart.tc-products .tc-intro__txt b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cst-ink);
    line-height: 1.4;
}

#order-standard_cart.tc-products .tc-intro__txt span {
    display: block;
    font-size: 12px;
    color: var(--cst-muted);
    line-height: 1.5;
    margin-top: 1px;
}

@media (max-width: 900px) {
    #order-standard_cart.tc-products .tc-intro__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    #order-standard_cart.tc-products .tc-intro { padding: 18px; }
    #order-standard_cart.tc-products .tc-intro__grid { grid-template-columns: 1fr; }
    #order-standard_cart.tc-products .tc-intro__title { font-size: 18px; }
}

/* ================= 卡片骨架 ================= */
#order-standard_cart.tc-products .product.tc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 24px 22px;
    background: #fff;
    border: 1px solid var(--cst-line);
    border-radius: var(--cst-r-xl);
    box-shadow: 0 2px 8px rgba(15, 47, 92, .04), 0 14px 34px rgba(15, 47, 92, .05);
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

#order-standard_cart.tc-products .product.tc-card:hover {
    border-color: #d8e5fb;
    box-shadow: 0 6px 18px rgba(0, 102, 255, .10), 0 20px 48px rgba(15, 47, 92, .09);
    transform: translateY(-3px);
}

/* 型号 */
#order-standard_cart.tc-products .tc-card__tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cst-text);
    line-height: 1.4;
}

#order-standard_cart.tc-products .tc-card__tag::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cst-blue);
}

#order-standard_cart.tc-products .tc-card__stock {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--cst-muted);
}

/* 价格 */
#order-standard_cart.tc-products .tc-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
}

#order-standard_cart.tc-products .tc-card__price em {
    font-style: normal;
    font-size: 26px;
    font-weight: 700;
    color: var(--cst-ink);
    letter-spacing: -.025em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

#order-standard_cart.tc-products .tc-card__from,
#order-standard_cart.tc-products .tc-card__cycle {
    font-style: normal;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--cst-muted);
}

#order-standard_cart.tc-products .tc-card__setup {
    flex: 1 0 100%;
    font-style: normal;
    font-size: 11.5px;
    color: var(--cst-muted);
}

/* ================= 规格格子（2 列） ================= */
#order-standard_cart.tc-products .tc-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 0 0 22px;
    flex: 1;
    align-content: start;
}

#order-standard_cart.tc-products .tc-spec {
    padding: 9px 12px;
    border-radius: var(--cst-r-xs);
    background: var(--cst-surface);
    border: 1px solid var(--cst-line-soft2);
    min-width: 0;
}

#order-standard_cart.tc-products .tc-spec b {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--cst-muted);
    line-height: 1.3;
}

#order-standard_cart.tc-products .tc-spec span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cst-ink);
    line-height: 1.35;
    margin-top: 2px;
    word-break: break-word;
}

/* ================= 按钮 ================= */
#order-standard_cart.tc-products .tc-card__btn {
    display: block;
    width: 100%;
    margin: auto 0 0;
    padding: 13px 0;
    border: 0;
    border-radius: var(--cst-r-md);
    background: var(--cst-blue);
    color: #fff !important;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0, 102, 255, .22);
    transition: background-color .18s ease, box-shadow .18s ease;
}

#order-standard_cart.tc-products .tc-card__btn:hover {
    background: var(--cst-blue-dark);
    box-shadow: 0 8px 20px rgba(0, 102, 255, .3);
}

/* 卡片间距：两行之间留白 */
#order-standard_cart.tc-products .products .row + .row {
    margin-top: 20px;
}

/* 卡片底部的连接线：让行高等高但不拉伸内容 */
#order-standard_cart.tc-products .products .row-eq-height {
    display: flex;
    flex-wrap: wrap;
}

#order-standard_cart.tc-products .products .row-eq-height > [class*="col-"] {
    display: flex;
    margin-bottom: 0;
}

/* ---------- 无规格产品（服务类）：直接显示描述 ---------- */
#order-standard_cart.tc-products .tc-card__note {
    flex: 1;
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: var(--cst-r-sm);
    background: var(--cst-surface);
    border: 1px solid var(--cst-line-soft2);
    font-size: 13px;
    line-height: 1.75;
    color: var(--cst-text-soft);
}

/* ---------- 介绍词与卡片之间收紧（原生 25px 太远） ---------- */
#order-standard_cart.tc-products .products {
    margin-top: 14px;
}

/* 格子数量为奇数时，最后一个占满整行 */
#order-standard_cart.tc-products .tc-card__grid > .tc-spec:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* ---------- 产品原介绍词（tagline 原文段） ---------- */
#order-standard_cart.tc-products .tc-intro__desc {
    margin: 0 0 16px;
    max-width: 1040px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--cst-text-soft);
}

/* ---------- 栅格间距对齐设计稿：卡片间 gap = 20px ---------- */
#order-standard_cart.tc-products .products .row-eq-height {
    margin-left: -10px;
    margin-right: -10px;
}

#order-standard_cart.tc-products .products .row-eq-height > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0;
}

/* 卡片填满整列，不再被 flex 收缩成内容宽 */
#order-standard_cart.tc-products .product.tc-card {
    flex: 1 1 auto;
    width: 100%;
}

/* 卡片自带 margin-bottom:20px，与行间距叠加成 42px，这里清零 */
#order-standard_cart.tc-products .products .product.tc-card {
    margin-bottom: 0;
}

/* 卡片高度改由列拉伸控制，避免 height:100% 与行高不对齐多出 20px */
#order-standard_cart.tc-products .products .product.tc-card {
    height: auto;
}

#order-standard_cart.tc-products .products .row-eq-height {
    align-items: stretch;
}

/* 列的 align-items:normal 不触发拉伸，卡片需显式 align-self */
#order-standard_cart.tc-products .products .product.tc-card {
    align-self: stretch;
}

/* 覆盖主题自带 body #... .row-eq-height .product { height:95% }（优先级更高） */
body #order-standard_cart.tc-products .products .row-eq-height .product.tc-card {
    height: auto;
    align-self: stretch;
    margin-bottom: 0;
}

/* ============================================================
   缺货商品：整体置灰、按钮禁用
   ============================================================ */
#order-standard_cart.tc-products .product.tc-card.is-out {
    background: var(--cst-surface-gray);
    border-color: #eef0f4;
    box-shadow: none;
}

#order-standard_cart.tc-products .product.tc-card.is-out:hover {
    border-color: #eef0f4;
    box-shadow: none;
    transform: none;
}

/* 型号圆点与文字 */
#order-standard_cart.tc-products .tc-card.is-out .tc-card__tag {
    color: var(--cst-muted-2);
}

#order-standard_cart.tc-products .tc-card.is-out .tc-card__tag::before {
    background: #cbd3df;
}

#order-standard_cart.tc-products .tc-card.is-out .tc-card__stock {
    color: #e2574c;
    font-weight: 500;
}

/* 价格 */
#order-standard_cart.tc-products .tc-card.is-out .tc-card__price em,
#order-standard_cart.tc-products .tc-card.is-out .tc-card__from,
#order-standard_cart.tc-products .tc-card.is-out .tc-card__cycle,
#order-standard_cart.tc-products .tc-card.is-out .tc-card__setup {
    color: var(--cst-muted-3);
}

/* 规格格子 */
#order-standard_cart.tc-products .tc-card.is-out .tc-spec {
    background: #f2f4f7;
    border-color: #eaedf2;
}

#order-standard_cart.tc-products .tc-card.is-out .tc-spec b {
    color: #b4becd;
}

#order-standard_cart.tc-products .tc-card.is-out .tc-spec span {
    color: var(--cst-muted-2);
}

/* 禁用按钮 */
#order-standard_cart.tc-products .tc-card__btn.is-disabled {
    display: block;
    width: 100%;
    margin: auto 0 0;
    padding: 13px 0;
    border-radius: var(--cst-r-md);
    background: var(--cst-disabled-bg);
    color: var(--cst-muted-3) !important;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    cursor: not-allowed;
    user-select: none;
    box-shadow: none;
}

/* ============================================================
   骨架屏（借鉴 nexus_cart 的加载占位思路）
   ============================================================ */
@keyframes cstSkeleton {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

#order-standard_cart .cst-skeleton,
#order-standard_cart .tc-specs:empty:not([data-ready])::before,
#order-standard_cart .tc-cycles:empty:not([data-ready])::before,
#order-standard_cart .summary-container:empty::before {
    content: "";
    display: block;
    border-radius: var(--cst-r-sm);
    background: linear-gradient(90deg, #f1f4f9 25%, #e7edf6 37%, #f1f4f9 63%);
    background-size: 200% 100%;
    animation: cstSkeleton 1.4s ease-in-out infinite;
}

#order-standard_cart .products:empty::before {
    content: "";
    display: block;
    height: 320px;
    border-radius: var(--cst-r-xl);
    background: linear-gradient(90deg, #f1f4f9 25%, #e7edf6 37%, #f1f4f9 63%);
    background-size: 200% 100%;
    animation: cstSkeleton 1.4s ease-in-out infinite;
}

/* ============================================================
   购物车页 + 结账页 v2（2026-11-11）
   与产品页/配置页统一：18px 圆角白卡 + 蓝色主色
   ============================================================ */

/* ---------- 两页共同：去掉左侧分类栏、内容铺满 ---------- */
#order-standard_cart.tc-view .cart-sidebar,
#order-standard_cart.tc-checkout .cart-sidebar {
    display: none;
}

#order-standard_cart.tc-view .cart-body,
#order-standard_cart.tc-checkout .cart-body {
    width: 100%;
    float: none;
}

#order-standard_cart.tc-checkout .sidebar-collapsed { display: none; }

/* ---------- 页面标题 ---------- */
#order-standard_cart.tc-view .header-lined,
#order-standard_cart.tc-checkout .header-lined {
    margin: 0 0 16px;
    padding: 20px 26px;
    background: #fff;
    border: 0;
    border-radius: var(--cst-r-lg);
    box-shadow: var(--cst-shadow-card);
}

#order-standard_cart.tc-view .header-lined h1,
#order-standard_cart.tc-checkout .header-lined h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--cst-ink);
    line-height: 1.3;
}

/* ============================================================
   ① 购物车页
   ============================================================ */

#order-standard_cart.tc-view .cart-body > .row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
}

#order-standard_cart.tc-view .secondary-cart-body {
    flex: 1 1 auto;
    width: auto;
    float: none;
    min-width: 0;
    padding: 0;
}

#order-standard_cart.tc-view .secondary-cart-sidebar {
    flex: 0 0 340px;
    width: 340px;
    padding: 0;
    position: sticky;
    top: 90px;
}

/* 商品列表卡 */
#order-standard_cart.tc-view .secondary-cart-body > form {
    margin: 0 0 16px;
    padding: 6px 22px 4px;
    background: #fff;
    border-radius: var(--cst-r-lg);
    box-shadow: var(--cst-shadow-card);
}

#order-standard_cart.tc-view .view-cart-items-header {
    padding: 12px 0 10px;
    border-bottom: 1px solid var(--cst-line-soft);
    font-size: 11.5px;
    color: var(--cst-muted-2);
    letter-spacing: .03em;
}

#order-standard_cart.tc-view .view-cart-items .item {
    padding: 16px 0;
    border-bottom: 1px dashed var(--cst-line-2);
}

#order-standard_cart.tc-view .view-cart-items .item:last-child {
    border-bottom: 0;
}

#order-standard_cart.tc-view .item-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--cst-ink);
    line-height: 1.4;
}

#order-standard_cart.tc-view .item-title .btn-link {
    padding: 0;
    border: 0;
    font-size: 11.5px;
    color: var(--cst-muted);
    text-decoration: none;
}

#order-standard_cart.tc-view .item-title .btn-link:hover { color: var(--cst-blue); }

#order-standard_cart.tc-view .item-group {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--cst-muted-2);
}

#order-standard_cart.tc-view .item-domain {
    display: inline-block;
    margin-top: 7px;
    padding: 1px 8px;
    border-radius: 6px;
    background: var(--cst-surface-blue);
    border: 1px solid var(--cst-line-2);
    font-size: 11.5px;
    color: #4d8ef0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

#order-standard_cart.tc-view .view-cart-items .item small {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--cst-muted-2);
    line-height: 1.75;
}

/* 数量 */
#order-standard_cart.tc-view .item-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

#order-standard_cart.tc-view .item-qty .form-control {
    width: 64px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--cst-line-input);
    border-radius: var(--cst-r-xs);
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cst-ink);
    box-shadow: none;
}

#order-standard_cart.tc-view .item-qty .btn {
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--cst-line-2);
    border-radius: var(--cst-r-xs2);
    background: var(--cst-surface-blue);
    color: var(--cst-blue);
    font-size: 12px;
    font-weight: 500;
}

#order-standard_cart.tc-view .item-qty .btn:hover {
    background: #e6f0ff;
}

/* 价格 */
#order-standard_cart.tc-view .item-price {
    text-align: right;
    line-height: 1.3;
}

#order-standard_cart.tc-view .item-price > span:first-child {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--cst-ink);
    font-variant-numeric: tabular-nums;
}

#order-standard_cart.tc-view .item-price .cycle {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--cst-muted-2);
}

/* 移除按钮 */
#order-standard_cart.tc-view .btn-remove-from-cart {
    border: 0;
    background: none;
    color: var(--cst-muted-3);
    font-size: 14px;
    transition: color .15s ease;
}

#order-standard_cart.tc-view .btn-remove-from-cart:hover { color: #e2574c; }

/* 清空购物车 */
#order-standard_cart.tc-view .empty-cart {
    padding: 10px 0 12px;
    text-align: left;
}

#order-standard_cart.tc-view .empty-cart .btn {
    padding: 0;
    font-size: 12px;
    color: var(--cst-muted-2);
    text-decoration: none;
}

#order-standard_cart.tc-view .empty-cart .btn:hover { color: #e2574c; }

/* 优惠码 */
#order-standard_cart.tc-view .view-cart-tabs {
    margin: 0 0 16px;
    padding: 16px 22px 18px;
    background: #fff;
    border-radius: var(--cst-r-lg);
    box-shadow: var(--cst-shadow-card);
}

#order-standard_cart.tc-view .view-cart-tabs .nav-tabs {
    border: 0;
    margin-bottom: 12px;
}

#order-standard_cart.tc-view .view-cart-tabs .nav-link {
    padding: 6px 14px;
    border: 0;
    border-radius: var(--cst-r-xs2);
    background: #f4f7fc;
    font-size: 12.5px;
    color: var(--cst-text-soft);
}

#order-standard_cart.tc-view .view-cart-tabs .nav-link.active {
    background: var(--cst-blue);
    color: #fff;
    font-weight: 600;
}

#order-standard_cart.tc-view .tab-content,
#order-standard_cart.tc-view .promo {
    padding: 0;
    background: none;
    border: 0;
}

#order-standard_cart.tc-view .promo form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#order-standard_cart.tc-view .promo .form-group {
    flex: 1 1 260px;
    margin: 0;
}

#order-standard_cart.tc-view .promo .form-control {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--cst-line-input);
    border-radius: var(--cst-r-xs);
    font-size: 13px;
    box-shadow: none;
}

#order-standard_cart.tc-view .promo .form-control:focus {
    border-color: var(--cst-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
}

#order-standard_cart.tc-view .promo .btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--cst-r-xs);
    background: var(--cst-surface-blue);
    color: var(--cst-blue);
    font-size: 13.5px;
    font-weight: 600;
}

#order-standard_cart.tc-view .promo .btn:hover { background: #e6f0ff; }

/* ---------- 购物车右栏摘要 ---------- */
#order-standard_cart.tc-view .order-summary {
    background: #fff;
    border: 1px solid var(--cst-line);
    border-radius: var(--cst-r-lg);
    box-shadow: var(--cst-shadow-card);
    overflow: hidden;
}

#order-standard_cart.tc-view .order-summary h2 {
    margin: 0;
    padding: 18px 22px 13px;
    border-bottom: 1px solid var(--cst-line-soft);
    font-size: 13px;
    font-weight: 500;
    color: var(--cst-muted-2);
    letter-spacing: .04em;
    text-align: left;
}

#order-standard_cart.tc-view .summary-container {
    padding: 14px 22px 18px;
    font-size: 12.5px;
}

#order-standard_cart.tc-view .summary-container .clearfix {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: var(--cst-text-soft);
}

#order-standard_cart.tc-view .summary-container .clearfix > span {
    float: none !important;
}

#order-standard_cart.tc-view .summary-container .total-due-today {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--cst-line-2);
}

#order-standard_cart.tc-view .summary-container .total-due-today .amt {
    font-size: 27px;
    font-weight: 700;
    color: var(--cst-ink);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

#order-standard_cart.tc-view .summary-container .total-due-today span:last-child {
    order: -1;
    font-size: 12px;
    color: var(--cst-muted-2);
}

/* 结账按钮：干掉主题的绿色 */
#order-standard_cart.tc-view #checkout.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin: 14px 0 0;
    padding: 0;
    border: 0 !important;
    border-radius: var(--cst-r-md) !important;
    background: var(--cst-blue) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 102, 255, .24);
}

#order-standard_cart.tc-view #checkout.btn-checkout:hover {
    background: var(--cst-blue-dark) !important;
}

#order-standard_cart.tc-view #continueShopping {
    display: block;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--cst-muted-2);
    text-align: center;
    text-decoration: none;
}

#order-standard_cart.tc-view #continueShopping:hover { color: var(--cst-blue); }

/* ============================================================
   ② 结账页
   ============================================================ */

#order-standard_cart.tc-checkout .cart-body > .row {
    display: block;
    margin: 0;
}

#order-standard_cart.tc-checkout .cart-body > .row > .cart-body,
#order-standard_cart.tc-checkout .secondary-cart-body {
    width: 100%;
    float: none;
}

/* 已注册提示条 */
#order-standard_cart.tc-checkout .already-registered {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 22px;
    background: #fff;
    border-radius: var(--cst-r-lg);
    box-shadow: var(--cst-shadow-card);
}

#order-standard_cart.tc-checkout .already-registered p {
    margin: 0;
    font-size: 12.5px;
    color: var(--cst-muted);
}

#order-standard_cart.tc-checkout .already-registered .pull-right,
#order-standard_cart.tc-checkout .already-registered .float-right {
    order: 2;
    margin-left: auto;
    float: none !important;
}

#order-standard_cart.tc-checkout .already-registered .btn {
    padding: 7px 16px;
    border: 1px solid var(--cst-line-2);
    border-radius: var(--cst-r-xs2);
    background: var(--cst-surface-blue);
    color: var(--cst-blue);
    font-size: 12.5px;
    font-weight: 500;
}

/* 表单主体：一张大卡 */
#order-standard_cart.tc-checkout #frmCheckout {
    margin: 0 0 16px;
    padding: 8px 28px 26px;
    background: #fff;
    border-radius: var(--cst-r-lg);
    box-shadow: var(--cst-shadow-card);
}

/* 分区标题 */
#order-standard_cart.tc-checkout .sub-heading {
    margin: 20px 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--cst-line-soft);
    background: none;
}

#order-standard_cart.tc-checkout .sub-heading span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    background: none !important;
    color: var(--cst-ink) !important;
    font-size: 15px;
    font-weight: 600;
}

#order-standard_cart.tc-checkout .sub-heading span::before {
    content: "";
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: var(--cst-blue);
}

/* 表单控件 */
#order-standard_cart.tc-checkout #frmCheckout .form-control {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--cst-line-input);
    border-radius: var(--cst-r-xs);
    font-size: 13.5px;
    color: var(--cst-ink);
    box-shadow: none;
}

#order-standard_cart.tc-checkout #frmCheckout select.form-control {
    height: 44px;
    padding-right: 38px;
}

#order-standard_cart.tc-checkout #frmCheckout .form-control:focus {
    border-color: var(--cst-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
}

#order-standard_cart.tc-checkout #frmCheckout .form-group > label,
#order-standard_cart.tc-checkout #frmCheckout .control-label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cst-text);
}

/* 金额条 */
#order-standard_cart.tc-checkout #totalDueToday.alert-success {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 18px;
    padding: 16px 20px;
    background: var(--cst-surface-blue);
    border: 1px solid var(--cst-line-2);
    border-radius: var(--cst-r-md);
    color: var(--cst-text-soft);
}

#order-standard_cart.tc-checkout #totalDueToday strong {
    font-size: 26px;
    font-weight: 700;
    color: var(--cst-ink);
    letter-spacing: -.02em;
}

/* 支付方式 */
#order-standard_cart.tc-checkout #paymentGatewaysContainer .radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 10px 16px;
    border: 1px solid var(--cst-line-input);
    border-radius: var(--cst-r-xs);
    background: #fff;
    font-size: 13px;
    color: var(--cst-text);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

#order-standard_cart.tc-checkout #paymentGatewaysContainer .radio-inline:hover {
    border-color: #c9dcff;
    background: var(--cst-surface-2);
}

#order-standard_cart.tc-checkout #paymentGatewaysContainer .radio-inline:has(input:checked) {
    border-color: var(--cst-blue);
    background: var(--cst-surface-blue);
    box-shadow: inset 0 0 0 1px var(--cst-blue);
}

/* 条款 + 下单按钮 */
#order-standard_cart.tc-checkout .marketing-email-optin {
    margin: 18px 0 6px;
    padding: 14px 18px;
    background: var(--cst-surface-2);
    border: 1px solid var(--cst-line);
    border-radius: var(--cst-r-sm);
}

#order-standard_cart.tc-checkout .marketing-email-optin h4 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cst-ink);
}

#order-standard_cart.tc-checkout .marketing-email-optin p {
    margin: 0;
    font-size: 12px;
    color: var(--cst-muted-2);
}

#order-standard_cart.tc-checkout #btnCompleteOrder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 260px;
    height: 50px;
    padding: 0 30px;
    border: 0 !important;
    border-radius: var(--cst-r-md) !important;
    background: var(--cst-blue) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 102, 255, .24);
}

#order-standard_cart.tc-checkout #btnCompleteOrder:hover {
    background: var(--cst-blue-dark) !important;
}

/* 安全提示 */
#order-standard_cart.tc-checkout .checkout-security-msg {
    margin: 16px 0 0;
    padding: 14px 20px;
    background: #fffbeb;
    border: 1px solid #fdeec2;
    border-radius: var(--cst-r-sm);
    font-size: 12.5px;
    color: #8a6d3b;
}

/* 响应式 */
@media (max-width: 991.98px) {
    #order-standard_cart.tc-view .cart-body > .row {
        flex-direction: column;
        gap: 0;
    }

    #order-standard_cart.tc-view .secondary-cart-sidebar {
        position: static;
        width: 100%;
        flex: 1 1 auto;
    }

    #order-standard_cart.tc-view .view-cart-items-header { display: none; }

    #order-standard_cart.tc-view .view-cart-items .item {
        padding: 16px 0 18px;
    }

    #order-standard_cart.tc-view .item-price { text-align: left; margin-top: 8px; }

    #order-standard_cart.tc-view .item-qty { justify-content: flex-start; margin-top: 8px; }

    #order-standard_cart.tc-checkout #frmCheckout { padding: 8px 18px 22px; }
    #order-standard_cart.tc-checkout .already-registered { flex-wrap: wrap; }
    #order-standard_cart.tc-checkout #btnCompleteOrder { width: 100%; min-width: 0; }
}

/* 主题有一条 #order-standard_cart .view-cart-items .item span:not(...) { display:block }
   权重更高，会把型号行与域名胶囊刷成块级，这里用更高权重拉回 */
#order-standard_cart.tc-view .view-cart-items .item .item-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#order-standard_cart.tc-view .view-cart-items .item .item-domain {
    display: inline-block;
    width: auto;
    max-width: 100%;
}

#order-standard_cart.tc-view .view-cart-items .item .item-group {
    display: block;
}

/* 主题那条 span:not(...) 规则带元素选择器，权重仍高一级，只能上 !important */
#order-standard_cart.tc-view .view-cart-items .item .item-domain {
    display: inline-block !important;
    width: auto !important;
}

/* ---------- 结账页补充细节 ---------- */
#order-standard_cart.tc-checkout #frmCheckout .form-control {
    font-weight: 400;
}

/* 浏览器自动填充的蓝底会破坏配色，压回白底 */
#order-standard_cart.tc-checkout #frmCheckout .form-control:-webkit-autofill,
#order-standard_cart.tc-checkout #frmCheckout .form-control:-webkit-autofill:hover,
#order-standard_cart.tc-checkout #frmCheckout .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--cst-ink) !important;
    transition: background-color 9999s ease-out 0s;
}

/* 密码强度条 */
#order-standard_cart.tc-checkout .password-strength-meter {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--cst-muted-2);
}

#order-standard_cart.tc-checkout .password-strength-meter .progress {
    height: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    background: var(--cst-line-soft);
    overflow: hidden;
}

#order-standard_cart.tc-checkout .password-strength-meter .progress-bar {
    height: 5px;
    border-radius: 3px;
    background-color: var(--cst-blue) !important;
    background-image: none !important;
}

/* 购物车页也去掉移动端的分类折叠块（与配置页、结账页一致） */
#order-standard_cart.tc-view .sidebar-collapsed { display: none; }

/* ---------- 结账页：恢复输入框左侧图标位 ---------- */
/* 这些字段结构是 .form-group.prepend-icon > label.field-icon(绝对定位 42px) + input
   之前统一 padding:0 14px 把图标位挤掉了，造成图标压字 */
#order-standard_cart.tc-checkout #frmCheckout .prepend-icon .form-control {
    padding-left: 46px;
}

/* 国际电话：国旗 + 区号占 80px */
#order-standard_cart.tc-checkout #frmCheckout .intl-tel-input .form-control {
    padding-left: 88px;
}

/* ---------- 购物车页：清空购物车按钮 ---------- */
#order-standard_cart.tc-view .empty-cart .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 12px;
    color: var(--cst-text-soft) !important;
    line-height: 1.4;
}

#order-standard_cart.tc-view .empty-cart .btn:hover,
#order-standard_cart.tc-view .empty-cart .btn:focus {
    color: #e2574c !important;
    background: none !important;
}

#order-standard_cart.tc-view .empty-cart .btn i {
    font-size: 11px;
}
