/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* 布局样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

header {
    background-color: #007acc;
    color: #fff;
    padding: 0 20px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 { font-size: 18px; font-weight: 500; }

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    background-color: rgba(255,255,255,0.15);
    transition: background-color 0.3s ease;
}

.header-right a:hover { background-color: rgba(255,255,255,0.25); }

nav {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.nav {
    display: flex;
    list-style: none;
}

.nav li { position: relative; }

.nav li a {
    display: block;
    padding: 0 15px;
    height: 44px;
    line-height: 44px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav li a:hover {
    background-color: #f8f8f8;
    color: #007acc;
}

.nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    min-width: 120px;
    display: none;
    list-style: none;
    z-index: 1000;
}

.nav li:hover .submenu { display: block; }

.nav .submenu li a {
    height: auto;
    line-height: 1.5;
    padding: 10px 15px;
}

main { padding: 20px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.page-header h2 { font-size: 20px; font-weight: 500; }

/* 组件样式 - 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007acc;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 30px; font-size: 15px; }
.btn-xl { padding: 15px 40px; font-size: 16px; }

.btn-success { background-color: #07c160; }
.btn-success:hover { background-color: #06ad56; }

.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; }

.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }

.btn-prev { background: #f0f0f0; color: #666; }
.btn-prev:hover { background: #e0e0e0; }

.btn:disabled, .btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 组件样式 - 表单 */
.form { max-width: 800px; }

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

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

.form-control,
.form-select,
.search-box input,
.search-type-select,
.sort-select,
.template-search input,
.template-search-box input,
.param-input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus,
.search-box input:focus,
.search-type-select:focus,
.sort-select:focus,
.template-search input:focus,
.template-search-box input:focus,
.param-input-group input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0,122,204,0.1);
}

