/* 🧬 V27: 紫杭三观测试样式 */

/* 覆盖层 */
.vt-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: linear-gradient(160deg, #1a0533 0%, #2d1b69 30%, #1e0a3c 70%, #0d0015 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vt-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vtFadeIn 0.3s ease;
}

@keyframes vtFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 容器 */
.vt-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.vt-header {
    text-align: center;
    padding: 20px 0 10px;
    position: relative;
}

.vt-close {
    position: absolute;
    top: 15px;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

.vt-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.vt-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

/* 进度条 */
.vt-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.vt-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #ff6090);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.vt-progress-text {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

/* 卡片区域 */
.vt-card-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 0;
    min-height: 350px;
}

.vt-card {
    width: 100%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 35px 25px;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    will-change: transform;
    transition: none;
}

.vt-card:active {
    cursor: grabbing;
}

.vt-card-question {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.vt-card-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.vt-option:active {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.vt-option-a .vt-option-arrow {
    color: #ff6090;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.vt-option-b {
    justify-content: flex-end;
    text-align: right;
}

.vt-option-b .vt-option-arrow {
    color: #7c4dff;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.vt-option-divider {
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* 滑动方向标签 */
.vt-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.vt-badge-a {
    left: 5px;
    background: rgba(233, 30, 99, 0.3);
    border: 2px solid #e91e63;
    color: #ff6090;
}

.vt-badge-b {
    right: 5px;
    background: rgba(124, 77, 255, 0.3);
    border: 2px solid #7c4dff;
    color: #b388ff;
}

/* 提示文字 */
.vt-hint {
    position: absolute;
    top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    pointer-events: none;
}

.vt-hint-left { left: 5px; }
.vt-hint-right { right: 5px; }

/* 底部 */
.vt-footer {
    text-align: center;
    padding: 15px 0 30px;
}

.vt-tip {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ==================== 加载动画 ==================== */

.vt-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.vt-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #e91e63;
    border-radius: 50%;
    animation: vtSpin 0.8s linear infinite;
}

@keyframes vtSpin {
    to { transform: rotate(360deg); }
}

.vt-loading-text {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-top: 20px;
}

/* ==================== 结果页 ==================== */

.vt-result {
    min-height: 100vh;
    padding-top: 40px;
    align-items: stretch;
}

.vt-result-header {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.vt-result-emoji {
    font-size: 60px;
    margin-bottom: 15px;
    animation: vtFloat 3s ease-in-out infinite;
}

@keyframes vtFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.vt-result-type {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #e91e63, #ff6090, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vt-result-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    max-width: 340px;
    margin: 0 auto 20px;
}

.vt-result-match {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(233, 30, 99, 0.15);
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 20px;
    color: #ff6090;
    font-size: 14px;
}

/* 维度条 */
.vt-result-dims {
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    margin: 20px 0;
}

.vt-dims-title {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 15px;
    text-align: center;
}

.vt-dim-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.vt-dim-row:last-child { margin-bottom: 0; }

.vt-dim-icon { font-size: 16px; flex-shrink: 0; }

.vt-dim-name {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    width: 45px;
    flex-shrink: 0;
}

.vt-dim-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.vt-dim-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #7c4dff);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vt-dim-val {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

/* 操作按钮 */
.vt-result-actions {
    display: flex;
    gap: 12px;
    padding: 10px 0 40px;
}

.vt-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.vt-btn:active {
    transform: scale(0.97);
}

.vt-btn-primary {
    background: linear-gradient(135deg, #e91e63, #7c4dff);
    color: #fff;
}

.vt-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
