/* 共享样式文件 */ body { font-family: 'Segoe UI', Arial, sans-serif; margin: 0; padding: 0; background-color: #f8f9fa; color: #333; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } header { background-color: #4a76a8; color: white; padding: 15px 0 0 0; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); } h1 { text-align: center; margin: 0; padding: 10px; font-weight: 500; } textarea { width: 100%; height: 150px; margin: 10px 0; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-family: monospace; font-size: 14px; resize: vertical; background-color: #fff; } table { width: 100%; margin: 20px 0; border-collapse: collapse; text-align: center; background-color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-radius: 4px; overflow: hidden; } th, td { border: 1px solid #e0e0e0; padding: 12px 8px; } th { background-color: #4a76a8; color: white; font-weight: 500; } tr:nth-child(even) { background-color: #f5f5f5; } .formula { margin: 20px 0; font-size: 16px; line-height: 1.6; text-align: left; background-color: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .highlight { background-color: #f0f4f8; border: 1px solid #d0d9e6; border-radius: 4px; padding: 15px; font-family: monospace; display: block; text-align: center; margin: 15px 0; } .tableInput { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; text-align: center; box-sizing: border-box; } button { background-color: #4a76a8; color: white; border: none; padding: 10px 15px; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } button:hover { background-color: #3a5a80; } section { margin-bottom: 30px; } .section-title { border-bottom: 2px solid #4a76a8; padding-bottom: 5px; margin-bottom: 15px; font-weight: 500; color: #4a76a8; } .params-table { width: 60%; margin: 20px auto; } /* 标签式导航菜单 */ .nav-tabs { display: flex; justify-content: center; padding: 0; margin: 0; list-style: none; background-color: #3a5a80; border-bottom: 3px solid #4a76a8; } .nav-tabs li { margin: 0; } .nav-tabs a { display: block; color: white; text-decoration: none; padding: 12px 20px; transition: all 0.3s ease; position: relative; font-weight: 500; } .nav-tabs a:hover { background-color: rgba(255, 255, 255, 0.1); } .nav-tabs a.active { background-color: #4a76a8; color: white; } .nav-tabs a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: white; } /* 数学公式样式 */ .math-formula { font-family: 'Times New Roman', Times, serif; font-size: 18px; } .math-sum { position: relative; display: inline-block; vertical-align: middle; text-align: center; padding: 0 5px; } .math-sum::before { content: '\2211'; font-size: 24px; } .math-sum .math-limits { display: block; font-size: 12px; line-height: 12px; position: relative; } .math-sum .math-limits .math-from { position: absolute; right: 0; bottom: -10px; } .math-sum .math-limits .math-to { position: absolute; right: 0; top: -10px; } /* 响应式设计 */ @media (max-width: 768px) { .container { padding: 10px; } .params-table { width: 100%; } .formula { padding: 15px; } .nav-tabs { flex-wrap: wrap; } .nav-tabs a { padding: 10px 15px; font-size: 14px; } h1 { font-size: 24px; } }