/* 文字云样式 */
.cloud-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    text-align: center;
}

.cloud-title {
    font-size: 28px;
    color: #776e65;
    margin: 0 0 10px 0;
}

.cloud-description {
    color: #776e65;
    margin: 0 0 20px 0;
}

.cloud-input {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin: 20px auto;
    box-sizing: border-box;
}

.cloud-input:focus {
    outline: none;
    border-color: #1e3c72;
}

.generate-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background: #1e3c72;
    color: white;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.generate-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
}

.cloud-display {
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 5px;
    margin: 20px 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.word {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.word:hover {
    transform: scale(1.1);
}

.options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.option-label {
    font-weight: bold;
    color: #776e65;
    white-space: nowrap;
}

.color-scheme {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.scheme-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.scheme-option:hover {
    transform: scale(1.2);
}

.scheme-option.active {
    border-color: #333;
    transform: scale(1.2);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background: #6c757d;
    color: white;
    transition: all 0.3s ease;
    min-width: 100px;
}

.action-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.save-btn {
    background: #28a745;
}

.save-btn:hover {
    background: #218838;
}

.clear-btn {
    background: #dc3545;
}

.clear-btn:hover {
    background: #c82333;
}

/* 隐藏按钮和工作模式 */
.hidden-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    display: none;
}

.work-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.work-screen {
    background: #f0f0f0;
    width: 90%;
    height: 80%;
    border: 1px solid #ccc;
    padding: 20px;
    font-family: 'Courier New', monospace;
    overflow: auto;
}

.work-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.work-content {
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cloud-container {
        margin: 10px;
        padding: 15px;
    }
    
    .options {
        flex-direction: column;
        align-items: center;
    }
    
    .option-group {
        width: 100%;
        justify-content: center;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
}