* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 顶部导航栏 */
.header {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #398CFF;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    background: linear-gradient(135deg, #398CFF 0%, #2A6FD8 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.workspace {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.project-selector {
    margin-left: 20px;
    padding: 8px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
}

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

.header-menu {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-menu a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #398CFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.user-name {
    font-size: 14px;
}

.sub-account {
    font-size: 12px;
    color: #999;
}

/* 主体布局 */
.main-container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
}

/* 左侧产品切换页 */
.product-switcher {
    width: 55px;
    background-color: #398CFF;
    border-right: 1px solid #2A6FD8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.switcher-menu {
    list-style: none;
    padding: 10px 0;
}

.switcher-menu li {
    margin-bottom: 5px;
}

.switcher-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    text-decoration: none;
    color: #ffffff;
    font-size: 10px;
    transition: background-color 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.switcher-menu a i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    font-size: 20px;
}

.switcher-menu a:hover {
    background-color: #2A6FD8;
}

.switcher-menu a.active {
    background-color: #ffffff;
    color: #398CFF;
}

/* 中间产品内菜单 */
.product-menu {
    width: 250px;
    background-color: #f5f5f5;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-header {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.menu-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.menu-section {
    padding: 10px 0;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 2px;
}

.menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.menu-list a:hover {
    background-color: #e8e8e8;
}

.menu-list a.active {
    background-color: #398CFF;
    color: white;
}

.menu-list i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.menu-title .star, .menu-list .star {
    color: #ffd700;
    margin-left: 5px;
}

/* 主内容区 */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f8fb;
}

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

.page-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.page-title .star {
    color: #ffd700;
    margin-left: 8px;
}

.help-link {
    text-decoration: none;
    color: #398CFF;
    font-size: 14px;
}

/* 搜索和操作栏 */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
}

.search-input {
    display: flex;
    align-items: center;
}

.search-input input {
    width: 300px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    background-color: #398CFF;
    border: 1px solid #398CFF;
    border-radius: 0 4px 4px 0;
    color: white;
    line-height: 1;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.demo-btn {
    padding: 0;
    background-color: transparent;
    border: none;
    color: #398CFF;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.demo-btn:hover {
    color: #2a6fd9;
    text-decoration: none;
}

.new-project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #398CFF;
    border: 1px solid #398CFF;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* 项目列表表格 */
.project-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.project-table th {
    background-color: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
}

.project-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.project-name {
    color: #398CFF;
    text-decoration: none;
}

.project-type {
    color: #333;
}

.project-time {
    color: #666;
}

.delete-btn {
    color: #ff4757;
    text-decoration: none;
    cursor: pointer;
}



/* 页面容器 */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

.project-detail-header {
    margin-bottom: 12px;
}

.project-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #8a94a7;
}

.project-detail-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e8ebf2;
    border-radius: 4px 4px 0 0;
}

.project-detail-back {
    border: 0;
    background: transparent;
    font-size: 24px;
    color: #2c3c52;
    cursor: pointer;
    line-height: 1;
}

.project-detail-toolbar h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}

.project-detail-publish {
    margin-left: auto;
    position: relative;
}

.project-publish-btn {
    min-width: 82px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    background: #1a73e8;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.project-publish-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 136px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 38, 75, 0.12);
    overflow: hidden;
    z-index: 20;
}

.project-publish-menu.open {
    display: flex;
}

.project-publish-menu button {
    height: 40px;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 0 14px;
    font-size: 14px;
    color: #2f3e52;
    cursor: pointer;
}

.project-publish-menu button:hover {
    background: #f5f8ff;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    min-height: calc(100vh - 210px);
    border: 1px solid #e8ebf2;
    border-top: 0;
    background: #fff;
}

.project-detail-subnav {
    display: flex;
    gap: 12px;
    padding: 0 24px 14px;
    background: #fff;
    border-left: 1px solid #e8ebf2;
    border-right: 1px solid #e8ebf2;
}

.project-detail-tab {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #fff;
    color: #4d5b72;
    font-size: 14px;
    cursor: pointer;
}

.project-detail-tab.active {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #eef5ff;
}

.project-detail-config {
    border-right: 1px solid #e8ebf2;
    padding: 18px 16px 24px;
}

.project-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}

.project-detail-config-list {
    margin-top: 18px;
}

.project-config-card {
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.project-config-card:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.project-config-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-config-card-title {
    position: relative;
    padding-left: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2d3d;
}

.project-config-card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #1a73e8;
}

.project-config-edit {
    border: 0;
    background: transparent;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
}

.project-config-line {
    font-size: 14px;
    color: #53627a;
    line-height: 1.9;
}

.project-detail-preview-wrap {
    padding: 18px 24px 24px;
}

.project-detail-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.project-detail-edit {
    border: 0;
    background: transparent;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
}

.project-detail-preview {
    display: flex;
    justify-content: center;
    padding: 4px 0 16px;
}

.project-detail-phone {
    width: 390px;
    height: 680px;
}

/* 数据统计页面样式 */
.usage-statistics-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.statistics-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    color: #2ed573;
}

.stat-change.negative {
    color: #ff4757;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-height: 300px;
}

/* 消息记录页面样式 */
.message-records-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-icon {
    margin-right: 16px;
    color: #398CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f0f7ff;
    border-radius: 50%;
}

.message-content {
    flex: 1;
}

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

