@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {text-decoration:none;}

body {
    background: linear-gradient(135deg, #eef2f7 0%, #d9e2ec 100%);
    font-family: 'Segoe UI', 'SF Pro Text', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 主卡片容器 */
.chat-container {
    max-width: 1500px;
    width: 100%;
    height: 90vh;
    min-height: 650px;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* 切换栏 - 磨砂玻璃效果 */
.toggle-bar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(120deg, #1f2e3a, #2c5f8a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.2px;
}

.brand span {
    font-size: 0.75rem;
    color: #5d6f83;
    font-weight: 500;
}

.switch-group {
    display: flex;
    background: #f0f4f9;
    border-radius: 48px;
    padding: 5px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.switch-btn {
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-family: inherit;
    color: #2c3e4e;
    white-space: nowrap;
}

.switch-btn.active {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0,0,0,0.02);
    transform: scale(0.97);
}

/* 各自主题色标识 (活跃时个性色调) */
.switch-btn[data-assistant="doubao"].active {
    color: #d65c2a;
    text-shadow: 0 0 2px rgba(214,92,42,0.1);
}
.switch-btn[data-assistant="yuanbao"].active {
    color: #2b7c3e;
}
.switch-btn[data-assistant="qianwen"].active {
    color: #4a6ee0;
}
.switch-btn[data-assistant="deepseek"].active {
    color: #1f8a7c;
}

.info-tip {
    background: #eef2fa;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.72rem;
    color: #2c6288;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-tip i {
    font-style: normal;
    font-weight: 500;
}

/* iframe 区域 */
.iframe-wrapper {
    flex: 1;
    position: relative;
    background: #fefefe;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* 加载占位符 */
.loading-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    z-index: 20;
    transition: opacity 0.2s;
    pointer-events: none;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #496f92;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 780px) {
    .chat-container {
        height: 95vh;
        border-radius: 1.5rem;
    }
    .toggle-bar {
        padding: 0.7rem 1rem;
    }
    .switch-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    .brand h1 {
        font-size: 1.2rem;
    }
    .info-tip {
        display: none;
    }
}

@media (max-width: 560px) {
    .switch-group {
        width: 100%;
        justify-content: space-between;
    }
    .switch-btn {
        flex: 1;
        text-align: center;
        padding: 0.4rem 0.2rem;
    }
}

.brand{display: flex;align-items: center;}
.brand label{font-size:1.2rem;display: flex;align-items: center;}

#fullWidthCheck{
    width: 1.2rem;  /* 自定义大小 */ 
    height: 1.2rem;  
    border: 2px solid #ccc;  
    border-radius: 4px;
}