/* 全局样式 */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; line-height: 1.6; color: #333; background-color: #f5f7fa; max-width: 800px; margin: 0 auto; padding: 20px; } h1 { color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 10px; margin-bottom: 20px; } h2 { color: #34495e; margin: 25px 0 15px 0; } h3 { color: #7f8c8d; margin: 20px 0 10px 0; } p { margin-bottom: 15px; text-align: justify; } ul { margin-bottom: 15px; padding-left: 25px; } li { margin-bottom: 5px; } /* 示例文件容器 */ .example-file { background-color: #ffffff; border: 1px solid #e1e8ed; border-radius: 8px; padding: 20px; margin: 20px 0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } /* 代码块 */ code { background-color: #ecf0f1; padding: 2px 5px; border-radius: 3px; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 0.9em; } /* 链接样式 */ a { color: #3498db; text-decoration: none; transition: color 0.3s ease; } a:hover { color: #2980b9; text-decoration: underline; } /* 返回链接 */ .back-link { display: inline-block; margin-top: 20px; padding: 8px 15px; background-color: #3498db; color: white; border-radius: 5px; transition: background-color 0.3s ease; } .back-link:hover { background-color: #2980b9; text-decoration: none; }