/* 宝石计算器专属样式 */
.gem-calc .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gem-calc .form-group {
    margin-bottom: 16px;
}

.gem-calc .form-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.gem-calc .level-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.gem-calc .level-btn {
    width: 36px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(212, 168, 83, 0.1);
    color: var(--text-gold);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gem-calc .level-btn:first-child { border-radius: var(--border-radius) 0 0 var(--border-radius); border-right: none; }
.gem-calc .level-btn:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; border-left: none; }

.gem-calc .level-btn:hover {
    background: var(--gold-glow);
}

.gem-calc .level-input {
    border-radius: 0;
    text-align: center;
    width: 60px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.gem-calc .level-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* 倍率选择 */
.gem-calc .radio-group {
    display: flex;
    gap: 12px;
}

.gem-calc .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 168, 83, 0.1);
    background: var(--bg-tertiary);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.gem-calc .radio-item:hover {
    border-color: rgba(212, 168, 83, 0.25);
}

.gem-calc .radio-item.active {
    border-color: var(--gold-400);
    color: var(--text-gold);
    background: var(--gold-glow);
}

.gem-calc .radio-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(212, 168, 83, 0.3);
    position: relative;
    transition: all var(--transition-fast);
}

.gem-calc .radio-item.active .radio-dot {
    border-color: var(--gold-400);
}
.gem-calc .radio-item.active .radio-dot::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--gold-400);
}

/* 快捷等级 */
.gem-calc .level-quick {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gem-calc .quick-label {
    font-size: 12px;
    color: var(--text-muted);
}

.gem-calc .quick-btn {
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid rgba(212, 168, 83, 0.08);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.gem-calc .quick-btn:hover {
    border-color: rgba(212, 168, 83, 0.2);
    color: var(--text-primary);
}

.gem-calc .quick-btn.active {
    border-color: var(--gold-400);
    background: var(--gold-glow);
    color: var(--text-gold);
    font-weight: 600;
}

/* 结果区域 */
.gem-calc .result-section {
    margin-top: 20px;
    animation: pageIn 0.4s ease-out;
}

.gem-calc .result-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.gem-calc .result-card {
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid rgba(212, 168, 83, 0.06);
    border-radius: var(--border-radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.gem-calc .result-card:hover {
    border-color: rgba(212, 168, 83, 0.15);
}

.gem-calc .result-card.highlight {
    border-color: rgba(212, 168, 83, 0.2);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.06), rgba(212, 168, 83, 0.02));
}

.gem-calc .result-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.gem-calc .result-value {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-primary);
    line-height: 1.2;
}

.gem-calc .result-value.gold {
    color: var(--text-gold);
    text-shadow: 0 0 20px rgba(212, 168, 83, 0.2);
}

.gem-calc .result-value .unit {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}

.gem-calc .result-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    min-height: 18px;
}

/* 价格明细表 */
.gem-calc .price-table-card {
    max-height: 400px;
    overflow-y: auto;
}

.gem-calc .data-table .num-cell {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.gem-calc .data-table .row-highlight td {
    background: var(--gold-glow);
    color: var(--text-gold);
    font-weight: 600;
}

.gem-calc .level-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: rgba(212, 168, 83, 0.08);
    color: var(--text-secondary);
}

.gem-calc .row-highlight .level-badge {
    background: rgba(212, 168, 83, 0.15);
    color: var(--text-gold);
}

@media (max-width: 600px) {
    .gem-calc .form-row { grid-template-columns: 1fr; }
    .gem-calc .result-cards { grid-template-columns: 1fr; }
}
