/* C骨架 - 信息密集网格布局 */ body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #1a1a1a; color: #e0e0e0; line-height: 1.6; } * { box-sizing: border-box; } a { color: #ff4444; text-decoration: none; transition: color 0.2s; } a:hover { color: #ff6666; text-decoration: underline; } /* 导航 */ nav { background: #0a0a0a; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.5); } nav ul { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; list-style: none; margin: 0; padding: 0; max-width: 1400px; margin: 0 auto; } nav li { flex: 1 1 0; min-width: 0; text-align: center; border-right: 1px solid #333; } nav li:last-child { border-right: none; } nav a { display: block; padding: 15px 10px; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.3s; } nav a:hover { background: #ff4444; text-decoration: none; } @media (max-width: 767px) { nav ul { flex-wrap: nowrap; overflow-x: hidden; } nav li { flex: 1 1 0; min-width: 0; } nav a { padding: 12px 5px; font-size: 13px; } } /* 面包屑 */ .breadcrumb { font-size: 14px; color: #999; padding: 12px 20px; background: #0f0f0f; border-bottom: 1px solid #333; } .breadcrumb a { color: #ff4444; } .breadcrumb a:hover { color: #ff6666; } /* 主内容区 */ main { max-width: 1400px; margin: 0 auto; padding: 20px; } /* 首页Hero区 */ .hero { text-align: center; padding: 40px 20px; background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%); border-radius: 8px; margin-bottom: 30px; } .hero h1 { font-size: 32px; margin: 0 0 15px 0; color: #fff; } .hero .intro { font-size: 16px; color: #ccc; margin: 10px 0; line-height: 1.8; } .hero .style-tag { font-size: 14px; color: #ff4444; margin-top: 10px; } /* 区块标题 */ section { margin-bottom: 40px; } section h2 { font-size: 24px; margin: 0 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid #ff4444; color: #fff; } /* 视频网格 - 信息密集布局 */ .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; } @media (max-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } } @media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } } /* 视频卡片 */ .video-card { background: #2a2a2a; padding: 15px; border-radius: 6px; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #333; } .video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(255, 68, 68, 0.3); } .video-card h3 { margin: 0 0 10px 0; font-size: 18px; } .video-card h3 a { color: #fff; } .video-card h3 a:hover { color: #ff4444; } .video-card .one-line { font-size: 14px; color: #aaa; margin: 8px 0; line-height: 1.5; } .video-card .excerpt { font-size: 13px; color: #888; margin: 8px 0; line-height: 1.6; } .video-card .meta { font-size: 12px; color: #666; margin-top: 10px; } .video-card .meta span { margin-right: 10px; padding: 3px 8px; background: #1a1a1a; border-radius: 3px; } /* 引导链接区 */ .guide-links { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; } .guide-btn { display: inline-block; padding: 12px 30px; background: #ff4444; color: #fff !important; border-radius: 6px; font-weight: 500; transition: background 0.3s; } .guide-btn:hover { background: #ff6666; text-decoration: none; } /* 详情页 */ article { background: #2a2a2a; padding: 30px; border-radius: 8px; } article h1 { font-size: 32px; margin: 0 0 20px 0; color: #fff; } .meta-info { margin-bottom: 15px; font-size: 14px; } .meta-info span { margin-right: 15px; padding: 4px 10px; background: #1a1a1a; border-radius: 4px; color: #aaa; } .tags { margin-bottom: 20px; font-size: 13px; color: #888; } article section { margin-bottom: 25px; } article section h2 { font-size: 20px; margin: 0 0 12px 0; color: #ff4444; border-bottom: 1px solid #444; padding-bottom: 8px; } article section p { line-height: 1.8; color: #ccc; } /* 列表页说明 */ .page-desc { font-size: 15px; color: #aaa; margin-bottom: 20px; line-height: 1.8; } .note { background: #2a2a2a; padding: 15px; border-left: 3px solid #ff4444; margin-bottom: 20px; border-radius: 4px; } .note p { margin: 5px 0; color: #ccc; } /* 页脚 */ footer { text-align: center; padding: 30px 20px; background: #0a0a0a; color: #666; margin-top: 50px; border-top: 1px solid #333; } footer p { margin: 0; font-size: 14px; } /* 返回顶部按钮 */ .back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #ff4444; color: #fff; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4); transition: background 0.3s; z-index: 999; } .back-to-top:hover { background: #ff6666; } .back-to-top.show { display: flex; }