.message-title {
    font-weight: bold;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-body {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.message-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

/* 通话记录页面样式 */
.call-records-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.call-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-info {
    flex: 1;
}

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

.call-title {
    font-weight: bold;
    color: #333;
}

.call-time {
    font-size: 12px;
    color: #999;
}

.call-details {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

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

.call-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.call-actions button:first-child {
    background-color: #398CFF;
    color: white;
}

.call-actions button:first-child:hover {
    background-color: #2a6fd9;
}

.call-actions button:nth-child(2) {
    background-color: #f5f5f5;
    color: #333;
}

.call-actions button:nth-child(2):hover {
    background-color: #e0e0e0;
}

.call-actions button:last-child {
    background-color: #ffebee;
    color: #ff4757;
}

.call-actions button:last-child:hover {
    background-color: #ffcdd2;
}

/* 对话记录页面样式 */
.dialog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.dialog-search-bar {
    padding: 0 20px 20px;
    background-color: #ffffff;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

.time-filter-buttons {
    display: flex;
    align-items: center;
    gap: 0 !important;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.time-filter-btn {
    padding: 6px 12px;
    border: none;
    border-right: 1px solid #e8e8e8;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.time-filter-btn:last-child {
    border-right: none;
}

.time-filter-btn:hover {
    background-color: #f5f5f5;
    color: #398CFF;
    z-index: 1;
}

.time-filter-btn.active {
    background-color: #398CFF;
    color: #ffffff;
    z-index: 1;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section label {
    font-size: 14px;
    color: #666;
}

.custom-time-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-left: 1px solid #e8e8e8;
}

.time-range-container {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    height: 34px;
}

.time-input {
    height: 100%;
    padding: 0 12px;
    border: none;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
}

.time-input:first-child {
    border-right: 1px solid #e8e8e8;
}

.time-separator {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
    user-select: none;
}

.filter-section select {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.dialog-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.dialog-table th {
    background-color: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.time-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.time-sort-btn:hover {
    color: #1a73e8;
}

.sort-icon {
    font-size: 11px;
    letter-spacing: -1px;
    color: #8a94a7;
}

.time-sort-btn[data-sort-order="asc"] .sort-icon {
    color: #1a73e8;
}

.time-sort-btn[data-sort-order="desc"] .sort-icon {
    color: #1a73e8;
}

.dialog-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    vertical-align: top;
}

.dialog-content {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    color: #333;
}

.dialog-content:hover {
    color: #398CFF;
}

.view-btn {
    padding: 2px 6px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: #398CFF;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.view-btn:hover {
    background-color: transparent;
    text-decoration: none;
}

/* 对话详情弹窗 */
.dialog-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.dialog-detail-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.close-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8c8c8c;
    padding: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.close-btn:hover {
    color: #262626;
    background-color: #f5f5f5;
}

.modal-body {
    padding: 0;
    height: calc(85vh - 80px);
    overflow: hidden;
}

.detail-layout {
    display: flex;
    height: 100%;
    background-color: #ffffff;
.detail-left {
    width: 320px;
    background-color: #fafbfc;
    border-right: 1px solid #e8e8e8;
    padding: 24px;
    overflow-y: auto;
}
.detail-right {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* 对话记录头部 */
.conversation-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
}

.conversation-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.conversation-meta {
    font-size: 13px;
    color: #8c8c8c;
}

.message-count {
    font-weight: 500;
}
.header-title {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.header-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.detail-info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
}

.phone-style-container {
    flex: 1;
    background-color: #f8f9fa;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
}

/* 加载状态指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #398CFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-indicator span {
    font-size: 14px;
    color: #8c8c8c;
}

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

.phone-style-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
}

.detail-info {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
}

.detail-label {
    color: #8c8c8c;
    margin-right: 12px;
    min-width: 70px;
    font-weight: 500;
}

.detail-value {
    color: #262626;
    font-weight: 400;
    flex: 1;
}

.dialog-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    min-height: 100%;
}

.dialog-end-indicator {
    padding: 12px 0 20px;
    text-align: center;
    color: #9aa4b6;
    font-size: 13px;
}

.dialog-scroll-top-btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(42, 111, 216, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(42, 111, 216, 0.22);
    cursor: pointer;
}

.dialog-scroll-top-btn:hover {
    background: #1f63ca;
}

.dialog-detail-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    margin-bottom: 12px;
    max-width: 75%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-detail-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dialog-detail-item.user {
    background: linear-gradient(135deg, #2A6FD8 0%, #398CFF 100%);
    align-self: flex-end;
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.dialog-detail-item.assistant {
    background-color: #FFFFFF;
    align-self: flex-start;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.dialog-detail-item .message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    text-align: right;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.dialog-detail-item.assistant .message-time {
    color: #8c8c8c;
    text-align: left;
    font-weight: 400;
}

.dialog-detail-item .message-content {
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

.dialog-detail-item.user .message-content {
    color: white;
}

.dialog-detail-item.assistant .message-content {
    color: #333;
}

.dialog-detail-item .message-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dialog-audio-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: #eef5ff;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 600;
}

.dialog-audio-chip.assistant {
    background: #f3f4f7;
    color: #516178;
}

.message-image-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-image-block img {
    width: 260px;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.message-image-text {
    line-height: 1.6;
}

.message-audio-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-audio-block-secondary {
    margin-top: 10px;
}

.message-audio-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 112px;
    max-width: 168px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(26, 115, 232, 0.14);
    background: #ffffff;
    color: #1f2d3d;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    box-shadow: 0 6px 16px rgba(17, 38, 75, 0.08);
}

.dialog-detail-item.user .message-audio-chip {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.message-audio-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(17, 38, 75, 0.12);
}

.message-audio-chip.is-playing {
    background: #eaf3ff;
    border-color: rgba(26, 115, 232, 0.28);
}

.dialog-detail-item.user .message-audio-chip.is-playing {
    background: rgba(255, 255, 255, 0.2);
}

.audio-play-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    position: relative;
    flex-shrink: 0;
}

.dialog-detail-item.user .audio-play-icon {
    background: #ffffff;
}

.audio-play-icon::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #ffffff;
}

.dialog-detail-item.user .audio-play-icon::before {
    border-left-color: #1a73e8;
}

.message-audio-chip.is-playing .audio-play-icon::before {
    top: 5px;
    left: 6px;
    width: 8px;
    height: 10px;
    border: 0;
    background:
        linear-gradient(to right, #ffffff 0 3px, transparent 3px 5px, #ffffff 5px 8px);
}

.dialog-detail-item.user .message-audio-chip.is-playing .audio-play-icon::before {
    background:
        linear-gradient(to right, #1a73e8 0 3px, transparent 3px 5px, #1a73e8 5px 8px);
}

.audio-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.audio-wave span {
    width: 3px;
    border-radius: 999px;
    background: #8fb7f4;
    display: block;
}

.audio-wave span:nth-child(1) {
    height: 8px;
}

.audio-wave span:nth-child(2) {
    height: 14px;
}

.audio-wave span:nth-child(3) {
    height: 10px;
}

.dialog-detail-item.user .audio-wave span {
    background: rgba(255, 255, 255, 0.72);
}

.message-audio-chip.is-playing .audio-wave span:nth-child(1) {
    animation: audioWave 0.9s ease-in-out infinite;
}

.message-audio-chip.is-playing .audio-wave span:nth-child(2) {
    animation: audioWave 0.9s ease-in-out 0.15s infinite;
}

.message-audio-chip.is-playing .audio-wave span:nth-child(3) {
    animation: audioWave 0.9s ease-in-out 0.3s infinite;
}

.audio-duration {
    font-size: 14px;
    color: inherit;
}

.audio-status {
    font-size: 12px;
    color: #6f7f96;
}

.dialog-detail-item.user .audio-status {
    color: rgba(255, 255, 255, 0.82);
}

@keyframes audioWave {
    0%, 100% {
        transform: scaleY(0.7);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.15);
        opacity: 1;
    }
}

.message-audio-hint {
    margin: 6px 0 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #8a94a7;
}

.dialog-detail-item.user .message-audio-hint {
    color: rgba(255, 255, 255, 0.78);
}

.message-audio-text,
.message-text {
    line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .detail-layout {
        flex-direction: column;
    }

    .detail-left {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 20px;
    }
    
    .detail-right {
        width: 100%;
        height: 60vh;
    }

    .phone-style-container {
        min-height: 400px;
    }
    
    .dialog-detail-list {
        padding: 20px;
    }
    
    .dialog-detail-item {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        height: calc(100vh - 70px);
    }
    
    .detail-left {
        padding: 16px;
    }
    
    .conversation-header {
        padding: 16px 20px;
    }
    
    .dialog-detail-list {
        padding: 16px;
        gap: 12px;
    }
    
    .dialog-detail-item {
        max-width: 90%;
        padding: 10px 14px;
    }
    
    .dialog-detail-item .message-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .product-switcher,
    .product-menu {
        display: none;
    }
    
    .search-input input {
        width: 200px;
    }
}

/* 分页样式 */
.pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-info {
    font-weight: 500;
    color: #555;
}

.pagination-controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
}

.pagination-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #398CFF;
    color: #398CFF;
    -webkit-box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.pagination-btn:disabled {
    border-color: #e8e8e8;
    color: #ccc;
    cursor: not-allowed;
    background-color: #fafafa;
}

.page-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-weight: 500;
}

.page-btn:hover:not(.active) {
    border-color: #398CFF;
    color: #398CFF;
    -webkit-box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.page-btn:active:not(.active) {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.page-btn.active {
    background-color: #398CFF;
    color: white;
    border-color: #398CFF;
    -webkit-box-shadow: 0 3px 8px rgba(57, 140, 255, 0.3);
    box-shadow: 0 3px 8px rgba(57, 140, 255, 0.3);
    font-weight: 600;
}

.pagination-jump {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.pagination-jump select,
.pagination-jump input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    background-color: #fff;
}

.pagination-jump select:focus,
.pagination-jump input:focus {
    outline: none;
    border-color: #398CFF;
    -webkit-box-shadow: 0 0 0 2px rgba(57, 140, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(57, 140, 255, 0.1);
}

.pagination-jump input {
    width: 65px;
    text-align: center;
    font-weight: 500;
}

.pagination-jump button {
    padding: 8px 16px;
    background-color: #398CFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 500;
    -webkit-box-shadow: 0 2px 4px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 4px rgba(57, 140, 255, 0.2);
}

.pagination-jump button:hover {
    background-color: #2A6FD8;
    -webkit-box-shadow: 0 3px 6px rgba(42, 111, 216, 0.3);
    box-shadow: 0 3px 6px rgba(42, 111, 216, 0.3);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.pagination-jump button:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.page-ellipsis {
    padding: 0 10px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.page-separator {
    padding: 0 5px;
}

/* 响应式分页样式 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-jump {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-info {
        text-align: center;
    }
}

/* 数据统计子菜单样式 */
.data-statistics-menu {
    position: relative;
    z-index: 10;
}

.data-statistics-menu > a {
    pointer-events: auto;
    display: block;
}

.sub-menu {
    list-style: none;
    margin-left: 36px;
}

.sub-menu li a {
    display: flex;
    align-items: center;
    font-size: 13px;
    min-height: 36px;
    padding: 8px 16px;
    color: #666;
    border-left: 2px solid transparent;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.sub-menu li a:hover {
    color: #398CFF;
    background-color: rgba(57, 140, 255, 0.05);
    border-left-color: rgba(57, 140, 255, 0.3);
}

.sub-menu li a.active {
    background-color: #e6f2ff;
    color: #398CFF;
    font-weight: bold;
    border-left-color: #398CFF;
}

.component-center-menu > .component-center-toggle {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.component-sub-menu {
    margin-left: 0;
    background: #eef3f8;
    padding: 4px 0;
}

.component-sub-menu li a {
    padding-left: 52px;
}

/* 数据统计页面样式 */
.stats-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.chart-container {
    width: 100%;
    height: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-col {
    flex: 1;
    min-width: 200px;
}

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

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.stats-value {
    font-size: 28px;
    font-weight: 700;
    color: #398CFF;
    margin-bottom: 8px;
}

.stats-change {
    font-size: 14px;
    color: #009900;
}

.stats-change.negative {
    color: #ff0000;
}

/* 图表容器样式 */
.chart-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

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

/* 消息记录列表样式 */
.message-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.message-item:hover {
    background-color: rgba(57, 140, 255, 0.03);
}

.message-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #398CFF;
    font-size: 24px;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.message-records .message-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.message-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 通话记录样式 */
.call-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.call-item:hover {
    background-color: rgba(57, 140, 255, 0.03);
}

.call-info {
    flex: 1;
    min-width: 0;
}

.call-number {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.call-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.call-duration {
    font-size: 13px;
    color: #666;
}

.call-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.call-status.success {
    background-color: #e6f9e6;
    color: #009900;
}

.call-status.failed {
    background-color: #ffe6e6;
    color: #ff0000;
}

.call-status.missed {
    background-color: #fff3e6;
    color: #ff9900;
}

/* 分页样式适配 */
.pagination {
    margin-top: 20px;
}

/* 新建项目弹层 */
.new-project-modal {
    position: fixed;
    top: 60px;
    left: 305px;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 900;
    display: none;
    padding: 0;
}

.new-project-modal.open {
    display: flex;
}

.new-project-panel {
    width: 100%;
    max-width: none;
    height: 100%;
    background: #fff;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.new-project-header {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #e8ebf2;
}

.new-project-header h2 {
    margin-right: auto;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 600;
}

.new-project-back-btn {
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #2c3c52;
    cursor: pointer;
    line-height: 1;
}

.new-project-steps {
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 340px;
    border-bottom: 1px solid #e8ebf2;
    background: #fff;
}

.new-project-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8b95a7;
    white-space: nowrap;
}

.step-index {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #c6cfdd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.new-project-step.active {
    color: #1f2d3d;
}

.new-project-step.active .step-index {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
}

.new-project-step.completed .step-index {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #fff;
    font-size: 0;
}

.new-project-step.completed .step-index::before {
    content: "✓";
    font-size: 14px;
}

.step-name {
    font-size: 16px;
}

.new-project-step-line {
    height: 1px;
    background: #e3e7ef;
    flex: 1;
    margin: 0 18px;
}

.new-project-body {
    flex: 1;
    border-top: 1px solid #e8ebf2;
    border-bottom: 1px solid #e8ebf2;
    overflow-y: auto;
}

.new-project-step-content {
    display: none;
    width: 100%;
    min-height: 100%;
}

.new-project-step-content.active {
    display: grid;
}

.new-project-step-content.step1 {
    grid-template-columns: 1fr 1fr;
}

.new-project-step-content.step3 {
    grid-template-columns: 1fr 1fr;
}

.new-project-form,
.new-project-preview {
    display: flex;
    flex-direction: column;
}

.new-project-form,
.new-project-dialog-form {
    border-right: 1px solid #e8ebf2;
}

.new-project-section-title {
    height: 52px;
    line-height: 52px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e8ebf2;
    background: #f7f8fa;
}

.new-project-fields {
    padding: 24px 34px;
}

.new-project-field {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    margin-bottom: 18px;
    font-size: 14px;
}

.new-project-field label {
    color: #253248;
    text-align: right;
    padding-right: 12px;
}

.required {
    color: #ff4d4f;
}

.new-project-name-input {
    height: 46px;
    border: 1px solid #d7deea;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
}

.project-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.project-type-option {
    height: 44px;
    padding: 0 20px;
    border: 1px solid #ccd5e3;
    background: #fff;
    margin-right: -1px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3c52;
}

.project-type-option.active {
    border-color: #1a73e8;
    color: #1a73e8;
    position: relative;
    z-index: 1;
}

.new-project-custom-fields {
    margin-top: 6px;
}

.new-project-radio-group {
    display: flex;
    gap: 34px;
    align-items: center;
    font-size: 14px;
}

.new-project-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.preview-phone {
    width: 340px;
    height: 620px;
    margin: 24px auto;
    border: 1px solid #ced8e8;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.project-preview-panel {
    position: absolute;
    inset: 0;
    display: none;
}

.project-preview-panel.active {
    display: block;
}

.project-preview-topbar {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #262b33;
}

.project-preview-topbar strong {
    font-size: 17px;
    font-weight: 600;
}

.project-preview-spacer {
    width: 20px;
    height: 20px;
}

.project-preview-chip {
    padding: 4px 8px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    color: #657083;
    line-height: 24px;
}

.project-preview-panel-voice {
    background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
}

.voice-preview-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.55;
}

.voice-preview-bg-top-right {
    top: -40px;
    right: -50px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(215, 195, 255, 0.8), rgba(215, 195, 255, 0));
}

.voice-preview-bg-bottom-left {
    left: -40px;
    bottom: -20px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(180, 228, 255, 0.85), rgba(180, 228, 255, 0));
}

.voice-preview-bg-center {
    top: 180px;
    left: 80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 214, 243, 0.8), rgba(212, 242, 255, 0));
}

.voice-preview-bubble {
    position: absolute;
    top: 90px;
    left: 20px;
    right: 60px;
    z-index: 2;
    padding: 12px 16px;
    border-radius: 0 8px 8px 8px;
    background: #fff;
    color: #1d2531;
    line-height: 22px;
}

.voice-preview-orb {
    position: absolute;
    top: 235px;
    left: 50%;
    width: 166px;
    height: 166px;
    transform: translateX(-50%);
}

.voice-preview-orb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.voice-preview-orb-core {
    transform: scale(0.82);
    opacity: 0.92;
}

.voice-preview-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 170px;
    text-align: center;
    color: #006bff;
    font-size: 14px;
    font-weight: 600;
}

.voice-preview-actions,
.vision-preview-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    display: flex;
    justify-content: center;
    gap: 24px;
    z-index: 2;
}

.voice-preview-action,
.vision-preview-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #626f85;
    font-size: 10px;
    line-height: 10px;
}

.voice-preview-action-icon,
.vision-preview-action-icon {
    width: 56px;
    height: 56px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b7487;
}

.voice-preview-action-icon.hangup,
.vision-preview-action-icon.hangup {
    color: #ff4d4f;
}

.voice-preview-action-icon.muted,
.vision-preview-action-icon.muted {
    color: #5f6676;
}

.project-preview-panel-vision,
.project-preview-panel-digital {
    background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
}

.vision-preview-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.08) 0%, rgba(26, 26, 26, 0.25) 100%);
}

.vision-preview-focus {
    position: absolute;
    left: 50%;
    top: 246px;
    width: 178px;
    transform: translateX(-50%);
}

.vision-preview-focus img {
    width: 100%;
    display: block;
}

.vision-preview-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 152px;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.project-preview-panel-digital {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.78) 100%), radial-gradient(circle at 100% 100%, #b8b7ff 0%, #d4f0ff 100%);
}

.digital-preview-surface {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 24px;
}

.digital-preview-photo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 408px;
    height: 724px;
    object-fit: cover;
    transform: translate(-50%, -46%);
}

.digital-preview-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.42) 100%);
}

.digital-preview-bubble {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.digital-preview-bubble img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    flex: 0 0 auto;
}

.digital-preview-bubble-text {
    flex: 1 1 auto;
    padding: 8px 12px;
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(255,255,255,0.8) 4.7%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: blur(6px);
    color: #1d2531;
    font-size: 16px;
    line-height: 28px;
}

.digital-preview-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 128px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #1d2531;
}

.digital-preview-status span {
    font-size: 12px;
    line-height: 20px;
}

.digital-preview-status strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

