/* 组件样式 */

/* ===== 卡片 ===== */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.card-body {
    color: var(--text-secondary);
}

/* ===== 统计卡片 ===== */
.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.stat-icon.blue { background: linear-gradient(135deg, #1890ff, #0050b3); }
.stat-icon.green { background: linear-gradient(135deg, #52c41a, #389e0d); }
.stat-icon.orange { background: linear-gradient(135deg, #fa8c16, #d46b08); }
.stat-icon.purple { background: linear-gradient(135deg, #722ed1, #531dab); }

.stat-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-light);
}

.stat-trend {
    margin-left: auto;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* ===== 表格 ===== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th {
    background: var(--bg);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
}

.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.table tbody tr:hover {
    background: var(--primary-light);
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

/* ===== 搜索栏 ===== */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-success { background: #f6ffed; color: var(--success); }
.tag-warning { background: #fff7e6; color: var(--warning); }
.tag-danger { background: #fff1f0; color: var(--danger); }

/* ===== 进度条 ===== */
.progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.green { background: var(--success); }
.progress-fill.orange { background: var(--warning); }
.progress-fill.red { background: var(--danger); }

/* ===== 网格布局 ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ===== 弹窗 ===== */
/* 弹窗遮罩层 - 不透明白色背景 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 弹窗主体 - 不滚动，内容一页显示 */
.modal {
    background: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
}

.modal.dark-header .modal-header {
    background: #1a1a2e;
    color: #fff;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.modal.dark-header .modal-header h3 {
    color: #fff;
}

.modal.dark-header .modal-close {
    color: #fff;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== 筛查管理弹窗遮罩 ===== */
/* 弹窗遮罩层 - 不透明黑色背景 + 居中 */
.screening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    overflow: hidden !important;
}

/* 确保弹窗在最上层 */
.screening-overlay * {
    z-index: 99999 !important;
}

/* 所有弹窗：禁止滚动，内容一页显示 */
.screening-overlay > .modal,
.screening-overlay > .modal.dark-header,
.screening-overlay > .transfer-modal,
.modal {
    position: relative;
    display: block !important;
    width: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: auto !important;
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* 关闭按钮 - 醒目圆形样式 */
.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 关闭按钮 - 深色背景（白底弹窗用） */
.close-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.close-btn-dark:hover {
    background: #e74c3c;
}

/* 白底弹窗表单样式 - 确保颜色清晰 */
#stu-modal .modal-header h3 {
    color: #222 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}
#stu-modal .form-group label,
#stu-modal label {
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}
#stu-modal .form-control,
#stu-modal input,
#stu-modal select,
#stu-modal textarea {
    color: #333 !important;
    border-color: #d9d9d9 !important;
    font-size: 13px !important;
}
#stu-modal .form-control::placeholder,
#stu-modal input::placeholder {
    color: #aaa !important;
}
#stu-modal .grid-2 > div {
    margin-bottom: 12px;
}
#stu-modal .modal-footer {
    border-top: 1px solid #eee;
}

/* ===== 新增模块样式 ===== */

/* 页面标题带图标 */
.page-title-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-title-with-icon > i {
    font-size: 32px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title-with-icon h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.page-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* 标签管理 */
.tag-management {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag-group {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tag-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.tag-group-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.tag-group-header h4 i {
    color: var(--primary);
    margin-right: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.tag-item i {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
}

.tag-item i:hover {
    color: var(--danger);
}

/* 素材库 */
.material-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.material-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.material-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.material-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.material-item {
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.material-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(24,144,255,0.15);
}

.material-item i {
    font-size: 40px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.material-item p {
    font-size: 13px;
    color: var(--text-light);
}

/* 话术管理 */
.script-categories {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 400px;
}

.category-sidebar {
    width: 200px;
    border-right: 1px solid var(--border);
    padding: 15px 0;
}

.category-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.category-item:hover {
    background: var(--bg-light);
}

.category-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.script-content {
    flex: 1;
    padding: 20px;
}

.script-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.script-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border);
}

.script-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.script-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.script-actions {
    display: flex;
    gap: 8px;
}

/* 知识库 */
.knowledge-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.knowledge-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.knowledge-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.knowledge-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.knowledge-item {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.knowledge-q {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.q-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.q-title {
    font-weight: 600;
    color: var(--text);
}

.knowledge-a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.a-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.a-content {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.knowledge-meta {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

/* 会员卡管理 */
.vip-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vip-card-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vip-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.vip-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vip-card-header h4 {
    font-size: 18px;
    font-weight: 600;
}

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

.vip-card-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text);
}

.vip-card-info strong {
    color: var(--text-secondary);
}

.vip-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

/* 加工流程 */
.processing-workflow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.workflow-step.active {
    background: var(--primary-light);
}

.workflow-step:hover {
    background: var(--bg-light);
}

.workflow-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
}

.workflow-step.active .step-icon {
    background: var(--primary);
    color: var(--white);
}

.workflow-step .step-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.workflow-step .step-count {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 10px;
}

.workflow-arrow {
    color: var(--text-light);
    font-size: 20px;
}

/* 员工邀请 */
.staff-invite-header {
    display: flex;
    gap: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.invite-info {
    flex: 1;
}

.invite-info h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text);
}

.invite-qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.invite-qr-placeholder i {
    font-size: 60px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.invite-qr-placeholder p {
    color: var(--text-light);
    font-size: 14px;
}

/* 优惠券标签 */
.coupon-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.coupon-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.coupon-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.coupon-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

/* 转诊标签 */
.referral-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.referral-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.referral-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.referral-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

/* 推送标签 */
.push-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.push-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.push-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.push-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

/* 积分标签 */
.points-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.points-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.points-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.points-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

/* 邀请标签 */
.invite-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.invite-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.invite-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.invite-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

/* 交付标签 */
.delivery-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.delivery-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.delivery-tabs .tab.active {
    background: var(--primary);
    color: var(--white);
}

.delivery-tabs .tab:hover:not(.active) {
    background: var(--bg-light);
}

/* VIP统计 */
.vip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 裂变统计 */
.fission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 雷达统计 */
.radar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 积分概览 */
.points-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 邀请统计 */
.invite-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    flex: 1;
}

/* ===== 系统设置样式 ===== */

/* 设置表单 */
.settings-form {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
}

/* Logo上传 */
.logo-upload {
    margin-bottom: 20px;
}

.logo-preview {
    width: 200px;
    height: 200px;
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.logo-preview:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.logo-preview i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.logo-preview p {
    font-size: 14px;
    color: var(--text-light);
}

/* 证书列表 */
.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.certificate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cert-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cert-name {
    font-weight: 500;
    color: var(--text);
}

.cert-status {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.cert-status:not(.pending) {
    background: var(--success-light);
    color: var(--success);
}

.cert-status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.cert-actions {
    display: flex;
    gap: 8px;
}

/* 模板卡片 */
.template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.template-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.template-header {
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.template-body {
    padding: 20px;
}

.template-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.template-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.field-tag {
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
}

.template-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

/* 开关样式 */
.switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.switch-label input {
    display: none;
}

.switch-slider {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
}

.switch-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.switch-label input:checked + .switch-slider {
    background: var(--primary);
}

.switch-label input:checked + .switch-slider::after {
    transform: translateX(20px);
}

.switch-text {
    font-size: 14px;
    color: var(--text);
}

/* FAQ列表 */
.robot-faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border);
}

.faq-q {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-q::before {
    content: 'Q';
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 28px;
}

.faq-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-left: 28px;
}

/* 设备卡片 */
.device-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.device-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.device-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.device-info {
    flex: 1;
}

.device-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.device-model,
.device-sn {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.device-status {
    margin-top: 5px;
}

.device-actions {
    display: flex;
    gap: 10px;
}

/* ===== 对标eYenurse新增样式 ===== */

/* 页面介绍区 */
.section-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid #d6e4ff;
}
.section-intro p { margin: 0; flex: 1; }
.learn-link {
    color: #1890ff;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 16px;
}
.learn-link:hover { text-decoration: underline; }

/* eyenurse风格Tabs */
.eyenurse-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 16px;
}
.eyenurse-tabs .tab-item {
    padding: 8px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}
.eyenurse-tabs .tab-item.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    font-weight: 500;
}
.eyenurse-tabs .tab-item:hover { color: #1890ff; }
.eyenurse-tabs.sub-tabs { border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; }
.eyenurse-tabs.sub-tabs .tab-item { font-size: 13px; padding: 6px 16px; }

/* 文章卡片 */
.article-card-list { display: flex; flex-direction: column; gap: 12px; }
.article-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}
.article-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.article-card-body h4 { margin: 0 0 8px 0; font-size: 15px; color: var(--text-primary); }
.article-meta { margin: 0; font-size: 12px; color: var(--text-secondary); }
.article-meta span { margin-right: 16px; }
.article-time { margin: 4px 0 0 0; font-size: 12px; color: #bbb; }
.article-card-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* 医院卡片 */
.hospital-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.hospital-card {
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.hospital-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.hospital-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.hospital-card-body { padding: 16px; }
.hospital-card-body h4 { margin: 0 0 10px 0; font-size: 16px; color: var(--text-primary); }
.hospital-card-body p { margin: 4px 0; font-size: 13px; color: var(--text-secondary); }
.hospital-card-body p i { margin-right: 6px; color: #999; width: 16px; }
.hospital-projects { color: #666 !important; }
.hospital-count { color: #1890ff !important; font-weight: 500; }
.hospital-card-footer { padding: 10px 16px; border-top: 1px solid #f5f5f5; display: flex; gap: 8px; }

/* 地区筛选 */
.region-filter { margin-bottom: 12px; }
.region-filter select { padding: 6px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; min-width: 150px; }

/* 知识列表 */
.knowledge-list { display: flex; flex-direction: column; gap: 1px; }
.knowledge-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 6px;
    margin-bottom: 4px;
}
.knowledge-time { font-size: 12px; color: #bbb; min-width: 140px; }
.knowledge-title { flex: 1; font-size: 14px; color: var(--text-primary); margin: 0 16px; }

/* 推送相关 */
.push-intro { margin-bottom: 16px; }
.info-card { padding: 14px 16px; background: #fafafa; border-radius: 6px; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.info-card h4 { margin: 0 0 8px 0; font-size: 14px; color: var(--text-primary); }
.push-period { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.period-label { font-size: 13px; color: var(--text-secondary); }
.period-item {
    padding: 4px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}
.period-item.active { background: #1890ff; color: #fff; border-color: #1890ff; }
.period-item:hover:not(.active) { border-color: #1890ff; color: #1890ff; }
.push-note { padding: 12px 16px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 6px; font-size: 13px; color: #52c41a; margin: 16px 0; }
.push-note i { margin-right: 6px; }

/* 雷达地图 */
.radar-map-container { display: flex; gap: 20px; }
.radar-map-placeholder {
    flex: 1;
    min-height: 350px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d9d9d9;
}
.radar-stats { display: flex; flex-direction: column; gap: 12px; min-width: 200px; }

/* 开关 */
.toggle-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.toggle-label { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.toggle-desc { flex: 1; font-size: 12px; color: var(--text-secondary); min-width: 250px; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .toggle-slider { background-color: #1890ff; }
input:checked + .toggle-slider:before { transform: translateX(22px); }

/* 邀请活动统计图例 */
.invite-stats-legend { display: flex; gap: 24px; padding: 10px 0; margin-bottom: 12px; font-size: 12px; color: var(--text-secondary); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* 邀请筛选 */
.invite-filter { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.filter-label { font-size: 14px; font-weight: 500; }
.filter-radio { display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }

/* 员工邀请介绍 */
.staff-invite-intro { margin-bottom: 16px; }

/* 配镜工作流 */
.workflow-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 16px;
    gap: 0;
}
.wf-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}
.wf-stat-item:hover { background: #f0f7ff; }
.wf-stat-item.active { background: #e6f7ff; }
.wf-stat-count { font-size: 24px; font-weight: 700; color: #1890ff; }
.wf-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.wf-stat-arrow { color: #d9d9d9; font-size: 14px; margin: 0 8px; }

/* 配镜工具栏 */
.opt-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.opt-toolbar .eyenurse-tabs { margin-bottom: 0; border-bottom: none; }
.opt-sort select { padding: 6px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; }

/* 收费清单样式 */
.receipt-container {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.receipt-header {
    background: #fafafa;
    padding: 14px 16px;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
}
.receipt-header h3 { margin: 0; font-size: 16px; }
.receipt-header p { margin: 4px 0 0 0; font-size: 12px; color: #999; }
.receipt-body { padding: 16px; }
.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    align-items: center;
}
.receipt-row span:first-child { color: var(--text-secondary); }
.receipt-row span:last-child { font-weight: 500; }
.receipt-total { border-top: 2px solid #333; padding-top: 12px; margin-top: 8px; font-size: 16px; font-weight: 700; }
.receipt-divider { border-top: 1px dashed #e8e8e8; margin: 8px 0; }
.receipt-footer { padding: 12px 16px; background: #fafafa; border-top: 1px solid #e8e8e8; font-size: 12px; color: #999; }
.receipt-footer p { margin: 2px 0; }

/* 标签管理 */
.tag-mgmt { margin-top: 0; }
.tag-group-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
}
.tag-group-header { font-size: 14px; font-weight: 500; margin-bottom: 12px; color: var(--text-primary); }
.tag-group-header i { margin-right: 8px; color: #faad14; }
.tag-items { display: flex; flex-wrap: wrap; gap: 8px; }

/* 素材库 */
.material-tabs { display: flex; gap: 0; border-bottom: 2px solid #e8e8e8; margin-bottom: 16px; }
.material-tabs .tab {
    padding: 8px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.material-tabs .tab.active { color: #1890ff; border-bottom-color: #1890ff; }
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.material-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s;
}
.material-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.material-icon {
    height: 120px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #bbb;
}
.material-info { padding: 10px; }
.material-name { margin: 0; font-size: 13px; font-weight: 500; }
.material-size { margin: 2px 0 0 0; font-size: 11px; color: #bbb; }

/* 话术分类 */
.script-categories { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.script-cat {
    padding: 6px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}
.script-cat.active { background: #1890ff; color: #fff; border-color: #1890ff; }
.script-cat:hover:not(.active) { border-color: #1890ff; color: #1890ff; }
.script-list { display: flex; flex-direction: column; gap: 12px; }
.script-item {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
}
.script-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.script-content { font-size: 13px; color: var(--text-secondary); }

/* 裂变引流统计 */
.fission-stats { display: flex; gap: 16px; margin-bottom: 16px; }

/* 消息编辑区 */
.message-composer { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.form-section { margin-bottom: 16px; }
.form-section h4 { margin: 0 0 12px 0; font-size: 14px; color: var(--text-primary); }
.form-section h4 i { margin-right: 6px; color: #1890ff; }
.message-history { margin-top: 16px; }
.message-history h4 { margin: 0 0 12px 0; font-size: 14px; }
