/* ===== 治理页 - 自定义变量 ===== */
.governance-section {
    --gov-bg-card: rgba(232,245,240,0.02);
    --gov-bg-card-hover: rgba(232,245,240,0.05);
    --gov-border-card: rgba(232,245,240,0.05);
    --gov-border-card-hover: rgba(32,201,151,0.15);
    --gov-text-dim: rgba(155,185,170,0.15);
    --gov-text-name-dim: rgba(155,185,170,0.12);
    --gov-text-line-active: rgba(232,245,240,0.7);
    --gov-silhouette-opacity: 0.08;
    --gov-silhouette-active: 1;
    --gov-service-status: rgba(32,201,151,0.4);
}
[data-theme="minimal"] .governance-section {
    --gov-bg-card: rgba(0,0,0,0.02);
    --gov-bg-card-hover: rgba(0,0,0,0.04);
    --gov-border-card: rgba(0,0,0,0.06);
    --gov-border-card-hover: rgba(32,201,151,0.25);
    --gov-text-dim: rgba(60,75,85,0.18);
    --gov-text-name-dim: rgba(60,75,85,0.15);
    --gov-text-line-active: rgba(30,40,50,0.65);
    --gov-silhouette-opacity: 0.06;
    --gov-silhouette-active: 0.85;
    --gov-service-status: rgba(13,110,253,0.5);
}

.governance-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Hero ===== */
.gov-hero {
    text-align: center;
    padding: 9rem 0 2rem;
}
.gov-hero h1 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}
.gov-hero p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== 报幕式布局 ===== */
.credits {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 3rem;
}

.credit-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 180px;
    margin-top: -50px;
}
.credit-row:first-child { margin-top: 0; }

.credit-left {
    display: flex;
    justify-content: flex-end;
    padding-right: 25%;
}

.credit-right {
    display: flex;
    justify-content: flex-start;
    padding-left: 25%;
}

.silhouette-wrap {
    position: relative;
    width: 200px;
    height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.silhouette-glow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.6s;
}
.credit-row:hover .silhouette-glow { opacity: 0.6; }

.silhouette-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    opacity: var(--gov-silhouette-opacity);
    transition: opacity 0.5s, transform 0.5s, filter 0.5s;
    transform: scale(0.95);
}
.credit-row:hover .silhouette-img {
    opacity: var(--gov-silhouette-active);
    transform: scale(1);
    filter: drop-shadow(0 0 20px var(--rim-color, rgba(32,201,151,0.4)));
}

.credit-center {
    text-align: center;
    min-width: 180px;
    padding: 1rem 0;
    transition: opacity 0.4s, transform 0.4s;
}
.role-name {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 3px;
    transition: color 0.4s, filter 0.4s, text-shadow 0.4s;
}
.role-tagline {
    font-size: 0.65rem;
    color: var(--gov-text-name-dim);
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    transition: color 0.4s;
}
.role-line {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    font-style: italic;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s, transform 0.5s, color 0.5s;
}

.credit-row:hover .role-name {
    filter: brightness(2.2);
    text-shadow: 0 0 30px var(--rim-color, rgba(32,201,151,0.5));
}
.credit-row:hover .role-tagline {
    color: var(--text-muted);
}
.credit-row:hover .role-line {
    opacity: 1;
    transform: translateY(0);
    color: var(--gov-text-line-active);
}

