/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f5f1eb 0%, #ede4d3 100%);
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* 移动端优化 */
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* 移动端视口设置 */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* 背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* 卷轴容器 */
.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollOpen 4s ease-in-out forwards;
}

.scroll-paper {
    width: 80%;
    max-width: 600px;
    height: 35%;
    background:
        linear-gradient(45deg, #f4e4bc 0%, #e8d5a3 100%);
    border-radius: 10px;
    position: relative;
    box-shadow:
        0 0 50px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(139, 69, 19, 0.1);
    transform: scaleY(0);
    transform-origin: center;
    animation: paperUnroll 1s ease-out 0.3s forwards;
}

.scroll-paper::before,
.scroll-paper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-paper::before {
    top: -15px;

}

.scroll-paper::after {
    bottom: -15px;

}

.scroll-content {
    padding: 60px 40px;
    text-align: center;
    opacity: 0;
    animation: contentFadeIn 1s ease-out 1.5s forwards;
}

.scroll-title {
    font-size: 36px;
    color: #8b4513;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.scroll-subtitle {
    font-size: 18px;
    color: #a0522d;
    margin-bottom: 40px;
}

.scroll-decoration {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
    margin: 20px auto;
}

@keyframes scrollOpen {
    0% { opacity: 1; }
    98% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes paperUnroll {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

@keyframes rodRotate {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(180deg); }
}

@keyframes contentFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #f4e4bc;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 主要内容区域 */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 130px);
    overflow: auto;
}


.zoom-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 10;
}

.btn-zoom {
    width: 32px;
    height: 32px;
    border: 1px solid #d4af37;
    background: white;
    color: #8b4513;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-zoom:hover {
    background: #d4af37;
    color: white;
}

.zoom-level {
    font-size: 14px;
    color: #8b4513;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

/* 族谱容器 */
.family-tree-container {
    background:
        linear-gradient(145deg, #ffffff 0%, #faf8f3 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-13.807-11.193-25-25-25s-25 11.193-25 25 11.193 25 25 25 25-11.193 25-25zm25-25c13.807 0 25 11.193 25 25s-11.193 25-25 25-25-11.193-25-25 11.193-25 25-25z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 15px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 0 0 1px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.family-tree-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #d4af37, #f4e4bc, #d4af37);
    border-radius: 18px;
    z-index: -1;
}

/* 装饰性元素 */
.family-tree-container::after {
    content: '🌸 家族传承 🌸';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 12px;
    color: #d4af37;
    opacity: 0.6;
}

.family-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transform-origin: center top;
    transition: transform 0.3s ease;
}

/* 世代布局 */
.generation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* 成员节点 */
.member-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px;
    border-radius: 15px;
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(244,228,188,0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.member-node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, transparent, #d4af37);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-node:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.15),
        0 5px 15px rgba(212, 175, 55, 0.2);
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(244,228,188,0.5));
}

.member-node:hover::before {
    opacity: 1;
}

/* 添加呼吸光效 */
.member-node:hover .avatar {
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 4px 25px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2); }
}

.member-node.patriarch {
    position: relative;
}

.member-node.patriarch::before {
    content: '👑';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 20px;
    z-index: 2;
}

/* 头像样式 */
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
    position: relative;
    box-shadow:
        0 6px 20px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #d4af37, #f4e4bc, #d4af37);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar.male {
    background:
        linear-gradient(135deg, #4a90e2 0%, #357abd 100%),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent);
    border: 3px solid #2c5aa0;
    box-shadow:
        0 6px 20px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 0 0 1px rgba(44, 90, 160, 0.5);
}

