/* 主容器 */
.aippt-docmee-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 管理后台头部样式 */
.aippt-admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
    margin: -20px -20px 30px -20px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.aippt-admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.aippt-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.aippt-logo {
    flex-shrink: 0;
}

.aippt-logo img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.aippt-header-text {
    flex: 1;
}

.aippt-header-text h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.aippt-header-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* 头部样式 */
.aippt-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    color: #fff;
    position: relative;
}

.aippt-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.aippt-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.aippt-balance-info,
.aippt-usage-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aippt-balance-label,
.aippt-usage-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.aippt-balance-value,
.aippt-usage-value {
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 权限不足提示 */
.aippt-no-permission {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
}

.aippt-no-permission-content h3 {
    color: #dc3545;
    margin-bottom: 16px;
    font-size: 24px;
}

.aippt-no-permission-content p {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 16px;
}

/* 导航按钮 */
.aippt-page-navigate {
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
}

.aippt-nav-item {
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.aippt-nav-item:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.aippt-nav-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* iframe容器 */
#aippt-container {
    width: 100%;
    height: 600px;
    border: none;
    background: #fff;
}

/* 错误提示 */
.aippt-error {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
}

.aippt-error h3 {
    color: #dc3545;
    margin-bottom: 16px;
}

.aippt-error p {
    color: #6c757d;
}

/* 后台管理界面样式 */
.aippt-admin-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aippt-admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.aippt-admin-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 设置页面优化样式 */
.aippt-settings-form {
    padding: 0;
}

.aippt-checkbox {
    width: auto !important;
    margin-right: 10px;
    transform: scale(1.2);
}

.aippt-checkbox:checked {
    accent-color: #667eea;
}

/* 优化表单元素样式 */
.aippt-input,
.aippt-select,
.aippt-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
    font-family: inherit;
}

.aippt-input:focus,
.aippt-select:focus,
.aippt-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.aippt-input:hover,
.aippt-select:hover,
.aippt-textarea:hover {
    border-color: #b8c2cc;
}

.aippt-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.aippt-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* 标签页导航优化 */
.aippt-tab-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    display: flex;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.aippt-tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 22px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
    flex: 1;
    text-align: center;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aippt-tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.aippt-tab-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.aippt-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: white;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.aippt-tab-content {
    padding: 40px;
    display: none;
}

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

/* 设置卡片优化 */
.aippt-settings-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.aippt-settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.aippt-settings-card h3 {
    margin: 0 0 30px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

/* 表单组优化 */
.aippt-form-group {
    margin-bottom: 30px;
}

.aippt-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.aippt-description {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    line-height: 1.5;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* Logo预览优化 */
.aippt-logo-preview {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    text-align: center;
    transition: all 0.3s ease;
}

.aippt-logo-preview:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f1f3f4 0%, #e2e6ea 100%);
}

.aippt-logo-preview img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.aippt-logo-preview img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.aippt-logo-preview p {
    margin: 0;
    color: #6c757d;
    font-style: italic;
}

/* 保存按钮优化 */
.aippt-form-actions {
    padding: 25px 0;
    border-top: 2px solid #f1f3f4;
    margin-top: 35px;
    text-align: center;
}

.aippt-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.aippt-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.aippt-submit-btn:hover::before {
    left: 100%;
}

.aippt-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.aippt-submit-btn:active {
    transform: translateY(-1px);
}

/* 数据看板样式 */
.aippt-admin-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px;
}

.aippt-content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.aippt-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.aippt-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.aippt-card-subtitle {
    opacity: 0.9;
    font-size: 16px;
    font-weight: 500;
}

.aippt-card-content {
    padding: 30px;
}

.aippt-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.aippt-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.aippt-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.aippt-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #495057;
    font-size: 14px;
}

.aippt-table tr:hover {
    background: #f8f9fa;
}

.aippt-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aippt-user-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.aippt-user-info small {
    color: #6c757d;
    font-size: 12px;
}

