/* ============================================================
   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-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;
}

/* ── 深色模式 ── */
[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; }
