/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* TailwindCSS CDN */
/* Note: This should be in HTML, not CSS */

/* 自定义字体 */
.font-pacifico {
    font-family: 'Pacifico', cursive;
}

/* 输入框样式 */
.input-box {
    border: 1px solid #E5E5EA !important;
    padding: 12px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    background-color: #fff !important;
    color: #333 !important;
}

.input-box:focus {
    border-color: #007AFF !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important;
    outline: none !important;
}

/* 主要按钮样式 */
.btn-primary {
    background-color: #007AFF !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
}

.btn-primary:hover {
    background-color: #0062CC !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2) !important;
}

/* 次要按钮样式 */
.btn-secondary {
    background-color: #F2F2F7 !important;
    color: #333 !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
}

.btn-secondary:hover {
    background-color: #E5E5EA !important;
    transform: translateY(-2px) !important;
}

/* 复制按钮样式 */
.btn-copy {
    background-color: #E5E5EA !important;
    color: #333 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    position: relative !important;
    border: none !important;
}

.btn-copy:hover {
    background-color: #D1D1D6 !important;
}

.btn-copy.copied {
    background-color: #34C759 !important;
    color: white !important;
    position: relative !important;
}

.btn-copy.copied .copy-text {
    display: none !important;
}

.btn-copy.copied .copied-text {
    display: inline-block !important;
}

.btn-copy .copied-text {
    display: none !important;
}

/* 下拉框样式 */
select {
    appearance: none;
    background-color: #fff;
    border: 1px solid #E5E5EA;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/Polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* 页脚样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #8E8E93;
    z-index: 10;
}

/* 错误消息样式 */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background-color: #e74c3c;
    color: white;
    border-radius: 6px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .input-section textarea {
        min-height: 200px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .copy-group {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
}