* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    min-height: 100vh;
}
.logo {
    text-align: center;
    padding: 24px 0;
}
.logo img {
    height: 48px;
}
.building-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 24px;
}
.header {
    text-align: center;
    margin-bottom: 30px;
}
.teeth-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 0;
}
.teeth-row img {
    max-width: 45%;
    height: auto;
    margin: 8px;
}
h1, h2 {
    color: #0071c5;
    margin-bottom: 10px;
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.query-form {
    margin-bottom: 30px;
}

.query-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    background-color: #0071c5;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-goback {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    margin-left: 15px;
}
.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #0071c5;
}

.button-group {
    margin-bottom: 30px;
}

.material-desc {
    margin-bottom: 30px;
    line-height: 1.6;
}

.detail-table {
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.label {
    font-weight: bold;
    color: #666;
}

.value {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.error, .success {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center; /* 新增：提示框文字居中，适配移动端 */
}

.error {
    background-color: #ffebee;
    color: #b71c1c;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.form-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-list {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* 新增：后台管理头像入口样式（移动端友好） */
.admin-entrance {
    text-align: center;
    margin-top: 40px;
}

.admin-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #0071c5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0, 113, 197, 0.5);
}

/*----admin------*/
/* 新增Banner样式 */
.banner {
    background-color: #0071c5;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px; /* 适配container的padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.banner-app-name {
    font-size: 18px;
    font-weight: bold;
}
.banner-user {
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
}
/*---account---------------------------------------*/
        /* 新增删除按钮样式 */
        .btn-delete {
            background-color: #f44336;
            padding: 5px 5px; /* 缩小按钮内边距 */
            font-size: 14px; /* 缩小字体 */
        }
        .btn-delete:hover {
            background-color: #d32f2f;
        }
        .btn-edit {
            background-color: #ff9800;
            padding: 5px 5px; /* 缩小按钮内边距 */
            font-size: 14px; /* 缩小字体 */
            border: none;
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
        }
        .btn-edit:hover {
            background-color: #f57c00;
        }
        .delete-form {
            display: inline-block;
        }
        /* admin账户删除按钮禁用样式 */
        .btn-disabled {
            display: none;
        }

        /* 弹窗样式 */
        .modal {
            display: none; /* 默认隐藏 */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            background-color: #fff;
            padding: 25px;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        .modal-close {
            font-size: 24px;
            cursor: pointer;
            color: #666;
            background: none;
            border: none;
            padding: 0 8px;
        }
        .modal-close:hover {
            color: #0071c5;
        }
        .modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #0071c5;
            margin: 0;
        }
        .action-buttons {
            margin-bottom: 20px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        /* 禁用输入框样式 */
        .input-disabled {
            background-color: #f5f5f5;
            cursor: not-allowed;
        }
/*--denture_list----------------------------------------*/
       /* 搜索表单样式适配 */
       .search-form {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        align-items: center;
    }
    .search-form select, .search-form input, .search-form button {
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 16px;
    }
    .search-form input {
        flex: 1;
        min-width: 200px;
    }
    .search-form button {
        background-color: #0071c5;
        color: #fff;
        border: none;
        cursor: pointer;
    }
    /* 列表样式优化 */
    .denture-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }
    .denture-table th, .denture-table td {
        padding: 12px;
        border: 1px solid #ddd;
        text-align: left;
    }
    .denture-table th {
        background-color: #f9f9f9;
        font-weight: bold;
    }
    .denture-table tr:hover {
        background-color: #f5f5f5;
    }
    .no-data {
        text-align: center;
        padding: 30px;
        color: #666;
    }


/* 密码框容器：核心是相对定位，保证输入框和按钮重叠 */
.pwd-container {
    position: relative;
    width: 100%;
    margin-bottom: 100px;
}

/* 密码输入框：两个输入框完全重叠，样式统一 */
.pwd-input {
    width: 100%;
    padding: 15px 40px 15px 15px; /* 右侧留空间给按钮 */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* 移动端最小可点击字体，避免缩放 */
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff; /* 保证重叠时不透明 */
}

/* 切换按钮：适配移动端触屏，点击区域放大 */
.toggle-pwd-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px; /* 图标放大，方便触屏点击 */
    color: #666;
    width: 30px;
    height: 30px; /* 扩大点击区域，避免触屏点不到 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10; /* 保证按钮在输入框上层 */
    cursor: pointer;
}

/* 按钮hover/点击反馈，提升移动端体验 */
.toggle-pwd-btn:hover, .toggle-pwd-btn:active {
    color: #0071c5; /* 匹配你的项目主题色 */
}
  /* 新增移动端文件上传按钮样式优化 */
  .file-upload-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}
.file-upload-btn {
    display: block;
    padding: 12px;
    background: #0071c5;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}
.upload-error {
    color: #b71c1c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}
.file-name {
    font-size: 14px;
    margin-top: 8px;
    color: #666;
}