.home .site-content{padding-top:90px !important;}
/* Ice Card Calculator v4.1 - Frontend Styles */
:root {
    --ice-primary: #0ea5e9;
    --ice-primary-dark: #0284c7;
    --ice-primary-light: #e0f2fe;
    --ice-success: #10b981;
    --ice-warning: #f59e0b;
    --ice-danger: #ef4444;
    --ice-text: #1e293b;
    --ice-text-light: #64748b;
    --ice-border: #e2e8f0;
    --ice-bg: #f8fafc;
    --ice-white: #ffffff;
    --ice-radius: 16px;
    --ice-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --ice-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.icecard-calculator {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ice-text);
}

/* ===== White Card ===== */
.icecard-card {
    background: var(--ice-white);
    border-radius: var(--ice-radius);
    box-shadow: var(--ice-shadow);
    overflow: visible;
    transition: box-shadow 0.3s;
}
.icecard-card:hover {
    box-shadow: var(--ice-shadow-hover);
}

/* ===== Header ===== */
.icecard-header {
    background: linear-gradient(135deg, var(--ice-primary) 0%, var(--ice-primary-dark) 100%);
    color: white;
    padding: 32px 28px 28px;
    text-align: center;
    border-radius: var(--ice-radius) var(--ice-radius) 0 0;
    overflow: hidden;
}
.icecard-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}
.icecard-subtitle {
    margin: 0 0 12px;
    font-size: 14px;
    opacity: 0.9;
}
.icecard-updated {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    background: rgba(255,255,255,0.18);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
}

/* ===== Form ===== */
.icecard-form {
    padding: 28px;
}
.icecard-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}
.icecard-row .icecard-field {
    flex: 1;
    min-width: 0;
}
.icecard-field {
    margin-bottom: 18px;
}
.icecard-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ice-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.icecard-optional {
    font-weight: 400;
    color: var(--ice-text-light);
    font-size: 11px;
    text-transform: none;
}

/* ===== Inputs ===== */
.icecard-select, .icecard-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ice-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--ice-text);
    background: var(--ice-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.icecard-select:focus, .icecard-input:focus {
    outline: none;
    border-color: var(--ice-primary);
    box-shadow: 0 0 0 3px var(--ice-primary-light);
}
.icecard-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ===== Custom Select ===== */
.icecard-cs {
    position: relative;
    width: 100%;
}
.icecard-cs-native {
    display: none !important;
}
.icecard-cs-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ice-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--ice-text);
    background: var(--ice-white);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
}
.icecard-cs-trigger:hover {
    border-color: var(--ice-primary);
}
.icecard-cs.open .icecard-cs-trigger {
    border-color: var(--ice-primary);
    box-shadow: 0 0 0 3px var(--ice-primary-light);
}
.icecard-cs-icon {
    display: none;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
}
.icecard-cs-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
}
.icecard-cs-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.icecard-cs-arrow {
    flex-shrink: 0;
    color: var(--ice-text-light);
    font-size: 12px;
    transition: transform 0.2s;
}
.icecard-cs.open .icecard-cs-arrow {
    transform: rotate(180deg);
}
.icecard-cs-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--ice-white);
    border: 1px solid var(--ice-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    animation: csFadeIn 0.15s ease;
}
@keyframes csFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.icecard-cs.open .icecard-cs-dropdown {
    display: block;
}
.icecard-cs-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ice-text);
    transition: background 0.15s;
}
.icecard-cs-option:hover {
    background: var(--ice-primary-light);
}
.icecard-cs-option.selected {
    background: var(--ice-primary-light);
    color: var(--ice-primary-dark);
    font-weight: 600;
}
.icecard-cs-opt-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
}
.icecard-cs-opt-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
}
.icecard-cs-opt-text {
    flex: 1;
}

/* ===== Amount ===== */
.icecard-amount-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.icecard-amount-currency {
    position: absolute;
    left: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ice-text-light);
    pointer-events: none;
}
.icecard-amount-wrap .icecard-input {
    padding-left: 36px;
}
.icecard-amount-wrap .icecard-input::-webkit-outer-spin-button,
.icecard-amount-wrap .icecard-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.icecard-amount-wrap .icecard-input {
    -moz-appearance: textfield;
}
.icecard-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ice-text-light);
}

