CSS 中心
本页集成了大部分CSS,可以调用
主页CSS/通用CSS:
:root { /* 主色调 - 白色主题 */ --primary-color: #2c3e50; --primary-light: #34495e; --primary-dark: #1a252f; /* 辅助色 */ --secondary-color: #95a5a6; --accent-color: #e74c3c; --warning-color: #f39c12; --danger-color: #c0392b; --info-color: #3498db; /* 中性色 - 白色主题 */ --dark-color: #2c3e50; --gray-dark: #495057; --gray: #7f8c8d; --gray-light: #bdc3c7; --light-color: #f8f9fa; --white: #ffffff; --background-color: #ffffff; /* 字体 */ --font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; --font-size-base: 16px; --line-height-base: 1.6; /* 间距 */ --spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem; --spacing-lg: 1.5rem; --spacing-xl: 2rem; --spacing-xxl: 3rem; /* 圆角 */ --border-radius: 0.375rem; --border-radius-lg: 0.5rem; --border-radius-xl: 0.75rem; /* 阴影 - 更轻柔的阴影 */ --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 2px 4px rgba(0,0,0,0.05); --shadow-lg: 0 4px 8px rgba(0,0,0,0.05); --shadow-xl: 0 8px 16px rgba(0,0,0,0.05); /* 过渡 */ --transition: all 0.3s ease; } /* ===== 基础样式重置 ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: var(--font-size-base); scroll-behavior: smooth; } body { font-family: var(--font-family); line-height: var(--line-height-base); color: var(--dark-color); background: var(--background-color); min-height: 100vh; } /* ===== 排版样式 ===== */ h1, h2, h3, h4, h5, h6 { color: var(--primary-dark); margin: var(--spacing-lg) 0 var(--spacing-md); font-weight: 600; line-height: 1.3; } h1 { font-size: 2.5rem; text-align: center; margin: var(--spacing-xl) 0; color: var(--primary-dark); } h2 { font-size: 2rem; border-bottom: 2px solid var(--light-color); padding-bottom: var(--spacing-sm); } h3 { font-size: 1.75rem; color: var(--primary-color); } h4 { font-size: 1.5rem; color: var(--gray-dark); } h5 { font-size: 1.25rem; color: var(--gray); } h6 { font-size: 1.1rem; color: var(--gray); } p { margin: var(--spacing-md) 0; } a { color: var(--info-color); text-decoration: none; transition: var(--transition); } a:hover { color: var(--primary-dark); text-decoration: underline; } /* ===== 布局容器 ===== */ .container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); } .main-container { display: flex; gap: var(--spacing-xl); margin: var(--spacing-xl) 0; } .main-content { flex: 3; min-width: 0; } .sidebar { flex: 1; min-width: 280px; } /* ===== 卡片组件 - 白色主题 ===== */ .card { background: var(--white); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); padding: var(--spacing-lg); margin: var(--spacing-md) 0; transition: var(--transition); border: 1px solid var(--light-color); } .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); } .card-header { border-bottom: 1px solid var(--light-color); padding-bottom: var(--spacing-md); margin-bottom: var(--spacing-md); } .card-title { margin: 0; color: var(--primary-dark); } /* ===== 按钮样式 - 白色主题 ===== */ .btn { display: inline-block; padding: var(--spacing-sm) var(--spacing-lg); border: none; border-radius: var(--border-radius); font-family: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; text-align: center; cursor: pointer; transition: var(--transition); line-height: 1.5; } .btn-primary { background: var(--primary-color); color: var(--white); } .btn-primary:hover { background: var(--primary-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-secondary { background: var(--secondary-color); color: var(--white); } .btn-secondary:hover { background: #7f8c8d; color: var(--white); text-decoration: none; } .btn-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); } .btn-outline:hover { background: var(--primary-color); color: var(--white); text-decoration: none; } /* ===== 表格样式 ===== */ table { width: 100%; border-collapse: collapse; margin: var(--spacing-lg) 0; box-shadow: var(--shadow-sm); background: var(--white); border-radius: var(--border-radius); overflow: hidden; border: 1px solid var(--light-color); } th, td { padding: var(--spacing-md); text-align: left; border-bottom: 1px solid var(--light-color); } th { background: var(--light-color); color: var(--dark-color); font-weight: 600; } tr:hover { background: rgba(0,0,0,0.02); } /* ===== 列表样式 ===== */ ul, ol { margin: var(--spacing-md) 0; padding-left: var(--spacing-xl); } li { margin: var(--spacing-sm) 0; line-height: 1.6; } /* ===== 特殊内容块 ===== */ .alert { padding: var(--spacing-lg); border-radius: var(--border-radius); margin: var(--spacing-md) 0; border-left: 4px solid; background: var(--white); border: 1px solid var(--light-color); } .alert-info { border-left-color: var(--info-color); color: var(--dark-color); } .alert-warning { border-left-color: var(--warning-color); color: var(--dark-color); } .alert-danger { border-left-color: var(--danger-color); color: var(--dark-color); } .alert-success { border-left-color: var(--secondary-color); color: var(--dark-color); } /* ===== 代码块样式 ===== */ pre { background: var(--light-color); color: var(--dark-color); padding: var(--spacing-lg); border-radius: var(--border-radius); overflow-x: auto; margin: var(--spacing-lg) 0; font-family: 'Courier New', monospace; border-left: 4px solid var(--primary-color); } code { background: var(--light-color); padding: var(--spacing-xs) var(--spacing-sm); border-radius: var(--border-radius); font-family: 'Courier New', monospace; color: var(--danger-color); } /* ===== 导航组件 - 白色主题 ===== */ .navbar { background: var(--white); box-shadow: var(--shadow-md); padding: var(--spacing-md) 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--light-color); } .nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); } .nav-brand { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; } .nav-menu { display: flex; list-style: none; gap: var(--spacing-lg); } .nav-link { color: var(--dark-color); text-decoration: none; font-weight: 500; padding: var(--spacing-sm) var(--spacing-md); border-radius: var(--border-radius); transition: var(--transition); } .nav-link:hover { background: var(--light-color); color: var(--primary-dark); text-decoration: none; } /* ===== 页脚样式 - 白色主题 ===== */ .footer { background: var(--white); color: var(--gray); padding: var(--spacing-xl) 0; margin-top: var(--spacing-xxl); border-top: 1px solid var(--light-color); } .footer-content { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); text-align: center; } .footer-links { display: flex; justify-content: center; gap: var(--spacing-lg); margin: var(--spacing-lg) 0; flex-wrap: wrap; } .footer-link { color: var(--gray); text-decoration: none; } .footer-link:hover { color: var(--primary-dark); text-decoration: underline; } /* ===== 工具类 ===== */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .text-primary { color: var(--primary-color); } .text-secondary { color: var(--secondary-color); } .text-success { color: var(--secondary-color); } .text-danger { color: var(--danger-color); } .text-warning { color: var(--warning-color); } .text-info { color: var(--info-color); } .text-muted { color: var(--gray); } .bg-primary { background: var(--primary-color); } .bg-light { background: var(--light-color); } .bg-white { background: var(--white); } .mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--spacing-xs); } .mt-2 { margin-top: var(--spacing-sm); } .mt-3 { margin-top: var(--spacing-md); } .mt-4 { margin-top: var(--spacing-lg); } .mt-5 { margin-top: var(--spacing-xl); } .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--spacing-xs); } .mb-2 { margin-bottom: var(--spacing-sm); } .mb-3 { margin-bottom: var(--spacing-md); } .mb-4 { margin-bottom: var(--spacing-lg); } .mb-5 { margin-bottom: var(--spacing-xl); } .p-1 { padding: var(--spacing-xs); } .p-2 { padding: var(--spacing-sm); } .p-3 { padding: var(--spacing-md); } .p-4 { padding: var(--spacing-lg); } .p-5 { padding: var(--spacing-xl); } .d-flex { display: flex; } .d-block { display: block; } .d-inline { display: inline; } .d-inline-block { display: inline-block; } .d-none { display: none; } .flex-column { flex-direction: column; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .align-center { align-items: center; } .w-100 { width: 100%; } .h-100 { height: 100%; } /* ===== 网格系统 ===== */ .row { display: flex; flex-wrap: wrap; margin: 0 calc(-1 * var(--spacing-md)); } .col { flex: 1; padding: 0 var(--spacing-md); } .col-1 { flex: 0 0 8.333333%; } .col-2 { flex: 0 0 16.666667%; } .col-3 { flex: 0 0 25%; } .col-4 { flex: 0 0 33.333333%; } .col-5 { flex: 0 0 41.666667%; } .col-6 { flex: 0 0 50%; } .col-7 { flex: 0 0 58.333333%; } .col-8 { flex: 0 0 66.666667%; } .col-9 { flex: 0 0 75%; } .col-10 { flex: 0 0 83.333333%; } .col-11 { flex: 0 0 91.666667%; } .col-12 { flex: 0 0 100%; } /* ===== 响应式设计 ===== */ @media (max-width: 1200px) { .container { max-width: 1140px; } } @media (max-width: 992px) { .container { max-width: 960px; } .main-container { flex-direction: column; } .sidebar { order: -1; } .nav-menu { flex-direction: column; gap: var(--spacing-sm); } } @media (max-width: 768px) { .container { max-width: 720px; } h1 { font-size: 2rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.5rem; } .navbar { padding: var(--spacing-sm) 0; } .nav-container { flex-direction: column; gap: var(--spacing-md); } .footer-links { flex-direction: column; gap: var(--spacing-md); } .col { flex: 0 0 100%; margin-bottom: var(--spacing-md); } } @media (max-width: 576px) { .container { max-width: 540px; padding: 0 var(--spacing-sm); } html { font-size: 14px; } .card { padding: var(--spacing-md); } table { display: block; overflow-x: auto; } } /* ===== 打印样式 ===== */ @media print { .navbar, .footer, .sidebar, .btn { display: none; } body { background: white; color: black; font-size: 12pt; } .container { max-width: none; margin: 0; padding: 0; } a { color: black; text-decoration: underline; } .card { box-shadow: none; border: 1px solid black; } } /* ===== 动画效果 ===== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.3s ease-out; } @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } } .slide-in { animation: slideIn 0.3s ease-out; } /* ===== 可访问性改进 ===== */ @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* ===== 白色主题特定样式 ===== */ .clean-layout { background: var(--white); } .content-section { background: var(--white); padding: var(--spacing-xl); margin: var(--spacing-lg) 0; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-sm); } .highlight-box { background: var(--light-color); border-left: 4px solid var(--info-color); padding: var(--spacing-lg); margin: var(--spacing-lg) 0; border-radius: 0 var(--border-radius) var(--border-radius) 0; } /* ===== Wikidot特定元素样式覆盖 ===== */ .wiki-content { font-family: var(--font-family); line-height: var(--line-height-base); background: var(--white); } .wiki-toc { background: var(--light-color); border-radius: var(--border-radius); padding: var(--spacing-lg); margin: var(--spacing-lg) 0; border: 1px solid var(--light-color); } /* ===== 许可证声明 ===== */ .license-notice { text-align: center; margin: var(--spacing-xl) 0; padding: var(--spacing-lg); background: var(--light-color); border-radius: var(--border-radius); font-size: 0.9rem; color: var(--gray); } .license-notice a { color: var(--primary-color); font-weight: 500; } /* ===== 白色主题增强 ===== */ .border-light { border: 1px solid var(--light-color); } .shadow-subtle { box-shadow: 0 1px 3px rgba(0,0,0,0.02); } .card-minimal { background: var(--white); border: 1px solid var(--light-color); border-radius: var(--border-radius); padding: var(--spacing-lg); margin: var(--spacing-md) 0; } @media (prefers-color-scheme: dark) { :root { --background-color: #1a1a1a; --white: #2d2d2d; --light-color: #3d3d3d; --dark-color: #e0e0e0; --gray: #a0a0a0; --gray-dark: #b0b0b0; --primary-color: #e0e0e0; --primary-dark: #f0f0f0; } body { background: var(--background-color); color: var(--dark-color); } .card { background: var(--white); border-color: var(--light-color); } th { background: var(--light-color); color: var(--dark-color); } .navbar, .footer { background: var(--white); border-color: var(--light-color); } }
主系列CSS
.series-stats { display: flex; justify-content: center; gap: 25px; margin: 25px 0; flex-wrap: wrap; } .stat-item { text-align: center; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); min-width: 120px; transition: all 0.3s ease; } .stat-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); } .stat-number { font-size: 2.2em; font-weight: 700; color: #667eea; margin-bottom: 5px; } .stat-label { color: #7f8c8d; font-weight: 500; font-size: 0.9em; } .series-description { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 25px; border-radius: 12px; margin: 25px 0; border-left: 4px solid #667eea; line-height: 1.7; } /* 快速导航 */ .quick-nav { display: flex; gap: 25px; margin: 25px 0; flex-wrap: wrap; } .nav-section { flex: 1; min-width: 200px; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); } .nav-section h4 { margin-top: 0; color: #2c3e50; border-bottom: 2px solid #667eea; padding-bottom: 8px; font-size: 1.1em; } .nav-section ul { list-style: none; padding: 0; margin: 15px 0 0 0; } .nav-section li { margin: 10px 0; padding: 8px 0; border-bottom: 1px solid #f0f0f0; } .nav-section a { text-decoration: none; color: #34495e; font-weight: 500; transition: color 0.2s ease; } .nav-section a:hover { color: #667eea; } /* 精选内容 */ .featured-content { margin: 30px 0; } .featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; } .featured-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; } .featured-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .featured-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); } .card-icon { font-size: 2.5em; margin-bottom: 15px; } .card-content h4 { margin: 0 0 15px 0; color: #2c3e50; font-size: 1.2em; } .card-content a { text-decoration: none; color: #2c3e50; font-weight: 600; display: block; margin: 10px 0; } .card-actions { margin-top: 15px; } .card-actions a { display: inline-block; background: #667eea; color: white; padding: 8px 16px; border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 0.9em; transition: all 0.3s ease; } .card-actions a:hover { background: #5a6fd8; transform: translateY(-2px); } /* 子分类 */ .subcategories { margin: 30px 0; } .subcategory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; } .subcategory-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); border-left: 4px solid #667eea; transition: all 0.3s ease; } .subcategory-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); } .subcategory-card h4 { margin: 0 0 15px 0; color: #2c3e50; font-size: 1.1em; border-bottom: 1px solid #eee; padding-bottom: 8px; } .subcategory-card ul { list-style: none; padding: 0; margin: 0; } .subcategory-card li { margin: 8px 0; padding: 5px 0; border-bottom: 1px solid #f5f5f5; } .subcategory-card a { text-decoration: none; color: #34495e; transition: color 0.2s ease; } .subcategory-card a:hover { color: #667eea; } /* 最新更新 */ .recent-updates { margin: 30px 0; } .update-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; } .update-column { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); } .update-column h4 { margin: 0 0 15px 0; color: #2c3e50; font-size: 1.1em; border-bottom: 2px solid #667eea; padding-bottom: 8px; } .update-item { display: flex; align-items: flex-start; margin: 12px 0; padding: 10px; background: #f8f9fa; border-radius: 8px; transition: all 0.3s ease; } .update-item:hover { background: #e8f4fc; transform: translateX(5px); } .update-badge { padding: 3px 8px; border-radius: 4px; font-size: 0.7em; font-weight: bold; margin-right: 10px; margin-top: 2px; color: white; } .update-badge.new { background: #2ecc71; } .update-badge.updated { background: #3498db; } .update-content { flex: 1; } .update-content a { text-decoration: none; color: #2c3e50; font-weight: 500; display: block; margin-bottom: 3px; } .update-content a:hover { color: #667eea; } .update-meta { font-size: 0.8em; color: #7f8c8d; } /* 编辑任务 */ .editing-tasks { margin: 30px 0; } .task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; } .task-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); border-top: 4px solid #667eea; } .task-card h4 { margin: 0 0 15px 0; color: #2c3e50; font-size: 1.1em; } .task-card ul { list-style: none; padding: 0; margin: 0; } .task-card li { margin: 8px 0; padding: 5px 0; border-bottom: 1px solid #f0f0f0; } .task-card a { text-decoration: none; color: #34495e; transition: color 0.2s ease; } .task-card a:hover { color: #667eea; } .task-cta { text-align: center; margin-top: 25px; } .task-cta a { display: inline-block; background: #667eea; color: white; padding: 10px 20px; margin: 0 8px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; } .task-cta a:hover { background: #5a6fd8; transform: translateY(-2px); } /* 页脚 */ .series-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #ddd; text-align: center; } .footer-links { margin-bottom: 10px; } .footer-links a { color: #667eea; text-decoration: none; margin: 0 12px; font-weight: 500; } .footer-links a:hover { text-decoration: underline; } .footer-credits { color: #7f8c8d; font-size: 0.9em; } /* 响应式设计 */ @media (max-width: 768px) { .quick-nav { flex-direction: column; } .update-columns { grid-template-columns: 1fr; } .featured-grid { grid-template-columns: 1fr; } .subcategory-grid { grid-template-columns: 1fr; } .task-grid { grid-template-columns: 1fr; } .stats-bar { gap: 15px; } .stat-item { min-width: 100px; padding: 15px; } }
精神医学css
:root { --primary-lavender: #b39ddb; --primary-lavender-light: #d1c4e9; --primary-lavender-dark: #9575cd; --accent-sky: #81d4fa; --accent-mint: #80cbc4; --accent-coral: #ffab91; --warm-beige: #f5f5f5; --soft-gray: #eeeeee; --text-dark: #455a64; --text-medium: #78909c; --text-light: #b0bec5; --gradient-main: linear-gradient(135deg, #b39ddb 0%, #81d4fa 100%); --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%); --gradient-accent: linear-gradient(135deg, #d1c4e9 0%, #ffab91 100%); --gradient-bg: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%); } /* 柔和的动态背景效果 */ body { font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; background: var(--gradient-bg); background-attachment: fixed; min-height: 100vh; color: var(--text-dark); position: relative; } body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 10% 20%, rgba(179, 157, 219, 0.1) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(129, 212, 250, 0.1) 0%, transparent 40%), radial-gradient(circle at 50% 50%, rgba(255, 171, 145, 0.05) 0%, transparent 50%); z-index: -1; animation: gentleFloat 25s ease-in-out infinite; } @keyframes gentleFloat { 0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); } 33% { transform: translateY(-10px) scale(1.02) rotate(1deg); } 66% { transform: translateY(5px) scale(0.98) rotate(-1deg); } } /* 主容器 */ .wiki-content { max-width: 1200px; margin: 0 auto; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(15px); border-radius: 24px; box-shadow: 0 8px 32px rgba(179, 157, 219, 0.1), 0 2px 8px rgba(179, 157, 219, 0.05); overflow: hidden; margin-top: 20px; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.8); } /* 标题样式 */ h1 { text-align: center; font-size: 2.8em; margin: 50px 0 25px 0; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); position: relative; } h1::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; background: var(--gradient-accent); border-radius: 3px; opacity: 0.7; } h2 { text-align: center; font-size: 1.3em; color: var(--text-medium); margin: 0 0 50px 0; font-weight: 300; line-height: 1.6; padding: 0 20px; } /* 统计栏 - 更柔和的设计 */ .stats-bar { display: flex; justify-content: center; gap: 25px; margin: 50px 0; flex-wrap: wrap; } .stat-item { text-align: center; background: var(--gradient-card); padding: 25px 20px; border-radius: 20px; box-shadow: 0 4px 20px rgba(179, 157, 219, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.6); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); min-width: 130px; position: relative; overflow: hidden; } .stat-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gradient-accent); opacity: 0.7; } .stat-item::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); transition: left 0.6s; } .stat-item:hover::after { left: 100%; } .stat-item:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 12px 30px rgba(179, 157, 219, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9); } .stat-number { font-size: 2.2em; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; } .stat-label { color: var(--text-medium); font-weight: 500; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; } /* 导航网格 - 更柔和的卡片 */ .nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin: 50px 0; padding: 0 20px; } .nav-card { background: var(--gradient-card); border-radius: 20px; box-shadow: 0 6px 25px rgba(179, 157, 219, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.8); } .nav-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-accent); opacity: 0.6; } .nav-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 40px rgba(179, 157, 219, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9); } .card-header { background: var(--gradient-main); color: white; padding: 22px; font-size: 1.2em; font-weight: 600; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .card-content { padding: 25px; } .card-content ul { list-style: none; padding: 0; margin: 0; } .card-content li { margin: 12px 0; padding: 12px 16px; background: rgba(179, 157, 219, 0.05); border-radius: 12px; transition: all 0.3s ease; border-left: 3px solid var(--primary-lavender); } .card-content li:hover { background: rgba(179, 157, 219, 0.1); transform: translateX(8px); box-shadow: 0 4px 12px rgba(179, 157, 219, 0.1); } .card-content a { text-decoration: none; color: var(--text-dark); font-weight: 500; display: block; transition: color 0.2s ease; } .card-content a:hover { color: var(--primary-lavender-dark); } /* 视频系列 - 更温暖的设计 */ .video-series { background: var(--gradient-card); border-radius: 20px; box-shadow: 0 6px 25px rgba(179, 157, 219, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8); padding: 35px; margin: 50px 20px; border-left: 4px solid var(--accent-coral); } .video-item { background: white; padding: 25px; margin: 20px 0; border-radius: 16px; box-shadow: 0 4px 15px rgba(179, 157, 219, 0.06); transition: all 0.3s ease; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.8); } .video-item::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gradient-accent); opacity: 0.6; } .video-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(179, 157, 219, 0.12); } .video-title { font-size: 1.15em; font-weight: 600; color: var(--text-dark); margin-bottom: 15px; } .video-links { margin: 8px 0; } .video-links a { color: var(--primary-lavender-dark); text-decoration: none; font-weight: 500; transition: all 0.2s ease; } .video-links a:hover { color: var(--accent-coral); text-decoration: underline; } /* 内容网格 */ .content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 50px 20px; } .content-column { background: var(--gradient-card); border-radius: 20px; box-shadow: 0 6px 25px rgba(179, 157, 219, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8); padding: 28px; border: 1px solid rgba(255, 255, 255, 0.8); } .column-title { font-size: 1.2em; font-weight: 600; color: var(--text-dark); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-lavender-light); text-align: center; } .update-item { display: flex; align-items: flex-start; margin: 16px 0; padding: 16px; background: white; border-radius: 14px; box-shadow: 0 3px 12px rgba(179, 157, 219, 0.06); transition: all 0.3s ease; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.8); } .update-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(179, 157, 219, 0.03) 0%, transparent 50%); opacity: 0; transition: opacity 0.3s ease; } .update-item:hover::before { opacity: 1; } .update-item:hover { transform: translateX(8px); box-shadow: 0 6px 20px rgba(179, 157, 219, 0.1); } .update-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.75em; font-weight: 600; margin-right: 15px; margin-top: 2px; color: white; text-transform: uppercase; letter-spacing: 0.5px; } .update-badge.new { background: var(--accent-mint); } .update-badge.updated { background: var(--accent-sky); } .update-content { flex: 1; } .update-content a { text-decoration: none; color: var(--text-dark); font-weight: 500; display: block; margin-bottom: 6px; transition: color 0.2s ease; } .update-content a:hover { color: var(--primary-lavender-dark); } .update-meta { font-size: 0.85em; color: var(--text-medium); } /* 编辑任务 */ .editing-tasks { margin: 50px 20px; } .task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 28px 0; } .task-category { background: var(--gradient-card); border-radius: 20px; box-shadow: 0 6px 25px rgba(179, 157, 219, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8); padding: 28px; border: 1px solid rgba(255, 255, 255, 0.8); } .task-title { font-size: 1.15em; font-weight: 600; color: var(--text-dark); margin-bottom: 20px; text-align: center; } .task-item { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; padding: 14px; background: white; border-radius: 12px; box-shadow: 0 3px 12px rgba(179, 157, 219, 0.06); transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.8); } .task-item:hover { transform: translateX(5px); box-shadow: 0 5px 18px rgba(179, 157, 219, 0.1); } .task-item a { text-decoration: none; color: var(--text-dark); font-weight: 500; flex: 1; transition: color 0.2s ease; } .task-item a:hover { color: var(--primary-lavender-dark); } .task-priority { padding: 4px 10px; border-radius: 15px; font-size: 0.7em; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 0.5px; } .task-priority.high { background: var(--accent-coral); } .task-priority.medium { background: var(--accent-sky); } .task-actions { text-align: center; margin-top: 32px; } .task-actions a { display: inline-block; background: var(--gradient-main); color: white; padding: 12px 28px; margin: 0 12px; border-radius: 25px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(179, 157, 219, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); } .task-actions a:hover { background: var(--gradient-accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(179, 157, 219, 0.3); } /* 重要提示 - 更温和的警告样式 */ .important-notice { background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%); border: 1px solid #ffd54f; border-radius: 20px; padding: 32px; margin: 50px 20px; box-shadow: 0 6px 25px rgba(255, 213, 79, 0.1); position: relative; overflow: hidden; } .important-notice::before { content: '💡'; position: absolute; top: 25px; right: 25px; font-size: 2.2em; opacity: 0.2; } .notice-title { font-size: 1.2em; font-weight: 600; color: #ff8f00; margin-bottom: 16px; } .notice-content { color: #ff8f00; line-height: 1.6; margin-bottom: 18px; opacity: 0.9; } .crisis-hotline { background: linear-gradient(135deg, #ff8f00 0%, #f57c00 100%); color: white; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-align: center; box-shadow: 0 2px 8px rgba(255, 143, 0, 0.3); } /* 页脚 */ .section-footer { margin-top: 60px; padding-top: 35px; border-top: 2px solid rgba(179, 157, 219, 0.1); text-align: center; background: var(--gradient-card); padding: 35px 20px; margin: 50px 0 0 0; } .footer-links { margin-bottom: 22px; } .footer-links a { color: var(--primary-lavender-dark); text-decoration: none; margin: 0 18px; font-weight: 500; transition: all 0.2s ease; } .footer-links a:hover { color: var(--accent-coral); text-decoration: underline; } .footer-credits { color: var(--text-medium); font-size: 0.9em; opacity: 0.8; } /* 响应式设计 */ @media (max-width: 768px) { .stats-bar { gap: 20px; } .stat-item { min-width: 110px; padding: 20px 15px; } .nav-grid { grid-template-columns: 1fr; padding: 0 15px; } .content-grid { grid-template-columns: 1fr; margin: 40px 15px; } .task-list { grid-template-columns: 1fr; } .task-actions a { display: block; margin: 12px auto; max-width: 220px; } .video-series { margin: 40px 15px; padding: 25px; } .editing-tasks { margin: 40px 15px; } .important-notice { margin: 40px 15px; padding: 25px; } h1 { font-size: 2.2em; margin: 35px 0 20px 0; } h2 { font-size: 1.15em; margin: 0 0 35px 0; } } /* 柔和的动画效果 */ @keyframes gentleFadeIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .nav-card, .video-item, .content-column, .task-category, .important-notice, .stat-item { animation: gentleFadeIn 0.6s ease-out; } .nav-card:nth-child(1) { animation-delay: 0.1s; } .nav-card:nth-child(2) { animation-delay: 0.2s; } .nav-card:nth-child(3) { animation-delay: 0.3s; } .nav-card:nth-child(4) { animation-delay: 0.4s; } /* 添加一些微妙的纹理效果 */ .wiki-content::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 15% 50%, rgba(179, 157, 219, 0.03) 0%, transparent 50%), radial-gradient(circle at 85% 30%, rgba(129, 212, 250, 0.03) 0%, transparent 50%); pointer-events: none; z-index: 0; }
法医学css
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #000000; color: #ffffff; line-height: 1.6; margin: 0; padding: 0; } .wiki-content { background-color: #000000; color: #ffffff; max-width: 1200px; margin: 0 auto; padding: 20px; } /* 标题样式 */ h1 { font-size: 2.8em; text-align: center; margin-top: 20px; text-transform: uppercase; letter-spacing: 3px; color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); border-bottom: 2px solid #333333; padding-bottom: 15px; } h2 { font-size: 2.2em; margin-top: 40px; color: #ffffff; border-bottom: 1px solid #333333; padding-bottom: 10px; } h3 { font-size: 1.8em; margin-top: 35px; color: #ffffff; border-left: 4px solid #ffffff; padding-left: 15px; } h4 { font-size: 1.4em; margin-top: 25px; color: #ffffff; } /* 描述区域 */ .forensic-description { background-color: #111111; padding: 25px; border-radius: 8px; margin: 25px 0; border-left: 4px solid #ffffff; line-height: 1.7; box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); } /* 统计区域 */ .forensic-stats { display: flex; justify-content: center; gap: 30px; margin: 40px 0; flex-wrap: wrap; } .stat-item { text-align: center; background-color: #111111; padding: 25px; border-radius: 8px; min-width: 140px; box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); transition: all 0.3s ease; border: 1px solid #333333; } .stat-item:hover { transform: translateY(-8px); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2); border-color: #ffffff; } .stat-number { font-size: 2.5em; font-weight: bold; color: #ffffff; margin-bottom: 8px; } .stat-label { color: #cccccc; font-size: 0.95em; font-weight: 500; } /* 分类网格 */ .categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 40px 0; } .category-card { background-color: #111111; padding: 25px; border-radius: 8px; border: 1px solid #333333; transition: all 0.4s ease; position: relative; overflow: hidden; } .category-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #ffffff, #666666); } .category-card:hover { border-color: #ffffff; box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15); transform: translateY(-5px); } .category-card h4 { margin-top: 0; color: #ffffff; border-bottom: 1px solid #333333; padding-bottom: 12px; margin-bottom: 15px; } .category-card ul { list-style: none; padding: 0; margin: 0; } .category-card li { margin: 12px 0; padding: 8px 0; border-bottom: 1px solid #222222; } .category-card a { color: #cccccc; text-decoration: none; transition: all 0.3s ease; display: block; padding: 5px 0; } .category-card a:hover { color: #ffffff; padding-left: 8px; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); } /* 特色案例 */ .featured-cases { display: flex; flex-direction: column; gap: 25px; margin: 40px 0; } .case-card { background-color: #111111; padding: 25px; border-radius: 8px; border-left: 4px solid #ffffff; transition: all 0.3s ease; position: relative; overflow: hidden; } .case-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); transition: left 0.5s; } .case-card:hover::before { left: 100%; } .case-card:hover { background-color: #1a1a1a; transform: translateX(8px); box-shadow: 0 6px 18px rgba(255, 255, 255, 0.1); } .case-title a { color: #ffffff; text-decoration: none; font-size: 1.3em; font-weight: bold; transition: all 0.3s ease; } .case-title a:hover { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); } .case-excerpt { color: #aaaaaa; margin-top: 12px; line-height: 1.6; font-size: 0.95em; } /* 资源列表 */ .resources { background-color: #111111; padding: 25px; border-radius: 8px; margin: 40px 0; border: 1px solid #333333; } .resources ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; } .resources li { margin: 8px 0; padding: 10px; background-color: #000000; border-radius: 5px; transition: all 0.3s ease; } .resources li:hover { background-color: #1a1a1a; transform: translateX(5px); } .resources a { color: #cccccc; text-decoration: none; display: block; transition: all 0.3s ease; } .resources a:hover { color: #ffffff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); } /* 页脚 */ .forensic-footer { margin-top: 60px; padding-top: 25px; border-top: 2px solid #333333; text-align: center; } .footer-links a { color: #cccccc; text-decoration: none; margin: 0 20px; font-weight: 500; transition: all 0.3s ease; font-size: 1.1em; } .footer-links a:hover { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); } /* 侧边栏样式 */ .sidebar-section { background-color: #111111; padding: 20px; margin-bottom: 25px; border-radius: 8px; border: 1px solid #333333; transition: all 0.3s ease; } .sidebar-section:hover { border-color: #ffffff; box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); } .sidebar-section h3 { margin-top: 0; color: #ffffff; border-bottom: 1px solid #333333; padding-bottom: 12px; font-size: 1.3em; } .sidebar-section ul { list-style: none; padding: 0; margin: 15px 0 0 0; } .sidebar-section li { margin: 12px 0; padding: 8px 0; border-bottom: 1px solid #222222; } .sidebar-section a { color: #cccccc; text-decoration: none; transition: all 0.3s ease; display: block; padding: 5px 0; } .sidebar-section a:hover { color: #ffffff; padding-left: 8px; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); } /* 搜索框 */ .sidebar-section input[type="text"] { width: 100%; padding: 12px; background-color: #000000; border: 1px solid #333333; color: #ffffff; border-radius: 5px; transition: all 0.3s ease; font-size: 1em; } .sidebar-section input[type="text"]:focus { outline: none; border-color: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.3); } /* 响应式设计 */ @media (max-width: 768px) { .wiki-content { padding: 15px; } h1 { font-size: 2.2em; } h2 { font-size: 1.8em; } .forensic-stats { flex-direction: column; align-items: center; gap: 20px; } .stat-item { min-width: 200px; } .categories-grid { grid-template-columns: 1fr; } .resources ul { grid-template-columns: 1fr; } .footer-links a { display: block; margin: 10px 0; } }