/* BIDERSS V2 - 整合性研究范式系统
   配色：深青色/琥珀色系 - 区别于V1的蓝紫色系
   理念：从"三分法"到"自动驾驶"级整合
*/

:root {
    /* V2 主色系 - 深青琥珀 */
    --primary: #0d4f4f;
    --primary-light: #0f766e;
    --primary-dark: #134e4a;
    --secondary: #d97706;
    --secondary-light: #f59e0b;
    --accent: #ec4899;
    
    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* 灰度 */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* 三维度专属色 */
    --efficacy: #059669;
    --sensory: #7c3aed;
    --emotion: #f59e0b;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #0d4f4f 0%, #0f766e 50%, #14b8a6 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #0d4f4f 50%, #134e4a 100%);
    --gradient-fusion: linear-gradient(135deg, #0d4f4f, #0f766e, #14b8a6);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(13, 79, 79, 0.05);
    --shadow-md: 0 4px 6px rgba(13, 79, 79, 0.07), 0 2px 4px rgba(13, 79, 79, 0.06);
    --shadow-lg: 0 10px 15px rgba(13, 79, 79, 0.1), 0 4px 6px rgba(13, 79, 79, 0.05);
    --shadow-xl: 0 20px 25px rgba(13, 79, 79, 0.15), 0 8px 10px rgba(13, 79, 79, 0.1);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 字体 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Sans', var(--font-sans);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    color: var(--gray-700);
    line-height: 1.6;
    min-height: 100vh;
}

/* V2 标识条 */
body::before {
    content: 'BIDERSS V2 · 整合性研究范式';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(90deg, #0d4f4f, #0f766e, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    letter-spacing: 0.5px;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 32px;
    width: 260px;
    height: calc(100vh - 32px);
    background: linear-gradient(180deg, #0d4f4f 0%, #134e4a 100%);
    color: white;
    padding: 25px 0;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(13, 79, 79, 0.2);
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }

.logo {
    padding: 0 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, #5eead4, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo .version-tag {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 8px;
    color: white;
}

/* 版本切换器 */
.version-switcher {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.version-btn {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.version-btn:not(.active) {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
}

.version-btn:not(.active):hover {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.2);
}

.version-btn.active {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.version-btn.v1 {
    background: linear-gradient(135deg, rgba(33, 113, 181, 0.15) 0%, rgba(26, 54, 93, 0.15) 100%);
    border-color: rgba(33, 113, 181, 0.3);
    color: #93c5fd;
}

.version-btn.v1:hover {
    background: linear-gradient(135deg, rgba(33, 113, 181, 0.25) 0%, rgba(26, 54, 93, 0.25) 100%);
    border-color: rgba(33, 113, 181, 0.5);
    color: #bfdbfe;
}

.nav-scroll {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 0 10px;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    padding: 0 15px;
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(3px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.3), rgba(245, 158, 11, 0.2));
    color: #fcd34d;
    font-weight: 600;
    border-left: 3px solid #f59e0b;
}

.nav-icon {
    margin-right: 12px;
    font-size: 1.1em;
}

/* 分类导航 */
.nav-category { margin-bottom: 5px; }

.nav-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.nav-category-header:hover { background: rgba(255,255,255,0.08); }

.nav-category-title {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-category-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
    opacity: 0.6;
}

.nav-category.collapsed .nav-category-arrow { transform: rotate(-90deg); }
.nav-category.collapsed .nav-category-content { display: none; }

.nav-category-content {
    padding-left: 10px;
    margin-top: 5px;
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    margin-top: 32px;
    padding: 40px;
    min-height: calc(100vh - 32px);
}

/* 卡片和区块 */
.section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 79, 79, 0.08);
}

.section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.section-desc {
    color: var(--gray-500);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 英雄区 */
.page-hero {
    background: var(--gradient-hero);
    color: white;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero h1 {
    font-size: 2.4em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    opacity: 0.9;
    font-size: 1.05em;
    max-width: 800px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.page-hero .subtitle {
    font-size: 1.1em;
    opacity: 0.8;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* V2特有 - 范式标签 */
.paradigm-tag {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* 三维度融合卡片 */
.fusion-card {
    background: linear-gradient(135deg, rgba(13, 79, 79, 0.05), rgba(217, 119, 6, 0.05));
    border: 2px solid rgba(13, 79, 79, 0.15);
    border-radius: var(--radius-lg);
    padding: 25px;
    position: relative;
}

.fusion-card::before {
    content: '🔮';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 1.5em;
    background: white;
    padding: 0 10px;
}

/* 三维度标识色 */
.dim-efficacy { color: var(--efficacy); }
.dim-sensory { color: var(--sensory); }
.dim-emotion { color: var(--emotion); }

.badge-efficacy { background: #d1fae5; color: #047857; }
.badge-sensory { background: #f3e8ff; color: #7c3aed; }
.badge-emotion { background: #fef3c7; color: #b45309; }
.badge-integrated { background: linear-gradient(90deg, #ccfbf1, #fef3c7); color: #0d4f4f; border: 1px solid rgba(13, 79, 79, 0.2); }

/* 响应式 */
@media (max-width: 1024px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; padding: 30px; }
}

@media (max-width: 768px) {
    body::before { font-size: 0.65rem; }
    .sidebar { 
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px; margin-top: 32px; }
    .page-hero { padding: 30px 20px; }
    .section { padding: 25px 20px; }
}