.aippt-balance-display {
    font-weight: 700;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.aippt-balance-display.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.aippt-balance-display.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.aippt-remaining {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.aippt-remaining.positive {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.aippt-remaining.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.aippt-unlimited {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.aippt-edit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.aippt-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 统计卡片样式 */
.aippt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.aippt-stat-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.aippt-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aippt-stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.aippt-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.aippt-stat-subtitle {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

/* 图表区域 */
.aippt-charts-section {
    margin-top: 40px;
}

/* 内容网格 */
.aippt-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aippt-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.aippt-content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.aippt-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.aippt-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.aippt-card-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.aippt-card-link:hover {
    color: #5a67d8;
}

.aippt-card-content {
    padding: 24px;
}

/* 表格样式 */
.aippt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.aippt-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.aippt-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    color: #1a1a1a;
}

.aippt-table tr:last-child td {
    border-bottom: none;
}

.aippt-table tr:hover {
    background: #f8f9fa;
}

/* 状态标签 */
.aippt-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.aippt-status.success {
    background: #d4edda;
    color: #155724;
}

.aippt-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* 用户活跃度 */
.aippt-user-activity {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aippt-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.aippt-activity-label {
    font-size: 14px;
    color: #6c757d;
}

.aippt-activity-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* 快速操作 */
.aippt-quick-actions {
    margin-top: 24px;
}

.aippt-action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.aippt-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.aippt-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.aippt-action-btn .dashicons {
    font-size: 16px;
}

/* 表格容器 */
.aippt-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* 卡片副标题 */
.aippt-card-subtitle {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

/* 用户信息显示 */
.aippt-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aippt-user-info strong {
    font-weight: 600;
    color: #1a1a1a;
}

.aippt-user-info small {
    font-size: 12px;
    color: #6c757d;
}

/* 余额显示 */
.aippt-balance-display {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.aippt-balance-display.positive {
    background: #d4edda;
    color: #155724;
}

.aippt-balance-display.negative {
    background: #f8d7da;
    color: #721c24;
}

/* 剩余次数显示 */
.aippt-remaining {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.aippt-remaining.positive {
    background: #d4edda;
    color: #155724;
}

.aippt-remaining.negative {
    background: #f8d7da;
    color: #721c24;
}

.aippt-unlimited {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* 编辑按钮 */
.aippt-edit-btn {
    padding: 6px 12px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.aippt-edit-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* 下载链接 */
.aippt-download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.aippt-download-link:hover {
    color: #5a67d8;
}

.aippt-download-link .dashicons {
    font-size: 14px;
}

.aippt-no-file {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

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

.aippt-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.aippt-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.aippt-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.aippt-modal-close:hover {
    background: #f8f9fa;
    color: #1a1a1a;
}

/* 表单样式 */
.aippt-edit-form {
    padding: 24px;
}

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

.aippt-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.aippt-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.aippt-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.aippt-form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

.aippt-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* 按钮样式 */
.aippt-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aippt-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.aippt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.aippt-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.aippt-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aippt-docmee-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .aippt-header {
        padding: 16px 20px;
    }
    
    .aippt-user-info {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .aippt-page-navigate {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .aippt-nav-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #aippt-container {
        height: 500px;
    }
    
    /* 后台响应式 */
    .aippt-admin-dashboard {
        padding: 15px;
    }
    
    .aippt-tab-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .aippt-tab-content {
        padding: 25px;
    }
    
    .aippt-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aippt-stat-card {
        padding: 25px;
    }
    
    .aippt-stat-value {
        font-size: 28px;
    }
    
    .aippt-content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .aippt-action-buttons {
        flex-direction: column;
    }
    
    .aippt-action-btn {
        justify-content: center;
    }
    
    /* 模态框响应式 */
    .aippt-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .aippt-form-actions {
        flex-direction: column;
    }
    
    .aippt-btn {
        width: 100%;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .aippt-docmee-container {
        background: #1a1a1a;
        color: #fff;
    }
    
    .aippt-page-navigate {
        background: #2d2d2d;
        border-bottom-color: #404040;
    }
    
    .aippt-nav-item {
        background: #333;
        border-color: #404040;
        color: #ccc;
    }
    
    .aippt-nav-item:hover {
        border-color: #667eea;
        color: #667eea;
        background: #2a2a2a;
    }
    
    .aippt-nav-item.selected {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
    }
    
    .aippt-no-permission {
        background: #2d2d2d;
    }
    
    .aippt-no-permission-content p {
        color: #aaa;
    }
    
    #aippt-container {
        background: #1a1a1a;
    }
    
    .aippt-error {
        background: #1a1a1a;
    }
    
    .aippt-error p {
        color: #aaa;
    }
    
    /* 后台暗色主题 */
    .aippt-admin-dashboard {
        background: #1a1a1a;
    }
    
    .aippt-stat-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .aippt-stat-number {
        color: #fff;
    }
    
    .aippt-content-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .aippt-card-header {
        background: #333;
        border-bottom-color: #404040;
    }
    
    .aippt-card-header h3 {
        color: #fff;
    }
    
    .aippt-table th {
        background: #333;
        color: #ccc;
        border-bottom-color: #404040;
    }
    
    .aippt-table td {
        color: #fff;
        border-bottom-color: #404040;
    }
    
    .aippt-table tr:hover {
        background: #333;
    }
    
    .aippt-activity-item {
        background: #333;
    }
    
    .aippt-activity-value {
        color: #fff;
    }
    
    /* 暗色主题下的新元素 */
    .aippt-user-info strong {
        color: #fff;
    }
    
    .aippt-modal-content {
        background: #2d2d2d;
    }
    
    .aippt-modal-header {
        border-bottom-color: #404040;
    }
    
    .aippt-modal-header h3 {
        color: #fff;
    }
    
    .aippt-form-group label {
        color: #fff;
    }
    
    .aippt-form-group input {
        background: #333;
        border-color: #404040;
        color: #fff;
    }
    
    .aippt-form-group input:focus {
        border-color: #667eea;
    }
    
    .aippt-form-group input[readonly] {
        background: #404040;
        color: #aaa;
    }
    
    .aippt-btn-secondary {
        background: #333;
        color: #ccc;
        border-color: #404040;
    }
    
    .aippt-btn-secondary:hover {
        background: #404040;
        color: #fff;
    }
}

/* 加载动画 */
.aippt-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: #f8f9fa;
}

.aippt-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: aippt-spin 1s linear infinite;
}

@keyframes aippt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 暗色主题下的加载动画 */
@media (prefers-color-scheme: dark) {
    .aippt-loading {
        background: #2d2d2d;
    }
    
    .aippt-loading::after {
        border-color: #404040;
        border-top-color: #667eea;
    }
}

/* 帮助按钮样式 */
.help-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 186, 0.3);
}

/* 独立页面帮助按钮样式 */
.standalone-container .help-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.standalone-container .help-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 数据概览页面样式 */
.aippt-overview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 32px;
    margin: -20px -20px 30px -20px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.aippt-overview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.aippt-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.aippt-logo {
    flex-shrink: 0;
}

.aippt-logo img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.aippt-header-text {
    flex: 1;
}

.aippt-header-text h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.aippt-header-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.aippt-overview-content {
    margin-top: 30px;
}

.aippt-content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.aippt-view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.aippt-view-all:hover {
    color: #764ba2;
}

.aippt-activity-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aippt-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.aippt-activity-label {
    color: #6c757d;
    font-size: 14px;
}

.aippt-activity-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.aippt-quick-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.aippt-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 120px;
}

.aippt-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.aippt-action-icon {
    font-size: 32px;
}

.aippt-action-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.aippt-stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 8px;
    display: inline-block;
}

.aippt-stat-change.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.aippt-stat-change.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.aippt-no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aippt-content-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aippt-quick-actions {
        justify-content: center;
    }
    
    .aippt-action-btn {
        min-width: 100px;
        padding: 15px;
    }
    
    .aippt-overview-header {
        padding: 20px;
        margin: -20px -20px 20px -20px;
    }
    
    .aippt-header-text h1 {
        font-size: 24px;
    }
}

/* 后台统一按钮样式 */
.aippt-btn,
.aippt-admin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.aippt-btn:hover,
.aippt-admin-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.aippt-btn:active,
.aippt-admin-btn:active {
    transform: translateY(0);
}

/* 次要按钮样式 */
.aippt-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.aippt-btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4449 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

/* 危险按钮样式 */
.aippt-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.aippt-btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* 成功按钮样式 */
.aippt-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.aippt-btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* 小按钮样式 */
.aippt-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* 链接按钮样式 */
.aippt-link-btn {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.aippt-link-btn:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 表格按钮样式 */
.aippt-table-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    margin: 0 2px;
}

/* 按钮组样式 */
.aippt-btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.aippt-btn-group .aippt-btn,
.aippt-btn-group .aippt-admin-btn,
.aippt-btn-group .aippt-btn-secondary,
.aippt-btn-group .aippt-btn-danger,
.aippt-btn-group .aippt-btn-success {
    margin: 0;
}

/* 表单内按钮样式 */
.aippt-form-actions .aippt-btn,
.aippt-form-actions .aippt-admin-btn {
    min-width: 120px;
}

/* WordPress后台页面标题下的链接按钮 */
.page-title-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.page-title-action:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
}

/* ElementUI风格的标签页导航 */
.aippt-tab-nav {
    display: flex;
    border-bottom: 1px solid #e4e7ed;
    background: #fff;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aippt-tab-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #303133;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.aippt-tab-item:hover {
    color: #409eff;
    background: #f5f7fa;
}

.aippt-tab-item.active {
    color: #409eff;
    border-bottom-color: #409eff;
    background: #fff;
}

.aippt-tab-item i {
    margin-right: 8px;
    font-size: 16px;
}

/* 标签页内容 */
.aippt-tab-content {
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 400px;
}

.aippt-tab-pane {
    padding: 20px;
}

/* 设置卡片样式 */
.aippt-settings-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    overflow: hidden;
}

.aippt-card-header {
    padding: 20px 20px 0;
    border-bottom: 1px solid #ebeef5;
}

.aippt-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    display: flex;
    align-items: center;
}

.aippt-card-header h3 i {
    margin-right: 8px;
    color: #409eff;
}

.aippt-card-header p {
    margin: 0 0 20px 0;
    color: #606266;
    font-size: 14px;
}

.aippt-card-body {
    padding: 20px;
}

.aippt-card-footer {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #ebeef5;
    text-align: right;
}

/* 表单样式优化 */
.aippt-form-group {
    margin-bottom: 24px;
}

.aippt-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #303133;
    font-size: 14px;
}

.aippt-form-group .required {
    color: #f56c6c;
}

.aippt-input,
.aippt-select,
.aippt-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    background: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.aippt-input:focus,
.aippt-select:focus,
.aippt-textarea:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64,158,255,0.2);
}

.aippt-textarea {
    resize: vertical;
    min-height: 80px;
}

.aippt-description {
    margin-top: 6px;
    font-size: 12px;
    color: #909399;
    line-height: 1.4;
}

/* 复选框样式 */
.aippt-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aippt-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #409eff;
}

.aippt-checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
}

/* Logo预览样式 */
.aippt-logo-preview {
    padding: 16px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fafafa;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aippt-logo-preview img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aippt-logo-preview p {
    margin: 0;
    color: #909399;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aippt-tab-nav {
        flex-direction: column;
    }
    
    .aippt-tab-item {
        border-bottom: 1px solid #e4e7ed;
        border-right: none;
    }
    
    .aippt-tab-item.active {
        border-bottom-color: #409eff;
    }
    
    .aippt-admin-header {
        padding: 20px;
    }
    
    .aippt-admin-header h1 {
        font-size: 24px;
    }
    
    .aippt-card-body,
    .aippt-card-footer {
        padding: 16px;
    }
}