.digital-preview-bars {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.digital-preview-bars i {
    width: 6px;
    border-radius: 69px;
    background: #1d2531;
    display: block;
}

.digital-preview-bars i:nth-child(1) { height: 9px; }
.digital-preview-bars i:nth-child(2) { height: 14px; }
.digital-preview-bars i:nth-child(3) { height: 6px; }
.digital-preview-bars i:nth-child(4) { height: 12px; }
.digital-preview-bars i:nth-child(5) { height: 12px; }

.digital-preview-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 36px;
}

.digital-preview-actions button {
    width: 56px;
    height: 56px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.digital-preview-actions button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.digital-preview-footer-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    text-align: center;
    color: #657083;
    font-size: 12px;
    line-height: 20px;
}

.project-preview-panel-message {
    padding: 0 0 16px;
    background: #f7f9fa;
    display: none;
    flex-direction: column;
}

.project-preview-panel-message.active {
    display: flex;
}

.message-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

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

.message-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
    background:
        radial-gradient(circle at 50% 50%, #273349 18%, #9cc7ff 19%, #72cfff 45%, #d9f2ff 70%);
}

.message-preview-avatar.small {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.message-preview-heading {
    display: flex;
    flex-direction: column;
}

.message-preview-heading strong {
    font-size: 16px;
    color: #1d2531;
    line-height: 24px;
}

.message-preview-heading span {
    font-size: 12px;
    color: #657083;
    line-height: 20px;
}

.message-preview-body {
    flex: 1 1 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-preview-row {
    display: flex;
    gap: 8px;
}

.message-preview-row p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #1d2531;
}

.message-preview-row.user {
    justify-content: flex-end;
    align-items: flex-start;
}

.message-preview-row.user p {
    padding: 12px 16px;
    border-radius: 8px 8px 0 8px;
    background: #e1e7ed;
}

.message-preview-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(144deg, rgba(224,194,255,0.6), rgba(151,224,255,0.6));
}

.message-preview-input {
    margin: auto 16px 0;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.message-preview-input span {
    flex: 1 1 auto;
    color: #9ea7b8;
    line-height: 22px;
}

.message-preview-input button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #7dd0ff;
    color: #fff;
    line-height: 1;
}

.new-project-footer {
    height: 62px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
}

.new-project-cancel-btn,
.new-project-next-btn {
    height: 36px;
    min-width: 86px;
    border-radius: 4px;
    border: 1px solid #d0d8e6;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.new-project-next-btn {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
}

.new-project-flow-wrap {
    width: 100%;
}

.flow-body {
    padding: 20px 16px 28px;
}

.flow-group {
    margin-bottom: 24px;
}

.flow-group h3 {
    font-size: 16px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.flow-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: flex-start;
    margin-bottom: 10px;
}

.flow-row > label {
    text-align: right;
    padding-right: 10px;
    font-size: 14px;
    line-height: 34px;
    color: #2f3e52;
}

.flow-input {
    min-height: 34px;
    border: 1px solid #d7deea;
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 14px;
    width: 100%;
    background: #fff;
}

.flow-textarea {
    min-height: 66px;
    resize: vertical;
    font-family: inherit;
}

.flow-choice-group {
    display: flex;
    align-items: center;
}

.flow-choice {
    min-height: 32px;
    border: 1px solid #ccd5e3;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    cursor: pointer;
    margin-right: -1px;
}

.flow-choice.active {
    border-color: #1a73e8;
    color: #1a73e8;
    z-index: 1;
}

.flow-inline-input .flow-tip {
    margin-top: 4px;
    color: #8a94a7;
    font-size: 12px;
}

.new-project-dialog-form,
.new-project-dialog-preview {
    display: flex;
    flex-direction: column;
}

.dialog-setting-body {
    padding: 20px 16px 24px;
}

.dialog-theme-row {
    align-items: center;
}

.dialog-theme-options {
    display: flex;
    gap: 12px;
}