/* --- 角色色系 --- */
.credit-row[data-role="strategy"] { --rim-color: rgba(255,215,0,0.4); }
.credit-row[data-role="strategy"] .role-name { color: #b8960a; }
[data-theme="minimal"] .credit-row[data-role="strategy"] .role-name { color: #7a5c00; }
.credit-row[data-role="strategy"] .silhouette-glow { background: #ffd700; }

.credit-row[data-role="dev"] { --rim-color: rgba(59,130,246,0.4); }
.credit-row[data-role="dev"] .role-name { color: #4a8af5; }
[data-theme="minimal"] .credit-row[data-role="dev"] .role-name { color: #1d4ed8; }
.credit-row[data-role="dev"] .silhouette-glow { background: #3b82f6; }

.credit-row[data-role="ops"] { --rim-color: rgba(244,114,182,0.4); }
.credit-row[data-role="ops"] .role-name { color: #e0609e; }
[data-theme="minimal"] .credit-row[data-role="ops"] .role-name { color: #be185d; }
.credit-row[data-role="ops"] .silhouette-glow { background: #f472b6; }

.credit-row[data-role="explore"] { --rim-color: rgba(168,85,247,0.4); }
.credit-row[data-role="explore"] .role-name { color: #a855f7; }
[data-theme="minimal"] .credit-row[data-role="explore"] .role-name { color: #6d28d9; }
.credit-row[data-role="explore"] .silhouette-glow { background: #a855f7; }

.credit-row[data-role="service"] { --rim-color: rgba(34,197,94,0.4); }
.credit-row[data-role="service"] .role-name { color: #22c55e; }
[data-theme="minimal"] .credit-row[data-role="service"] .role-name { color: #15803d; }
.credit-row[data-role="service"] .silhouette-glow { background: #22c55e; }

.credit-row[data-role="ux"] { --rim-color: rgba(249,115,22,0.4); }
.credit-row[data-role="ux"] .role-name { color: #f97316; }
[data-theme="minimal"] .credit-row[data-role="ux"] .role-name { color: #b45309; }
.credit-row[data-role="ux"] .silhouette-glow { background: #f97316; }

.credit-row[data-role="care"] { --rim-color: rgba(52,211,153,0.4); }
.credit-row[data-role="care"] .role-name { color: #34d399; }
[data-theme="minimal"] .credit-row[data-role="care"] .role-name { color: #047857; }
.credit-row[data-role="care"] .silhouette-glow { background: #34d399; }

.credit-row[data-role="connect"] { --rim-color: rgba(6,182,212,0.4); }
.credit-row[data-role="connect"] .role-name { color: #06b6d4; }
[data-theme="minimal"] .credit-row[data-role="connect"] .role-name { color: #0e7490; }
.credit-row[data-role="connect"] .silhouette-glow { background: #06b6d4; }

.credit-row[data-role="security"] { --rim-color: rgba(99,102,241,0.4); }
.credit-row[data-role="security"] .role-name { color: #818cf8; }
[data-theme="minimal"] .credit-row[data-role="security"] .role-name { color: #4338ca; }
.credit-row[data-role="security"] .silhouette-glow { background: #6366f1; }

/* ===== 区块标题 ===== */
.gov-section-header {
    text-align: center;
    padding: 6rem 0 2.5rem;
}
.gov-section-header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.gov-section-header p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== 平台官方号 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    padding: 0 0 1rem;
}
.service-card {
    padding: 2rem 1rem 1.6rem;
    background: var(--gov-bg-card);
    border: 1px solid var(--gov-border-card);
    border-radius: 14px;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    cursor: default;
}
.service-card:hover {
    background: var(--gov-bg-card-hover);
    border-color: var(--gov-border-card-hover);
    transform: translateY(-4px);
}
.service-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.45;
    transition: opacity 0.3s;
}
.service-card:hover .service-icon { opacity: 0.9; }
.service-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}
.service-status {
    font-size: 0.65rem;
    color: var(--gov-service-status);
    letter-spacing: 0.1em;
}

/* ===== 未来区块 ===== */
.future-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding: 0 0 3rem;
}
.future-card {
    padding: 1.8rem 1rem 1.4rem;
    background: var(--gov-bg-card);
    border: 1px solid var(--gov-border-card);
    border-radius: 14px;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    cursor: default;
}
.future-card:hover {
    background: var(--gov-bg-card-hover);
    border-color: var(--gov-border-card-hover);
    transform: translateY(-4px);
}
.future-icon {
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
    opacity: 0.35;
    transition: opacity 0.3s;
}
.future-card:hover .future-icon { opacity: 0.8; }
.future-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.future-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== 提示 ===== */
.gov-hint {
    text-align: center;
    padding: 0 0 3rem;
    font-size: 0.7rem;
    color: var(--gov-text-dim);
}

/* ===== 底部宣言 ===== */
.manifesto {
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
}
.manifesto-line {
    width: 40px;
    height: 1px;
    margin: 0 auto 2.5rem;
    background: var(--gov-text-dim);
}
.manifesto-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 2.2;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}
.manifesto-highlight {
    font-weight: 400;
    color: var(--text-primary);
}
.manifesto-call {
    margin-top: 2rem;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    opacity: 0.6;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .credit-row {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 0;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    .credit-row:first-child { margin-top: 0; }
    .credit-left, .credit-right {
        padding: 0;
        justify-content: center;
    }
    .silhouette-wrap {
        width: 140px;
        height: 200px;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .future-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gov-hero h1 { font-size: 1.6rem; }
    .role-name { font-size: 1.1rem; }
    .manifesto-text { font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .future-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gov-hero h1 { font-size: 1.3rem; }
    .gov-section-header h2 { font-size: 1.1rem; }
}