/* ===== Result ===== */
.icecard-result {
    padding: 0 28px 28px;
    text-align: center;
}
.icecard-result-label {
    font-size: 12px;
    color: var(--ice-text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}
.icecard-result-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--ice-primary);
    margin-bottom: 16px;
    line-height: 1.2;
    animation: pricePop 0.3s ease;
}
@keyframes pricePop {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.icecard-loading {
    font-size: 18px;
    color: var(--ice-text-light);
    font-weight: 400;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.icecard-result-detail {
    background: var(--ice-bg);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    text-align: left;
}
.icecard-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}
.icecard-detail-row span {
    color: var(--ice-text-light);
}
.icecard-detail-row strong {
    color: var(--ice-text);
    font-weight: 600;
}
.icecard-result-note {
    font-size: 12px;
    color: var(--ice-text-light);
    margin-bottom: 20px;
    font-style: italic;
}
.icecard-error {
    color: var(--ice-danger);
    font-size: 14px;
}

/* ===== Sell Now Button ===== */
.icecard-sell-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--ice-success) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.icecard-sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.icecard-sell-btn:active {
    transform: translateY(0);
}
.icecard-sell-btn.icecard-btn-contact {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.icecard-sell-btn.icecard-btn-contact:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ===== Contact Support Button ===== */
.icecard-contact-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--ice-white);
    color: var(--ice-primary);
    border: 2px solid var(--ice-primary);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 16px;
}
.icecard-contact-btn:hover {
    background: var(--ice-primary);
    color: white;
}

/* v7.5.3：选卡后常驻的次级 Contact Support（JS 选卡后显示；结果区出现时自动隐藏） */
.icecard-contact-anytime {
    width: 100%;
    margin: 14px auto 0;
    box-sizing: border-box;
    text-align: center;
}

/* ===== Status Sections (paused/consult/other) ===== */
.icecard-paused, .icecard-consult, .icecard-other {
    padding: 28px;
    text-align: center;
}
.icecard-status-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.icecard-status-text {
    font-size: 15px;
    color: var(--ice-text);
    line-height: 1.6;
}

/* ===== Contacts (folded) ===== */
.icecard-contacts {
    padding: 0 28px 28px;
    border-top: 1px solid var(--ice-border);
    margin-top: 4px;
    padding-top: 20px;
}
.icecard-contacts-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ice-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-align: center;
}
.icecard-contacts-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.icecard-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: transform 0.15s, box-shadow 0.15s;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}
.icecard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}
.icecard-btn-icon {
    font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .icecard-row {
        flex-direction: column;
        gap: 0;
    }
    .icecard-header { padding: 24px 20px 22px; }
    .icecard-title { font-size: 20px; }
    .icecard-form { padding: 20px; }
    .icecard-result, .icecard-paused, .icecard-consult, .icecard-other, .icecard-contacts { padding-left: 20px; padding-right: 20px; }
    .icecard-result-price { font-size: 32px; }
    .icecard-sell-btn { padding: 12px 20px; font-size: 15px; }
    .icecard-btn { padding: 10px 14px; font-size: 13px; min-width: 100px; }
}

@media (max-width: 380px) {
    .icecard-contacts-list { flex-direction: column; }
    .icecard-btn { width: 100%; }
}

/* ===== v6.0 前台提示文案 ===== */
.icecard-card-note {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #1e40af;
    margin: 10px 0;
    line-height: 1.5;
}

/* 计算按钮 */
.icecard-calc-btn {
    width: 100%;
    padding: 14px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
}
.icecard-calc-btn:hover { background: #1e293b; }

/* ============================================================
   手机端响应式（v7.2.4，CEO 拍板）
   断点 921px 跟随 Astra 移动断点（与汉堡菜单出现阈值一致）
   ============================================================ */
@media (max-width: 921px) {
    /* 手机端隐藏桌面端营销模块：Why Choose / Gift Cards We Accept / How It Works */
    .icecard-desktop-only {
        display: none !important;
    }
    /* 底部 CTA：手机端只保留 Sell Gift Card 主按钮，隐藏写死的 WhatsApp/Telegram */
    .icecard-cta-whatsapp,
    .icecard-cta-telegram {
        display: none !important;
    }
    .icecard-cta-sell {
        display: inline-flex !important;
    }
}

/* ============================================================
   v7.3.0 客服渠道 Action Sheet
   - 桌面（>921px）：屏幕居中 Modal
   - 手机（≤921px，跟随 Astra 移动断点）：底部滑入抽屉
   Tidio 固定置顶主推、静态在线绿点（动态在线状态留到板块 C）
   ============================================================ */
.icecard-sheet-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.icecard-sheet-overlay.icecard-sheet-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.icecard-sheet-lock { overflow: hidden; }

.icecard-sheet {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    padding: 14px 18px 18px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ice-text);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.icecard-sheet-show .icecard-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 拖拽指示条：桌面隐藏，手机显示 */
.icecard-sheet-handle { display: none; }

.icecard-sheet-head {
    text-align: center;
    padding: 6px 4px 14px;
}
.icecard-sheet-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ice-text);
    line-height: 1.3;
}
.icecard-sheet-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--ice-text-light);
    line-height: 1.4;
}

