﻿﻿﻿﻿﻿﻿﻿﻿/* css/editor-theme.css — 数字家谱编辑器主题样式 */
/* 版本: 2.0.0 | 更新: 2026-01-24 */

/* 温暖现代配色方案 - 统一变量定义 */
:root {
    --color-primary: #14213D;       /* 深蓝主色，承接首页深色区 */
    --color-primary-light: #243B6B; /* 稍亮蓝，用于层级过渡 */
    --color-primary-dark: #0E172B;  /* 更深的主色 */
    --color-secondary: #F59E0B;     /* 温暖琥珀 */
    --color-secondary-light: #FFB46B; /* 亮暖橙 */
    --color-secondary-dark: #D97706; /* 深琥珀 */
    --color-success: #2E9B74;       /* 温和绿色 */
    --color-warning: #F97316;       /* 活力橙 */
    --color-info: #5B7CF6;          /* 清亮信息蓝 */
    --color-danger: #E05A47;        /* 柔和警示红 */
    --color-dark: #2F241D;          /* 深暖棕文字 */
    --color-light: #FFF8F1;         /* 奶油暖白背景 */
    --color-surface: rgba(255, 255, 255, 0.96); /* 卡片背景 */
    --color-border: #EFD8C4;        /* 暖边框 */
    
    /* 功能性颜色 */
    --male-color: var(--color-info);
    --female-color: var(--color-danger);
    --other-color: var(--color-warning);
    
    /* 阴影 */
    --shadow-sm: 0 8px 24px rgba(107, 76, 122, 0.08);
    --shadow-md: 0 14px 32px rgba(107, 76, 122, 0.12);
    --shadow-lg: 0 24px 48px rgba(20, 33, 61, 0.16);
    
    /* 动画 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* 字体 */
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --line-height: 1.6;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--color-dark);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 容器 ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 - 整合版 ===== */
#main-nav,
.navbar {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(26, 60, 64, 0.2);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(26, 60, 64, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
}

.nav-container,
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo 区域 */
.nav-brand,
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition-normal);
}

.nav-brand:hover,
.logo:hover {
    transform: scale(1.02);
}

.nav-logo {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.nav-brand i,
.logo i {
    font-size: 1.8rem;
    color: var(--color-secondary-light);
}

/* 导航菜单 */
.nav-menu,
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

/* 导航按钮 */
.nav-btn {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(184, 148, 70, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 148, 70, 0.4);
}

/* 用户菜单 */
.nav-btn.user-menu {
    position: relative;
    padding: 0 !important;
    background: transparent !important;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    min-width: 120px;
    justify-content: center;
    cursor: pointer;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--color-border);
    animation: fadeInDown var(--transition-normal);
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: linear-gradient(135deg, var(--color-light), #e9ecef);
    padding-left: 20px;
    color: var(--color-primary);
}

.user-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--color-secondary);
}

#logoutLink {
    color: var(--color-danger);
    border-top: 2px solid var(--color-border);
}

#logoutLink:hover {
    background: var(--color-danger) !important;
    color: white !important;
}

#logoutLink:hover i {
    color: white !important;
}

/* 导航操作区 */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== 主视觉区域 ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.feature-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-normal);
    min-width: 180px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: left 0.5s;
}

.feature-btn:hover::after {
    left: 120%;
}

.feature-btn.editor {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: white;
    box-shadow: 0 6px 20px rgba(184, 148, 70, 0.4);
}