.dialog-theme-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.dialog-theme-option span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.dialog-theme-option[data-theme-color="#6ac5ff"] span { background: #6ac5ff; }
.dialog-theme-option[data-theme-color="#a3aaf8"] span { background: #a3aaf8; }
.dialog-theme-option[data-theme-color="#f2bb6a"] span { background: #f2bb6a; }
.dialog-theme-option[data-theme-color="#8097f0"] span { background: #8097f0; }
.dialog-theme-option[data-theme-color="#58cfc0"] span { background: #58cfc0; }
.dialog-theme-option[data-theme-color="#66c8ea"] span { background: #66c8ea; }

.dialog-theme-option.active {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.dialog-example-row {
    align-items: flex-start;
}

.dialog-example-list {
    width: 100%;
}

.dialog-example-item {
    display: grid;
    grid-template-columns: 1fr 26px;
    gap: 8px;
    margin-bottom: 8px;
}

.dialog-example-remove {
    border: 0;
    background: transparent;
    color: #1a73e8;
    cursor: pointer;
    font-size: 14px;
}

.dialog-example-tip {
    color: #8a94a7;
    font-size: 14px;
}

.dialog-phone {
    width: 340px;
    height: 580px;
    margin: 16px auto;
    border: 1px solid #ced8e8;
    border-radius: 20px;
    padding: 12px;
    background: #f3f5f8;
    display: flex;
    flex-direction: column;
}

.dialog-phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dialog-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6ac5ff;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.dialog-preview-name {
    font-size: 16px;
    color: #202c3c;
}

.dialog-close {
    margin-left: auto;
    color: #79839a;
    font-size: 16px;
}

.dialog-preview-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog-preview-item {
    min-height: 46px;
    border-radius: 6px;
    background: #fff;
    color: #2f3e52;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.dialog-phone-input {
    margin-top: auto;
    border: 1px solid #e0e5ee;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 8px;
    align-items: center;
}

.dialog-preview-placeholder {
    border: 0;
    outline: 0;
    color: #9ca6ba;
    font-size: 14px;
    background: transparent;
}

.dialog-send-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #6ac5ff;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 1280px) {
    .new-project-steps {
        padding: 0 70px;
    }

    .step-name,
    .new-project-section-title {
        font-size: 14px;
    }

    .new-project-field {
        grid-template-columns: 98px 1fr;
        font-size: 14px;
    }

    .new-project-name-input,
    .project-type-option {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination-btn,
    .page-btn {
        padding: 6px 12px;
        min-width: 32px;
        font-size: 13px;
    }
    
    .pagination-jump {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .pagination-jump input {
        width: 50px;
    }
    
    .pagination-jump button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .dialog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section {
        margin-bottom: 10px;
    }
    
    .dialog-detail-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .dialog-detail-item {
        max-width: 100% !important;
    }
    
    /* 数据统计响应式样式 */
    .stats-row {
        flex-direction: column;
    }
    
    .stats-col {
        min-width: auto;
    }
    
    .message-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-icon {
        margin-bottom: 12px;
    }
    
    .call-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Visual Refresh */
:root {
    --ui-bg: #f4f7fb;
    --ui-panel: #ffffff;
    --ui-panel-soft: #f8fbff;
    --ui-border: #e4ebf5;
    --ui-text: #162033;
    --ui-text-soft: #5f6f86;
    --ui-text-faint: #8b98ab;
    --ui-accent: #1f6bff;
    --ui-accent-soft: #eaf2ff;
    --ui-shadow: 0 18px 40px rgba(32, 66, 124, 0.08);
}

body {
    font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 107, 255, 0.06), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #f3f6fb 100%);
    color: var(--ui-text);
}

.header {
    height: 64px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(228, 235, 245, 0.9);
    box-shadow: 0 8px 24px rgba(33, 52, 88, 0.04);
    backdrop-filter: blur(14px);
}

.header-left,
.header-right {
    gap: 14px;
}

.logo {
    margin-right: 8px;
}

.workspace,
.project-selector {
    height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.workspace {
    padding: 0 14px;
    background: var(--ui-accent-soft);
    color: var(--ui-accent);
}

.project-selector {
    margin-left: 0;
    padding: 0 16px;
    border: 1px solid var(--ui-border);
    background: rgba(248, 251, 255, 0.88);
    color: var(--ui-text-soft);
}

.header-menu {
    gap: 4px;
    margin-right: 10px;
}

.header-menu a {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ui-text-soft);
}

.header-menu a:hover {
    background: var(--ui-panel-soft);
    color: var(--ui-text);
}

.user-avatar {
    background: linear-gradient(135deg, #1f6bff 0%, #4d8dff 100%);
    box-shadow: 0 8px 18px rgba(31, 107, 255, 0.2);
}

.user-name {
    font-weight: 600;
    color: var(--ui-text);
}

.sub-account {
    color: var(--ui-text-faint);
}

.main-container {
    margin-top: 64px;
    height: calc(100vh - 64px);
    background: transparent;
}

.product-switcher {
    width: 80px;
    padding: 12px 10px;
    background: rgba(248, 251, 255, 0.9);
    border-right: 1px solid var(--ui-border);
}

.switcher-menu {
    padding: 0;
}

.switcher-menu li {
    margin-bottom: 8px;
}

.switcher-menu a {
    gap: 6px;
    padding: 12px 6px;
    border-radius: 18px;
    color: var(--ui-text-faint);
    font-size: 11px;
    font-weight: 600;
}

.switcher-menu a i {
    margin-bottom: 0;
}

.switcher-menu a:hover {
    background: #eef4ff;
    color: var(--ui-accent);
}

.switcher-menu a.active {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 107, 255, 0.22);
}

.product-menu {
    width: 244px;
    background: rgba(248, 251, 255, 0.94);
    border-right: 1px solid var(--ui-border);
}

.menu-header {
    padding: 22px 20px 14px;
    background: transparent;
    border-bottom: 0;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ui-text);
    letter-spacing: -0.01em;
}

.menu-section {
    padding: 8px 12px 18px;
}

.menu-list li {
    margin-bottom: 4px;
}

.menu-list a {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--ui-text-soft);
    font-weight: 500;
}

.menu-list a:hover {
    background: #edf3ff;
    color: var(--ui-accent);
}

.menu-list a.active {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(31, 107, 255, 0.18);
}

.sub-menu {
    margin: 8px 0 0 8px;
    padding-left: 10px;
    border-left: 1px solid var(--ui-border);
}

.sub-menu li a {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 12px;
}

.content {
    padding: 24px;
    background: transparent;
}

.page-container {
    display: none;
    min-height: calc(100vh - 112px);
    background: var(--ui-panel);
    border: 1px solid rgba(228, 235, 245, 0.9);
    border-radius: 24px;
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

.page-container.active {
    display: block;
}

.content-header {
    margin-bottom: 0;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(228, 235, 245, 0.72);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ui-text);
}

.help-link {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ui-accent);
    font-weight: 600;
}

.help-link:hover {
    background: var(--ui-accent-soft);
}

.search-bar,
.dialog-filter-bar,
.dialog-search-bar,
.stats-header {
    margin: 20px 24px 0;
    padding: 18px 20px;
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-input input,
.dialog-search-bar .search-input input,
.time-input,
.project-filter,
.jump-input,
.new-project-name-input {
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ui-text);
    box-shadow: none;
}

.search-input input:focus,
.dialog-search-bar .search-input input:focus,
.time-input:focus,
.jump-input:focus,
.project-filter:focus {
    border-color: rgba(31, 107, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(31, 107, 255, 0.08);
}

.search-input {
    gap: 10px;
}

.search-input input {
    height: 42px;
    min-width: 320px;
    border-radius: 12px;
}

.search-btn,
.new-project-btn,
.demo-btn,
.pagination-btn,
.jump-btn,
.new-project-next-btn,
.project-publish-btn,
.new-project-cancel-btn {
    border-radius: 12px;
    border: 0;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search-btn,
.new-project-btn,
.new-project-next-btn,
.project-publish-btn {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    box-shadow: 0 12px 24px rgba(31, 107, 255, 0.18);
}

.search-btn:hover,
.new-project-btn:hover,
.new-project-next-btn:hover,
.project-publish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(31, 107, 255, 0.22);
}

.demo-btn,
.pagination-btn,
.jump-btn,
.new-project-cancel-btn {
    background: #eef4ff;
    color: var(--ui-accent);
}

.action-buttons {
    gap: 12px;
}

.project-table,
.dialog-table {
    width: calc(100% - 48px);
    margin: 20px 24px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ui-panel);
}

.project-table th,
.dialog-table th {
    padding: 16px 18px;
    background: #f6f9fd;
    color: var(--ui-text-faint);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--ui-border);
}

.project-table td,
.dialog-table td {
    padding: 18px;
    border-bottom: 1px solid #edf2f8;
    color: var(--ui-text);
    font-size: 14px;
    vertical-align: middle;
    background: #fff;
}

.project-table tbody tr:hover td,
.dialog-table tbody tr:hover td {
    background: #fbfdff;
}

.project-name,
.dialog-table a,
.project-table a {
    color: var(--ui-accent);
    font-weight: 600;
    text-decoration: none;
}

.project-name:hover,
.dialog-table a:hover,
.project-table a:hover {
    text-decoration: underline;
}

.project-type {
    color: var(--ui-text);
    font-weight: 600;
}

.delete-btn,
.view-btn {
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--ui-accent);
    font-weight: 600;
}

.pagination {
    margin: 18px 24px 24px;
    padding: 16px 20px;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: #fbfdff;
}

.pagination-info,
.pagination-jump,
.pagination-jump span {
    color: var(--ui-text-soft);
}

.page-btn {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ui-text-soft);
}

.page-btn.active {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    border-color: transparent;
    color: #fff;
}

.project-detail-toolbar,
.project-detail-subnav {
    padding-left: 24px;
    padding-right: 24px;
}

.modal-content,
.new-project-panel {
    border: 1px solid var(--ui-border);
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(20, 45, 88, 0.18);
}

.modal-header,
.new-project-header {
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
    border-bottom: 1px solid var(--ui-border);
}

.project-detail-config,
.detail-left {
    background: #fbfdff;
}

.phone-style-container {
    margin: 0 24px 24px;
    border: 1px solid var(--ui-border);
    border-radius: 28px;
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9fd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 1200px) {
    .product-menu {
        width: 220px;
    }

    .search-input input {
        min-width: 240px;
    }
}

/* Reference Alignment */
body {
    background: #eef3f8;
}

.header {
    height: 48px;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #e5eaf1;
    box-shadow: none;
    backdrop-filter: none;
}

.header-left,
.header-right {
    gap: 8px;
}

.logo {
    margin-right: 10px;
}

.logo img {
    height: 28px !important;
}

.workspace,
.project-selector {
    height: 30px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.workspace {
    padding: 0 10px;
    background: #f7f9fc;
    color: #2e3a4d;
}

.project-selector {
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d7dee8;
    color: #44536a;
}

.header-menu a {
    padding: 0 8px;
    border-radius: 0;
    font-size: 12px;
}

.header-menu a:hover,
.help-link:hover {
    background: transparent;
}

.user-avatar {
    width: 34px;
    height: 34px;
    box-shadow: none;
}

.main-container {
    margin-top: 48px;
    height: calc(100vh - 48px);
}

.product-switcher {
    width: 52px;
    padding: 0;
    background: linear-gradient(180deg, #3a89ff 0%, #367ce6 100%);
    border-right: 0;
}

.switcher-menu li {
    margin-bottom: 0;
}

.switcher-menu a {
    min-height: 52px;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    font-weight: 500;
}

.switcher-menu a i {
    font-size: 18px;
}

.switcher-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.switcher-menu a.active {
    background: #2f72da;
    box-shadow: none;
}

.product-menu {
    width: 194px;
    background: #fff;
    border-right: 1px solid #e4e9f0;
}

.menu-header {
    padding: 10px 12px 8px;
}

.menu-title {
    font-size: 17px;
    font-weight: 500;
}

.menu-section {
    padding: 4px 0 10px;
}

.menu-list a {
    padding: 12px 14px;
    border-radius: 0;
    color: #2a3342;
    font-weight: 500;
}

.menu-list a:hover {
    background: #f4f7fb;
    color: #1f6bff;
}

.menu-list a.active {
    background: #1f6bff;
    color: #fff;
    box-shadow: none;
}

.sub-menu {
    margin: 0;
    padding-left: 0;
    border-left: 0;
}

.sub-menu li a {
    padding: 10px 14px 10px 38px;
    font-size: 14px;
    border-radius: 0;
}

.content {
    padding: 16px;
}

.page-container {
    min-height: calc(100vh - 80px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: transparent;
}

.content-header {
    margin-bottom: 14px;
    padding: 0 0 10px;
    border-bottom: 0;
    background: transparent;
}

.page-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.help-link {
    padding: 0;
    font-size: 12px;
}

.search-bar,
.dialog-filter-bar,
.dialog-search-bar,
.stats-header {
    margin: 0 0 14px;
    padding: 18px 18px 14px;
    border: 1px solid #e6ecf3;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.search-input {
    gap: 0;
}

.search-input input {
    min-width: 0;
    width: 260px;
    height: 32px;
    border-radius: 2px 0 0 2px;
    font-size: 12px;
}

.search-btn {
    height: 32px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 0 2px 2px 0;
    box-shadow: none;
}

.new-project-btn,
.demo-btn,
.project-publish-btn,
.new-project-next-btn,
.new-project-cancel-btn,
.pagination-btn,
.jump-btn,
.page-btn,
.delete-btn,
.view-btn {
    border-radius: 2px;
    box-shadow: none;
    transform: none !important;
}

.new-project-btn,
.project-publish-btn,
.new-project-next-btn,
.search-btn {
    background: #1f6bff;
}

.demo-btn,
.pagination-btn,
.jump-btn,
.new-project-cancel-btn,
.delete-btn,
.view-btn,
.page-btn {
    background: #fff;
    color: #1f6bff;
    border: 1px solid #d6e0ee;
}

.project-table,
.dialog-table {
    width: 100%;
    margin: 0;
    border: 1px solid #e6ecf3;
    border-radius: 0;
    background: #fff;
}

.project-table th,
.dialog-table th {
    padding: 11px 16px;
    background: #f5f7fa;
    color: #59667a;
    font-size: 13px;
    font-weight: 600;
}

.project-table td,
.dialog-table td {
    padding: 10px 16px;
    font-size: 13px;
    background: #fff;
}

.project-table tbody tr:hover td,
.dialog-table tbody tr:hover td {
    background: #fafcff;
}

.pagination {
    margin: 0;
    padding: 12px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.pagination-controls {
    gap: 8px;
}

.page-btn {
    min-width: 30px;
    height: 30px;
}

.modal-content,
.new-project-panel {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 45, 88, 0.18);
}

.modal-header,
.new-project-header {
    background: #fff;
}

.project-detail-config,
.detail-left,
.project-detail-subnav,
.project-detail-toolbar,
.project-detail-layout {
    background: #fff;
}

.phone-style-container {
    margin: 0 24px 24px;
    border-radius: 24px;
}

/* Reference Fine Alignment */
.header {
    height: 52px;
    padding: 0 16px;
}

.main-container {
    margin-top: 52px;
    height: calc(100vh - 52px);
}

.product-switcher {
    width: 52px;
}

.product-menu {
    width: 200px;
}

.menu-header {
    padding: 14px 16px;
    border-bottom: 1px solid #d8e0e8;
}

.menu-title {
    font-size: 16px;
    font-weight: 600;
}

.menu-list a {
    padding: 9px 16px;
    font-size: 14px;
}

.menu-list i {
    width: 20px;
    margin-right: 8px;
}

.sub-menu li a {
    padding: 10px 16px 10px 40px;
}

.content {
    padding: 0;
    background: #e1e7ed;
}

.page-container,
.page-container.active {
    min-height: calc(100vh - 52px);
    background: transparent;
}

.content-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.page-title,
.project-detail-breadcrumb {
    font-size: 14px;
    font-weight: 500;
    color: #1d2531;
}

.help-link {
    font-size: 14px;
    font-weight: 400;
    color: #006bff;
}

.search-bar,
.dialog-filter-bar,
.dialog-search-bar,
.stats-header {
    margin: 16px 16px 0;
    padding: 12px 16px;
    border: 0;
    background: #fff;
}

.search-input input,
.dialog-search-bar .search-input input,
.time-input,
.project-filter,
.jump-input {
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    font-size: 14px;
}

.search-input input {
    width: 240px;
}

.search-btn,
.new-project-btn,
.demo-btn,
.project-publish-btn,
.new-project-next-btn,
.new-project-cancel-btn,
.pagination-btn,
.jump-btn,
.page-btn,
.delete-btn,
.view-btn {
    height: 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.search-btn,
.new-project-btn,
.project-publish-btn,
.new-project-next-btn {
    background: #006bff;
}

.demo-btn,
.new-project-cancel-btn,
.pagination-btn,
.jump-btn,
.page-btn {
    background: #fff;
    border: 1px solid #e1e7ed;
    color: #1d2531;
}

.action-buttons {
    gap: 8px;
}

.project-table,
.dialog-table {
    width: calc(100% - 32px);
    margin: 0 16px;
    border: 0;
    background: #fff;
}

.project-table th,
.dialog-table th {
    height: 40px;
    padding: 9px 16px;
    background: #f7f9fa;
    border-bottom: 1px solid #edf1f5;
    color: #657083;
    font-size: 14px;
    font-weight: 500;
}

.project-table td,
.dialog-table td {
    min-height: 40px;
    padding: 9px 16px;
    border-bottom: 1px solid #edf1f5;
    color: #1d2531;
    font-size: 14px;
    vertical-align: middle;
}

.project-table tbody tr:hover td,
.dialog-table tbody tr:hover td {
    background: #fff;
}

.project-name,
.dialog-table a,
.project-table a {
    color: #006bff;
    font-weight: 400;
}

.project-type {
    font-weight: 400;
}

.delete-btn,
.view-btn {
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: #006bff;
}

.pagination {
    margin: 0 16px 16px;
    padding: 12px 24px;
    border-top: 1px solid #e1e7ed;
    background: #f7f9fa;
}

.pagination-info,
.pagination-jump,
.pagination-jump span {
    font-size: 14px;
    color: #657083;
}

.pagination-info .total-records,
.pagination-info .current-page {
    color: #006bff;
}

.page-btn {
    min-width: 32px;
    width: 32px;
    padding: 0;
}

.page-btn.active {
    background: #006bff;
    color: #fff;
}

.project-detail-toolbar,
.project-detail-subnav {
    background: #fff;
}

.modal-content,
.new-project-panel {
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .product-menu {
        width: 184px;
    }
}

/* Project Management Page Alignment */
.page-container.project-management {
    display: none;
    margin: 10px 12px 12px;
    min-height: calc(100vh - 72px);
    background: #ffffff;
    border: 1px solid #edf1f5;
    overflow: hidden;
    flex-direction: column;
}

.page-container.project-management.active {
    display: flex;
}

.project-management .content-header {
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.project-management .page-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2531;
}

.project-management .help-link {
    padding: 0;
    font-size: 14px;
    color: #006bff;
}

.project-management .search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
}

.project-management .search-input {
    display: flex;
    align-items: center;
    min-height: 32px;
}

.project-management .search-input input {
    width: 240px;
    height: 32px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #e1e7ed;
    font-size: 14px;
    color: #1d2531;
}

.project-management .search-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: #657083;
}

.project-management .search-btn svg {
    width: 14px;
    height: 14px;
}

.project-management .action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
    margin-left: auto;
}

.project-management .demo-btn {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #006bff;
    font-size: 14px;
    font-weight: 400;
}

.project-management .new-project-btn {
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    border: 0;
    background: #006bff;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.project-management .project-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.project-management .project-table th:nth-child(1) { width: 28%; }
.project-management .project-table th:nth-child(2) { width: 32%; }
.project-management .project-table th:nth-child(3) { width: 22%; }
.project-management .project-table th:nth-child(4) { width: 18%; }

.project-management .project-table th {
    height: 40px;
    padding: 9px 16px;
    background: #f7f9fa;
    color: #657083;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #edf1f5;
}

.project-management .project-table td {
    padding: 9px 16px;
    min-height: 40px;
    font-size: 14px;
    color: #1d2531;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}

.project-management .project-table tbody tr:last-child td {
    border-bottom: 0;
}

.project-management .project-name {
    color: #006bff;
    font-weight: 400;
}

.project-management .project-type {
    color: #1d2531;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.project-management .project-type[style] {
    color: #657083 !important;
    font-size: 14px !important;
    line-height: 22px;
}

.project-management .project-time {
    color: #1d2531;
}

.project-management .delete-btn {
    padding: 0;
    background: transparent;
    border: 0;
    color: #006bff;
    font-size: 12px;
    font-weight: 400;
}

.project-management .pagination {
    margin: auto 0 0;
    padding: 12px 24px;
    background: #f7f9fa;
    border: 0;
    border-top: 1px solid #e1e7ed;
    border-radius: 0;
}

.project-management .pagination-info,
.project-management .pagination-jump,
.project-management .pagination-jump span {
    font-size: 14px;
    color: #657083;
}

.project-management .pagination-info .total-records,
.project-management .pagination-info .current-page {
    color: #006bff;
}

.project-management .pagination-controls {
    gap: 8px;
}

.project-management .page-btn,
.project-management .pagination-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
    box-shadow: none;
}

.project-management .page-btn.active {
    background: #006bff;
    color: #fff;
    border-color: #006bff;
}

.project-management .pagination-jump input {
    width: 56px;
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
}

.project-management .jump-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
}

/* List Pages Alignment */
.page-container.dialog-records,
.page-container.skill-center,
.page-container.agent-create,
.page-container.agent-create-quick,
.page-container.message-records,
.page-container.call-records,
.page-container.component-library,
.page-container.component-library-detail,
.page-container.component-widget,
.page-container.component-widget-create,
.page-container.component-template,
.page-container.project-detail,
.page-container.usage-statistics {
    display: none;
    margin: 10px 12px 12px;
    min-height: calc(100vh - 72px);
    background: #ffffff;
    border: 1px solid #edf1f5;
    overflow: hidden;
    flex-direction: column;
}

.page-container.dialog-records.active,
.page-container.skill-center.active,
.page-container.agent-create.active,
.page-container.agent-create-quick.active,
.page-container.message-records.active,
.page-container.call-records.active,
.page-container.component-library.active,
.page-container.component-library-detail.active,
.page-container.component-widget.active,
.page-container.component-widget-create.active,
.page-container.component-template.active,
.page-container.project-detail.active,
.page-container.usage-statistics.active {
    display: flex;
}

.dialog-records .content-header,
.skill-center .content-header,
.agent-create .content-header,
.agent-create-quick .content-header,
.message-records .content-header,
.call-records .content-header,
.component-library .content-header,
.component-library-detail .content-header,
.component-widget .content-header,
.component-widget-create .content-header,
.component-template .content-header,
.project-detail .content-header,
.usage-statistics .content-header {
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    margin-bottom: 0;
}

.dialog-records .page-title,
.skill-center .page-title,
.agent-create .page-title,
.agent-create-quick .page-title,
.message-records .page-title,
.call-records .page-title,
.component-library .page-title,
.component-library-detail .page-title,
.component-widget .page-title,
.component-widget-create .page-title,
.component-template .page-title,
.project-detail .page-title,
.usage-statistics .page-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2531;
}

.dialog-records .help-link,
.skill-center .help-link,
.agent-create .help-link,
.agent-create-quick .help-link,
.message-records .help-link,
.call-records .help-link,
.component-library .help-link,
.component-library-detail .help-link,
.component-widget .help-link,
.component-widget-create .help-link,
.component-template .help-link,
.project-detail .help-link,
.usage-statistics .help-link {
    padding: 0;
    font-size: 14px;
    color: #006bff;
}

.dialog-records .dialog-filter-bar,
.message-records .dialog-filter-bar,
.call-records .dialog-filter-bar,
.dialog-records .dialog-search-bar,
.message-records .dialog-search-bar,
.call-records .dialog-search-bar {
    margin: 0;
    padding: 12px 16px;
    border: 0;
    background: #fff;
}

.agent-create-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 16px 16px;
    background: #f5f7fa;
    overflow: auto;
}

.agent-create-section {
    background: #fff;
    border: 1px solid #edf1f5;
}

.agent-create-section-title {
    position: relative;
    padding: 18px 20px 18px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2531;
    border-bottom: 1px solid #edf1f5;
}

.agent-create-section-title::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 3px;
    height: 14px;
    background: #006bff;
    border-radius: 999px;
    transform: translateY(-50%);
}

