/* 云连锁 - 用户中心 / 邀请页 / 激活页 */
.zcc-wrap {
    --zcc-radius: 12px;
}
.zcc-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    margin-bottom: 14px;
}
.zcc-service-head h3 {
    margin: 0;
    font-size: 17px;
}
.zcc-service-head p {
    margin: 0;
}
.zcc-service-head .but {
    flex-shrink: 0;
}
.zcc-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.zcc-card {
    padding: 16px;
}
.zcc-room {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    padding: 14px;
    text-align: center;
    margin-bottom: 14px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}
.zcc-room-qr img {
    width: 180px;
    height: 180px;
    max-width: 100%;
    display: inline-block;
    border-radius: 8px;
    background: #fff;
}
.zcc-room-loading {
    color: var(--muted-2-color, #9ca3af);
    font-size: 13px;
}
.zcc-room-tip {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-color, #6b7280);
}
.zcc-room-failed {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border-color: rgba(255, 77, 79, 0.3);
    background: rgba(255, 77, 79, 0.04);
}
.zcc-room-failed-text {
    color: #ff4d4f;
    font-size: 13px;
    flex: 1 1 100%;
}

/* 客户激活码卡片 */
.zcc-act-code {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    background: rgba(255, 45, 85, 0.03);
    border: 1px dashed rgba(255, 45, 85, 0.25);
    padding: 14px 16px;
    margin-top: 12px;
}
.zcc-act-code-main {
    flex: 1;
    min-width: 0;
}
.zcc-act-code-label {
    font-size: 13px;
    color: var(--muted-color, #6b7280);
}
.zcc-code {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ff2d55;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.zcc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.zcc-card-title {
    font-size: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.zcc-card-price {
    color: #ff2d55;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.zcc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 13px;
    color: var(--muted-color, #6b7280);
}
.zcc-card-meta span {
    line-height: 1.7;
}
.zcc-card-buts {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

/* 邀请卡片 */
.zcc-invite-card {
    text-align: center;
    padding: 24px 18px;
    margin-bottom: 14px;
}
.zcc-invite-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ff5c5c, #ff2d55);
    margin-bottom: 10px;
}
.zcc-invite-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
}
.zcc-invite-sub {
    font-size: 13px;
    color: var(--muted-color, #6b7280);
    margin: 0;
}
.zcc-invite-code {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted-color, #6b7280);
}
.zcc-invite-code b {
    color: #ff2d55;
    letter-spacing: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.zcc-invite-qr {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
}
.zcc-invite-qr img,
.zcc-invite-qr canvas {
    display: inline-block;
    border-radius: 8px;
    background: #fff;
}
.zcc-invite-tip {
    font-size: 12px;
    color: var(--muted-2-color, #9ca3af);
}
.zcc-invite-actions {
    margin-top: 20px;
}
.zcc-invite-actions .but {
    width: 100%;
}
.zcc-invite-form .zcc-form-row {
    margin-bottom: 12px;
    text-align: left;
}
.zcc-invite-form .form-control {
    width: 100%;
}

/* 独立页面 */
.zcc-landing {
    max-width: 640px;
    padding-top: 20px;
    padding-bottom: 40px;
}
.zcc-landing .zcc-invite-card {
    padding: 28px 20px;
}
.zcc-activate-form .zcc-form-row {
    margin-bottom: 12px;
}
.zcc-activate-form .form-control {
    width: 100%;
}
.zcc-activate-form .zcc-act-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.4;
    text-align: left;
}
.zcc-activate-form .zcc-act-label::before {
    content: "";
    width: 4px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    background: #ff2d55;
}
.zcc-activate-form .zcc-act-field {
    padding: 14px 14px 16px;
    border: 1px solid #f1d6dc;
    border-radius: 12px;
    background: #fff8fa;
}
.zcc-activate-form .zcc-radio-group {
    display: flex;
    gap: 10px;
}
.zcc-activate-form .zcc-radio {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.zcc-activate-form .zcc-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.zcc-activate-form .zcc-radio span {
    font-size: 15px;
    color: #374151;
}
.zcc-activate-form .zcc-radio:has(input:checked) {
    border-color: #ff2d55;
    background: #fff5f7;
}
.zcc-activate-form .zcc-radio:has(input:checked) span {
    color: #ff2d55;
    font-weight: 600;
}
.zcc-activate-result {
    text-align: center;
    padding: 26px 20px;
}
.zcc-activate-title {
    font-size: 17px;
    font-weight: 700;
    margin: 4px 0 12px;
}
.zcc-activate-group {
    font-size: 14px;
    color: var(--muted-color, #6b7280);
    margin-bottom: 14px;
}
.zcc-activate-result .zcc-room-qr img {
    width: 220px;
    height: 220px;
}
.zcc-terms {
    margin: 4px 0 16px;
    padding: 14px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}
.zcc-terms-title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.zcc-terms-content {
    max-height: 260px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted-color, #4b5563);
    word-break: break-word;
}
.zcc-terms .but {
    margin-top: 12px;
}
.zcc-md h1,
.zcc-md h2,
.zcc-md h3,
.zcc-md h4,
.zcc-md h5,
.zcc-md h6 {
    margin: 12px 0 6px;
    font-weight: 700;
    line-height: 1.4;
}
.zcc-md h1 { font-size: 17px; }
.zcc-md h2 { font-size: 16px; }
.zcc-md h3 { font-size: 15px; }
.zcc-md h4,
.zcc-md h5,
.zcc-md h6 { font-size: 14px; }
.zcc-md p {
    margin: 0 0 8px;
}
.zcc-md ul,
.zcc-md ol {
    margin: 0 0 8px;
    padding-left: 20px;
}
.zcc-md li {
    margin: 2px 0;
}
.zcc-md blockquote {
    margin: 8px 0;
    padding: 6px 10px;
    border-left: 3px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
    color: var(--muted-color, #6b7280);
}
.zcc-md code {
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 12px;
}
.zcc-md pre.zcc-md-code {
    margin: 8px 0;
    padding: 10px;
    overflow-x: auto;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
}
.zcc-md pre.zcc-md-code code {
    padding: 0;
    background: none;
}
.zcc-md a {
    color: #e74c3c;
    text-decoration: underline;
}
.zcc-md hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.zcc-md > :first-child {
    margin-top: 0;
}
.zcc-md > :last-child {
    margin-bottom: 0;
}

.zcc-qr-img {
    width: 220px;
    height: 220px;
    max-width: 100%;
    border-radius: 10px;
    background: #fff;
}

/* 购买弹窗 */
.zcc-modal .zcc-buy-step {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.zcc-modal .zcc-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: #ff2d55;
    color: #fff;
    font-size: 12px;
}
.zcc-modal .zcc-step-total {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}
.zcc-modal .zcc-service-hint {
    margin-bottom: 10px;
    font-size: 12px;
    color: #9ca3af;
}
.zcc-modal .zcc-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}
.zcc-modal .zcc-service-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 2px solid #eceef1;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fafbfc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.zcc-modal .zcc-service-option:hover {
    border-color: #ffb3c1;
    background: #fff;
    box-shadow: 0 4px 14px rgba(255, 45, 85, 0.1);
    transform: translateY(-1px);
}
.zcc-modal .zcc-service-option:has(input:checked) {
    border-color: #ff2d55;
    background: #fff5f7;
    box-shadow: 0 4px 16px rgba(255, 45, 85, 0.14);
}
.zcc-modal .zcc-service-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.zcc-modal .zcc-service-radio {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #cfd4da;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.2s;
}
.zcc-modal .zcc-service-option input:checked + .zcc-service-radio {
    border-color: #ff2d55;
}
.zcc-modal .zcc-service-option input:checked + .zcc-service-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #ff2d55;
}
.zcc-modal .zcc-service-body {
    display: block;
    flex: 1;
    min-width: 0;
}
.zcc-modal .zcc-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
}
.zcc-modal .zcc-service-top b {
    color: #1d2327;
    font-weight: 600;
}
.zcc-modal .zcc-price {
    color: #ff2d55;
    font-weight: 700;
    flex-shrink: 0;
}
.zcc-modal .zcc-service-desc {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted-2-color, #9ca3af);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.zcc-modal .zcc-field-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.zcc-modal .zcc-form-row {
    margin-bottom: 10px;
}
.zcc-modal .zcc-form-row .form-control {
    width: 100%;
}

/* 轻提示 */
.zcc-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 99999;
    transform: translate(-50%, -50%);
    max-width: 80vw;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    transition: opacity 0.26s;
}
.zcc-toast-out {
    opacity: 0;
}

@media (max-width: 768px) {
    .zcc-service-head {
        flex-direction: column;
        align-items: stretch;
    }
    .zcc-service-head .but {
        width: 100%;
    }
    .zcc-room-qr img {
        width: 160px;
        height: 160px;
    }
}