.feature-btn.login {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-btn.demo {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== 家谱编辑器布局 ===== */
.editor-layout {
    display: flex;
    height: calc(100vh - 70px);
    overflow: hidden;
    background: var(--color-light);
}

/* 侧边栏 */
.sidebar-panel {
    width: 280px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal);
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.sidebar-panel.collapsed {
    width: 60px;
}

.sidebar-panel.collapsed .sidebar-content > *:not(.sidebar-collapse-btn) {
    display: none;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-content h3 {
    margin: 0 0 20px 0;
    color: var(--color-primary);
    font-size: 18px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
    font-weight: 600;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* 侧边栏按钮 */
.sidebar-btn {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    font-size: 14px;
    color: var(--color-dark);
}

.sidebar-btn:hover {
    background: var(--color-light);
    border-color: var(--color-secondary);
    transform: translateX(2px);
}

.sidebar-btn i {
    width: 16px;
    text-align: center;
    color: var(--color-secondary);
}

.sidebar-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.sidebar-btn.active i {
    color: white;
}

/* 侧边栏搜索 */
.sidebar .search-bar {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.sidebar .search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    transition: all var(--transition-fast);
    background: var(--color-light);
}

.sidebar .search-bar input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(184, 148, 70, 0.1);
}

.sidebar .search-btn {
    padding: 8px 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sidebar .search-btn:hover {
    background: var(--color-primary-light);
}

/* 搜索历史 */
.search-history {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.search-history-item {
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 13px;
    transition: background var(--transition-fast);
}

.search-history-item:hover {
    background: var(--color-light);
}

/* 统计卡片 */
.stat-card {
    background: var(--color-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--color-dark);
    opacity: 0.8;
    text-transform: uppercase;
}

/* 侧边栏折叠按钮 */
.sidebar-collapse-btn {
    position: absolute;
    bottom: 10px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.sidebar-collapse-btn:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* 画布容器 */
.canvas-container {
    flex: 1;
    position: relative;
    background: var(--color-light);
    overflow: hidden;
}

.canvas-area {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: auto;
    cursor: default;
}

.canvas-area.panning {
    cursor: grabbing;
}

/* 网格背景 */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 800px;
    min-width: 1200px;
    background-image: 
        linear-gradient(rgba(184, 148, 70, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 148, 70, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

/* 节点层 */
#nodes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#nodes-layer > * {
    pointer-events: auto;
}

/* 关系层 */
#relations-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

#relations-layer svg {
    width: 100%;
    height: 100%;
}

#relations-layer line,
#relations-layer path {
    stroke: var(--color-border);
    stroke-width: 2;
    fill: none;
    transition: all var(--transition-fast);
}

#relations-layer line.highlighted,
#relations-layer path.highlighted {
    stroke: var(--color-secondary);
    stroke-width: 3;
}

#relations-layer line.parent-child {
    stroke: var(--color-info);
}

#relations-layer line.spouse {
    stroke: var(--color-secondary);
    stroke-dasharray: 5,5;
}

/* Canvas 画布 */
#familyTreeCanvas,
#familyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 2000px;
    height: 2000px;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
    transform-origin: 0 0;
}

/* 节点卡片 */
.family-node,
.person-node {
    position: absolute !important;
    width: 140px;
    padding: 15px;
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    cursor: move;
    user-select: none;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    z-index: 20;
    transform: translateZ(0);
    will-change: transform;
    border: 1px solid var(--color-border);
}

.family-node:hover,
.person-node:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    z-index: 30;
    border-color: var(--color-secondary);
}

.family-node.selected,
.person-node.selected {
    box-shadow: 0 0 0 3px var(--color-secondary);
    transform: scale(1.05);
    z-index: 40;
}

.family-node.male,
.person-node.male {
    border-top: 4px solid var(--male-color);
}

.family-node.female,
.person-node.female {
    border-top: 4px solid var(--female-color);
}

.family-node.other,
.person-node.other {
    border-top: 4px solid var(--other-color);
}

.family-node h3,
.person-node h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.family-node .node-info,
.person-node .node-info {
    font-size: 12px;
    color: var(--color-dark);
    opacity: 0.8;
    margin: 4px 0;
}

.family-node .node-age,
.person-node .node-age {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    background: var(--color-light);
    padding: 2px 5px;
    border-radius: 10px;
    color: var(--color-primary);
}

.family-node.dragging,
.person-node.dragging {
    opacity: 0.8;
    cursor: grabbing;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: scale(1.02) rotate(1deg);
}

.family-node.dragging::after,
.person-node.dragging::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed var(--color-secondary);
    border-radius: 12px;
    pointer-events: none;
}

.family-node.drag-over,
.person-node.drag-over {
    border-color: var(--color-secondary);
    transform: scale(1.02);
    animation: pulse 0.5s ease-in-out infinite;
}

