/* ==========================================
   Relation 页面模块样式
   ========================================== */

:root {
    --relation-primary: #003d95;
    --relation-accent: #00b01d;
    --relation-bg: #f4f7fb;
    --relation-text: #1a2a44;
    --relation-text-secondary: #5a6b82;
    --relation-text-muted: #9aaabf;
    --relation-border: #ebf0f5;
    --relation-shadow: 0 4px 24px rgba(0, 61, 136, 0.04);
}

body.relation-page {
    margin-top: 0;
    background: #ffffff;
    color: var(--relation-text);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.relation-page > main {
    margin-top: 0;
}

.relation-main {
    background: #ffffff;
}

.relation-hero {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    background: #0f1930;
}

.relation-hero-media,
.relation-hero-overlay,
.relation-hero-pattern {
    position: absolute;
    inset: 0;
}

.relation-hero-media {
    background:
        radial-gradient(circle at 12% 28%, rgba(116, 194, 255, 0.24) 0, rgba(116, 194, 255, 0) 15%),
        radial-gradient(circle at 83% 18%, rgba(255, 238, 211, 0.2) 0, rgba(255, 238, 211, 0) 18%),
        linear-gradient(112deg, rgba(18, 30, 53, 0.98) 0%, rgba(38, 54, 82, 0.88) 44%, rgba(114, 94, 82, 0.74) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    transform: scale(1.02);
}

.relation-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.relation-hero-media::before,
.relation-hero-media::after {
    content: "";
    position: absolute;
}

.relation-hero-media::before {
    right: 7%;
    bottom: -4%;
    width: 52%;
    height: 84%;
    border-radius: 20px 20px 8px 8px;
    background:
        linear-gradient(180deg, rgba(237, 243, 250, 0.12), rgba(237, 243, 250, 0) 28%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0, rgba(255, 255, 255, 0.09) 1px, transparent 1px, transparent 74px),
        linear-gradient(180deg, rgba(154, 123, 102, 0.22) 0%, rgba(45, 35, 33, 0.4) 100%);
    box-shadow: 0 38px 80px rgba(0, 0, 0, 0.28);
    transform: perspective(1400px) rotateY(-18deg) rotateX(9deg);
    transform-origin: right center;
    opacity: 0.95;
}

.relation-hero-media::after {
    left: 54%;
    bottom: 6%;
    width: 31%;
    height: 28%;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 214, 173, 0.18), rgba(255, 214, 173, 0.02)),
        repeating-linear-gradient(90deg, rgba(45, 34, 27, 0.32) 0, rgba(45, 34, 27, 0.32) 3px, transparent 3px, transparent 22px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
    transform: perspective(900px) rotateX(73deg);
    opacity: 0.9;
}

.relation-hero-overlay {
    background: linear-gradient(90deg, rgba(4, 14, 40, 0.72) 0%, rgba(4, 14, 40, 0.45) 60%, rgba(4, 14, 40, 0.18) 100%);
}

.relation-hero-pattern {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0) 22%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 120px);
}

.relation-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    min-height: 443px;
    margin: 0 auto;
    padding: 0 56px;
    display: flex;
    align-items: center;
}

.relation-hero-copy {
    max-width: 560px;
}

.relation-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(0, 176, 29, 0.18);
    border: 1px solid rgba(0, 176, 29, 0.35);
    color: #00830f;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.15px;
}

.relation-hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--relation-accent);
}

.relation-hero-title {
    margin: 17px 0 16px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 0.37px;
}

.relation-hero-divider {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #00b01d 0%, #003d88 100%);
}

.relation-hero-desc {
    max-width: 470px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.31px;
}

.relation-governance {
    background: var(--relation-bg);
    padding: 72px 0 72px;
}

.relation-governance-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 56px;
}

.relation-section-heading {
    text-align: center;
}

.relation-section-kicker {
    color: var(--relation-accent);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.15px;
}

.relation-section-title {
    margin: 22px 0 12px;
    color: var(--relation-text);
    font-size: 36px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 0.37px;
}

.relation-section-divider {
    width: 36px;
    height: 2px;
    margin: 0 auto;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #003d88 50%, rgba(0, 0, 0, 0) 100%);
}

.relation-intro {
    max-width: 920px;
    margin: 24px auto 0;
    color: var(--relation-text-secondary);
    font-size: 15px;
    line-height: 1.9;
    text-align: center;
}

.relation-intro p {
    margin: 0;
}

.relation-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.relation-empty {
    grid-column: 1 / -1;
    padding: 28px 24px;
    border: 1px dashed #d9e3ef;
    border-radius: 16px;
    background: #fff;
    color: var(--relation-text-secondary);
    text-align: center;
}

.relation-card {
    min-height: 215px;
    padding: 26px 22px 26px;
    background: #ffffff;
    border: 1px solid var(--relation-border);
    border-radius: 16px;
    box-shadow: var(--relation-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.relation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 61, 136, 0.08);
    border-color: rgba(0, 61, 149, 0.16);
}

.relation-card-initial {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--relation-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 61, 136, 0.08) 0%, rgba(0, 176, 29, 0.06) 100%);
    color: #003d88;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

.relation-card-role {
    margin-top: 16px;
    color: var(--relation-text-muted);
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0;
}

.relation-card-name {
    margin: 12px 0 12px;
    color: var(--relation-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.relation-card-desc {
    color: var(--relation-text-secondary);
    font-size: 14px;
    line-height: 22.75px;
    letter-spacing: -0.15px;
}

.relation-metrics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.relation-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 16px;
    border-radius: 22px;
    background: #f9fbfe;
    border: 1px solid #edf2f7;
    color: var(--relation-text-secondary);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

.relation-metric-pill img {
    width: 12px;
    height: 12px;
}

.relation-metric-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--relation-accent) 0%, var(--relation-primary) 100%);
    flex-shrink: 0;
}

.relation-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.relation-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .relation-hero,
    .relation-hero-container {
        min-height: 380px;
    }

    .relation-hero-container {
        padding: 0 28px;
    }

    .relation-hero-title {
        font-size: 30px;
        line-height: 36px;
        letter-spacing: 0.2px;
    }

    .relation-hero-desc {
        font-size: 15px;
        line-height: 25px;
    }

    .relation-governance {
        padding: 56px 0 56px;
    }

    .relation-governance-container {
        padding: 0 24px;
    }

    .relation-section-title {
        font-size: 30px;
        line-height: 36px;
        letter-spacing: 0.2px;
    }

    .relation-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .relation-hero,
    .relation-hero-container {
        min-height: 320px;
    }

    .relation-hero-container {
        padding: 0 16px;
    }

    .relation-hero-title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0;
    }

    .relation-hero-desc {
        font-size: 14px;
        line-height: 22px;
    }

    .relation-governance-container {
        padding: 0 16px;
    }

    .relation-section-title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0;
    }

    .relation-team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }

    .relation-card {
        min-height: auto;
    }

    .relation-metrics {
        justify-content: flex-start;
    }

    .relation-metric-pill {
        white-space: normal;
    }
}

@media (min-width: 969px) {
    .relation-hero-container,
    .relation-governance-container {
        width: min(1328px, calc(100% - 296px));
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1025px) {
    .relation-hero {
	    min-height: 0;
	    height: auto;
	    aspect-ratio: 1920 / 675;
        box-sizing: border-box;
    }

    .relation-hero-container {
	    min-height: 100%;
	    height: 100%;
        box-sizing: border-box;
    }
}