/* 主题颜色变量 */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #1abc9c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --tech-gradient: linear-gradient(135deg, #2ecc71, #1abc9c);
}

/* 基础样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 20px;
}

/* 容器样式 */
.tech-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
    border-top: 5px solid var(--primary-color);
}

/* 标题样式 */
.tech-title {
    background: var(--tech-gradient);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.tech-title:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 标签页样式 */
.nav-tabs .nav-link {
    color: var(--dark-color);
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    padding: 10px 20px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

/* 表单控件样式 */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
}

/* 按钮样式 */
.btn-tech {
    background: var(--tech-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-outline-tech {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-tech:hover {
    background: var(--primary-color);
    color: white;
}

/* 学生卡片样式 */
.student-card {
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
    border-left: 5px solid var(--primary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.student-card:nth-child(odd) {
    background: #f8f9fa;
}

.student-card:nth-child(even) {
    background: white;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.student-card:after {
    content: "点击选择接送信息";
    position: absolute;
    bottom: -30px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 5px 0 0 0;
    font-size: 10px;
    opacity: 0;
    transition: all 0.3s;
}

.student-card:hover:after {
    bottom: 0;
    opacity: 1;
}

.student-name {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 18px;
}

.student-class {
    color: #7f8c8d;
    font-size: 14px;
}

.student-status {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* 消息容器样式 */
.message-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.message-item {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    font-family: monospace;
}

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

/* 配置切换按钮样式 */
.config-toggle {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: bold;
}

/* 通知模态框样式 */
.notification-modal .modal-content {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #f6f8fa, #e9ecef);
}

.notification-modal .modal-header {
    background: var(--tech-gradient);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.notification-modal .modal-body {
    padding: 20px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 18px;
    color: var(--dark-color);
}

.notification-content {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* 连接状态指示器样式 */
.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1000;
}

.connected {
    background-color: var(--primary-color);
    color: white;
}

.disconnected {
    background-color: #e74c3c;
    color: white;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 彩色文字效果 */
.rainbow-text {
    background-image: linear-gradient(to right, #2ecc71, #3498db, #9b59b6, #f1c40f, #e74c3c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-animation 6s ease infinite;
    background-size: 400% 100%;
}

@keyframes rainbow-animation {
    0%, 100% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-title {
        font-size: 20px;
    }
    
    .student-card {
        margin-bottom: 10px;
    }
}