/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background-color: #1e88e5;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: normal;
}

/* 主容器 */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 用户面板 - 统一登录前后样式 */
.user-panel {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    border-left: 4px solid #1e88e5;
}

.user-panel h3 {
    margin-top: 0;
    color: #1e88e5;
    font-size: 1.3em;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1e88e5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

/* 系统功能区域 */
.section {
    margin: 30px 0;
}

.section h2 {
    color: #1e88e5;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    font-size: 1.5em;
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list a {
    color: #1e88e5;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.feature-list a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

.footer a {
    color: #1e88e5;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
/* 管理员面板专用样式 */
.admin-panel {
    display: flex;
    min-height: calc(100vh - 100px);
}

.admin-sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
}

.admin-sidebar h2 {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #34495e;
    margin: 0 15px 20px;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar li a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar li a:hover, 
.admin-sidebar li a.active {
    background-color: #34495e;
    color: #3498db;
}

.admin-content {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
}

.admin-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, 
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    font-size: 13px;
}

.edit-btn {
    background-color: #3498db;
    color: white;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.search-bar {
    margin-bottom: 20px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}
/* 表单样式 */
.admin-form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.checkbox-group {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.checkbox-group div {
    margin: 8px 0;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cancel-btn {
    background: #f44336;
    margin-right: 10px;
}

.action-btn {
    padding: 4px 8px;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 3px;
}

.edit-btn {
    background: #2196F3;
    color: white;
}

.delete-btn {
    background: #f44336;
    color: white;
}
/* 用户管理页面特定样式 */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-right: 5px;
    font-size: 12px;
}

.status-active {
    color: #4CAF50;
    font-weight: bold;
}

.status-inactive {
    color: #f44336;
    font-weight: bold;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.action-btn {
    padding: 4px 8px;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.edit-btn {
    background: #2196F3;
    color: white;
}

.activate-btn {
    background: #4CAF50;
    color: white;
}

.deactivate-btn {
    background: #ff9800;
    color: white;
}

.delete-btn {
    background: #f44336;
    color: white;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input[type="text"] {
    padding: 8px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-bar button {
    padding: 8px 16px;
    margin-left: 5px;
}
/* Order status styles */
.status-pending {
    color: #ff9800;
    background: #fff3e0;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-completed {
    color: #4caf50;
    background: #e8f5e9;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Table action buttons */
.action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    margin-right: 5px;
}

.edit-btn {
    color: #2196f3;
    border: 1px solid #2196f3;
}

.edit-btn:hover {
    background: #e3f2fd;
}
/* 激活管理页面特定样式 */
.activate-btn {
    background: #4CAF50;
    color: white;
}

.activate-btn:hover {
    background: #45a049;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.alert-danger {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

.alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}
.details-row {
    display: none;
}

.details-row.show {
    display: table-row;
}

.order-details {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

.keyid-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.keyid-table th, .keyid-table td {
    padding: 8px;
    border: 1px solid #ddd;
}
.wechat-login-btn {
    display: inline-flex;
    align-items: center;
    background-color: #07C160;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

.wechat-login-btn img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.info {
    text-align: left;
    width: 100%;
}

.info p {
    margin: 10px 0;
}

.info strong {
    display: inline-block;
    width: 80px;
}