/* 基础样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; } a { color: #0066cc; text-decoration: none; transition: color 0.3s; } a:hover { color: #004499; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* 导航 */ header { background: #fff; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } nav { display: flex; flex-wrap: nowrap; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; } .logo { font-size: 24px; font-weight: bold; color: #333; margin-right: auto; white-space: nowrap; } .nav-links { display: flex; flex-wrap: nowrap; gap: 20px; list-style: none; } .nav-links a { color: #666; font-weight: 500; white-space: nowrap; } /* 面包屑 */ .breadcrumb { padding: 15px 0; font-size: 14px; color: #666; } .breadcrumb a { color: #0066cc; } .breadcrumb span { margin: 0 5px; } /* 标题 */ h1 { font-size: 32px; margin: 20px 0; color: #222; } h2 { font-size: 24px; margin: 20px 0 15px; color: #333; } h3 { font-size: 20px; margin: 15px 0 10px; color: #444; } /* 区块 */ section { background: #fff; padding: 30px; margin: 20px 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } /* 介绍文本 */ .intro { font-size: 16px; line-height: 1.8; color: #555; margin: 20px 0; } /* 卡片网格 */ .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; } .card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px; transition: transform 0.3s, box-shadow 0.3s; } .card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .card-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; color: #222; } .card-meta { font-size: 14px; color: #888; margin: 5px 0; } .card-desc { font-size: 14px; color: #666; margin: 10px 0; line-height: 1.6; } .card-link { display: inline-block; margin-top: 10px; color: #0066cc; font-weight: 500; } /* 详情页 */ .detail-header { margin: 30px 0; } .detail-meta { display: flex; flex-wrap: wrap; gap: 15px; margin: 15px 0; font-size: 14px; color: #666; } .detail-tag { background: #e8f4f8; padding: 5px 12px; border-radius: 4px; font-size: 13px; } .detail-section { margin: 30px 0; } .detail-section h2 { border-left: 4px solid #0066cc; padding-left: 15px; } .detail-content { font-size: 16px; line-height: 1.8; color: #444; margin: 15px 0; } /* 列表页特殊样式 */ .list-header { margin: 20px 0; padding: 20px; background: #f9f9f9; border-radius: 6px; } .list-notice { background: #fff3cd; border: 1px solid #ffc107; padding: 15px; border-radius: 6px; margin: 20px 0; } .list-notice p { margin: 10px 0; } .list-notice a { color: #856404; text-decoration: underline; } /* 分组 */ .group { margin: 30px 0; } .group-title { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #0066cc; } /* 响应式 */ @media (max-width: 768px) { nav { padding: 10px; } .logo { font-size: 18px; margin-right: 10px; } .nav-links { gap: 0; flex: 1; justify-content: space-between; } .nav-links li { flex: 1 1 0; min-width: 0; text-align: center; } .nav-links a { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; } h1 { font-size: 24px; } h2 { font-size: 20px; } .card-grid { grid-template-columns: 1fr; gap: 15px; } .container { padding: 10px; } section { padding: 20px 15px; } } /* 页脚 */ footer { background: #333; color: #fff; padding: 20px; text-align: center; margin-top: 40px; } footer p { margin: 5px 0; font-size: 14px; }