/* ============================================================
   Steam Account Verify Plugin  –  risteam.css
   兼容 ripro-v5 主题，使用与主题一致的渐变色风格
   ============================================================ */

/* ── 卡片容器 ── */
.stv-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(102,126,234,.20);
    margin: 1.25rem 0;
    background: #fff;
    box-shadow: 0 4px 24px rgba(102,126,234,.10);
    transition: box-shadow .25s ease;
}
.stv-card:hover {
    box-shadow: 0 8px 32px rgba(102,126,234,.18);
}

/* ── 头部渐变条 ── */
.stv-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.25rem;
    background: linear-gradient(135deg,#667eea 0%,#a855f7 100%);
    color: #fff;
    user-select: none;
}
.stv-header-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}
.stv-header-title {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}
.stv-header-badge {
    font-size: .75rem;
    background: rgba(255,255,255,.22);
    border-radius: 50px;
    padding: .18rem .65rem;
    letter-spacing: .3px;
}

/* ── 主体 ── */
.stv-body {
    padding: 1.1rem 1.25rem 1.25rem;
}

/* ── 字段行 ── */
.stv-field {
    margin-bottom: .85rem;
}
.stv-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: .3rem;
}
.stv-label-warn  { color: #92400e; }
.stv-label-danger{ color: #991b1b; }

/* ── 输入行 ── */
.stv-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stv-input {
    flex: 1;
    border: 1.5px solid rgba(102,126,234,.25);
    border-radius: 8px;
    padding: .45rem .75rem;
    font-size: .9rem;
    background: #f9fafb;
    color: #1f2937;
    outline: none;
    min-width: 0;
    transition: border-color .2s, background .2s;
    font-family: inherit;
}
.stv-input:focus {
    border-color: #667eea;
    background: #fff;
}

/* ── 图标小按钮（复制 / 眼睛）── */
.stv-icon-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(102,126,234,.25);
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: background .2s, color .2s, border-color .2s;
    padding: 0;
}
.stv-icon-btn:hover {
    background: linear-gradient(135deg,#667eea,#a855f7);
    color: #fff;
    border-color: transparent;
}

/* ── 备注区 ── */
.stv-note {
    font-size: .875rem;
    color: #4b5563;
    background: rgba(102,126,234,.06);
    border-left: 3px solid #667eea;
    padding: .45rem .75rem;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

/* ── 邮箱验证码区 ── */
.stv-email-area {
    margin-bottom: .85rem;
    padding: .7rem .85rem;
    border: 1.5px dashed rgba(234,179,8,.5);
    border-radius: 10px;
    background: rgba(254,243,199,.4);
}
.stv-email-domain {
    color: #b45309;
    font-size: .75rem;
    margin-left: .3rem;
}

/* ── 反馈输入区 ── */
.stv-feedback-area {
    margin-top: .8rem;
    padding: .7rem .85rem;
    border: 1.5px dashed rgba(239,68,68,.35);
    border-radius: 10px;
    background: rgba(254,226,226,.25);
}

/* ── 反馈原因选项组 ── */
.stv-feedback-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: .4rem 0 .2rem;
}

/* 单个原因选项（chip 样式） */
.stv-reason-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .32rem .75rem;
    border: 1.5px solid rgba(220,38,38,.30);
    border-radius: 50px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background .18s, border-color .18s, color .18s;
    user-select: none;
}
.stv-reason-item input[type="radio"] {
    display: none;
}
.stv-reason-item:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: rgba(220,38,38,.07);
}
.stv-reason-item.stv-reason-selected {
    background: rgba(220,38,38,.13);
    border-color: #dc2626;
    color: #dc2626;
    font-weight: 700;
}

/* 原因未选错误提示 */
.stv-reason-error {
    color: #dc2626;
    font-size: .8rem;
    margin: .2rem 0;
    display: none;
}

/* 摇晚动画 — 未选原因时 */
@keyframes stv-reason-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    40%       { transform: translateX(5px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.stv-reason-shake {
    animation: stv-reason-shake .45s ease;
}

/* 深色模式 — 原因选项 */
[data-bs-theme="dark"] .stv-reason-item {
    border-color: rgba(239,68,68,.35);
    color: #9ca3af;
}
[data-bs-theme="dark"] .stv-reason-item:hover {
    border-color: #ef4444;
    color: #f87171;
    background: rgba(239,68,68,.12);
}
[data-bs-theme="dark"] .stv-reason-item.stv-reason-selected {
    border-color: #ef4444;
    color: #f87171;
    background: rgba(239,68,68,.18);
}
[data-bs-theme="dark"] .stv-reason-error {
    color: #f87171;
}

/* ── 操作按钮组 ── */
.stv-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}

/* ── 通用按钮基础 ── */
.stv-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, opacity .2s;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}
.stv-btn:hover   { transform: translateY(-2px) scale(1.04); }
.stv-btn:active  { transform: scale(.96); }