.icecard-sheet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.icecard-sheet-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    background: #fff;
    border: 1.5px solid var(--ice-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.icecard-sheet-opt:hover {
    border-color: var(--ice-primary);
    background: #f8fafc;
}
.icecard-sheet-opt:active { transform: scale(0.99); }

/* Tidio 主推项：浅蓝底 + 品牌蓝边框 */
.icecard-sheet-opt-primary {
    border-color: var(--ice-primary);
    background: var(--ice-primary-light);
}
.icecard-sheet-opt-primary:hover {
    background: #d4ecfd;
    border-color: var(--ice-primary-dark);
}

.icecard-sheet-opt-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}
.icecard-sheet-ic-tidio { background: #dbeafe; }

.icecard-sheet-opt-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.icecard-sheet-opt-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ice-text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.icecard-sheet-online {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.14);
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.5;
}
.icecard-sheet-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}
/* v7.3.1：离线态灰胶囊 + 灰点（离线渠道仍可点进留言，不错过消息） */
.icecard-sheet-offline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: rgba(100, 116, 139, 0.14);
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.5;
}
.icecard-sheet-offline .icecard-sheet-dot {
    background: #94a3b8;
}
/* v7.3.1：所有渠道都关闭时，面板里的兜底提示（不弹空窗） */
.icecard-sheet-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ice-text-light, #64748b);
    background: #f8fafc;
    border: 1.5px dashed var(--ice-border, #e2e8f0);
    border-radius: 14px;
}
.icecard-sheet-opt-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}
.icecard-sheet-cancel {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    background: #f1f5f9;
    color: var(--ice-text);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.icecard-sheet-cancel:hover { background: #e2e8f0; }

/* ===== 手机端（≤921px）：底部抽屉 + iPhone 底部安全区 ===== */
@media (max-width: 921px) {
    .icecard-sheet-overlay {
        align-items: flex-end;
        padding: 0;
        background: rgba(15, 23, 42, 0.5);
    }
    .icecard-sheet {
        max-width: none;
        width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        max-height: 86vh;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.25);
    }
    .icecard-sheet-show .icecard-sheet {
        transform: translateY(0);
    }
    .icecard-sheet-handle {
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #cbd5e1;
        margin: 4px auto 8px;
    }
}

/* ============================================================
   v7.4.0 板块 A 手机端 App 化（≤921px）
   1) 计算器蓝色 hero 瘦身成白底紧凑头：副标题/Live 药丸收敛，时钟一行带在线绿点
   2) 报价大字
   3) 压缩首页(硬编码 90px) / 卖卡页(Astra 默认 48px) 的顶部留白
   桌面端（>921px）完全保持蓝色 hero 原样，不受影响
   ============================================================ */
@media (max-width: 921px) {
    /* 顶部留白：避让悬浮页眉（JS 实测高度 --isp-header-h，兜底 64px）+ 8px 间隙，
       既不压住 Card Categories/Search，也不保留桌面端 90px 的大留白 */
    body.home .site-content,
    body.icecard-has-sellpage .site-content {
        padding-top: calc(var(--isp-header-h, 64px) + 8px) !important;
        padding-bottom: 10px !important;
    }

    /* 蓝色 hero → 白底紧凑头 */
    .icecard-header {
        background: #fff;
        padding: 16px 18px 12px;
        text-align: left;
        border-bottom: 1px solid var(--ice-border);
    }
    .icecard-title {
        color: var(--ice-primary-dark);
        font-size: 19px;
        margin-bottom: 6px;
    }
    /* 副标题与 Live 药丸在手机端收敛，实时语义并入时钟前的绿点 */
    .icecard-subtitle,
    .icecard-updated { display: none; }
    .icecard-clock {
        margin: 0;
        opacity: 1;
        font-size: 12px;
        color: var(--ice-text-light);
        display: flex;
        align-items: center;
    }
    .icecard-clock::before {
        content: "";
        width: 7px;
        height: 7px;
        flex: 0 0 7px;
        border-radius: 50%;
        background: var(--ice-success);
        margin-right: 7px;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    }

    /* 表单 / 状态区收紧 */
    .icecard-form { padding: 18px; }
    .icecard-result { padding: 10px 18px 20px; }
    .icecard-paused, .icecard-consult, .icecard-other { padding: 24px 18px; }
    .icecard-contacts { padding: 0 18px 18px; }

    /* 报价大字（覆盖 ≤600px 段的 32px） */
    .icecard-result-price { font-size: 42px; }
}
