/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 背景装饰 */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    filter: blur(40px);
}

.bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.bg-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
}

.bg-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.05) 100%);
}

/* 导航栏 */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-brand i {
    color: #e74c3c;
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #7f8c8d;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-link.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.15);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
}

/* 主内容 */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* 英雄区域 */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight {
    color: #3498db;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(52, 152, 219, 0.2);
    z-index: -1;
}

.hero-text p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat i {
    font-size: 1.8rem;
    color: #3498db;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.hero-img {
    display: flex;
    justify-content: center;
}

.safety-shield {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 状态卡片 */
.status-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.status-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.5rem;
    color: #3498db;
}

.card-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
}

.card-body {
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.card-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 徽章 */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.badge-warning {
    background: rgba(243, 156, 18, 0.15);
    color: #d68910;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-secondary {
    background: #e74c3c;
    color: #fff;
    border: 2px solid #141414;
}

.btn-info {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* 快速操作 */
.actions-section {
    margin-bottom: 40px;
}

.actions-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.action-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.action-btn small {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 使用说明 */
.instructions h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.step {
    display: flex;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.step-content p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand {
    text-align: left;
}

.footer-brand i {
    color: #e74c3c;
    margin-right: 8px;
    font-size: 1.5rem;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    font-size: 0.9rem;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.menu-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
}

.menu-links {
    padding: 20px 0;
    flex-grow: 1;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* 签到页面样式 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 签到卡片 */
.signin-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.signin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.date-display {
    text-align: center;
}

.date-day {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
}

.date-month {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.signin-status {
    text-align: right;
}

.signin-status h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    font-weight: 600;
}

.signin-body {
    text-align: center;
}

.signin-info {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.signin-info i {
    margin-right: 8px;
}

.signin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.signin-note {
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signin-note i {
    color: #f39c12;
}

/* 日历 */
.calendar-section {
    margin-bottom: 30px;
}

.calendar-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: none;
    border: none;
    color: #3498db;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(52, 152, 219, 0.1);
}

.calendar-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 15px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: rgba(52, 152, 219, 0.1);
}

.calendar-day.signed {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    font-weight: 600;
}

.calendar-day.signed::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
}

.calendar-day.today {
    background: rgba(52, 152, 219, 0.2);
    font-weight: 700;
}

/* 历史记录 */
.history-section {
    margin-bottom: 30px;
}

.history-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.history-item:hover {
    background: rgba(52, 152, 219, 0.05);
}

.history-date {
    min-width: 100px;
}

.history-day {
    font-weight: 600;
    color: #2c3e50;
}

.history-time {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.history-info {
    flex-grow: 1;
}

.history-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.history-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.history-status {
    color: #2ecc71;
    font-size: 1.2rem;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.history-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

/* 提醒设置 */
.reminder-section {
    margin-bottom: 30px;
}

.reminder-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reminder-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.reminder-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.reminder-option:last-child {
    border-bottom: none;
}

.reminder-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.reminder-option select {
    padding: 8px 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

/* 设置页面样式 */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    color: #7f8c8d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.settings-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.settings-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

.form-help {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 设置项 */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.time-select {
    padding: 8px 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

/* 安全设置 */
.security-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
}

.security-info {
    flex-grow: 1;
}

.security-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.privacy-settings {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.privacy-settings h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-item {
    margin-bottom: 10px;
}

.privacy-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 20px;
}

.modal-time {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 10px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* 消息提示 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
}

.toast.active {
    display: flex;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .safety-shield {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
/* 底部导航栏 (TabBar) */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 10px;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #7f8c8d;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.tabbar-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.tabbar-item span {
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tabbar-item:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.tabbar-item.active {
    color: #3498db;
}

.tabbar-item.active i {
    transform: translateY(-2px);
}

.tabbar-item.active span {
    font-weight: 600;
}

/* 为移动端优化TabBar */
@media (max-width: 768px) {
    .tabbar {
        padding: 10px 0;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .tabbar-item {
        padding: 10px 5px;
    }
    
    .tabbar-item i {
        font-size: 1.2rem;
    }
    
    .tabbar-item span {
        font-size: 0.75rem;
    }
    
    .tabbar-item.active {
        position: relative;
    }
    
    .tabbar-item.active::after {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: #3498db;
        border-radius: 3px;
    }
}

/* 为桌面端隐藏TabBar（在大屏幕上显示顶部导航栏即可） */
@media (min-width: 769px) {
    .tabbar {
        display: none;
    }
}

/* 为有TabBar的页面调整底部间距 */
body {
    padding-bottom: 70px; /* 为TabBar留出空间 */
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0; /* 桌面端不需要底部间距 */
    }
}

/* 调整主内容区域，避免被TabBar遮挡 */
.main-content {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .main-content {
        margin-bottom: 80px; /* 为移动端TabBar留出更多空间 */
    }
}

/* 调整footer位置 */
.footer {
    position: relative;
    z-index: 1;
}

/* 确保模态框在TabBar之上 */
.modal {
    z-index: 1000;
}

/* 确保消息提示在TabBar之上 */
.toast {
    z-index: 1001;
    bottom: 80px; /* 在TabBar上方显示 */
}

/* 移动端菜单在TabBar之上 */
.mobile-menu {
    z-index: 1002;
}

/* TabBar动画效果 */
@keyframes tabbarBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.tabbar-item.active i {
    animation: tabbarBounce 0.5s ease;
}

/* TabBar背景效果 */
.tabbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .tabbar {
        background: rgba(30, 30, 30, 0.95);
        border-top: 1px solid #444;
    }
    
    .tabbar-item {
        color: #aaa;
    }
    
    .tabbar-item:hover {
        color: #3498db;
        background: rgba(52, 152, 219, 0.1);
    }
    
    .tabbar-item.active {
        color: #3498db;
    }
}