| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /* 标签容器样式 */
- .tab-container {
- margin: 2px auto;
- background: white;
- border-radius: 0px 0px 12px 12px;
- }
- /* 标签导航样式 */
- .tab-nav {
- display: flex;
- border-bottom: 2px solid #eee;
- }
- .tab-button {
- padding: 1rem 2rem;
- border: none;
- background: none;
- cursor: pointer;
- font-size: 1.0rem;
- color: #666;
- transition: all 0.3s ease;
- position: relative;
- }
- .tab-button.active {
- color: #2196F3;
- font-weight: 600;
- }
- .tab-button.active::after {
- content: '';
- position: absolute;
- bottom: -2px;
- left: 0;
- width: 100%;
- height: 3px;
- background: #2196F3;
- }
- /* 内容区域样式 */
- .tab-content {
- display: none;
- }
- .tab-content.active {
- margin-top: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- animation: fadeIn 0.3s ease;
- }
- @keyframes fadeIn {
- from { opacity: 0; transform: translateY(10px); }
- to { opacity: 1; transform: translateY(0); }
- }
- /* 响应式设计, 如果是手机屏幕 */
- @media (max-width: 768px) {
- .tab-button {
- padding: 1rem 1rem;
- }
- }
|