/* 状态栏 */
.status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 12px;
    color: var(--color-dark);
    z-index: 40;
    backdrop-filter: blur(5px);
}

.status-left {
    flex: 1;
    display: flex;
    gap: 20px;
}

.status-right {
    display: flex;
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-item i {
    font-size: 12px;
    color: var(--color-secondary);
}

/* ===== 模态框系统 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 64, 0.5);
    backdrop-filter: blur(3px);
    transition: all var(--transition-normal);
}

.modal-container {
    position: relative;
    background: var(--color-surface);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-normal);
    z-index: 1;
    border: 1px solid var(--color-border);
}

.modal.visible .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-light);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-dark);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-header .close-btn:hover {
    background: var(--color-border);
    color: var(--color-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    background: var(--color-light);
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    gap: 12px;
}

/* 表单样式 */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--color-border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    margin: 0 0 16px 0;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: var(--color-secondary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group.required label::after {
    content: '*';
    color: var(--color-danger);
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background: var(--color-light);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(184, 148, 70, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--color-danger);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 性别选择器 */
.gender-selector {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.gender-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.gender-option .gender-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.gender-option span:last-child {
    font-size: 0.9rem;
    color: var(--color-dark);
}

.gender-option.selected {
    border-color: var(--color-secondary);
    background: rgba(184, 148, 70, 0.05);
}

.gender-option.selected span:last-child {
    color: var(--color-primary);
    font-weight: 500;
}

/* 按钮 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--color-border);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 60, 64, 0.3);
}

.btn-secondary {
    background: var(--color-light);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-border);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
}

.btn-success {
    background: var(--color-success);
    color: white;
    border: none;
}

.btn-success:hover:not(:disabled) {
    background: #27ae60;
}

.btn.success {
    background: var(--color-success);
    color: white;
    border: none;
}

/* 空格类命名兼容（.btn.primary 等同于 .btn-primary） */
.btn.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
}

.btn.primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 60, 64, 0.3);
}

.btn.secondary {
    background: var(--color-light);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn.secondary:hover:not(:disabled) {
    background: var(--color-border);
}

.btn.outline {
    background: white;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
}

.btn.outline:hover:not(:disabled) {
    background: var(--color-light);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* ===== 加载器样式 ===== */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.loader-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--color-secondary-light);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-icon i {
    filter: drop-shadow(0 0 10px rgba(184, 148, 70, 0.5));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loader-content h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 300;
    letter-spacing: 2px;
}

.loader-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.loader-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loader-steps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    position: relative;
}

.loader-steps .step {
    position: relative;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.loader-steps .step::before {
    content: attr(data-step);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
}

.loader-steps .step.active {
    color: white;
    font-weight: bold;
}

.loader-steps .step.active::before {
    background: var(--color-secondary);
    box-shadow: 0 0 15px var(--color-secondary);
}

/* 就绪提示 */
.ready-screen {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-success);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9998;
    animation: slideInUp 0.5s ease;
    font-size: 14px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 错误界面 */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 64, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
}

.error-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-icon {
    font-size: 64px;
    color: var(--color-danger);
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-content h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #fff;
}

.error-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px 0;
    font-size: 16px;
}

.error-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-btn.primary {
    background: var(--color-secondary);
    color: white;
}

.error-btn.primary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 148, 70, 0.3);
}

.error-btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.error-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 通知系统 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
    border: 1px solid var(--color-border);
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-success {
    border-left-color: var(--color-success);
}

.notification-error {
    border-left-color: var(--color-danger);
}

.notification-warning {
    border-left-color: var(--color-warning);
}

.notification-info {
    border-left-color: var(--color-info);
}

.notification-icon {
    font-size: 20px;
}

.notification-success .notification-icon {
    color: var(--color-success);
}

.notification-error .notification-icon {
    color: var(--color-danger);
}

.notification-warning .notification-icon {
    color: var(--color-warning);
}

.notification-info .notification-icon {
    color: var(--color-info);
}