.agent-create-form {
    padding: 20px 24px 28px;
}

.agent-create-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 760px);
    column-gap: 12px;
    align-items: start;
    margin-bottom: 20px;
}

.agent-create-row:last-child {
    margin-bottom: 0;
}

.agent-create-row-top {
    align-items: start;
}

.agent-create-row > label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
    margin-top: 0;
    padding-top: 0;
    color: #657083;
    font-size: 14px;
    line-height: 32px;
    text-align: right;
    white-space: nowrap;
}

.agent-create-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    max-width: 760px;
}

.agent-create-input,
.agent-create-textarea,
.agent-inline-input {
    width: 100%;
    border: 1px solid #dce3eb;
    border-radius: 2px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
}

.agent-create-input,
.agent-inline-input {
    height: 32px;
    padding: 0 12px;
    line-height: 32px;
}

.agent-create-textarea {
    min-height: 56px;
    padding: 8px 12px;
    line-height: 20px;
    resize: vertical;
}

.agent-create-input::placeholder,
.agent-create-textarea::placeholder,
.agent-inline-input::placeholder {
    color: #b2bac6;
}

.agent-create-tip {
    margin-top: 6px;
    font-size: 12px;
    line-height: 20px;
    color: #9ea7b8;
}

.agent-create-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    min-height: 32px;
    align-items: center;
    padding-top: 0;
}

.agent-create-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d2531;
    font-size: 14px;
    line-height: 20px;
}

.agent-create-radio-group input[type="radio"] {
    margin: 0;
}

.agent-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 360px;
    min-height: 142px;
    padding: 20px 24px;
    border: 1px dashed #dce3eb;
    border-radius: 2px;
    background: #fafbfd;
    text-align: center;
}

.agent-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #006bff;
}

.agent-upload-title {
    color: #1d2531;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.agent-upload-tip {
    margin-top: 6px;
    color: #9ea7b8;
    font-size: 12px;
    line-height: 20px;
}

.agent-upload-link {
    margin-top: 4px;
    color: #006bff;
    font-size: 12px;
    line-height: 20px;
}

.agent-card-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 12px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dce3eb;
    border-radius: 2px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.agent-library-select,
.agent-skill-select {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.agent-library-select-trigger,
.agent-skill-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dce3eb;
    border-radius: 2px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
    cursor: pointer;
}

.agent-library-select-trigger-text,
.agent-skill-select-trigger-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-library-select-arrow,
.agent-skill-select-arrow {
    margin-left: 12px;
    color: #7b8496;
    font-size: 12px;
    line-height: 1;
}

.agent-library-select-panel,
.agent-skill-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    border: 1px solid #dce3eb;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(29, 37, 49, 0.12);
    z-index: 20;
}

.agent-library-select.open .agent-library-select-panel,
.agent-skill-select.open .agent-skill-select-panel {
    display: block;
}

.agent-library-select-search,
.agent-skill-select-search {
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dce3eb;
    border-radius: 2px;
    color: #1d2531;
    font-size: 14px;
}

.agent-library-select-options,
.agent-skill-select-options {
    max-height: 220px;
    margin-top: 8px;
    overflow: auto;
}

.agent-library-select-option,
.agent-skill-select-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #1d2531;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.agent-library-select-option:hover,
.agent-library-select-option.active,
.agent-skill-select-option:hover,
.agent-skill-select-option.active {
    background: #f3f7ff;
    color: #006bff;
}

.agent-library-select-empty,
.agent-skill-select-empty {
    padding: 8px;
    color: #9ea7b8;
    font-size: 12px;
    line-height: 20px;
}

.agent-skill-select-empty-action {
    display: none;
}

.agent-skill-create-tip {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: #8a93a5;
    font-size: 12px;
    line-height: 20px;
}

.agent-skill-create-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #006bff;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
}

.agent-skill-create-link:hover {
    text-decoration: underline;
}

.agent-create-row:not(.agent-create-row-top) .agent-create-field {
    padding-top: 0;
}

.agent-create-row.agent-create-row-top > label {
    align-items: flex-start;
}

.agent-resource-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
}

.agent-resource-input {
    min-width: 0;
}

.agent-create-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    max-width: 760px;
}

.agent-inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-inline-row .agent-inline-input {
    flex: 1;
}

.agent-inline-remove-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dce3eb;
    border-radius: 2px;
    background: #fff;
    color: #657083;
    font-size: 18px;
    line-height: 30px;
    cursor: pointer;
}

.agent-inline-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border: 1px dashed #dce3eb;
    border-radius: 2px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
    cursor: pointer;
}

.agent-create-switch {
    display: inline-flex;
    margin-top: 4px;
    margin-bottom: 0;
}

.agent-create-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 0 0;
}

.agent-create-cancel-btn {
    min-width: 88px;
}

.agent-create-submit-btn {
    min-width: 104px;
}

.agent-create-mode-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
}

.agent-create-mode-modal.active {
    display: flex;
}

.agent-create-mode-modal-content {
    width: 540px;
    height: 400px;
    max-width: calc(100vw - 32px);
}

.agent-create-mode-modal-body {
    padding: 20px;
}

.agent-create-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.agent-create-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 0;
    padding: 18px 18px 16px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.agent-create-mode-card:hover {
    border-color: #bfd6ff;
    box-shadow: 0 10px 24px rgba(0, 107, 255, 0.08);
    transform: translateY(-1px);
}

.agent-create-mode-title {
    color: #1d2531;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.agent-create-mode-desc {
    color: #657083;
    font-size: 14px;
    line-height: 22px;
}

.agent-create-mode-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #006bff;
    background: linear-gradient(135deg, #eef5ff 0%, #dceaff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.agent-create-mode-visual.code {
    color: #0f5bd8;
    background: linear-gradient(135deg, #eff4ff 0%, #e3edff 100%);
}

.quick-agent-prompt-input {
    min-height: 128px;
}

@media (max-width: 1360px) {
    .agent-create-form {
        padding-right: 16px;
        padding-left: 16px;
    }

    .agent-create-row {
        grid-template-columns: 104px minmax(0, 1fr);
        column-gap: 12px;
    }

    .agent-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agent-create-mode-grid {
        grid-template-columns: 1fr;
    }
}

.dialog-records .dialog-filter-bar,
.message-records .dialog-filter-bar,
.call-records .dialog-filter-bar {
    border-bottom: 1px solid #edf1f5;
}

.dialog-records .dialog-search-bar,
.message-records .dialog-search-bar,
.call-records .dialog-search-bar {
    padding-top: 0;
    padding-bottom: 12px;
}

.dialog-records .time-filter-buttons,
.message-records .time-filter-buttons,
.call-records .time-filter-buttons {
    gap: 0;
}

.dialog-records .time-filter-btn,
.message-records .time-filter-btn,
.call-records .time-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #d8e0e8;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
    line-height: 1;
}

.dialog-records .time-filter-btn:first-child,
.message-records .time-filter-btn:first-child,
.call-records .time-filter-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.dialog-records .time-filter-btn:last-child,
.message-records .time-filter-btn:last-child,
.call-records .time-filter-btn:last-child {
    border-right: 1px solid #d8e0e8;
    border-radius: 0 4px 4px 0;
}

.dialog-records .time-filter-btn.active,
.message-records .time-filter-btn.active,
.call-records .time-filter-btn.active {
    background: #eaf3ff;
    color: #006bff;
    border-color: #006bff;
    position: relative;
    z-index: 1;
}

.dialog-records .project-filter-container,
.message-records .project-filter-container,
.call-records .project-filter-container {
    gap: 8px;
    align-items: center;
}

.dialog-records .project-filter-container label,
.message-records .project-filter-container label,
.call-records .project-filter-container label {
    font-size: 14px;
    color: #1d2531;
}

.dialog-records .project-filter,
.message-records .project-filter,
.call-records .project-filter,
.dialog-records .time-input,
.message-records .time-input,
.call-records .time-input,
.dialog-records .jump-input,
.message-records .jump-input,
.call-records .jump-input,
.dialog-records .dialog-search-bar .search-input input,
.message-records .dialog-search-bar .search-input input,
.call-records .dialog-search-bar .search-input input {
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    font-size: 14px;
    color: #1d2531;
}

.dialog-records .dialog-search-bar .search-input input,
.message-records .dialog-search-bar .search-input input,
.call-records .dialog-search-bar .search-input input {
    width: 240px;
}

.dialog-records .search-btn,
.message-records .search-btn,
.call-records .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: #657083;
    line-height: 1;
}

.dialog-records .search-btn svg,
.message-records .search-btn svg,
.call-records .search-btn svg {
    display: block;
    width: 14px;
    height: 14px;
}

