@font-face {
    font-family: 'MiSans';
    src: url('../fonts/MiSans-subset.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    font-family: 'MiSans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    box-sizing: border-box;
    margin-bottom: 60px;
}

.el-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15) !important;
}

.el-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15) !important;
}

.el-card__header {
    padding: 25px 20px !important;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px 15px 0 0;
}

h2 {
    margin: 0;
    font-size: 28px;
    color: #409EFF;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
}

.el-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.el-form-item {
    width: 95%;
    margin-bottom: 24px !important;
}

.el-form-item__label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    padding-bottom: 8px;
}

.el-input__inner,
.el-select .el-input__inner,
.el-select-dropdown__item {
    font-family: 'MiSans', Arial, sans-serif !important;
    height: 45px !important;
    line-height: 45px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(220, 223, 230, 0.3) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    padding: 0 15px !important;
    font-size: 16px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

.el-input__inner:hover,
.el-select .el-input__inner:hover {
    border-color: rgba(64, 158, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.el-input__inner:focus,
.el-select .el-input__inner:focus {
    border-color: #409EFF !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2) !important;
}

.el-button--primary {
    width: 100% !important;
    height: 45px;
    font-size: 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(45deg, #409EFF, #36D1DC) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(64, 158, 255, 0.3);
    transition: all 0.3s ease !important;
    box-sizing: border-box;
}

.el-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4);
}

.el-button--primary:active {
    transform: translateY(0);
}

.result-container {
    /*width: 85%;*/
    /*margin: 24px auto 0;*/
    text-align: center;
    /*padding: 20px;*/
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    animation: slideUp 0.3s ease-out;
}

/* 添加结果弹窗中机器人信息的样式 */
.result-container .bot-info {
    margin-bottom: 20px;
    background: rgba(64, 158, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(64, 158, 255, 0.1);
}

.result-container .robot-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.result-container .robot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(64, 158, 255, 0.2);
}

.result-container .robot-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.result-container .robot-details {
    text-align: left;
}

.result-container .robot-id {
    font-size: 18px;
    font-weight: 500;
    color: #409EFF;
    margin-bottom: 2px;
}

.result-container .robot-status {
    font-size: 12px;
    color: #67C23A;
    display: flex;
    align-items: center;
}

.result-container .robot-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #67C23A;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

.result-container .robot-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.result-container .action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'MiSans', Arial, sans-serif;
}

.result-container .add-btn {
    background-color: #409EFF;
    color: white;
}

.result-container .add-btn:hover {
    background-color: #337ecc;
}

.result-container .copy-btn {
    background-color: #f0f7ff;
    color: #409EFF;
}

.result-container .copy-btn:hover {
    background-color: #e0f0ff;
}

.result-container .btn-icon {
    margin-right: 5px;
    font-size: 14px;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* 原来的样式保留但不再使用 */
.bot-id {
    color: #409EFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    padding: 10px 20px;
    background: rgba(64, 158, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.bot-id:hover {
    background: rgba(64, 158, 255, 0.2);
    transform: scale(1.02);
}

.copy-icon {
    font-size: 16px !important;
    color: #409EFF;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.bot-id:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

.copy-hint {
    font-size: 12px;
    color: #909399;
    margin-left: 4px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.bot-id:hover .copy-hint,
.copy-btn:hover .copy-hint {
    opacity: 1;
    color: #409EFF;
}

/* 添加复制触发的动画效果 */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 12px 0;
    backdrop-filter: blur(5px);
    font-size: 14px;
    z-index: 1000;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #409EFF;
    text-decoration: none;
}

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

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

@media screen and (orientation: portrait) {
    html {
        font-size: 16px;
    }

    body {
        min-height: 100vh;
        overflow: hidden;
    }

    .container {
        width: 92vw;
        padding: 0;
        margin-bottom: 50px;
    }

    .el-card {
        width: 100%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .el-form {
        padding: 1rem;
    }

    .el-form-item {
        width: 90%;
        margin-bottom: 1rem !important;
    }

    .input-field,
    .server-button,
    .el-button--primary {
        height: 2.8rem !important;
        font-size: 0.9rem !important;
    }

    footer {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }

    h2 {
        font-size: 24px;
        gap: 8px;
    }
    
    .title-icon {
        width: 32px;
        height: 32px;
    }

}

@media screen and (max-width: 320px) {
    .container {
        width: 96vw;
    }

    .el-form-item {
        width: 95%;
    }
}

@media screen and (max-height: 500px) {
    .container {
        margin-bottom: 40px;
    }
}

.el-loading-spinner {
    .circular {
        stroke: #409EFF !important;
    }
}

.el-message {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.el-select-dropdown {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    padding: 8px !important;
}

.el-select-dropdown__item {
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 8px !important;
    margin: 4px 0 !important;
    padding: 0 12px !important;
    transition: all 0.2s ease !important;
}

.el-select-dropdown__item:hover {
    background: rgba(64, 158, 255, 0.1) !important;
    color: #409EFF !important;
}

.el-select-dropdown__item.selected {
    background: rgba(64, 158, 255, 0.15) !important;
    color: #409EFF !important;
    font-weight: 500 !important;
}

.el-form-item.is-required .el-form-item__label:before {
    color: #ff4d4f !important;
    margin-right: 6px !important;
}

.el-form-item.is-error .el-input__inner {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1) !important;
}

.custom-input {
    width: 100%;
}

.input-field {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 2px solid rgba(220, 223, 230, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'MiSans', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    outline: none;
    box-sizing: border-box;
}

.input-field:hover {
    border-color: rgba(64, 158, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.input-field:focus {
    border-color: #409EFF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2);
}

.input-field:disabled {
    background: rgba(245, 247, 250, 0.9);
    cursor: not-allowed;
    border-color: rgba(220, 223, 230, 0.3);
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    height: 45px;
    padding: 0 15px;
    border: 2px solid rgba(220, 223, 230, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.select-trigger:hover {
    border-color: rgba(64, 158, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.custom-select.is-active .select-trigger {
    border-color: #409EFF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2);
}

.select-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.3s ease;
}

.custom-select.is-active .select-arrow {
    transform: rotate(180deg);
}

.selected-text {
    font-family: 'MiSans', Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: dropdownFadeIn 0.2s ease;
}

.select-option {
    padding: 0 12px;
    height: 40px;
    line-height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'MiSans', Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

.select-option:hover {
    background: rgba(64, 158, 255, 0.1);
    color: #409EFF;
}

.select-option.is-selected {
    background: rgba(64, 158, 255, 0.15);
    color: #409EFF;
    font-weight: 500;
}

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

.select-trigger.is-disabled {
    background: rgba(245, 247, 250, 0.9);
    cursor: not-allowed;
    border-color: rgba(220, 223, 230, 0.3);
}

.select-trigger.is-disabled .selected-text {
    color: #999;
}

.el-card__body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 158, 255, 0.3) transparent;
}

.el-card__body::-webkit-scrollbar {
    width: 6px;
}

.el-card__body::-webkit-scrollbar-track {
    background: transparent;
}

.el-card__body::-webkit-scrollbar-thumb {
    background-color: rgba(64, 158, 255, 0.3);
    border-radius: 3px;
}

.server-select {
    width: 100%;
}

.server-button {
    width: 100% !important;
    height: 45px !important;
    border: none !important;
    border-radius: 12px !important;
    background: #f0f7ff !important;
    font-family: 'MiSans', Arial, sans-serif !important;
    font-size: 16px !important;
    color: #409EFF !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 12px rgba(64, 158, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    position: relative !important;
    box-sizing: border-box;
}

.server-button:hover:not(:disabled) {
    background: #e6f2ff !important;
    box-shadow: 0 4px 16px rgba(64, 158, 255, 0.2) !important;
    transform: translateY(-1px);
}

.server-button:active:not(:disabled) {
    transform: translateY(0);
}

.server-button:disabled {
    background: #f5f7fa !important;
    cursor: not-allowed !important;
    color: #c0c4cc !important;
}

.server-dialog {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.el-dialog.server-dialog {
    margin: 15vh auto !important;
    border-radius: 15px !important;
    max-height: 70vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.server-dialog .el-dialog__header {
    margin: 0 !important;
    padding: 20px !important;
    text-align: center !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.server-dialog .el-dialog__body {
    padding: 20px !important;
    display: flex;
    justify-content: center;
    flex: 1 !important;
    overflow: hidden !important;
}

.server-list {
    width: 85%;
    max-height: none !important;
    overflow-y: auto;
    padding: 8px 0 !important;
    padding-right: 8px;
    margin-right: -4px;
    margin-top: -4px;
    margin-bottom: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 197, 253, 0.5) transparent;
    -webkit-overflow-scrolling: touch;
}

.server-list::-webkit-scrollbar {
    width: 5px;
}

.server-list::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 20px;
    margin: 4px 0;
}

.server-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #93C5FD 0%, #60A5FA 100%);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    min-height: 40px;
    transition: all 0.3s ease;
}

.server-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
    border-width: 1px;
}

.server-item {
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 4px 0;
    font-size: 16px;
    color: #606266;
    text-align: center;
    background: #f8fafc;
    margin-right: 4px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.server-item:hover {
    background: #f0f7ff;
    color: #409EFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);
    border-color: rgba(64, 158, 255, 0.1);
}

.server-item:active {
    transform: translateY(0);
}

.server-item.is-selected {
    background: #ecf5ff;
    color: #409EFF;
    font-weight: 500;
    border-color: rgba(64, 158, 255, 0.2);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.1);
}

.v-modal {
    opacity: 0.5 !important;
    background-color: #000 !important;
}

@media screen and (orientation: portrait) {
    .el-dialog.server-dialog {
        width: 85% !important;
        margin: 7.5vh auto !important;
        max-height: 85vh !important;
    }
    
    /* 重写移动端滚动条样式 */
    .el-dialog.server-dialog .server-list {
        width: 90%;
        padding-right: 6px;
        margin-right: -3px;
    }

    .el-dialog.server-dialog .server-list::-webkit-scrollbar {
        width: 5px;
    }

    .el-dialog.server-dialog .server-list::-webkit-scrollbar-track {
        background: rgba(241, 245, 249, 0.5);
        border-radius: 20px;
        margin: 4px 0;
    }

    .el-dialog.server-dialog .server-list::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #93C5FD 0%, #60A5FA 100%);
        border-radius: 20px;
        border: 2px solid transparent;
        background-clip: padding-box;
        min-height: 40px;
    }

    .el-dialog.server-dialog .server-list::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
        border-width: 1px;
    }

    .server-item {
        padding: 12px 16px;
        font-size: 15px;
        margin-bottom: 8px;
    }
}

.el-dialog {
    border-radius: 15px !important;
}

.el-dialog__header {
    margin: 0 !important;
    padding: 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.el-dialog__title {
    font-size: 18px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.el-dialog__body {
    padding: 20px !important;
}

.el-dialog__headerbtn {
    top: 20px !important;
    right: 20px !important;
}

/* 结果弹窗样式 */
.result-dialog {
    border-radius: 15px;
    overflow: hidden;
}

/* 确保弹窗在最顶层 */
.el-overlay {
    z-index: 9999 !important;
}

/* 优化弹窗高度和居中显示 */
.el-overlay-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.el-overlay-dialog .el-dialog {
    margin: 0 !important;
    max-height: 90vh !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.el-overlay-dialog .el-dialog__body {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: calc(90vh - 120px) !important;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .el-overlay-dialog {
        padding: 10px !important;
    }
    
    .el-overlay-dialog .el-dialog {
        max-height: 95vh !important;
        width: 95% !important;
    }
    
    .el-overlay-dialog .el-dialog__body {
        max-height: calc(95vh - 100px) !important;
    }
}

.el-dialog.result-dialog {
    width: 85% !important;
    max-width: 600px !important;
    /*margin: 7.5vh auto !important;*/
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.result-dialog .el-dialog__header {
    margin: 0 !important;
    padding: 20px !important;
    text-align: center !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.result-dialog .el-dialog__body {
    padding: 20px !important;
}

/* 结果容器样式 */
.result-container {
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.bot-id {
    margin-bottom: 15px;
}

.result-container div[v-html] {
    color: #606266;
    line-height: 1.8;
}

.result-container div[v-html] p {
    margin: 12px 0;
}

/* 激活成功的第一行文字样式 */
.result-container div[v-html] p:first-child {
    font-size: 18px;
    color: #67c23a;
    font-weight: 500;
    margin-bottom: 20px;
}

/* 重要提示文字样式 */
.result-container div[v-html] p:nth-child(2) {
    background: #fdf6ec;
    padding: 12px 16px;
    border-radius: 8px;
    color: #e6a23c;
    font-size: 15px;
    border-left: 4px solid #e6a23c;
    text-align: left;
    margin: 15px 0;
}

/* 命令提示文字样式 */
.result-container div[v-html] p:nth-child(3) {
    background: #f0f7ff;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

.result-container div[v-html] span {
    color: #409EFF;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(64, 158, 255, 0.1);
}

/* 按钮组样式 */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* 输入框和选择器容器样式 */
.input-with-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 输入类型选择器样式 */
.input-type-selector {
    display: flex;
    gap: 8px;
    width: 100%;
}

.type-select-button {
    flex: 1;
    height: 45px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    font-family: 'MiSans', Arial, sans-serif !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(220, 223, 230, 0.3) !important;
    box-sizing: border-box !important;
    white-space: nowrap;
}

.input-with-selector .custom-input {
    width: 100%;
}

.type-select-button.el-button--default {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #606266 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

.type-select-button.el-button--default:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(64, 158, 255, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
}

.type-select-button.el-button--primary {
    background: linear-gradient(45deg, #409EFF, #36D1DC) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(64, 158, 255, 0.3) !important;
}

.type-select-button.el-button--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4) !important;
}

.type-select-button:active:not(:disabled) {
    transform: translateY(0);
}

.type-select-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 使用说明链接专门的样式 */
.doc-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #409EFF, #36D1DC) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(64, 158, 255, 0.2) !important;
}

.doc-link::before {
    content: "📖" !important;
    font-size: 18px !important;
}

.doc-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.3) !important;
}

.doc-link:active {
    transform: translateY(0) !important;
}

/* 售后群链接样式 */
.support-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #FF9800, #FF5722) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2) !important;
}

.support-link::before {
    content: "💬" !important;
    font-size: 18px !important;
}

.support-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3) !important;
}

.support-link:active {
    transform: translateY(0) !important;
}

/* 移动端适配 */
@media screen and (orientation: portrait) {
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .doc-link, .support-link {
        width: 80%;
        padding: 10px 20px !important;
        font-size: 14px !important;
        justify-content: center;
    }
    
    .doc-link::before, .support-link::before {
        font-size: 16px !important;
    }
}

/* 所有输入框、按钮容器的宽度 */
.custom-input,
.server-select,
.el-button--primary {
    width: 100%;
    box-sizing: border-box;
}

/* 移动端适配 */
@media screen and (orientation: portrait) {
    .el-form-item {
        width: 90%;
    }
}

/* 添加抖动动画关键帧定义 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* 修改抖动动画的类名 */
.shake-animation {
    animation: shake 0.5s ease;
}

/* 错误状态的输入框样式 */
.el-form-item.is-error .input-field {
    border-color: #ff4d4f !important;
    background: #fff6f6 !important;
}

/* 错误状态下的placeholder颜色 */
.el-form-item.is-error .input-field::placeholder {
    color: #ff4d4f !important;
}

/* 错误提示文字样式 */
.el-form-item__error {
    color: #ff4d4f !important;
    font-size: 14px !important;
    padding-top: 4px !important;
    animation: fadeIn 0.3s ease;
}

/* 最后一个选项不需要底部边距 */
.server-item:last-child {
    margin-bottom: 4px;
}

/* 移除移动端点击高亮效果 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 服务器提示弹窗样式 */
.server-tip-dialog {
    border-radius: 15px;
    overflow: hidden;
}

.server-tip-dialog .el-dialog__header {
    padding: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.server-tip-dialog .el-dialog__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px !important;
    color: #333 !important;
}

.server-tip-dialog .el-dialog__body {
    padding: 25px !important;
}

.server-tip-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tip-text {
    color: #606266;
    line-height: 1.8;
    font-size: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-section {
    margin-bottom: 5px;
}

.warning-text {
    color: #f56c6c;
    font-weight: 500;
}

.feature-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-title {
    color: #333;
    font-weight: 500;
}

.example-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid #409EFF;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-tag {
    color: #409EFF;
    font-size: 14px;
    font-weight: 500;
}

.command-text {
    /*padding-left: 10px;*/
    line-height: 1.8;
}

.command {
    /*background: #ecf5ff;*/
    /*padding: 4px 8px;*/
    border-radius: 4px;
    color: #409EFF;
    font-family: monospace;
    white-space: nowrap;
}

.highlight {
    color: #409EFF;
    font-weight: 500;
}

@media screen and (orientation: portrait) {
    .tip-text {
        font-size: 14px;
        gap: 16px;
    }
    
    .example-box {
        padding: 12px;
    }
    
    .command {
        font-size: 13px;
        padding: 3px 6px;
    }
}

.dialog-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.continue-btn,
.back-btn {
    width: 120px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 8px !important;
}

.continue-btn {
    background: linear-gradient(45deg, #409EFF, #36D1DC) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2) !important;
}

.back-btn {
    background: #fff !important;
    border: 2px solid #e4e7ed !important;
    color: #606266 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

.continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3) !important;
}

.back-btn:hover {
    border-color: #409EFF !important;
    color: #409EFF !important;
    transform: translateY(-1px);
    background: #f0f7ff !important;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1) !important;
}

.continue-btn:active,
.back-btn:active {
    transform: translateY(0);
}

@media screen and (orientation: portrait) {
    .continue-btn,
    .back-btn {
        width: 100px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 14px !important;
        margin: 0 5px !important;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media screen and (orientation: portrait) {
    .server-tip-dialog {
        width: 90% !important;
    }
    
    .server-tip-dialog .el-dialog__body {
        padding: 20px !important;
    }
    
    .tip-text {
        font-size: 14px;
    }
    
    .example-box {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* 激活码已使用弹窗样式 */
.code-used-dialog .el-dialog__body {
    padding: 30px 25px !important;
}

.code-used-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.warning-icon {
    font-size: 48px;
    color: #f56c6c;
    animation: shake 0.5s ease;
}

.code-used-text {
    font-size: 16px;
    color: #606266;
    line-height: 1.6;
}

.code-highlight {
    color: #f56c6c;
    font-weight: 500;
    background: #fff5f5;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

.contact-text {
    color: #909399;
    font-size: 14px;
}

.contact-info {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link {
    color: #409EFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.contact-icon {
    font-size: 20px;
}

.close-btn {
    width: 120px !important;
    height: 40px !important;
    background: #f4f4f5 !important;
    border: none !important;
    color: #909399 !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.close-btn:hover {
    background: #e9e9eb !important;
    transform: translateY(-1px);
}

/* 移动端适配 */
@media screen and (orientation: portrait) {
    .code-used-dialog {
        width: 90% !important;
    }
    
    .warning-icon {
        font-size: 40px;
    }
    
    .code-used-text {
        font-size: 15px;
    }
    
    .contact-info {
        padding: 10px 16px;
    }
}

/* 添加好评弹窗样式 */
.review-dialog .el-dialog__header {
    padding: 15px;
    margin-right: 0;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
}

.review-content {
    padding: 10px;
    text-align: center;
}

.review-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.review-dialog .dialog-footer {
    margin-top: 20px;
    text-align: center;
}

.review-dialog .continue-btn {
    width: 80%;
    min-width: 180px;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-dialog .continue-btn .el-icon {
    margin-right: 5px;
}

/* 移动端适配 */
@media screen and (orientation: portrait) {
    .review-dialog .continue-btn {
        width: 90%;
        min-width: 160px;
        padding: 10px 25px;
        font-size: 15px;
    }
}

.review-dialog .continue-btn .el-icon {
    margin-left: 5px;
}

/* 获取咩崽好友按钮样式 */
.get-friend-btn {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    color: #409EFF;
    background: rgba(64, 158, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: -10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 修改图标样式使其适用于新按钮 */
.friend-btn-icon {
    font-size: 18px;
    animation: wave 1.5s infinite;
    display: inline-block;
    transform-origin: 70% 70%;
    margin-right: 4px;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* 移除旧的悬停效果，现在使用server-button样式 */
.get-friend-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.get-friend-btn:hover:before {
    left: 100%;
}

.get-friend-btn:hover {
    background: rgba(64, 158, 255, 0.15);
    color: #2a88e4;
    box-shadow: 0 4px 10px rgba(64, 158, 255, 0.15);
}

.get-friend-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* 机器人账号弹窗样式 */
.robot-dialog .el-dialog__header {
    padding: 20px 20px 10px !important;
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 12px 12px 0 0;
}

.robot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.robot-icon {
    font-size: 46px;
    margin-bottom: 15px;
    background: rgba(64, 158, 255, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #409EFF;
    animation: bounceIn 0.6s;
}

.robot-text {
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #606266;
}

.robot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 350px;
    overflow-y: auto;
}

.robot-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.robot-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.robot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid #e6f1fc;
}

.robot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.robot-details {
    flex: 1;
}

.robot-id {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #303133;
}

.robot-status {
    font-size: 12px;
    color: #67c23a;
    display: flex;
    align-items: center;
}

.robot-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #67c23a;
    border-radius: 50%;
    margin-right: 5px;
}

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

.action-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-btn {
    background-color: #409EFF;
    color: white;
}

.add-btn:hover {
    background-color: #66b1ff;
}

.copy-btn {
    background-color: #f2f6fc;
    color: #606266;
}

.copy-btn:hover {
    background-color: #e6f1fc;
    color: #409EFF;
}

.btn-icon {
    margin-right: 5px;
    font-size: 12px;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .robot-actions {
        flex-direction: column;
    }
}

/* 自定义 ElNotification 样式 */
.el-notification {
    /* 确保通知在最顶层显示 */
    z-index: 9999 !important;
    
    /* 美化通知框样式 */
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 18px !important;
    max-width: 380px;
    
    /* 动画效果 */
    transform-origin: center right;
    animation: notificationIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notificationIn {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.el-notification.right {
    right: 20px;
}

.el-notification__content {
    color: #606266;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    word-break: break-word;
}

.el-notification__title {
    font-weight: 600;
    font-size: 16px;
    color: #303133;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.el-notification__icon {
    font-size: 22px;
    margin-right: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.el-notification__closeBtn {
    top: 16px;
    right: 16px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-notification__closeBtn:hover {
    color: rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.05);
}

/* 不同类型通知的样式定制 */
.el-notification--success {
    background: linear-gradient(135deg, rgba(240, 255, 240, 0.95), rgba(255, 255, 255, 0.95)) !important;
    /*border-left: 4px solid #67C23A !important;*/
}

.el-notification--success .el-notification__icon {
    color: #67C23A;
    background-color: rgba(103, 194, 58, 0.1);
}

.el-notification--warning {
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.95), rgba(255, 255, 255, 0.95)) !important;
    /*border-left: 4px solid #E6A23C !important;*/
}

.el-notification--warning .el-notification__icon {
    color: #E6A23C;
    background-color: rgba(230, 162, 60, 0.1);
}

.el-notification--error {
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.95), rgba(255, 255, 255, 0.95)) !important;
    /*border-left: 4px solid #F56C6C !important;*/
}

.el-notification--error .el-notification__icon {
    color: #F56C6C;
    background-color: rgba(245, 108, 108, 0.1);
}

.el-notification--info {
    background: linear-gradient(135deg, rgba(236, 245, 255, 0.95), rgba(255, 255, 255, 0.95)) !important;
    /*border-left: 4px solid #409EFF !important;*/
}

.el-notification--info .el-notification__icon {
    color: #409EFF;
    background-color: rgba(64, 158, 255, 0.1);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .el-notification {
        width: calc(100vw - 30px) !important; 
        max-width: 100%;
        margin-right: 0 !important;
        padding: 15px !important;
        border-radius: 14px !important;
        left: 15px !important;
        right: 15px !important;
    }
    
    .el-notification__title {
        font-size: 15px;
    }
    
    .el-notification__content {
        font-size: 13px;
        margin-top: 8px;
    }

    .el-notification__icon {
        font-size: 20px;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 320px) {
    .el-notification {
        width: calc(100vw - 20px) !important;
        padding: 12px !important;
        left: 10px !important;
        right: 10px !important;
    }
}

/* 移动端通知专用样式 */
.mobile-notification {
    position: fixed !important;
    top: 20px !important;
    bottom: auto !important;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    animation: mobileNotificationIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes mobileNotificationIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端滚动通知样式 */
.mobile-notification-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
    z-index: 9999;
    pointer-events: none;
}

.mobile-notification-container .el-notification {
    margin-bottom: 10px;
    pointer-events: auto;
}

/* 小屏幕手机适配 */
@media screen and (max-width: 320px) {
    .el-notification {
        width: calc(100vw - 20px) !important;
        padding: 12px !important;
        left: 10px !important;
        right: 10px !important;
    }
}

/* MessageBox 弹窗样式优化 */
.el-message-box {
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15) !important;
}

.el-message-box__header {
    padding: 20px 20px 15px !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.el-message-box__title {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #333 !important;
}

.el-message-box__content {
    padding: 20px !important;
    text-align: center !important;
}

.el-message-box__message {
    color: #606266 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.el-message-box__btns {
    padding: 15px 20px 20px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

/* MessageBox 确认按钮样式 */
.el-message-box__btns .el-button--primary {
    min-width: 100px !important;
    height: 40px !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
    background: linear-gradient(45deg, #409EFF, #36D1DC) !important;
    border: none !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2) !important;
}

.el-message-box__btns .el-button--primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3) !important;
}

.el-message-box__btns .el-button--primary:active {
    transform: translateY(0) !important;
}

/* MessageBox 取消按钮样式 */
.el-message-box__btns .el-button--default {
    min-width: 100px !important;
    height: 40px !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 2px solid #e4e7ed !important;
    color: #606266 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

.el-message-box__btns .el-button--default:hover {
    border-color: #409EFF !important;
    color: #409EFF !important;
    background: #f0f7ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1) !important;
}

.el-message-box__btns .el-button--default:active {
    transform: translateY(0) !important;
}

/* 移动端适配 */
@media screen and (orientation: portrait) {
    .el-message-box {
        width: 90% !important;
        max-width: 400px !important;
    }
    
    .el-message-box__btns {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .el-message-box__btns .el-button--primary,
    .el-message-box__btns .el-button--default {
        width: 100% !important;
        min-width: auto !important;
    }
}