.form-control-lg {
    padding: 12px 15px;
    border-width: 2px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input { width: 18px; height: 18px; cursor: pointer; }

.form-check-label {
    font-weight: normal;
    cursor: pointer;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.form-inline { display: inline; }

/* 组件样式 - 卡片 */
.card,
.material-item,
.template-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body { padding: 15px; }

.material-item {
    padding: 20px;
    margin-bottom: 20px;
}

.template-card {
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.template-card:hover {
    border-color: #07c160;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.1);
}

.template-card.selected {
    border-color: #07c160;
    background: #f0fff4;
}

/* 组件样式 - 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    word-break: break-all;
}

.table th { background-color: #f5f5f5; font-weight: bold; }
.table tr:hover { background-color: #f9f9f9; }

/* 组件样式 - 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 15px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination span { color: #666; font-size: 14px; font-weight: 500; }

.pagination > div,
.pagination ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.pagination li { margin: 0; padding: 0; }

.pagination a,
.pagination > div > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pagination a:hover,
.pagination > div > a:hover {
    background-color: #f5f5f5;
    border-color: #007acc;
    color: #007acc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination li.active a,
.pagination > div > a.active {
    background: linear-gradient(135deg, #007acc 0%, #005fa3 100%);
    color: #fff;
    border-color: #007acc;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,122,204,0.3);
}

.pagination li.disabled a,
.pagination > div > a.disabled {
    color: #bbb;
    cursor: not-allowed;
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

.pagination li.disabled a:hover,
.pagination > div > a.disabled:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 组件样式 - 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    flex: 1;
}

.search-type-select,
.sort-select {
    min-width: 120px;
}

/* 工具类 - 文本 */
.text-center { text-align: center; }
.text-muted { color: #666; }
.text-danger { color: #dc3545; }
.text-success { color: #07c160; }
.text-primary { color: #007acc; }
.text-sm { font-size: 12px; }

/* 工具类 - 显示 */
.hidden { display: none; }
.inline { display: inline; }

/* 工具类 - 间距 */
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }

/* 工具类 - 弹性布局 */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }
.flex-1 { flex: 1; }

/* 工具类 - 其他 */
.pointer { cursor: pointer; }

/* 长文本处理 */
.long-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.long-text:hover {
    overflow: visible;
    white-space: normal;
    word-break: break-all;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.message-content {
    max-width: 300px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.message-content .text-sm {
    font-size: 13px;
    line-height: 1.5;
    max-width: 100%;
    max-height: 150px;
    overflow: auto;
    word-wrap: break-word;
    word-break: break-all;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}



/* 加载状态 */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top-color: #07c160;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* 空数据状态 */
.no-data, .empty-state {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.empty-state-icon { font-size: 60px; margin-bottom: 15px; }

/* 头像样式 */
.avatar, .rounded-circle { border-radius: 50%; }

/* 页脚样式 */
footer {
    background-color: #f0f0f0;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 30px;
    font-size: 12px;
    color: #666;
}

/* 统计网格样式 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.stat-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.stat-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #666;
}

.stat-item p {
    font-size: 24px;
    font-weight: 600;
    color: #007acc;
    margin: 0;
}



/* 聊天列表样式 */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-item-link { text-decoration: none; color: inherit; display: block; }

.chat-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
}

.chat-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.chat-item.has-unread {
    border-left: 4px solid #07c160;
    background-color: #f0fff4;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.15);
}

.chat-avatar {
    position: relative;
    margin-right: 15px;
}

.chat-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.chat-item:hover .chat-avatar img {
    border-color: #07c160;
    transform: scale(1.05);
}

.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007acc, #07c160);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.chat-item:hover .avatar-placeholder {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
}

.chat-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chat-nickname {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.chat-item:hover .chat-nickname { color: #07c160; }

.chat-time {
    font-size: 12px;
    color: #999;
    font-family: 'Courier New', monospace;
}

.chat-preview {
    margin: 0;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.chat-item.has-unread .chat-preview {
    font-weight: 500;
    color: #333;
}

.message-preview-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-type-icon {
    font-size: 14px;
    color: #07c160;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.message-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.chat-action { margin-left: 15px; }

.chat-item-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.chat-item-checkbox {
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.chat-checkbox { width: 18px; height: 18px; cursor: pointer; }



/* 素材管理页面样式 */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}



.material-thumb {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.material-thumb::before { font-size: 48px; }

.material-item:nth-child(1) .material-thumb { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.material-item:nth-child(1) .material-thumb::before { content: '🖼️'; }
.material-item:nth-child(2) .material-thumb { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); }
.material-item:nth-child(2) .material-thumb::before { content: '🎤'; }
.material-item:nth-child(3) .material-thumb { background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%); }
.material-item:nth-child(3) .material-thumb::before { content: '🎬'; }
.material-item:nth-child(4) .material-thumb { background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%); }
.material-item:nth-child(4) .material-thumb::before { content: '📰'; }
.material-item:nth-child(5) .material-thumb { background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%); }
.material-item:nth-child(5) .material-thumb::before { content: '📤'; }
.material-item:nth-child(6) .material-thumb { background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%); }
.material-item:nth-child(6) .material-thumb::before { content: '✏️'; }
.material-item:nth-child(7) .material-thumb { background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%); }
.material-item:nth-child(7) .material-thumb::before { content: '📚'; }
.material-item:nth-child(8) .material-thumb { background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%); }
.material-item:nth-child(8) .material-thumb::before { content: '💾'; }
.material-item:nth-child(9) .material-thumb { background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); }
.material-item:nth-child(9) .material-thumb::before { content: '📝'; }

.material-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-item a { text-decoration: none; color: inherit; display: block; height: 100%; transition: all 0.3s ease; }

/* 模板消息页面样式 */
.create-template-container,
.send-message-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 30px;
}

/* 步骤指示器 */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active, .step.completed { opacity: 1; }

.step.completed .step-number { background: #07c160; color: #fff; }

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: #07c160;
    color: #fff;
    transform: scale(1.1);
}

.step-title { font-size: 14px; color: #666; }

.step-arrow {
    margin: 0 20px;
    color: #ccc;
    font-size: 20px;
}

/* 步骤内容 */
.form-step h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 20px;
}

.step-desc { color: #666; margin-bottom: 25px; }

/* 获取模板区域 */
.fetch-section {
    text-align: center;
    padding: 60px 20px;
}

.fetch-icon { font-size: 80px; margin-bottom: 20px; }

.fetch-section h3 { margin-bottom: 15px; }

.fetch-section p {
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.hint { margin-top: 20px; color: #999; font-size: 13px; }



/* 模板列表 */
.template-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.template-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.template-item:last-child { border-bottom: none; }
.template-item:hover { background: #f8f9fa; }

.template-item.selected {
    background: #f0fff4;
    border-left: 4px solid #07c160;
}

.template-radio {
    margin-right: 15px;
    margin-top: 5px;
}

.template-radio input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.template-info { flex: 1; }

.template-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

.template-id {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    font-family: monospace;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.template-content {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.template-example {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

/* 确认区域 */
.confirm-section, .confirm-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.confirm-block:last-child { margin-bottom: 0; }

.confirm-block h4 {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.confirm-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.confirm-item label {
    display: block;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.confirm-value {
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    color: #333;
    line-height: 1.6;
}

.confirm-value.code {
    font-family: monospace;
    font-size: 13px;
    background: #f0f0f0;
}

.confirm-value.content-preview {
    white-space: pre-wrap;
    font-size: 13px;
}

/* 步骤按钮 */
.step-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* 用户搜索 */
.user-search-section { margin-bottom: 25px; }

.user-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.user-item:hover { background: #f8f9fa; }
.user-item:last-child { border-bottom: none; }

.user-item-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.user-item-info { flex: 1; }

.user-item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.user-item-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

/* 已选用户 */
.selected-user {
    background: #f0fff4;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #07c160;
}

.selected-user h4 {
    margin-bottom: 15px;
    color: #07c160;
}

.user-card { display: flex; align-items: center; }

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.user-id {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

/* 模板网格 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}



.template-card h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.template-card-id {
    font-size: 11px;
    color: #999;
    font-family: monospace;
    background: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

.template-card-preview {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
}

/* 参数输入 */
.template-preview-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.template-preview-box h4 {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.preview-content {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.param-inputs { margin-bottom: 20px; }

.param-input-group {
    margin-bottom: 15px;
}

.param-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.param-input-group .required {
    color: #ff4d4f;
    margin-left: 4px;
}

.param-input-group .param-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 2px;
    line-height: 1.4;
}



/* 确认区域 */
.confirm-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirm-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.confirm-template {
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
}

.message-preview-box {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

.confirm-url {
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    color: #07c160;
    word-break: break-all;
}

.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

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

.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.login-box .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-box .form-control:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.login-box .form-actions {
    margin-top: 25px;
}

.login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

.alert-info {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.settings {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.settings-nav {
    width: 200px;
    flex-shrink: 0;
}

.settings-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.settings-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.settings-nav li:last-child {
    border-bottom: none;
}

.settings-nav a {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.settings-nav a:hover {
    background-color: #f8f9fa;
    color: #007acc;
}

.settings-nav a.active {
    background-color: #007acc;
    color: #fff;
}

.settings-section {
    display: none;
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.settings-section.active {
    display: block;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #07c160;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
