/** * channel-style.css * 频道基础样式 + 过渡动画变量 */ /* 引入过渡动画 */ @import url('channel-transition.css'); :root { --primary-color: #4a90e2; --secondary-color: #f5f5f5; --text-color: #333; --border-radius: 8px; --transition-duration: 0.3s; --transition-timing: ease; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; padding: 20px; background: #f0f2f5; color: var(--text-color); } /* 频道头部 */ .channel-header { background: white; padding: 15px 20px; border-radius: var(--border-radius); box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 20px; } .channel-header h1 { margin: 0; font-size: 1.8rem; color: var(--primary-color); } /* 导航菜单 */ .channel-nav { background: white; padding: 10px 20px; border-radius: var(--border-radius); margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .channel-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; } .channel-nav a { text-decoration: none; color: var(--text-color); padding: 8px 16px; border-radius: 20px; transition: background 0.2s; } .channel-nav a:hover { background: var(--secondary-color); } .channel-nav a.active { background: var(--primary-color); color: white; } /* 内容区域 */ .channel-content { background: white; padding: 20px; border-radius: var(--border-radius); box-shadow: 0 2px 8px rgba(0,0,0,0.1); min-height: 300px; } /* 已访问模块标记 */ .module-link.visited { position: relative; } .module-link.visited::after { content: "✓"; position: absolute; top: -5px; right: -5px; background: var(--primary-color); color: white; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; } /* 动画模式切换按钮 */ .animation-toggle { margin-left: auto; display: flex; gap: 10px; } .animation-toggle button { padding: 5px 15px; border: 1px solid #ddd; background: white; border-radius: 20px; cursor: pointer; transition: all 0.2s; } .animation-toggle button.active { background: var(--primary-color); color: white; border-color: var(--primary-color); } /* 调试面板样式(后续使用) */ .debug-panel { margin-top: 30px; border-top: 2px dashed #ccc; padding-top: 20px; }