* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.header-section,
.convert-section {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

/* 标题样式 */
.header-section h1 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    background-color: #3498db;
    padding: 12px;
    border-radius: 5px;
    font-weight: 500;
}

.header-section p {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 8px;
}

/* 转换区域标题 */
.convert-section h2 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

/* 文本框样式 */
.textarea-container {
    width: 100%;
    margin-bottom: 20px;
}

.textarea-container textarea {
    width: 100%;
    min-height: 300px;
    resize: vertical;
    font-family: '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-weight: normal;
    background-color: #f9f9f9;
}

.textarea-container textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 按钮组样式 */
.button-group {
    text-align: center;
    margin-bottom: 10px;
}

.button-group input[type="button"] {
    display: inline-block;
    padding: 12px 20px;
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .button-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .button-group input[type="button"] {
        flex: 1;
        min-width: 100px;
        margin: 2px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

.button-group input[type="button"]:hover {
    background-color: #229954;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* 次要按钮样式 */
.button-group input[type="button"].btn-secondary {
    background-color: #3498db;
}

.button-group input[type="button"].btn-secondary:hover {
    background-color: #2980b9;
}

/* 警告按钮样式 */
.button-group input[type="button"].btn-warning {
    background-color: #e74c3c;
}

.button-group input[type="button"].btn-warning:hover {
    background-color: #c0392b;
}

/* 移动端响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-section,
    .convert-section {
        padding: 20px;
    }
    
    .header-section h1 {
        font-size: 18px;
    }
    
    .button-group input[type="button"] {
        padding: 10px 18px;
        font-size: 13px;
        margin: 3px;
    }
}