/* =============================================
   双人合盘 - 双维度分析专属样式
   ============================================= */

/* 整体容器 */
.syn-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

/* ────────────── 页头 ────────────── */
.syn-page-header {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
}

.syn-header-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(251, 191, 36, 0.12));
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 20px;
    padding: 0.3rem 1.1rem;
    font-size: 0.78rem;
    color: #a78bfa;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.syn-header-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 45%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.syn-header-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.syn-dimension-badges {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dim-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.dim-badge.astro {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #c4b5fd;
}

.dim-badge.bazi {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* ────────────── 输入表单 ────────────── */
.syn-forms-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 1.2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.syn-person-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.syn-person-card.person-a {
    border-top: 3px solid #a78bfa;
}

.syn-person-card.person-b {
    border-top: 3px solid #fbbf24;
}

.syn-person-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.syn-person-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.syn-person-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.syn-person-avatar.a {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.syn-person-avatar.b {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.syn-person-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.syn-person-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.syn-form-body {
    padding: 1.2rem;
}

.syn-form-group {
    margin-bottom: 1rem;
}

.syn-form-group label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.syn-form-group label small {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.68rem;
}

.syn-form-group input[type="text"],
.syn-form-group input[type="date"],
.syn-form-group input[type="time"],
.syn-form-group input[type="number"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.syn-form-group input:focus {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.06);
}

.syn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* 性别选择 */
.syn-gender-group {
    display: flex;
    gap: 0.6rem;
}

.syn-radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.syn-radio input[type="radio"] {
    display: none;
}

.syn-radio:has(input:checked) {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.4);
    color: #a78bfa;
}

/* VS 分隔 */
.syn-vs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
    gap: 0.6rem;
}

.syn-vs-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(251, 191, 36, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
    animation: vsGlow 3s ease-in-out infinite alternate;
}

@keyframes vsGlow {
    from {
        box-shadow: 0 0 15px rgba(167, 139, 250, 0.2);
    }

    to {
        box-shadow: 0 0 30px rgba(167, 139, 250, 0.5), 0 0 60px rgba(167, 139, 250, 0.15);
    }
}

.syn-vs-inner {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.syn-vs-hint {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    white-space: nowrap;
}

/* 提交按钮 */
.syn-action-row {
    text-align: center;
    margin-bottom: 2rem;
}

.syn-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.8rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #a78bfa, #667eea, #fbbf24);
    background-size: 200% 200%;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: btnShift 4s ease infinite;
    box-shadow: 0 4px 24px rgba(167, 139, 250, 0.35);
}

@keyframes btnShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.syn-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(167, 139, 250, 0.5);
}

.syn-btn-icon {
    font-size: 1rem;
    animation: spin 8s linear infinite;
}

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

/* 占位符 */
.syn-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.45);
}

.syn-placeholder-icon {
    margin-bottom: 1rem;
}

.syn-placeholder p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.syn-placeholder strong {
    color: rgba(255, 255, 255, 0.7);
}


/* ═══════════════════════════════════════════
   结果展示区
   ═══════════════════════════════════════════ */
.syn-result-wrap {
    animation: kbFadeIn 0.4s ease;
}

/* ① 综合得分 Hero */
.syn-result-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.syn-score-circle-wrap {
    position: relative;
    flex-shrink: 0;
    width: 130px;
    height: 130px;
}

.syn-score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.syn-score-num-big {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.syn-score-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.2rem;
}

.syn-result-summary {
    flex: 1;
}

.syn-result-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.syn-result-names {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.syn-result-names span {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.4rem;
}

.syn-result-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 双维得分公式 */
.syn-dim-scores {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.syn-dim-score {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
}

.syn-dim-score.highlight {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.25);
}

.syn-dim-icon {
    font-size: 0.9rem;
}

.syn-dim-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.syn-dim-val {
    font-size: 1.1rem;
    font-weight: 700;
}

.syn-dim-divider {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

/* ② 双栏面板 */
.syn-dual-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.syn-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    overflow: hidden;
}

.astro-panel {
    border-top: 3px solid #a78bfa;
}

.bazi-panel {
    border-top: 3px solid #fbbf24;
}

/* 面板头 */
.syn-panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.syn-panel-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.syn-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.syn-panel-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.15rem;
}

.syn-panel-score {
    margin-left: auto;
    font-size: 1.8rem;
    font-weight: 800;
    color: #a78bfa;
}

.syn-panel-score.bazi-score {
    color: #fbbf24;
}

/* 得分条 */
.syn-score-bars {
    margin-bottom: 1rem;
}

