| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- /* 共享样式文件 */
- 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;
- }
- }
|