/* 基础样式 */
body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background-color: #f3f4f6;
}

/* 图标样式 */
@font-face {
    font-family: 'LucideIcons';
    src: url('https://cdn.jsdelivr.net/npm/lucide-static@latest/font/lucide.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.lucide {
    font-family: 'LucideIcons', sans-serif;
    font-size: 1.25rem;
    line-height: 1;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* 通用布局 */
.hidden-content, .hidden {
    display: none !important;
}

/* 导航和侧边栏 */
.main-app-header {
    background-color: white;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #374151;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #f3f4f6;
}

.nav-link.active {
    background-color: #e0f2fe;
    color: #0c4a6e;
    font-weight: 600;
}

.sub-nav-link-l1 {
    padding-left: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.sub-nav-link-l1.active {
    color: #0369a1;
    font-weight: 500;
    background-color: #f0f9ff;
}

.sub-nav-link-l2 {
    padding-left: 2.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.sidebar-parent-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* 入口页面样式 */
.entry-header {
    background-color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.entry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.entry-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.entry-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    border: none;
}

.entry-button:hover {
    background-color: #1d4ed8;
}

/* 地图和可视化 */
#map-container {
    height: 400px;
    border-radius: 0.375rem;
    overflow: hidden;
}

.well-point {
    position: absolute;
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    cursor: default;
    transition: all 0.3s ease-in-out;
    opacity: 0.75;
    transform: scale(1);
    z-index: 10;
}

.well-point.active {
    opacity: 1;
    transform: scale(1.2);
}

/* 卡片和选择器 */
.selection-card {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selection-card:hover {
    border-color: #93c5fd;
    background-color: #f9fafb;
}

.selection-card.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background-color: #eff6ff;
}

/* 模式卡片样式 */
.mode-card {
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mode-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mode-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.mode-card ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.25rem;
}

.mode-card ul li:before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: #9ca3af;
}

.mode-card.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    background-color: #f0f7ff;
}

/* 评估步骤导航 */
.assessment-step-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #4b5563;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.assessment-step-link:hover {
    background-color: #f3f4f6;
}

.assessment-step-link.active {
    background-color: #e0f2fe;
    color: #0c4a6e;
    font-weight: 500;
}

/* 表单元素样式增强 */
input[type="number"] {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

input[type="number"]:hover {
    border-color: #9ca3af;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 岩性参数列表样式 */
.lithology-params {
    font-size: 0.875rem;
}

.lithology-params dt {
    color: #6b7280;
    font-weight: 500;
}

.lithology-params dd {
    font-weight: 500;
    color: #1f2937;
}

/* 效率因子值样式 */
.efficiency-factor-value {
    color: #0369a1;
    font-weight: 600;
}

/* 下拉菜单样式增强 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
    border: 2px solid #d1d5db;
    background-color: #f9fafb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

select:hover {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 特定下拉菜单样式 */
#property-select, #layer-select {
    font-weight: 500;
    color: #1f2937;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 0.375rem;
    width: 100%;
}

/* 站点项样式 */
.site-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.site-item:hover {
    background-color: #f0f9ff;
}

.site-item.active {
    background-color: #e0f7fa;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .entry-container {
        padding: 1rem 0.5rem;
    }
    
    #map-container {
        height: 300px;
    }
}