.dialog-records .dialog-table,
.message-records .dialog-table,
.call-records .dialog-table,
.component-library .dialog-table,
.component-library-detail .dialog-table,
.component-widget .dialog-table,
.project-detail .dialog-table,
.usage-statistics .dialog-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.dialog-records .dialog-table th,
.message-records .dialog-table th,
.call-records .dialog-table th,
.component-library .dialog-table th,
.component-library-detail .dialog-table th,
.component-widget .dialog-table th,
.project-detail .dialog-table th,
.usage-statistics .dialog-table th {
    height: 40px;
    padding: 9px 16px;
    background: #f7f9fa;
    border-bottom: 1px solid #edf1f5;
    color: #657083;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.dialog-records .dialog-table td,
.message-records .dialog-table td,
.call-records .dialog-table td,
.component-library .dialog-table td,
.component-library-detail .dialog-table td,
.component-widget .dialog-table td,
.project-detail .dialog-table td,
.usage-statistics .dialog-table td {
    padding: 9px 16px;
    min-height: 40px;
    font-size: 14px;
    color: #1d2531;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
    background: #fff;
}

.dialog-records .dialog-table tbody tr:last-child td,
.message-records .dialog-table tbody tr:last-child td,
.call-records .dialog-table tbody tr:last-child td,
.component-library .dialog-table tbody tr:last-child td,
.component-library-detail .dialog-table tbody tr:last-child td,
.component-widget .dialog-table tbody tr:last-child td,
.project-detail .dialog-table tbody tr:last-child td,
.usage-statistics .dialog-table tbody tr:last-child td {
    border-bottom: 0;
}

.dialog-records .dialog-table tbody tr:hover td,
.message-records .dialog-table tbody tr:hover td,
.call-records .dialog-table tbody tr:hover td,
.component-library .dialog-table tbody tr:hover td,
.component-library-detail .dialog-table tbody tr:hover td,
.component-widget .dialog-table tbody tr:hover td,
.project-detail .dialog-table tbody tr:hover td,
.usage-statistics .dialog-table tbody tr:hover td {
    background: #fff;
}

.dialog-records .dialog-content {
    max-width: 280px;
}

.dialog-records .view-btn,
.call-records .view-btn {
    padding: 0;
    background: transparent;
    border: 0;
    color: #006bff;
    font-size: 12px;
    font-weight: 400;
}

.dialog-records .pagination,
.message-records .pagination,
.call-records .pagination,
.component-library .pagination,
.component-library-detail .pagination,
.component-widget .pagination,
.project-detail .pagination,
.usage-statistics .pagination {
    margin: auto 0 0;
    padding: 12px 24px;
    background: #f7f9fa;
    border: 0;
    border-top: 1px solid #e1e7ed;
    border-radius: 0;
}

.dialog-records .pagination-info,
.message-records .pagination-info,
.call-records .pagination-info,
.component-library .pagination-info,
.component-library-detail .pagination-info,
.component-widget .pagination-info,
.project-detail .pagination-info,
.usage-statistics .pagination-info,
.dialog-records .pagination-jump,
.message-records .pagination-jump,
.call-records .pagination-jump,
.component-library .pagination-jump,
.component-library-detail .pagination-jump,
.component-widget .pagination-jump,
.project-detail .pagination-jump,
.usage-statistics .pagination-jump,
.dialog-records .pagination-jump span,
.message-records .pagination-jump span,
.call-records .pagination-jump span,
.component-library .pagination-jump span,
.component-library-detail .pagination-jump span,
.component-widget .pagination-jump span,
.project-detail .pagination-jump span,
.usage-statistics .pagination-jump span {
    font-size: 14px;
    color: #657083;
}

.dialog-records .pagination-info .total-records,
.dialog-records .pagination-info .current-page,
.message-records .pagination-info .total-records,
.message-records .pagination-info .current-page,
.call-records .pagination-info .total-records,
.call-records .pagination-info .current-page,
.component-library .pagination-info .total-records,
.component-library .pagination-info .current-page,
.component-library-detail .pagination-info .total-records,
.component-library-detail .pagination-info .current-page,
.component-widget .pagination-info .total-records,
.component-widget .pagination-info .current-page,
.project-detail .pagination-info .total-records,
.project-detail .pagination-info .current-page,
.usage-statistics .pagination-info .total-records,
.usage-statistics .pagination-info .current-page {
    color: #006bff;
}

.dialog-records .page-btn,
.dialog-records .pagination-btn,
.message-records .page-btn,
.message-records .pagination-btn,
.call-records .page-btn,
.call-records .pagination-btn,
.component-library .page-btn,
.component-library .pagination-btn,
.component-library-detail .page-btn,
.component-library-detail .pagination-btn,
.component-widget .page-btn,
.component-widget .pagination-btn,
.project-detail .page-btn,
.project-detail .pagination-btn,
.usage-statistics .page-btn,
.usage-statistics .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
    box-shadow: none;
    line-height: 1;
}

.dialog-records .page-btn.active,
.message-records .page-btn.active,
.call-records .page-btn.active,
.component-library .page-btn.active,
.component-library-detail .page-btn.active,
.component-widget .page-btn.active,
.project-detail .page-btn.active,
.usage-statistics .page-btn.active {
    background: #006bff;
    color: #fff;
    border-color: #006bff;
}

.dialog-records .jump-input,
.message-records .jump-input,
.call-records .jump-input {
    width: 56px;
}

.dialog-records .jump-btn,
.message-records .jump-btn,
.call-records .jump-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
    line-height: 1;
}

/* New Project Figma Alignment */
.new-project-modal {
    top: 52px;
    left: 252px;
    right: 0;
    bottom: 0;
    background: #e1e7ed;
    padding: 0;
}

.new-project-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.new-project-header {
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #d8e0e8;
    background: #fff;
}

.new-project-header h2 {
    margin-left: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1b2532;
}

.new-project-header .help-link {
    display: none;
}

.new-project-back-btn {
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: #1d2531;
}

.new-project-steps {
    height: 56px;
    padding: 14px 230px 14px 140px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.new-project-step {
    gap: 8px;
    color: #657083;
}

.new-project-step .step-index {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #edf1f5;
    color: #657083;
    font-size: 16px;
    line-height: 24px;
}

.new-project-step .step-name {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #657083;
}

.new-project-step.active .step-index {
    background: #006bff;
    color: #fff;
}

.new-project-step.active .step-name {
    color: #1d2531;
    font-weight: 600;
}

.new-project-step.completed .step-index {
    background: #e8f5ff;
    color: #006bff;
    border: 0;
}

.new-project-step.completed .step-name {
    color: #1d2531;
    font-weight: 600;
}

.new-project-step-line {
    margin: 0 18px;
    background: #d8e0e8;
}

.new-project-body {
    flex: 1;
    padding: 16px;
    border: 0;
    overflow: auto;
    background: #e1e7ed;
}

.new-project-step-content.active {
    display: grid;
    min-height: 768px;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.new-project-step-content.step1,
.new-project-step-content.step3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.new-project-form,
.new-project-dialog-form,
.new-project-preview,
.new-project-dialog-preview {
    background: #fff;
    min-width: 0;
}

.new-project-form,
.new-project-dialog-form {
    border-right: 1px solid #edf1f5;
}

.new-project-section-title {
    height: 54px;
    line-height: 22px;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2531;
    border-bottom: 1px solid #edf1f5;
    background: #f7f9fa;
}

.new-project-fields {
    padding: 16px;
}

.new-project-field {
    grid-template-columns: 54px 1fr;
    align-items: start;
    margin-bottom: 20px;
    font-size: 14px;
}

.new-project-field label {
    padding-right: 8px;
    line-height: 32px;
    text-align: right;
    color: #657083;
}

.new-project-name-input,
.flow-input,
.dialog-preview-placeholder {
    height: 32px;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    font-size: 14px;
    color: #1d2531;
    background: #fff;
}

.flow-textarea {
    min-height: 72px;
}

.project-type-options,
.flow-choice-group,
.agent-provider-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.project-type-option,
.flow-choice {
    height: 32px;
    margin-right: -1px;
    padding: 0 16px;
    border: 1px solid #e1e7ed;
    border-radius: 0;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
    font-weight: 400;
}

.project-type-option:first-child,
.flow-choice:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.project-type-option:last-child,
.flow-choice:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-right: 0;
}

.project-type-option.active,
.flow-choice.active {
    border-color: #006bff;
    color: #006bff;
    z-index: 1;
}

.new-project-custom-fields {
    margin-top: 0;
}

.new-project-step-content.step1 .new-project-form {
    padding-bottom: 0;
}

.new-project-step-content.step1 .new-project-fields {
    width: auto;
    max-width: none;
    padding: 20px 24px 0;
}

.new-project-step-content.step1 .new-project-fields > .new-project-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}

.new-project-step-content.step1 .new-project-fields > .new-project-field > label {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding-right: 0;
    margin-bottom: 0;
    line-height: 32px;
    justify-content: flex-end;
    text-align: right;
}

.new-project-step-content.step1 .new-project-name-input {
    width: 100%;
}

.new-project-step-content.step1 .project-type-options {
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
}

.new-project-step-content.step1 .new-project-fields > .new-project-custom-fields {
    margin-top: 4px;
}

.new-project-step-content.step1 .project-type-option {
    flex: 0 0 auto;
    min-width: auto;
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
    margin-right: 0;
    border-radius: 0;
}

.new-project-step-content.step1 .project-type-option:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.new-project-step-content.step1 .project-type-option:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.new-project-step-content.step1 .new-project-custom-fields .new-project-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}

.new-project-step-content.step1 .new-project-custom-fields .new-project-field:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step1 .new-project-custom-fields .new-project-field > label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
    padding-right: 0;
    line-height: 32px;
    text-align: right;
}

.new-project-step-content.step1 .new-project-radio-group {
    min-height: 32px;
    padding-top: 2px;
}

@media (max-width: 1480px) {
    .new-project-step-content.step1 .new-project-fields {
        padding-right: 16px;
        padding-left: 16px;
    }

    .new-project-step-content.step1 .new-project-fields > .new-project-field,
    .new-project-step-content.step1 .new-project-custom-fields .new-project-field {
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 12px;
    }
}

.new-project-radio-group {
    gap: 24px;
    min-height: 32px;
    align-items: center;
}

.new-project-preview,
.new-project-dialog-preview {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.preview-phone,
.dialog-phone {
    width: 365px;
    height: 650px;
    margin: 16px auto;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
}

.preview-header,
.dialog-phone-header {
    min-height: 74px;
    margin-bottom: 0;
    padding: 16px;
    border-bottom: 0;
}

.preview-title,
.dialog-preview-name {
    font-size: 16px;
    font-weight: 600;
    color: #1d2531;
}

.preview-tag {
    background: #f7f9fa;
    color: #657083;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 24px;
}

.preview-message {
    margin: 0 16px 16px;
    padding: 0;
    background: transparent;
    color: #1d2531;
    font-size: 14px;
    line-height: 24px;
}

.preview-orb {
    margin: 40px auto 0;
}

.preview-hint {
    margin-bottom: 20px;
    font-size: 14px;
}

.preview-actions {
    gap: 12px;
    margin-bottom: 16px;
}

.preview-action {
    width: 88px;
    height: 36px;
    border-radius: 18px;
    font-size: 12px;
}

.dialog-preview-suggestions {
    padding: 16px;
    gap: 16px;
}

.dialog-preview-item {
    min-height: 24px;
    padding: 0;
    background: transparent;
    font-size: 14px;
    line-height: 24px;
    color: #1d2531;
}

.dialog-phone-input {
    margin: auto 16px 16px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    grid-template-columns: 1fr 32px;
    align-items: end;
}

.dialog-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #7dd0ff;
}

.new-project-step-content.step2 .new-project-flow-wrap {
    width: 100%;
}

.new-project-step-content.step2 .flow-body {
    padding: 20px 24px 0;
}

.new-project-step-content.step2 .flow-group {
    margin-bottom: 28px;
}

.new-project-step-content.step2 .flow-group:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step2 .flow-group h3 {
    margin-bottom: 16px;
}

.new-project-step-content.step2 .agent-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 16px;
}

.agent-add-btn,
.agent-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #006bff;
    cursor: pointer;
}

.agent-add-btn {
    gap: 8px;
    padding: 0 14px 0 10px;
    border-color: transparent;
    background: transparent;
    color: #1d2531;
}

.agent-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #398cff;
    color: #fff;
    line-height: 24px;
    font-weight: 600;
}

.agent-add-text {
    display: inline-flex;
    align-items: center;
    line-height: 22px;
    color: #1d2531;
}

.agent-remaining-count {
    color: #ff4d4f;
}

.agent-add-btn:disabled {
    color: #9ea7b8;
    cursor: not-allowed;
}

