* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(145deg, #121826 0%, #1b2538 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.2rem;
}

.container { max-width: 1100px; width: 100%; margin: 0 auto; }

.card {
    background: rgba(255,255,255,0.98);
    border-radius: 48px;
    box-shadow: 0 25px 45px -10px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e2a3a 0%, #0f1724 100%);
    padding: 1.5rem 2rem;
    text-align: center;
    color: #ffefcf;
}
.header h1 {
    font-size: 1.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.header h1 i { font-size: 1.8rem; color: #ffb347; }
.sub { margin-top: 6px; opacity: 0.85; font-size: 0.85rem; }
.local-note {
    margin-top: 10px;
    font-size: 0.7rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
}

.input-area {
    padding: 1.5rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #eef2ff;
}
.form-hint {
    background: #f0f9ff;
    padding: 8px 16px;
    border-radius: 40px;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
    color: #0369a1;
    display: inline-block;
}
.form-hint i { margin-right: 6px; }

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.row-main {
    align-items: flex-end;
    flex-wrap: wrap;
}
.field {
    flex: 1;
    min-width: 140px;
}
.field-qq { flex: 1.2; }
.field-vip-type { flex: 1.5; }
.field-vip-level { flex: 0.8; }
.avatar-field {
    flex: 0 0 60px;
    text-align: center;
}
.field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.small-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    transition: 0.2s;
}
.small-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }

.level-number {
    flex: 1;
    min-width: 0;
}

.avatar-sm {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    margin-top: 20px;
}

.radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 40px;
    height: 42px;
}
.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    font-size: 0.85rem;
}
select {
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
    background: white;
    width: 100%;
    height: 42px;
}

.level-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.level-icons {
    flex: 1;
    background: #f1f5f9;
    border-radius: 48px;
    padding: 6px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    gap: 4px;
}
.level-icons div {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.primary-btn {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}
.primary-btn:hover { transform: scale(0.98); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.result-area {
    padding: 1.8rem;
    background: #fefefe;
    min-height: 460px;
}
.placeholder {
    text-align: center;
    color: #2c3e50;
    background: #f9f7f0;
    border-radius: 32px;
    padding: 24px;
}
.placeholder i { font-size: 2rem; color: #eab308; margin-bottom: 10px; }
.placeholder ul {
    text-align: left;
    display: inline-block;
    margin: 16px auto;
    list-style: none;
}
.placeholder li { padding: 4px 0; font-size: 0.9rem; }
.hint { margin-top: 12px; font-size: 0.8rem; color: #6c757d; }

/* 信息网格 - 调整列宽：等级列加宽，其他变窄 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr 0.8fr;
    gap: 12px;
    background: #f8fafc;
    padding: 18px;
    border-radius: 28px;
    margin-bottom: 24px;
}
/* 确保等级列内容不换行且无滚动条 */
.info-item:nth-child(2) .info-value {
    white-space: nowrap;
    overflow-x: visible;
}

.info-label {
    font-size: 0.7rem;
    color: #5b6e8c;
    font-weight: 600;
    text-transform: uppercase;
}
.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.badge { background: #e2e8f0; padding: 2px 12px; border-radius: 30px; font-size: 0.7rem; font-weight: bold; }
.badge-vip { background: #dc2626; color: white; }
.badge-svip { background: #eab308; color: #1e293b; }
.badge-normal { background: #9ca3af; color: white; }

.price-card {
    background: linear-gradient(145deg, #1e293b, #0f1724);
    border-radius: 32px;
    padding: 20px;
    text-align: center;
    color: white;
    margin-bottom: 24px;
}
.price-number { font-size: 2.2rem; font-weight: 800; }

.analysis-section {
    background: #fefae0;
    border-radius: 28px;
    padding: 18px;
    margin-top: 18px;
    border-left: 8px solid #eab308;
}
.section-title {
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #92400e;
}
.score-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.score-item {
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-bottom: 12px;
}
.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #d1d5db;
    font-size: 0.85rem;
}
.feature-name { font-weight: 500; color: #374151; }
.feature-name small { font-size: 0.7rem; color: #6c757d; font-weight: normal; }
.feature-amount { font-weight: 600; color: #16a34a; }
.feature-total {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #d1d5db;
    font-weight: 800;
    font-size: 1rem;
}
.feature-total .total-amount { color: #16a34a; font-size: 1.1rem; }

.detail-list { list-style: none; }
.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #d1d5db;
}
.detail-value.plus { color: #16a34a; font-weight: bold; }

footer {
    text-align: center;
    padding: 0.8rem;
    font-size: 0.7rem;
    color: #6c757d;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 760px) {
    .row-main { flex-direction: column; align-items: stretch; }
    .avatar-field { text-align: center; margin-top: 8px; }
    .level-input-group { flex-wrap: wrap; }
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .features-grid { grid-template-columns: 1fr; }
    .feature-total { grid-column: span 1; }
}