.notification-message {
    flex: 1;
    color: var(--color-dark);
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-dark);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.notification-close:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* 底部信息 */
.site-footer {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary-light);
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--color-secondary-light);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all var(--transition-normal);
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.beian-info {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.beian-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.beian-link:hover {
    color: var(--color-secondary-light);
}

.gongan-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(184, 148, 70, 0.3);
    border: none;
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(184, 148, 70, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 法律页面样式 */
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.legal-sidebar {
    position: sticky;
    top: 2rem;
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 10px;
    height: fit-content;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.legal-sidebar h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-sidebar ul {
    list-style: none;
    padding: 0;
}

.legal-sidebar li {
    margin-bottom: 0.5rem;
}

.legal-sidebar a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all var(--transition-fast);
}

.legal-sidebar a:hover,
.legal-sidebar a.active {
    background: rgba(26, 60, 64, 0.05);
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
}

.legal-content {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.legal-content h1 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.legal-content h2 {
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-content p {
    line-height: 1.8;
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-align: justify;
}

/* 联系我们页面 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 2rem;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.contact-info {
    padding: 1rem;
}

.contact-info h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-light);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--color-dark);
    margin: 0;
}

.contact-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--color-secondary);
}

/* 反馈表单 */
.feedback-form {
    padding: 1rem;
}

.feedback-form h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

#feedbackForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 验证码 */
.captcha-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.captcha-container input {
    flex: 1;
}

.captcha-image {
    background: var(--color-light);
    padding: 0.8rem;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: bold;
}

.refresh-captcha {
    background: var(--color-light);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    color: var(--color-primary);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-captcha:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
    transform: rotate(180deg);
}

/* 统计图表 */
.gender-chart {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    background: var(--color-light);
}

.gender-chart-male {
    background: linear-gradient(90deg, var(--color-info), #90caf9);
    height: 100%;
    transition: width 0.5s ease;
}

.gender-chart-female {
    background: linear-gradient(90deg, var(--color-danger), #f48fb1);
    height: 100%;
    transition: width 0.5s ease;
}

.generation-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background: var(--color-secondary);
    color: white;
}

/* 辅助类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 25px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 25px; }

.ml-1 { margin-left: 5px; }
.ml-2 { margin-left: 10px; }
.mr-1 { margin-right: 5px; }
.mr-2 { margin-right: 10px; }

.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 25px; }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 5px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }
.gap-4 { gap: 20px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* 响应式设计 */
@media (max-width: 1024px) {
    .legal-container {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .nav-container,
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu,
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .editor-layout {
        flex-direction: column;
    }
    
    .sidebar-panel {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .modal-container {
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .notification {
        min-width: auto;
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .feature-highlight h2,
    .demo-preview h2,
    .coming-soon h2 {
        font-size: 2rem;
    }
    
    .value-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .subscribe-box {
        padding: 2rem 1rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-container {
        flex-direction: column;
    }
    
    .captcha-image {
        min-width: auto;
        width: 100%;
    }
    
    .refresh-captcha {
        width: 100%;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #1a3c40;
        --color-primary-light: #2d5248;
        --color-secondary: #b89446;
        --color-secondary-light: #d4b97a;
        --color-dark: #e0e0e0;
        --color-light: #1e1e1e;
        --color-surface: #2d2d2d;
        --color-border: #404040;
    }
    
    body {
        background-color: #121212;
    }
    
    .sidebar-panel,
    .modal-container,
    .notification {
        background: var(--color-surface);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #1e1e1e;
        color: var(--color-dark);
    }
    
    .family-node,
    .person-node {
        background: var(--color-surface);
        color: var(--color-dark);
    }
    
    .family-node h3,
    .person-node h3 {
        color: var(--color-secondary-light);
    }
    
    .grid-background {
        background-image: 
            linear-gradient(rgba(184, 148, 70, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(184, 148, 70, 0.05) 1px, transparent 1px);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .sidebar-panel,
    .status-bar,
    .nav-actions,
    .back-to-top,
    .footer {
        display: none !important;
    }
    
    .canvas-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .family-node,
    .person-node {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* SZJPV2: 20260124 */