* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    width: 100%;
    height: 100vh;
    min-height: 540px;
    padding: 0;
    margin: 0;
    color: #ffffff;
    overflow: hidden;
}

/* 主容器 - 圆角矩形，半透明玻璃态效果 */
.container {
    width: 100%;
    height: 100%;
    max-width: 896px;
    max-height: 504px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 头部 - 更紧凑的设计 */
.header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header p {
    opacity: 0.85;
    font-size: 12px;
}

/* 内容区域 - 可滚动 */
.content {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条 */
.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

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

/* 表单组 - 更紧凑 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* 按钮样式 - 更现代 */
.btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.8);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 表单问题容器 */
.form-question-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-question-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-question-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.form-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-loading-state {
    text-align: center;
    padding: 20px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-loading-state.hidden {
    display: none;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item label,
.radio-item label {
    cursor: pointer;
    flex: 1;
    user-select: none;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.checkbox-item.selected,
.radio-item.selected {
    border-color: rgba(102, 126, 234, 0.8);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.checkbox-item.selected label,
.radio-item.selected label {
    color: #ffffff;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.form-actions .btn {
    width: auto;
    padding: 10px 24px;
    font-size: 13px;
}

/* 兼容旧的 checkbox-group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 角色选择网格 */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin: 20px 0;
    padding: 10px 0;
}

.character-item {
    position: relative;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.character-item:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.character-item.selected {
    border-color: rgba(102, 126, 234, 0.9);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.character-item .character-icon {
    font-size: 48px;
    margin-bottom: 8px;
    line-height: 1;
}

.character-item .character-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    transition: transform 0.3s ease;
}

.character-item:hover .character-image {
    transform: scale(1.05);
}

.character-item.selected .character-image {
    border: 2px solid rgba(102, 126, 234, 0.9);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}

.character-item .character-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-top: 4px;
}

.character-item.selected .character-name {
    color: #ffffff;
    font-weight: 600;
}

.character-item .character-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.character-item.selected .character-check {
    display: flex;
}

/* 聊天容器 */
.chat-container {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.message {
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-8px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.message.bot {
    display: flex;
    justify-content: flex-start;
}

.message.user {
    display: flex;
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.4;
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.9);
    color: #2d2342;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(45, 35, 66, 0.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.message.user .message-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 正在输入动画 */
.typing-indicator {
    opacity: 0.8;
}

.typing-content {
    min-height: 20px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input-container {
    display: flex;
    padding: 12px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#profile-summary-content {
    min-height: 240px;
}

/* 画像总结卡片样式 */
.profile-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.profile-card-content {
    padding: 25px;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.profile-card-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-header.collapsible {
    cursor: pointer;
    user-select: none;
}

.profile-card-header.collapsible:hover {
    opacity: 0.8;
}

.profile-card-icon {
    font-size: 24px;
}

.profile-card-title {
    color: #667eea;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.profile-card-text {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    margin: 0 0 10px 0;
}

.profile-card-body {
    margin-top: 15px;
}

.profile-card-body.collapsed {
    display: none;
}

/* 流式展示样式 */
.streaming-profile-display {
    margin-bottom: 20px;
}

.streaming-profile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.streaming-profile-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 25px;
    animation: fadeIn 0.3s ease-out;
}

.streaming-profile-title {
    color: #667eea;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.streaming-profile-text {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    margin: 0;
    min-height: 1.2em; /* 确保有高度，即使内容为空 */
}

.collapse-icon {
    transition: transform 0.3s ease;
    color: #667eea;
    font-size: 14px;
}

.collapse-icon.rotated {
    transform: rotate(180deg);
}

/* 编辑按钮 */
.profile-edit-btn {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.profile-edit-btn:hover {
    background: #667eea;
    color: white;
}

/* 价值观标签 */
.values-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.value-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease;
}

.value-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease forwards;
}

/* 编辑标签样式 */
.edit-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-tag:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
    transform: scale(1.05);
}

.chat-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.chat-send-btn {
    margin-left: 8px;
    padding: 10px 18px;
    width: auto;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* 信息框 */
.info-box {
    background: rgba(33, 150, 243, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 3px solid rgba(33, 150, 243, 0.8);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.success-box {
    background: rgba(76, 175, 80, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 3px solid rgba(76, 175, 80, 0.8);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.error-box {
    background: rgba(244, 67, 54, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 3px solid rgba(244, 67, 54, 0.8);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.info-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 1);
    color: white;
}

.step-dot.completed {
    background: rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 1);
    color: white;
}

.api-config {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.api-config input {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* 响应式调整 */
@media (max-height: 540px) {
    .header {
        padding: 12px 20px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .content {
        padding: 16px 20px;
    }
    
    .chat-container {
        height: 280px;
    }
}

/* 选择框选项样式 */
select option {
    background: #2a2a3a;
    color: #ffffff;
}

/* 确保所有文本可见 */
h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

h3 {
    color: rgba(255, 255, 255, 0.95);
}

span {
    color: rgba(255, 255, 255, 0.8);
}

/* 自定义提示框样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease-out;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast:hover {
    transform: translateX(-5px);
}

.toast.success {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.toast.error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.toast.warning {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.toast.info {
    background: rgba(23, 162, 184, 0.9);
    color: white;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    font-size: 20px;
    opacity: 0.7;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    padding: 0 4px;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-out forwards;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}