.avatar.female {
    background:
        linear-gradient(135deg, #e91e63 0%, #c2185b 100%),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent);
    border: 3px solid #ad1457;
    border-radius: 50%;
    box-shadow:
        0 6px 20px rgba(233, 30, 99, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 0 0 1px rgba(173, 20, 87, 0.5);
}

/* 已故成员样式 */
.avatar.deceased {
    background:
        linear-gradient(135deg, #888888 0%, #666666 100%),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent);
    border: 3px solid #555555;
    box-shadow:
        0 6px 20px rgba(136, 136, 136, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 0 0 1px rgba(85, 85, 85, 0.5);
    filter: grayscale(0.7);
}

.member-node.deceased {
    opacity: 0.8;
}

.member-node.deceased .name {
    color: #666;
}

.member-node.deceased .dates {
    color: #888;
}

/* 已故标识 */
.avatar.deceased::after {
    content: '✝';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #555555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    border: 2px solid white;
}

.member-node:hover .avatar::before {
    opacity: 1;
}

/* 添加性别标识 */
.avatar.male::after {
    content: '♂';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    border: 2px solid white;
}

.avatar.female::after {
    content: '♀';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ad1457;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    border: 2px solid white;
}

/* 成员信息 */
.member-info {
    text-align: center;
}

.name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.dates {
    font-size: 12px;
    color: #666;
}

/* 连接线 */
.connection-line {
    background: linear-gradient(180deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    position: relative;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.connection-line.vertical {
    width: 3px;
    height: 30px;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.connection-line.vertical::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* 添加装饰性连接线动画 */
.connection-line.vertical::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, #f4e4bc 50%, transparent 100%);
    animation: lineFlow 3s ease-in-out infinite;
}

@keyframes lineFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #faf8f3 100%);
    border-radius: 15px;
    max-width: 95%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 98%;
        max-height: 95vh;
        margin: 10px;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 25px;
}

.member-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 228, 188, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
}

.detail-basic-info {
    flex: 1;
}

.detail-name {
    font-size: 24px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 8px;
}

.detail-dates {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-tag {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: #8b4513;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.info-label {
    font-size: 12px;
    color: #8b4513;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-value {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.member-photos {
    margin-bottom: 25px;
}

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.photos-title {
    font-size: 18px;
    color: #8b4513;
    font-weight: bold;
}

.add-photo-btn {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: #8b4513;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.photo-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.photo-placeholder {
    color: #999;
    font-size: 24px;
}

.member-story {
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    padding-top: 25px;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.story-title {
    font-size: 18px;
    color: #8b4513;
    font-weight: bold;
}

.edit-story-btn {
    background: none;
    border: 1px solid #d4af37;
    color: #8b4513;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-story-btn:hover {
    background: #d4af37;
    color: white;
}

.story-content {
    background: rgba(244, 228, 188, 0.3);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #d4af37;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-name {
        font-size: 20px;
    }

    .detail-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(244,228,188,0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    padding: 12px 0;
    box-shadow:
        0 -4px 20px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* 添加导航栏装饰 */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #d4af37;
}

.nav-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 12px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .view-controls {
        justify-content: center;
    }

    .zoom-controls {
        justify-content: center;
    }

    .generation {
        gap: 20px;
    }

    .avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .member-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-info strong {
        width: auto;
    }
}

@media (max-width: 480px) {

    .generation {
        gap: 15px;
    }

    .avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .name {
        font-size: 13px;
    }

    .dates {
        font-size: 11px;
    }
}

/* 粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #d4af37, transparent);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

/* 鼠标跟随光效 */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.1s ease;
    mix-blend-mode: screen;
}

/* 成员信息增强显示 */
.member-info {
    text-align: center;
    position: relative;
}

.member-info::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: width 0.3s ease;
}

.member-node:hover .member-info::before {
    width: 100%;
}

/* 添加更多装饰性元素 */
.generation::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.3) 20%, rgba(212, 175, 55, 0.3) 80%, transparent 100%);
    z-index: -1;
}

.generation {
    position: relative;
}

/* 族谱标题装饰 */
.family-tree::before {
    content: '🌳 家族世系图 🌳';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #8b4513;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 控制面板增强 */
.control-panel {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.9), rgba(244,228,188,0.9)),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5 5-2.24 5-5zm5-5c2.76 0 5 2.24 5 5s-2.24 5-5 5-5-2.24-5-5 2.24-5 5-5z'/%3E%3C/g%3E%3C/svg%3E");
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: panelShine 3s ease-in-out infinite;
}

@keyframes panelShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* 按钮增强效果 */
.btn-control, .btn-zoom {
    position: relative;
    overflow: hidden;
}

.btn-control::before, .btn-zoom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-control:active::before, .btn-zoom:active::before {
    width: 200%;
    height: 200%;
}