.agent-add-btn:disabled .agent-add-icon {
    background: #bfc9d5;
}

.agent-add-btn:disabled .agent-add-text,
.agent-add-btn:disabled .agent-remaining-count {
    color: #9ea7b8;
}

.agent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-item {
    padding: 16px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f9fbfd;
}

.agent-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.agent-item-title-wrap {
    min-width: 0;
}

.agent-item-title {
    color: #1d2531;
    line-height: 22px;
    font-weight: 600;
}

.new-project-step-content.step2 .flow-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.new-project-step-content.step2 .flow-row:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step2 .flow-row > label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
    padding-right: 0;
    line-height: 32px;
    text-align: right;
}

.new-project-step-content.step2 .flow-choice-group {
    min-height: 32px;
}

.new-project-step-content.step2 .flow-inline-input {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.new-project-step-content.step2 .flow-inline-input .flow-input {
    width: 100%;
}

.new-project-step-content.step2 .agent-provider-panel {
    margin-top: 16px;
}

.new-project-step-content.step2 .agent-provider-panel .flow-row {
    margin-bottom: 16px;
}

.new-project-step-content.step2 .agent-provider-panel .flow-row:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step2 .agent-display-name-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.new-project-step-content.step2 .agent-display-name-field .flow-input {
    width: 100%;
}

.new-project-step-content.step2 .agent-display-name-tip {
    margin-top: 8px;
    color: #9ea7b8;
    line-height: 20px;
}

.new-project-step-content.step2 .openclaw-guide-tip a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #006bff;
    text-decoration: none;
}

.new-project-step-content.step2 .openclaw-guide-tip a:hover {
    text-decoration: underline;
}

.new-project-step-content.step2 .openclaw-guide-icon {
    font-size: 12px;
    line-height: 1;
}

.new-project-step-content.step3 .dialog-setting-body {
    padding: 20px 24px 0;
}

.new-project-step-content.step3 .flow-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.new-project-step-content.step3 .flow-row:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step3 .flow-row > label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
    padding-right: 0;
    line-height: 32px;
    text-align: right;
}

.new-project-step-content.step3 .dialog-theme-row {
    align-items: center;
}

.new-project-step-content.step3 .dialog-theme-options {
    min-height: 32px;
    gap: 14px;
    align-items: center;
}

.dialog-attachment-config {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 32px;
    padding-top: 2px;
}

.dialog-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.dialog-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dialog-switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cfd7e3;
    transition: background 0.2s ease;
}

.dialog-switch-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(29, 37, 49, 0.18);
    transition: transform 0.2s ease;
}

.dialog-switch input:checked + .dialog-switch-slider {
    background: #006bff;
}

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

.dialog-attachment-options {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dialog-attachment-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d2531;
    line-height: 22px;
}

.dialog-attachment-tip {
    margin-top: -4px;
}

.new-project-step-content.step3 .dialog-example-list {
    width: 100%;
}

.new-project-step-content.step3 .dialog-example-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
    margin-bottom: 8px;
}

.new-project-step-content.step3 .dialog-example-remove {
    align-self: center;
}

.new-project-step-content.step3 .dialog-phone {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 24px;
    background: #f7f9fa;
}

.new-project-step-content.step3 .dialog-phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
}

.new-project-step-content.step3 .dialog-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.new-project-step-content.step3 .dialog-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.new-project-step-content.step3 .dialog-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.new-project-step-content.step3 .dialog-preview-name {
    line-height: 24px;
}

.new-project-step-content.step3 .dialog-preview-subtitle {
    margin-top: 2px;
    color: #657083;
    line-height: 20px;
}

.new-project-step-content.step3 .dialog-preview-stage {
    flex: 1 1 auto;
    min-height: 0;
}

.new-project-step-content.step3 .dialog-phone-input {
    position: relative;
    min-height: 104px;
    margin: 0 16px 16px;
    padding: 14px 52px 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.new-project-step-content.step3 .dialog-preview-placeholder {
    width: 100%;
    min-height: 72px;
    padding: 0;
    border: 0;
    resize: none;
    background: transparent;
    color: #9ea7b8;
    line-height: 22px;
    overflow: hidden;
    text-align: left;
    font-size: 14px;
}

.new-project-step-content.step3 .dialog-preview-placeholder:focus {
    outline: none;
}

.new-project-step-content.step3 .dialog-send-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #7dd0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dialog-attachment-preview-btn {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 50%;
    background: #fff;
    color: #657083;
    cursor: default;
    z-index: 1;
}

@media (max-width: 1480px) {
    .new-project-step-content.step2 .flow-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .new-project-step-content.step2 .flow-row {
        grid-template-columns: 124px minmax(0, 1fr);
        column-gap: 12px;
    }

    .new-project-step-content.step3 .dialog-setting-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .new-project-step-content.step3 .flow-row {
        grid-template-columns: 124px minmax(0, 1fr);
        column-gap: 12px;
    }
}

.flow-body,
.dialog-setting-body {
    padding: 16px;
}

.flow-group {
    margin-bottom: 24px;
}

.flow-group h3 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2531;
}

.flow-row {
    grid-template-columns: 86px 1fr;
    margin-bottom: 12px;
}

.flow-row > label {
    padding-right: 8px;
    line-height: 32px;
    font-size: 14px;
    color: #657083;
}

.dialog-theme-options {
    gap: 14px;
}

.dialog-theme-option {
    width: 24px;
    height: 24px;
}

.dialog-example-item {
    grid-template-columns: 1fr 24px;
}

.dialog-example-remove {
    font-size: 16px;
}

.new-project-footer {
    height: 56px;
    padding: 12px 24px;
    background: transparent;
}

.new-project-body .new-project-step-content.step1 .new-project-preview,
.new-project-body .new-project-step-content.step3 .new-project-dialog-preview {
    padding-left: 0;
}

.new-project-body .new-project-step-content.step1 .preview-phone,
.new-project-body .new-project-step-content.step3 .dialog-phone {
    margin: 16px auto;
}

.new-project-cancel-btn,
.new-project-next-btn {
    height: 32px;
    min-width: 60px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.new-project-cancel-btn {
    border: 1px solid #e1e7ed;
    background: #fff;
    color: #1d2531;
}

.new-project-next-btn {
    border: 0;
    background: #006bff;
    color: #fff;
}

@media (max-width: 1360px) {
    .new-project-modal {
        left: 236px;
    }

    .new-project-steps {
        padding: 14px 120px;
    }

    .new-project-step-content.step1,
    .new-project-step-content.step3 {
        grid-template-columns: 1fr;
    }

    .new-project-step-content.step1,
    .new-project-step-content.step3 {
        grid-template-columns: 1fr 520px;
    }
}

/* AIRUN 首页 */
.agent-plaza {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
}

.skill-center-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
    gap: 16px;
    background: #fff;
}

.skill-center-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #e8edf5;
}

.skill-center-tab {
    position: relative;
    padding: 0 2px 14px;
    border: 0;
    background: transparent;
    color: #4f566b;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.skill-center-tab.active {
    color: #2d63ff;
    font-weight: 600;
}

.skill-center-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: #2d63ff;
}

.skill-center-panel {
    display: none;
    flex: 1;
    min-height: 0;
}

.skill-center-panel.active {
    display: flex;
    flex-direction: column;
}

.skill-toolbar {
    padding: 0;
    margin-bottom: 16px;
}

.skill-market-summary {
    color: #5f677d;
    font-size: 14px;
}

.skill-market-summary strong {
    color: #1d2531;
}

.skill-market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.skill-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 236px;
    padding: 20px 20px 18px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(247, 250, 255, 0.94) 0%, rgba(255, 255, 255, 1) 56%),
        linear-gradient(135deg, rgba(229, 238, 255, 0.75) 0%, rgba(255, 255, 255, 0) 48%);
    box-shadow: 0 14px 28px rgba(31, 51, 89, 0.06);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: #c8d8f2;
    box-shadow: 0 18px 34px rgba(31, 51, 89, 0.1);
}

.skill-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f6bff 0%, #5da8ff 55%, #b9d7ff 100%);
}

.skill-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.skill-card-meta {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.skill-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #d8e4f7;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #eaf2ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #175cd3;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

.skill-card-title-wrap {
    min-width: 0;
}

.skill-card-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.skill-card-category {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.skill-card-title {
    color: #1d2531;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.skill-card-subtitle {
    color: #7a8395;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

.skill-card-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe7fb;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.skill-card-source {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    width: fit-content;
    min-width: 92px;
    max-width: 132px;
    padding: 8px 10px 9px;
    border-radius: 12px;
    border: 1px solid #e4eaf5;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.skill-card-source-label {
    color: #8a93a5;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    text-align: right;
}

.skill-card-source strong {
    color: #1d2531;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.skill-card-source-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
    width: auto;
}

.skill-card-source-value strong {
    margin-top: 0;
}

.skill-card-source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
}

.skill-card-source-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.skill-card-source-github {
    border-color: #d7dfef;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.skill-card-source-github .skill-card-source-label {
    color: #5f6b81;
}

.skill-card-source-github strong {
    color: #111827;
}

.skill-card-source-internal {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.skill-card-source-internal strong {
    color: #2563eb;
    font-size: 14px;
    line-height: 18px;
    text-align: right;
}

.skill-card-desc {
    margin-top: 14px;
    color: #516074;
    font-size: 14px;
    line-height: 1.75;
}

.skill-card-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.skill-card-fact {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.skill-card-fact-label {
    color: #8b95a7;
    font-size: 12px;
    line-height: 20px;
}

.skill-card-fact strong {
    color: #243244;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
}

.skill-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.skill-card-tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border: 1px solid #e4eaf4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #4f5c70;
    font-size: 12px;
    font-weight: 500;
}

.skill-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.skill-card-stats {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #6c7890;
    font-size: 12px;
    font-weight: 600;
}

.skill-card-stats.installed {
    background: #eef7f1;
    color: #2f7d4f;
}

.skill-card-install-btn {
    min-width: 132px;
    height: 34px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.skill-card-install-btn:disabled {
    background: #f3f6fb;
    color: #9aa4b5;
    box-shadow: none;
    cursor: default;
}

.skill-repo-shell {
    min-height: 0;
}

.my-skill-table td:nth-child(5),
.my-skill-table td:nth-child(6),
.my-skill-table td:nth-child(7) {
    white-space: nowrap;
}

.skill-status-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.skill-status-tag.ready {
    background: #eafaf0;
    color: #198754;
}

.skill-status-tag.pending {
    background: #fff6e8;
    color: #d97706;
}

.skill-status-tag.installing {
    background: #eef4ff;
    color: #2563eb;
}

.skill-install-modal,
.skill-bind-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
}

.skill-install-modal.active,
.skill-bind-modal.active {
    display: flex;
}

.skill-install-modal-content,
.skill-bind-modal-content {
    width: 620px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
}

.skill-install-modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.skill-bind-modal-content {
    min-height: 520px;
}

.skill-install-modal-body {
    flex: 1;
    min-height: 0;
    padding: 20px 24px 8px;
    overflow-y: auto;
}

.skill-install-hero {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.skill-install-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
}

.skill-install-name {
    color: #1d2531;
    font-size: 18px;
    font-weight: 600;
}

.skill-install-desc {
    margin-top: 6px;
    color: #667389;
    font-size: 14px;
    line-height: 1.75;
}

.skill-install-section {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #edf1f5;
    border-radius: 10px;
    background: #fafcff;
}

.skill-install-section-title {
    margin-bottom: 12px;
    color: #1d2531;
    font-size: 14px;
    font-weight: 600;
}

.skill-install-checklist {
    margin: 0;
    padding-left: 18px;
    color: #5f677d;
    font-size: 14px;
    line-height: 1.8;
}

.skill-install-progress {
    display: grid;
    gap: 10px;
}

.skill-install-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8edf5;
    color: #5f677d;
}

.skill-install-progress-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d6dfec;
    background: #f7f9fc;
    color: #93a0b5;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.skill-install-progress-text {
    font-size: 13px;
    line-height: 20px;
}

.skill-install-progress-item.active {
    border-color: #cfe0ff;
    background: #f7faff;
    color: #1f4bb8;
}

.skill-install-progress-item.active .skill-install-progress-dot {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.skill-install-progress-item.done {
    border-color: #d6eadc;
    background: #f4fbf6;
    color: #2f7d4f;
}

.skill-install-progress-item.done .skill-install-progress-dot {
    border-color: #2f7d4f;
    background: #2f7d4f;
    color: #fff;
}

.skill-install-progress-note {
    margin-top: 10px;
    color: #7a8395;
    font-size: 12px;
    line-height: 1.75;
}

.skill-install-result {
    color: #5f677d;
    font-size: 14px;
    line-height: 1.75;
}

.skill-bind-modal-context {
    margin-bottom: 16px;
}

.skill-bind-modal-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skill-market-empty-state,
.my-skill-empty-state {
    flex: 1;
}

@media (max-width: 1440px) {
    .skill-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .skill-market-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 220px;
    }

    .skill-card-top {
        flex-direction: column;
    }

    .skill-card-source {
        align-items: flex-start;
        min-width: 0;
        margin-left: 62px;
    }
}

.agent-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #e8edf5;
}

