/* 订阅状态查询（Token 检查）· 2026-11-22 重做 */
.tc-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 20px 80px;
    color: #1A202C;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.tc-main * {
    box-sizing: border-box;
}

/* Hero */
.tc-hero {
    text-align: center;
    padding: 8px 0 26px;
}

.tc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #5B63F7;
    background: linear-gradient(90deg, rgba(91, 99, 247, .10), rgba(118, 75, 162, .10));
    border: 1px solid rgba(91, 99, 247, .20);
}

.tc-hero h1 {
    margin: 18px 0 10px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -.4px;
    color: #1A202C;
}

.tc-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 13.5px;
    line-height: 1.85;
    color: #718096;
}

/* 卡片 */
.tc-card {
    background: #fff;
    border: 1px solid #ECEAF3;
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 18px;
    box-shadow: 0 6px 24px rgba(85, 70, 160, .05);
}

.tc-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1A202C;
    letter-spacing: -.2px;
}

.tc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tc-card-head h2 {
    margin: 0;
}

.tc-sub {
    margin: 0 0 18px;
    font-size: 12.5px;
    color: #718096;
}

.tc-sub-inline {
    margin: 0;
}

/* 步骤 */
.tc-steps {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tc-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tc-num {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: #EDE8FA;
    color: #6250C7;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tc-step-body {
    flex: 1;
    min-width: 0;
}

.tc-step-body b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #24212F;
    margin-bottom: 4px;
}

.tc-step-body p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #718096;
    line-height: 1.75;
}

.tc-step-body p a,
.tc-help-body a {
    color: #5B63F7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tc-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 2px;
    padding: 6px 12px;
    border: 1px solid #E3E1EA;
    border-radius: 8px;
    background: #FAF9FC;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #6250C7;
    text-decoration: none;
    word-break: break-all;
}

.tc-code:hover {
    border-color: #B4A6DE;
    color: #4F3FB0;
}

.tc-kbd {
    margin-top: 8px;
    font-size: 12px;
    color: #8B8695;
}

.tc-kbd code {
    padding: 2px 6px;
    border: 1px solid #E3E1EA;
    border-radius: 5px;
    background: #FAF9FC;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    color: #6250C7;
}

/* 输入区 */
.tc-textarea {
    display: block;
    width: 100%;
    min-height: 190px;
    padding: 16px;
    border: 2px solid #EAE8F1;
    border-radius: 14px;
    background: #fff;
    color: #2D2A3A;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.75;
    resize: vertical;
    outline: none;
    transition: border-color .18s;
}

.tc-textarea::placeholder {
    color: #B4B0C0;
}

.tc-textarea:focus {
    border-color: #667EEA;
}

.tc-detect {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #12A150;
    word-break: break-all;
}

.tc-detect.is-warn {
    color: #C77700;
}

.tc-detect.is-err {
    color: #D9534F;
}

.tc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tc-btn-grad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #667EEA, #764BA2);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(102, 126, 234, .28);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.tc-btn-grad:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(102, 126, 234, .34);
    color: #fff;
}

.tc-btn-grad:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.tc-btn-sm {
    padding: 10px 20px;
    font-size: 12.5px;
}

.tc-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border: 1px solid #E3E1EA;
    border-radius: 999px;
    background: #fff;
    color: #4A5568;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.tc-btn-ghost:hover {
    border-color: #B4A6DE;
    color: #6250C7;
}

/* 结果 */
.tc-result {
    padding-bottom: 14px;
}

.tc-result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1EFF7;
}

.tc-result-head h2 {
    margin: 0;
    font-size: 18px;
}

.tc-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: #E9F8F0;
    color: #0E9F6E;
}

.tc-pill.warn {
    background: #FFF4E5;
    color: #C77700;
}

.tc-pill.err {
    background: #FDECEC;
    color: #D9534F;
}

.tc-rows {
    display: flex;
    flex-direction: column;
}

.tc-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed #F1EFF7;
}

.tc-row:last-child {
    border-bottom: 0;
}

.tc-k {
    flex: 0 0 190px;
    color: #718096;
    font-size: 13px;
    padding-top: 1px;
}

.tc-v {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 13.5px;
    color: #1A202C;
    word-break: break-all;
}

.tc-v b {
    font-weight: 700;
}

.tc-v em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 12px;
    color: #A0AEC0;
}

.tc-v .tc-muted {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #A0AEC0;
    font-weight: 400;
}

.tc-v .tc-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #718096;
    font-weight: 400;
}

.tc-notes {
    margin: 14px 0 0;
    padding: 14px 16px;
    list-style: none;
    background: #FAF9FC;
    border: 1px solid #F1EFF7;
    border-radius: 12px;
}

.tc-notes li {
    position: relative;
    padding-left: 14px;
    font-size: 12.5px;
    color: #718096;
    line-height: 1.8;
}

.tc-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #B4A6DE;
}

/* 说明卡 */
.tc-help-body p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #4A5568;
    line-height: 1.8;
}

.tc-help-body p:last-child {
    margin-bottom: 0;
}

.tc-safe {
    margin-top: 14px !important;
    padding: 12px 14px;
    background: #FAF9FC;
    border: 1px solid #F1EFF7;
    border-radius: 10px;
    font-size: 12.5px !important;
    color: #718096 !important;
}

/* Grok */
.tc-grok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.tc-grok-card {
    display: block;
    padding: 16px;
    border: 1px solid #ECEAF3;
    border-radius: 14px;
    background: #FCFBFF;
    text-decoration: none;
    transition: border-color .16s, transform .16s, box-shadow .16s;
}

.tc-grok-card:hover {
    border-color: #C9BFF0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, .10);
}

.tc-grok-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tc-grok-card header b {
    font-size: 13.5px;
    color: #1A202C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-grok-card header span {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #EDE8FA;
    color: #6250C7;
    font-size: 10.5px;
    font-weight: 700;
}

.tc-grok-price {
    margin: 10px 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #5B63F7;
}

.tc-grok-meta {
    font-size: 11.5px;
    color: #A0AEC0;
}

.tc-grok-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #EDE9F7;
    font-size: 12px;
    color: #6250C7;
    font-weight: 700;
}

.tc-empty {
    padding: 24px;
    text-align: center;
    border: 1px dashed #E3E1EA;
    border-radius: 14px;
    background: #FCFBFF;
}

.tc-empty p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #718096;
}

.tc-empty a {
    color: #5B63F7;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

/* 移动端 */
@media (max-width: 640px) {
    .tc-main {
        padding: 22px 14px 60px;
    }

    .tc-hero h1 {
        font-size: 22px;
    }

    .tc-hero p {
        font-size: 12.5px;
    }

    .tc-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .tc-card-head {
        align-items: flex-start;
    }

    .tc-btn-sm {
        width: 100%;
    }

    .tc-actions .tc-btn-grad,
    .tc-actions .tc-btn-ghost {
        flex: 1;
        padding: 12px 16px;
    }

    .tc-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }

    .tc-k {
        flex: none;
        font-size: 12px;
    }

    .tc-v {
        text-align: left;
        font-size: 13px;
    }

    .tc-textarea {
        font-size: 11.5px;
        min-height: 160px;
    }
}