.syn-score-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.syn-score-label {
    width: 5.5rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.syn-score-bar {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
}

.syn-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.syn-score-num {
    width: 2rem;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

/* 分节标题 */
.syn-section-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border-left: 2px solid rgba(167, 139, 250, 0.6);
    padding-left: 0.6rem;
    margin: 1rem 0 0.6rem;
    letter-spacing: 0.05em;
}

/* 关键相位卡 */
.syn-aspects-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.syn-aspect-card {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid;
    transition: transform 0.2s ease;
}

.syn-aspect-card:hover {
    transform: translateX(3px);
}

.syn-aspect-card.harmonious {
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.2);
}

.syn-aspect-card.challenging {
    background: rgba(248, 113, 113, 0.06);
    border-color: rgba(248, 113, 113, 0.2);
}

.syn-aspect-card.neutral {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.syn-aspect-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.syn-aspect-p1,
.syn-aspect-p2 {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.syn-aspect-sym {
    font-size: 0.9rem;
    color: #a78bfa;
    font-weight: 600;
}

.syn-aspect-type {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    white-space: nowrap;
}

.harmonious .syn-aspect-type {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.challenging .syn-aspect-type {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.neutral .syn-aspect-type {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
}

.syn-aspect-desc {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* 建议块 */
.syn-suggestion-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.8rem;
}

.syn-sug-item {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.syn-sug-item:last-child {
    border-bottom: none;
}

.syn-sug-item strong {
    color: rgba(255, 255, 255, 0.75);
    margin-right: 0.4rem;
}

/* ── 八字面板 ── */
.syn-bazi-section {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.syn-bazi-person {
    flex: 1;
}

.syn-bazi-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin-bottom: 0.4rem;
}

.syn-bazi-pillars {
    display: flex;
    gap: 0.4rem;
}

.syn-bazi-col {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0.3rem;
    text-align: center;
}

.syn-bazi-col.highlight {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}

.syn-bazi-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.3rem;
}

.syn-bazi-tg {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a78bfa;
    line-height: 1;
}

.syn-bazi-tg.daymaster {
    color: #fbbf24;
}

.syn-bazi-dz {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    margin: 0.1rem 0;
}

.syn-bazi-sub {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.3;
}

.syn-bazi-vs {
    font-size: 1rem;
    font-weight: 700;
    color: #fbbf24;
    flex-shrink: 0;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.syn-bazi-wx {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    align-items: center;
    justify-content: center;
}

.syn-wx-tag {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.65rem;
}

.wx-木 {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.wx-火 {
    background: rgba(251, 99, 64, 0.15);
    color: #fb6340;
}

.wx-土 {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.wx-金 {
    background: rgba(226, 232, 240, 0.1);
    color: #e2e8f0;
}

.wx-水 {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

/* 八字评级 */
.syn-bazi-level {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.syn-bazi-level-badge {
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.syn-bazi-level-desc {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* 八字详情条目 */
.syn-bazi-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.syn-bazi-detail-item {
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border-left: 3px solid;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
}

.syn-bazi-detail-item:hover {
    transform: translateX(3px);
}

.syn-bazi-detail-item.positive {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.05);
}

.syn-bazi-detail-item.negative {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.05);
}

.syn-bazi-detail-item.neutral {
    border-color: rgba(255, 255, 255, 0.15);
}

.syn-bazi-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.syn-bazi-detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.syn-bazi-detail-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.positive .syn-bazi-detail-value {
    color: #34d399;
}

.negative .syn-bazi-detail-value {
    color: #f87171;
}

.syn-bazi-detail-desc {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.55;
}

/* 无八字提示 */
.syn-bazi-na-tip {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ③ 综合建议 */
.syn-conclusion {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem 2rem;
}

.syn-conclusion-title {
    font-size: 1rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.syn-conclusion-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ────────────── 响应式 ────────────── */
@media (max-width: 900px) {
    .syn-dual-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .syn-forms-row {
        grid-template-columns: 1fr;
    }

    .syn-vs-col {
        flex-direction: row;
        padding-top: 0;
        justify-content: center;
    }

    .syn-vs-ring {
        width: 44px;
        height: 44px;
    }

    .syn-result-hero {
        flex-direction: column;
        text-align: center;
    }

    .syn-dim-scores {
        justify-content: center;
    }

    .syn-header-title {
        font-size: 1.6rem;
    }

    .syn-bazi-section {
        flex-direction: column;
    }

    .syn-bazi-vs {
        display: none;
    }
}