@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    background-color: #ffffff;
    box-shadow: 0 4px Px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #34495e; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #dfe6e9; border-radius: 5px; box-sizing: border-box; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #3498db; }

button { display: block; width: 100%; padding: 15px; background-color: #3498db; color: white; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; }
button:hover { background-color: #2980b9; }
button:disabled { background-color: #bdc3c7; cursor: not-allowed; }

.loader { border: 8px solid #f3f3f3; border-radius: 50%; border-top: 8px solid #3498db; width: 60px; height: 60px; animation: spin 2s linear infinite; margin: 50px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- 新增：思维导图样式的列表 --- */
.output-container {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background-color: #fafafa;
    max-height: 80vh;
    overflow-y: auto;
}

.mindmap-tree h2 {
    text-align: left;
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.mindmap-tree ul {
    list-style: none;
    padding-left: 30px;
    position: relative;
}

/* 绘制连接线 */
.mindmap-tree ul li {
    margin: 10px 0;
    position: relative;
}

/* 垂直线 */
.mindmap-tree ul::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #bdc3c7;
}

/* 水平线 */
.mindmap-tree ul li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 1.1em; /* 垂直居中对齐标题 */
    width: 30px;
    height: 1px;
    background: #bdc3c7;
}

.mindmap-tree ul li:last-child > ul::before {
    bottom: auto;
    height: 1.1em;
}

.node-content {
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.page-title {
    font-size: 1.2em;
    color: #2980b9;
    font-weight: 700;
}

.node-details {
    margin-top: 8px;
    padding-left: 10px;
    border-left: 3px solid #ecf0f1;
    font-size: 0.9em;
}
.node-details p {
    margin: 5px 0;
    text-align: left;
    color: #34495e;
}

.page-url {
    display: block;
    color: #7f8c8d;
    font-size: 0.85em;
    margin-bottom: 5px;
    font-family: monospace;
}

.page-keywords {
    color: #95a5a6;
}

.page-keywords strong,
.page-desc strong,
.page-url strong {
    color: #34495e;
}