/* 主按钮 – 验证账号 */
.stv-btn-primary {
    background: linear-gradient(135deg,#667eea 0%,#a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102,126,234,.38);
}
.stv-btn-primary:hover { box-shadow: 0 8px 22px rgba(102,126,234,.52); }

/* 轮廓按钮 – 复制 */
.stv-btn-outline {
    background: transparent;
    color: #667eea;
    border: 1.5px solid rgba(102,126,234,.4);
}
.stv-btn-outline:hover {
    background: rgba(102,126,234,.08);
    border-color: #667eea;
}

/* 危险按钮 – 反馈 */
.stv-btn-danger {
    background: transparent;
    color: #dc2626;
    border: 1.5px solid rgba(220,38,38,.35);
}
.stv-btn-danger:hover {
    background: rgba(220,38,38,.08);
    border-color: #dc2626;
}

/* Loading 状态 */
.stv-verify-btn.stv-loading {
    opacity: .75;
    pointer-events: none;
}
.stv-verify-btn.stv-loading .stv-btn-icon {
    animation: stv-spin 1s linear infinite;
}
@keyframes stv-spin { to { transform: rotate(360deg); } }

/* ── 输入框可点击复制 ── */
.stv-click-copy {
    cursor: pointer;
    user-select: all;
}
.stv-click-copy:hover {
    border-color: #667eea !important;
    background: #f0f4ff !important;
}
.stv-input-copied {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
    transition: border-color .15s, background .15s;
}

/* ── 结果提示 ── */
.stv-result {
    margin-top: .9rem;
    padding: .65rem 1rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    line-height: 1.45;
}
.stv-result-success { background:rgba(34,197,94,.10);  border:1.5px solid rgba(34,197,94,.35);  color:#15803d; }
.stv-result-danger  { background:rgba(239,68,68,.09);  border:1.5px solid rgba(239,68,68,.30);  color:#b91c1c; }
.stv-result-warning { background:rgba(245,158,11,.09); border:1.5px solid rgba(245,158,11,.35); color:#92400e; }
.stv-result-info    { background:rgba(102,126,234,.08);border:1.5px solid rgba(102,126,234,.28);color:#3730a3; }

/* ── 错误提示（缺参数） ── */
.stv-error-tip {
    color: #ef4444;
    border: 1px dashed #ef4444;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-size: .85rem;
}

/* ── 智能消息提示 ── */
.stv-smart-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.5;
}

.stv-smart-message .stv-message-main {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stv-smart-message .stv-message-solution {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    font-size: .85rem;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.stv-smart-message.stv-success {
    background: linear-gradient(135deg, rgba(34,197,94,.1) 0%, rgba(34,197,94,.05) 100%);
    border: 1.5px solid rgba(34,197,94,.4);
    color: #15803d;
}

.stv-smart-message.stv-success .stv-message-solution {
    color: #166534;
    border-color: rgba(34,197,94,.2);
}

.stv-smart-message.stv-warning {
    background: linear-gradient(135deg, rgba(245,158,11,.1) 0%, rgba(245,158,11,.05) 100%);
    border: 1.5px solid rgba(245,158,11,.4);
    color: #92400e;
}

.stv-smart-message.stv-warning .stv-message-solution {
    color: #78350f;
    border-color: rgba(245,158,11,.2);
}

.stv-smart-message.stv-danger {
    background: linear-gradient(135deg, rgba(239,68,68,.1) 0%, rgba(239,68,68,.05) 100%);
    border: 1.5px solid rgba(239,68,68,.4);
    color: #b91c1c;
}

.stv-smart-message.stv-danger .stv-message-solution {
    color: #991b1b;
    border-color: rgba(239,68,68,.2);
}

.stv-smart-message.stv-info {
    background: linear-gradient(135deg, rgba(102,126,234,.1) 0%, rgba(102,126,234,.05) 100%);
    border: 1.5px solid rgba(102,126,234,.4);
    color: #3730a3;
}

.stv-smart-message.stv-info .stv-message-solution {
    color: #312e81;
    border-color: rgba(102,126,234,.2);
}

/* 调试信息样式 */
.stv-debug-info {
    font-family: monospace;
    word-break: break-all;
}

/* ── 验证码区域增强 ── */
.stv-captcha-area .stv-smart-message {
    margin: -5px -5px 10px -5px;
}

/* ── 深色模式 ── */
[data-bs-theme="dark"] .stv-card {
    background: #1e2130;
    border-color: rgba(102,126,234,.25);
}
[data-bs-theme="dark"] .stv-input {
    background: #252840;
    color: #e5e7eb;
    border-color: rgba(102,126,234,.3);
}
[data-bs-theme="dark"] .stv-input:focus { background: #2c2f4a; }
[data-bs-theme="dark"] .stv-icon-btn {
    background: #252840;
    border-color: rgba(102,126,234,.3);
    color: #9ca3af;
}
[data-bs-theme="dark"] .stv-label   { color: #9ca3af; }
[data-bs-theme="dark"] .stv-note    { background: rgba(102,126,234,.1); color:#d1d5db; }
[data-bs-theme="dark"] .stv-btn-outline { color: #a5b4fc; border-color:rgba(102,126,234,.35); }
[data-bs-theme="dark"] .stv-btn-outline:hover { background:rgba(102,126,234,.15); }
[data-bs-theme="dark"] .stv-click-copy:hover  { background:#2a3060 !important; }
[data-bs-theme="dark"] .stv-input-copied       { background:#1a3a28 !important; border-color:#22c55e !important; }

/* 深色模式智能消息 */
[data-bs-theme="dark"] .stv-smart-message.stv-success {
    background: linear-gradient(135deg, rgba(34,197,94,.15) 0%, rgba(34,197,94,.08) 100%);
    border-color: rgba(34,197,94,.5);
    color: #4ade80;
}
[data-bs-theme="dark"] .stv-smart-message.stv-success .stv-message-solution {
    color: #86efac;
}
[data-bs-theme="dark"] .stv-smart-message.stv-warning {
    background: linear-gradient(135deg, rgba(245,158,11,.15) 0%, rgba(245,158,11,.08) 100%);
    border-color: rgba(245,158,11,.5);
    color: #fbbf24;
}
[data-bs-theme="dark"] .stv-smart-message.stv-warning .stv-message-solution {
    color: #fcd34d;
}
[data-bs-theme="dark"] .stv-smart-message.stv-danger {
    background: linear-gradient(135deg, rgba(239,68,68,.15) 0%, rgba(239,68,68,.08) 100%);
    border-color: rgba(239,68,68,.5);
    color: #f87171;
}
[data-bs-theme="dark"] .stv-smart-message.stv-danger .stv-message-solution {
    color: #fca5a5;
}
[data-bs-theme="dark"] .stv-debug-info {
    background: #252840 !important;
    color: #9ca3af !important;
}

/* ========================================================
   璐﹀彿/瀵嗙爜灞曠ず琛岋紙浠?steam-share-plugin .ssp-row 椋庢牸锛?
   ======================================================== */
.stv-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(102,126,234,0.06);
    border: 1.5px solid rgba(102,126,234,0.18);
    border-radius: 10px;
    margin-bottom: 0;
}

.stv-row strong {
    color: #667eea;
    min-width: 85px;
    font-size: 13px;
    flex-shrink: 0;
}

.stv-row .stv-text {
    flex: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #1f2937;
    padding: 0 12px;
    word-break: break-all;
}

/* 澶嶅埗鎸夐挳 */
.stv-copy-btn {
    flex-shrink: 0;
    padding: 5px 12px;
    border: 1.5px solid rgba(102,126,234,0.4);
    border-radius: 6px;
    background: transparent;
    color: #667eea;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    transition: all 0.2s;
}

.stv-copy-btn:hover {
    background: linear-gradient(135deg,#667eea,#a855f7);
    color: #fff;
    border-color: transparent;
}

.stv-copy-btn.stv-copied {
    background: #22c55e;
    color: #fff;
    border-color: transparent;
}

/* ========================================================
   Toast 鎻愮ず锛堝眳涓粦搴曠櫧瀛楋紝浠?steam-share-plugin 椋庢牸锛?
   ======================================================== */
.stv-copy-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.88);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    z-index: 99999;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
}

/* 娣辫壊妯″紡 */
[data-bs-theme="dark"] .stv-row {
    background: rgba(102,126,234,0.1);
    border-color: rgba(102,126,234,0.25);
}
[data-bs-theme="dark"] .stv-row strong { color: #a5b4fc; }
[data-bs-theme="dark"] .stv-row .stv-text { color: #e5e7eb; }
[data-bs-theme="dark"] .stv-copy-btn {
    color: #a5b4fc;
    border-color: rgba(102,126,234,0.4);
}
[data-bs-theme="dark"] .stv-copy-btn:hover {
    background: linear-gradient(135deg,#667eea,#a855f7);
    color: #fff;
}

/* ========================================================
   验证状态标签（卡片底部）
   ======================================================== */
.stv-verify-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: .75rem;
    padding: .4rem .85rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2px;
}
.stv-verify-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 成功标签 — 绿色系 */
.stv-verify-label-success {
    background: rgba(34,197,94,.10);
    border: 1.5px solid rgba(34,197,94,.35);
    color: #15803d;
}
.stv-verify-label-success::before {
    background: #22c55e;
}

/* 失败标签 — 红色系 */
.stv-verify-label-fail {
    background: rgba(239,68,68,.09);
    border: 1.5px solid rgba(239,68,68,.30);
    color: #b91c1c;
}
.stv-verify-label-fail::before {
    background: #ef4444;
}

/* 深色模式 — 验证标签 */
[data-bs-theme="dark"] .stv-verify-label-success {
    background: rgba(34,197,94,.15);
    border-color: rgba(34,197,94,.45);
    color: #4ade80;
}
[data-bs-theme="dark"] .stv-verify-label-fail {
    background: rgba(239,68,68,.15);
    border-color: rgba(239,68,68,.45);
    color: #f87171;
}
