TRM-coding | fa3ffdf | 2025-06-09 22:47:42 +0800 | [diff] [blame^] | 1 | /* HomePage 特定样式 */ |
| 2 | @import './SharedStyles.css'; |
| 3 | |
| 4 | /* 表格区域样式 */ |
| 5 | .emerald-table-section { |
| 6 | background: rgba(255, 255, 255, 0.95); |
| 7 | backdrop-filter: blur(20px); |
| 8 | border-radius: 25px; |
| 9 | padding: 30px; |
| 10 | margin: 30px auto; |
| 11 | box-shadow: |
| 12 | 0 20px 60px rgba(45, 80, 22, 0.12), |
| 13 | 0 8px 25px rgba(144, 238, 144, 0.08), |
| 14 | inset 0 1px 0 rgba(255, 255, 255, 0.9); |
| 15 | border: 2px solid rgba(144, 238, 144, 0.2); |
| 16 | position: relative; |
| 17 | overflow: hidden; |
| 18 | } |
| 19 | |
| 20 | .emerald-table-section::before { |
| 21 | content: ''; |
| 22 | position: absolute; |
| 23 | top: -2px; |
| 24 | left: -2px; |
| 25 | right: -2px; |
| 26 | bottom: -2px; |
| 27 | background: linear-gradient(45deg, |
| 28 | #90ee90 0%, |
| 29 | #98fb98 25%, |
| 30 | #f0fff0 50%, |
| 31 | #98fb98 75%, |
| 32 | #90ee90 100%); |
| 33 | border-radius: 27px; |
| 34 | z-index: -1; |
| 35 | animation: borderGlow 4s ease-in-out infinite; |
| 36 | } |
| 37 | |
| 38 | /* 表格样式 */ |
| 39 | .emerald-table { |
| 40 | width: 100%; |
| 41 | border-collapse: collapse; |
| 42 | font-family: 'Lora', serif; |
| 43 | background: transparent; |
| 44 | } |
| 45 | |
| 46 | .emerald-table thead { |
| 47 | background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%); |
| 48 | } |
| 49 | |
| 50 | .emerald-table th { |
| 51 | padding: 16px 20px; |
| 52 | text-align: left; |
| 53 | color: white; |
| 54 | font-weight: 600; |
| 55 | font-size: 16px; |
| 56 | letter-spacing: 1px; |
| 57 | border-bottom: 3px solid #90ee90; |
| 58 | position: relative; |
| 59 | } |
| 60 | |
| 61 | .emerald-table th:first-child { |
| 62 | border-radius: 15px 0 0 0; |
| 63 | } |
| 64 | |
| 65 | .emerald-table th:last-child { |
| 66 | border-radius: 0 15px 0 0; |
| 67 | } |
| 68 | |
| 69 | .emerald-table tbody tr { |
| 70 | transition: all 0.3s ease; |
| 71 | border-bottom: 1px solid rgba(144, 238, 144, 0.2); |
| 72 | } |
| 73 | |
| 74 | .emerald-table tbody tr:hover { |
| 75 | background: rgba(144, 238, 144, 0.1); |
| 76 | transform: translateX(5px); |
| 77 | box-shadow: 0 4px 15px rgba(144, 238, 144, 0.15); |
| 78 | } |
| 79 | |
| 80 | .emerald-table td { |
| 81 | padding: 14px 20px; |
| 82 | color: #2d5016; |
| 83 | font-size: 15px; |
| 84 | vertical-align: middle; |
| 85 | transition: all 0.3s ease; |
| 86 | } |
| 87 | |
| 88 | .emerald-table tbody tr:hover td { |
| 89 | color: #1a5c1a; |
| 90 | } |
| 91 | |
| 92 | /* 表格链接样式 */ |
| 93 | .emerald-table a { |
| 94 | color: #2d5016; |
| 95 | text-decoration: none; |
| 96 | font-weight: 500; |
| 97 | transition: all 0.3s ease; |
| 98 | padding: 4px 8px; |
| 99 | border-radius: 8px; |
| 100 | display: inline-block; |
| 101 | } |
| 102 | |
| 103 | .emerald-table a:hover { |
| 104 | color: #1a5c1a; |
| 105 | background: rgba(144, 238, 144, 0.2); |
| 106 | transform: translateY(-2px); |
| 107 | box-shadow: 0 4px 12px rgba(144, 238, 144, 0.3); |
| 108 | } |
| 109 | |
| 110 | /* 响应式表格设计 */ |
| 111 | @media (max-width: 768px) { |
| 112 | .emerald-table-section { |
| 113 | margin: 20px 10px; |
| 114 | padding: 20px 15px; |
| 115 | } |
| 116 | |
| 117 | .emerald-table { |
| 118 | font-size: 14px; |
| 119 | } |
| 120 | |
| 121 | .emerald-table th, |
| 122 | .emerald-table td { |
| 123 | padding: 12px 15px; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | @media (max-width: 480px) { |
| 128 | .emerald-table th, |
| 129 | .emerald-table td { |
| 130 | padding: 10px 12px; |
| 131 | font-size: 13px; |
| 132 | } |
| 133 | } |