/* ===== 成员详情弹窗（统一首页 / 关于 / 成员列表三处样式） ===== */
.md-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 0 60px;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: md-fade .2s ease;
}
@keyframes md-fade { from { opacity: 0; } to { opacity: 1; } }

.md-modal {
    position: relative;
    z-index: 1;
    width: min(92vw, 860px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    overflow: hidden;
    animation: md-pop .3s cubic-bezier(.22, .61, .36, 1);
}
@keyframes md-pop {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.md-modal__header {
    background: #fff;
    border-bottom: 1px solid #e8eaf2;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.md-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.md-header-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f7fb;
    border: 1px solid #eef1f7;
    flex-shrink: 0;
}
.md-header-logo--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #7c5cf0;
    background: linear-gradient(135deg, rgba(91,110,245,.12), rgba(124,92,240,.12));
}
.md-header-title { min-width: 0; }
.md-company-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.md-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.md-type-badge {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: .2px;
}
.md-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.md-icon-btn {
    width: 36px; height: 36px;
    border: 1px solid #e8eaf2;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.md-icon-btn:hover {
    background: #326de6; color: #fff; border-color: #326de6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(50,109,230,.28);
}
.md-icon-btn:active { transform: translateY(0); }

.md-modal__body {
    padding: 24px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.md-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.md-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.md-section-title svg { width: 18px; height: 18px; color: #326de6; }
.md-intro-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.md-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.md-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.md-info-item--website {
    align-items: center;
}
.md-info-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(50,109,230,.08);
    color: #326de6;
}
.md-info-item--website .md-info-icon {
    width: 30px; height: 30px;
    background: transparent;
    color: #64748b;
}
.md-info-text { min-width: 0; }
.md-info-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 2px;
}
.md-info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}
.md-info-value a { color: #326de6; text-decoration: none; }
.md-info-value a:hover { text-decoration: underline; }
.md-website-link {
    display: inline-block;
    max-width: 100%;
    font-size: 14px;
    color: #326de6;
    font-weight: 500;
    word-break: break-all;
    text-decoration: none;
    line-height: 1.4;
}
.md-website-link:hover { text-decoration: underline; }

.md-contact-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef1f7;
}
.md-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.md-contact-name { font-weight: 600; color: #1e293b; font-size: 14px; }
.md-contact-line { font-size: 13px; color: #64748b; margin-top: 2px; }

.md-contact-locked {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px dashed #d6deea;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13px;
}
.md-contact-locked svg { width: 18px; height: 18px; color: #c0cad8; flex-shrink: 0; }
.md-contact-locked a {
    color: #326de6;
    font-weight: 600;
    text-decoration: none;
}
.md-contact-locked a:hover { text-decoration: underline; }

.md-modal__footer {
    border-top: 1px solid #eef1f7;
    background: #fff;
    padding: 10px 26px;
    display: flex;
    justify-content: flex-end;
}
.md-view-count {
    font-size: 11px;
    color: #c2cbd8;
    letter-spacing: .3px;
}

@media (max-width: 768px) {
    .md-modal__header {
        position: relative;
        flex-direction: row;
        align-items: flex-start;
        padding-right: 56px;
    }
    /* 手机端：logo 与（名称 + 类型）横排，关闭 x 置于右上角 */
    .md-header-left {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    .md-header-logo { width: 48px; height: 48px; }
    .md-header-logo--ph { font-size: 20px; }
    .md-header-title { min-width: 0; }
    .md-company-name { font-size: 17px; white-space: normal; }
    .md-header-meta { flex-wrap: nowrap; }
    .md-header-meta { margin-top: 4px; gap: 8px; }
    .md-type-badge { font-size: 12px; }
    /* 右上角关闭按钮：隐藏官网/分享按钮，仅保留关闭 x */
    .md-header-right {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
    }
    .md-header-right .md-share-btn,
    .md-header-right > a.md-icon-btn {
        display: none;
    }
    .md-info-grid { grid-template-columns: 1fr; }
    .md-modal__body { padding: 16px; }
    .md-card { padding: 16px; }
    .md-modal__footer { padding: 10px 16px; justify-content: flex-start; }
}
.md-tag {
    background: #f0f4ff;
    color: #326de6;
    border: 1px solid #dbe5ff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.md-share-btn:hover {
    background: #16a34a; color: #fff; border-color: #16a34a;
    box-shadow: 0 6px 16px rgba(22,163,74,.28);
}

.md-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translate(-50%, 16px);
    z-index: 3000;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s ease, transform .26s ease;
    max-width: 80vw;
    word-break: break-all;
}
.md-toast--show {
    opacity: 1;
    transform: translate(-50%, 0);
}