.agent-tab {
    position: relative;
    padding: 0 2px 14px;
    border: 0;
    background: transparent;
    color: #4f566b;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.agent-tab.active {
    color: #2d63ff;
    font-weight: 600;
}

.agent-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: #2d63ff;
}

.agent-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: start;
}

.agent-card {
    position: relative;
    flex: 0 0 30%;
    width: 30%;
    height: 230px;
    padding: 22px 22px 20px;
    border: 1px solid #edf2ff;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 34px rgba(31, 84, 191, 0.08);
}

.agent-card.featured-card {
    max-width: none;
}

.agent-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #4e72ff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.agent-card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #2140a0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.agent-card-logo.compact {
    background: #e9f0ff;
    color: #2d63ff;
}

.agent-card-title {
    display: block;
    margin-top: 16px;
    color: #1f2433;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
}

.agent-card:not(.featured-card) .agent-card-title {
    font-size: 18px;
}

.agent-card-title:hover {
    color: #2d63ff;
}

.agent-card-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 7px 11px;
    border-radius: 8px;
    background: #eef1f7;
    color: #5f677d;
    font-size: 14px;
    font-weight: 600;
}

.agent-card-desc {
    margin-top: 20px;
    color: #555f74;
    font-size: 15px;
    line-height: 1.8;
}

.repo-page-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #fff;
    border: 0;
}

.repo-page-shell > .pagination,
.repo-page-shell > .repo-pagination {
    margin-top: auto;
}

.repo-page-shell > .table-empty-state {
    flex: 1;
}

.component-title-row {
    gap: 14px;
}

.component-breadcrumb {
    color: #5b6475;
}

.component-agent-select {
    min-width: 180px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dbe3f0;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
}

.widget-editor-shell {
    flex: 1;
    padding: 14px 16px 0;
}

.widget-section {
    margin-bottom: 12px;
    border: 1px solid #e8edf5;
    background: #fff;
}

.widget-section-title {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3545;
    border-bottom: 1px solid #edf1f5;
}

.widget-basic-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
}

.widget-label {
    width: 64px;
    color: #4d5566;
    font-size: 14px;
    text-align: right;
}

.required-mark {
    color: #ff4d4f;
}

.widget-name-input {
    flex: 1;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dbe3f0;
    border-radius: 2px;
    font-size: 14px;
}

.widget-library-select {
    min-width: 180px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dbe3f0;
    border-radius: 2px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
}

.widget-library-tip {
    color: #7a8395;
    font-size: 13px;
}

.component-library-detail-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
    background: #fff;
}

.component-library-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.component-library-stat-card {
    padding: 16px 18px;
    border: 1px solid #e8edf5;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.component-library-stat-label {
    font-size: 13px;
    color: #758099;
}

.component-library-stat-value {
    margin-top: 10px;
    color: #1d2531;
    font-size: 22px;
    font-weight: 600;
}

.component-library-detail-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
}

.component-library-detail-panel {
    border: 1px solid #e8edf5;
    background: #fff;
    overflow: hidden;
}

.component-library-detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
    color: #2c3545;
    font-size: 14px;
    font-weight: 600;
}

.component-library-detail-panel-body {
    min-height: 0;
}

.component-library-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
}

.component-library-modal.active {
    display: flex;
}

.component-library-modal-content {
    width: 640px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    overflow: visible;
}

.component-library-modal-body {
    height: auto;
    padding: 20px 24px 8px;
    overflow: visible;
    background: #fff;
}

.component-library-modal.bind-mode .component-library-modal-content {
    min-height: 620px;
}

.component-library-modal.bind-mode .component-library-modal-body {
    min-height: 500px;
}

.component-library-modal-context {
    margin-bottom: 16px;
    color: #667389;
    font-size: 14px;
    line-height: 1.7;
}

.component-library-modal-row {
    margin-bottom: 16px;
}

.component-library-modal-row label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.component-library-modal-input,
.component-library-modal-textarea,
.agent-multiselect-search {
    width: 100%;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
}

.component-library-modal-input,
.agent-multiselect-search {
    height: 36px;
    padding: 0 12px;
}

.component-library-modal-textarea {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.agent-multiselect {
    position: relative;
    z-index: 10;
}

.widget-multiselect {
    position: relative;
    z-index: 10;
}

.agent-multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
}

.widget-multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
}

.agent-multiselect-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-multiselect-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-multiselect-arrow {
    color: #94a3b8;
    font-size: 12px;
}

.agent-multiselect-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 12px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.widget-multiselect-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 12px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.agent-multiselect.open .agent-multiselect-panel {
    display: block;
}

.widget-multiselect.open .widget-multiselect-panel {
    display: block;
}

.agent-multiselect-options {
    max-height: 220px;
    margin-top: 10px;
    overflow: auto;
}

.widget-multiselect-options {
    max-height: 220px;
    margin-top: 10px;
    overflow: auto;
}

.agent-multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #334155;
    font-size: 14px;
}

.widget-multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #334155;
    font-size: 14px;
}

.component-library-modal-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.component-library-widget-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.component-library-selected-tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 13px;
}

.component-library-widget-limit-tip {
    margin-top: 10px;
    color: #7a8395;
    font-size: 13px;
}

.component-library-modal-actions {
    padding-top: 0;
}

.widget-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.widget-panel {
    min-height: 264px;
    border-right: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}

.widget-panel:nth-child(2n) {
    border-right: 0;
}

.widget-panel:nth-last-child(-n+2) {
    border-bottom: 0;
}

.widget-panel-header {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f7f9fb;
    border-bottom: 1px solid #edf1f5;
    font-size: 13px;
    color: #4c5668;
    font-weight: 600;
}

.widget-code-input,
.widget-data-input {
    width: 100%;
    min-height: 228px;
    padding: 12px;
    border: 0;
    resize: none;
    outline: none;
    font: 13px/1.6 Menlo, Monaco, Consolas, monospace;
    color: #334155;
    background: #fff;
}

.widget-preview-panel {
    background: #fff;
}

.flight-preview-card {
    margin: 16px;
    padding: 18px 18px 14px;
    border: 1px solid #edf1f5;
    border-radius: 2px;
    background: #fff;
}

.flight-preview-divider {
    height: 1px;
    margin: 18px 0;
    background: #edf1f5;
}

.flight-preview-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #8a93a5;
    font-size: 12px;
}

.widget-trigger-list {
    padding: 12px;
}

.widget-trigger-row {
    display: grid;
    grid-template-columns: 32px minmax(120px, 1fr) 24px minmax(160px, 1.4fr);
    align-items: center;
    min-height: 34px;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d8e7ff;
    border-radius: 4px;
    background: #f7fbff;
    color: #4d5d78;
    font-size: 13px;
    margin-bottom: 10px;
}

.widget-trigger-key,
.widget-trigger-value-input {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #dbe3f0;
    border-radius: 4px;
    background: #fff;
    color: #334155;
    font-size: 13px;
}

.widget-trigger-equals {
    text-align: center;
    color: #758099;
    font-weight: 600;
}

.widget-trigger-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px;
    margin-top: 10px;
    border: 1px dashed #dbe3f0;
    border-radius: 4px;
    background: #fff;
    color: #758099;
    font-size: 13px;
}

.widget-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding: 12px 16px 16px;
    border-top: 1px solid #edf1f5;
    background: #fff;
}

.widget-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 18px;
    border: 1px solid #dbe3f0;
    border-radius: 4px;
    background: #fff;
    color: #556070;
    line-height: 1;
}

.template-page-shell {
    padding: 18px;
}

.template-grid {
    column-count: 3;
    column-gap: 16px;
}

.template-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #e8edf5;
    box-shadow: 0 4px 12px rgba(26, 39, 68, 0.06);
    border-radius: 4px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    overflow: hidden;
}

.template-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tall-card img {
    height: 395px;
}

.template-card-body,
.countdown-card,
.playlist-card,
.profile-card,
.revenue-card,
.flight-card {
    padding: 18px 22px;
}

.template-card h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 15px;
    font-weight: 600;
}

.template-card h3 span,
.template-note {
    color: #7d8596;
    font-size: 13px;
}

.template-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    color: #555d6d;
    font-size: 13px;
}

.centered {
    text-align: center;
}

.countdown-title,
.playlist-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 14px;
}

.countdown-numbers,
.countdown-labels,
.flight-top,
.flight-bottom,
.profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.countdown-numbers {
    font-size: 34px;
    font-weight: 700;
    color: #21242b;
    margin-bottom: 8px;
}

.countdown-labels {
    margin-bottom: 10px;
    color: #7d8596;
    font-size: 12px;
}

.playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.playlist-list li {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #edf1f5;
    color: #555d6d;
    font-size: 13px;
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin: 4px auto 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, #74bf54 0%, #3d9c3c 100%);
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.profile-lines {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    color: #5c6577;
    font-size: 13px;
}

.profile-actions button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 0;
    border-radius: 18px;
    background: #6d78c5;
    color: #fff;
}

.revenue-number {
    margin: 10px 0 12px;
    font-size: 36px;
    font-weight: 700;
    color: #222;
}

.flight-route {
    margin: 18px 0 24px;
    font-size: 28px;
    font-weight: 600;
    color: #222;
}

.repo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.repo-toolbar > .search-input,
.repo-toolbar > .repo-toolbar-left {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin-left: 0;
}

.repo-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.repo-toolbar .dialog-search-bar {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.repo-toolbar > .repo-toolbar-left {
    flex: 1;
    min-width: 0;
}

.repo-toolbar > .search-input {
    flex: 1;
    min-width: 0;
}

.repo-toolbar .action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
    flex-shrink: 0;
    margin-left: auto;
}

.repo-search-input input {
    width: 240px;
    border-right: 0;
}

.repo-search-btn {
    background: #fff;
    border: 1px solid #dbe3f0;
    border-left: 0;
    color: #a7b2c4;
}

.repo-toolbar-right {
    justify-content: flex-end;
}

.repo-toolbar-right .action-buttons {
    margin-left: auto;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dbe3f0;
    border-radius: 2px;
    background: #fff;
    color: #7f8aa0;
    line-height: 1;
    cursor: pointer;
}

.repo-table th,
.component-library-table th,
.repo-table td {
    vertical-align: top;
}

.component-library-table td {
    vertical-align: top;
}

.repo-actions {
    white-space: nowrap;
}

.repo-actions a,
.repo-actions span {
    margin-right: 14px;
    font-size: 14px;
}

.repo-actions a:last-child,
.repo-actions span:last-child {
    margin-right: 0;
}

.repo-actions span {
    color: #b8c0cf;
}

.repo-actions a.action-disabled {
    position: relative;
    color: #b8c0cf;
    cursor: not-allowed;
}

.repo-actions a.action-disabled:hover::after {
    content: attr(data-disabled-reason);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(29, 37, 49, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status-tag.enabled {
    background: #e5f8ea;
    color: #35b36a;
}

.status-tag.disabled {
    background: #f1f3f5;
    color: #8b95a7;
}

.dialog-records .repo-actions a:first-child {
    color: #006bff;
}

.table-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: #b0b8c5;
}

.empty-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f2f5fb 0%, #dfe6f2 100%);
    box-shadow: inset 10px 0 0 rgba(255, 255, 255, 0.6), inset -10px 0 0 rgba(197, 207, 223, 0.7);
    transform: skewY(-8deg);
}

.empty-text {
    font-size: 14px;
}

.hidden-filter-helpers {
    display: none;
}

@media (max-width: 768px) {
    .agent-tabs {
        gap: 18px;
        overflow-x: auto;
    }

    .template-grid {
        column-count: 1;
    }

    .agent-card {
        flex-basis: 100%;
        width: 100%;
        height: auto;
    }

    .agent-card-title {
        font-size: 22px;
    }

    .agent-card-desc {
        font-size: 15px;
        line-height: 1.6;
    }
}
