/* 移动端样式 - 用于移动设备的响应式设计和适配 */

/* 基础重置和移动端优化 - 统一盒模型计算方式 */
* {
    box-sizing: border-box;
}

/* 页面基础样式 - 针对移动设备优化的基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

/* 容器样式 - 移动端专用容器，宽度100% */
.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
}

/* 头部标题样式 - 移动端标题样式 */
h1 {
    color: #3d1488;
    text-align: center;
    margin: 15px 0;
    font-size: 24px;
    font-weight: 600;
}

/* 表单组样式 - 移动端表单分组样式 */
.form-group {
    margin-bottom: 15px;
}

/* 标签样式 - 移动端标签样式 */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 15px;
}

/* 输入控件样式 - 移动端输入控件样式 */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fff;
}

/* 输入控件焦点样式 - 输入控件获得焦点时的样式 */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 按钮样式 - 移动端按钮样式 */
button, .button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.3s;
}

/* 按钮悬停样式 - 按钮悬停时的样式 */
button:hover, .button:hover {
    background-color: #45a049;
}

/* 返回链接样式 - 移动端返回链接样式 */
.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #4CAF50;
    text-decoration: none;
    font-size: 15px;
    padding: 10px;
}

/* 导航链接容器样式 - 移动端垂直排列导航链接 */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* 导航链接样式 - 移动端导航链接样式 */
.nav-link {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

/* 导航链接悬停样式 - 移动端导航链接悬停样式 */
.nav-link:hover {
    background-color: #45a049;
}

/* 表格样式 - 移动端表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

/* 表格单元格样式 - 移动端表格单元格样式 */
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* 表格头部样式 - 移动端表格头部样式 */
th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

/* 刷新按钮样式 - 用于刷新操作的按钮 */
.refresh-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
    width: auto;
    display: inline-block;
}

/* 教师卡片容器样式 - 移动端教师卡片网格布局 */
.teacher-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* 教师卡片样式 - 移动端教师信息卡片样式 */
.teacher-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #eee;
}

/* 教师卡片悬停样式 - 教师卡片悬停时的样式 */
.teacher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 卡片头部样式 - 教师卡片头部样式 */
.card-header {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: #3d1488;
}

/* 卡片信息样式 - 教师卡片信息样式 */
.card-info {
    margin-bottom: 4px;
    font-size: 14px;
    color: #666;
}

/* 区块标题样式 - 移动端区块标题样式 */
.section-title {
    color: #3d1488;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

/* 用户信息区域样式 - 移动端用户信息区域样式 */
.user-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* 用户信息段落样式 */
.user-info p {
    margin: 5px 0;
    font-size: 15px;
}

/* 加载和未授权提示样式 - 页面加载和未授权提示样式 */
#loading, #unauthorized {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
}

#unauthorized {
    color: #e53935;
}

#unauthorized h2 {
    margin-top: 0;
    color: #e53935;
}

/* 表单行样式 - 用于并排显示多个表单元素 */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* 表单行中的表单组样式 */
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 页脚样式 - 移动端备案信息展示 */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 10px 12px;
    text-align: center;
    font-size: 10px;
    color: #6c757d;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
    
/* 备案信息项样式 - 移动端 */
.record-item-icp,
.record-item-police {
    margin: 0;
    padding: 2px 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 10px;
    white-space: nowrap;
}
    
/* 公安备案图标样式 - 移动端 */
.police-badge-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 3px;
    border-radius: 50%;
    box-shadow: none;
}
    
.record-item-icp:hover,
.record-item-police:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
}
/* 平板设备和平板大小横屏响应式适配 */
@media screen and (max-width: 820px) {
    .teacher-cards {
        gap: 12px;
    }
    
    .teacher-card {
        padding: 12px;
    }
    
    th, td {
        padding: 10px;
    }
}